cancel
Showing results for 
Search instead for 
Did you mean: 

Not Able to Start Java Stack though ABAP stack is fine

Former Member
0 Kudos

Hi Guys,

I've installed NW 7.0 SR2 on windows Server 2003 with Oracle 10g as database successfully. I then run SGEN to generate BASIS objects for faster execution but due to lack of space at OS level it failed. I also modified the parameter rdisp/J2EE_Start to 0 not to come up Java stack automatically and given SAP_BC_JSF_COMMUNICATION role to SAPJSF user . The problem is when i want to start manually via SMICM->administration->J2EE Instance(Local)->End with Restart option nothing is happening. I dont exactly know what causes the Java Engine not to start although it was working fine before i modifying the above changes.

Since i dont know what logs to post, iam pasting some of the excerpts from my log files.

PLease help as i need Java stack up to work on.

Log from dev_jcontrol.

**********************************************************************

JControlStartJLaunch: program = E:\usr\sap\NWM\DVEBMGS00\exe\jlaunch.exe

-> arg[00] = E:\usr\sap\NWM\DVEBMGS00\exe\jlaunch.exe

-> arg[01] = pf=E:\usr\sap\NWM\SYS\profile\NWM_DVEBMGS00_willsys49

-> arg[02] = -DSAPINFO=NWM_00_bootstrap

-> arg[03] = -nodeId=-1

-> arg[04] = -file=E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster\instance.properties

-> arg[05] = -syncSem=JSTARTUP_WAIT_ON_2472

-> arg[06] = -nodeName=bootstrap

-> arg[07] = -jvmOutFile=E:\usr\sap\NWM\DVEBMGS00\work\jvm_bootstrap.out

-> arg[08] = -stdOutFile=E:\usr\sap\NWM\DVEBMGS00\work\std_bootstrap.out

-> arg[09] = -locOutFile=E:\usr\sap\NWM\DVEBMGS00\work\dev_bootstrap

-> arg[10] = -mode=BOOTSTRAP

-> arg[11] = pf=E:\usr\sap\NWM\SYS\profile\NWM_DVEBMGS00_willsys49

-> arg[12] = -DSAPSTART=1

-> arg[13] = -DCONNECT_PORT=4513

-> arg[14] = -DSAPSYSTEM=00

-> arg[15] = -DSAPSYSTEMNAME=NWM

-> arg[16] = -DSAPMYNAME=willsys49_NWM_00

-> arg[17] = -DSAPPROFILE=E:\usr\sap\NWM\SYS\profile\NWM_DVEBMGS00_willsys49

-> arg[18] = -DFRFC_FALLBACK=ON

-> arg[19] = -DFRFC_FALLBACK_HOST=localhost

-> lib path = PATH=E:\j2sdk1.4.2_12\jre\bin\server;E:\j2sdk1.4.2_12\jre\bin;E:\oracle\product\10.2.0\db_1\bin;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32\Wbem;E:\Program Files\Java\j2re1.4.2_12\bin;E:\usr\sap\NWM\SYS\exe\uc\NTI386

-> exe path = PATH=E:\j2sdk1.4.2_12\bin;E:\usr\sap\NWM\DVEBMGS00\j2ee\os_libs;E:\oracle\product\10.2.0\db_1\bin;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32\Wbem;E:\Program Files\Java\j2re1.4.2_12\bin;E:\usr\sap\NWM\SYS\exe\uc\NTI386

**********************************************************************

[Thr 1684] JControlDPMessageProxy: Thread 1684 started as handler thread for R/3 dispatcher messages.

[Thr 2884] Wed Dec 16 12:59:56 2009

[Thr 2884] *** ERROR => invalid return code of process [bootstrap] (exitcode = -2) [jstartxx.c 1642]

[Thr 2884] JControlExecuteBootstrap: error executing bootstrap node [bootstrap] (rc = -2)

[Thr 2884] JControlCloseProgram: started (exitcode = -2)

[Thr 2884] JControlCloseProgram: good bye... (exitcode = -2)

Log from dev_Bootstrap:

-


trc file: "E:\usr\sap\NWM\DVEBMGS00\work\dev_bootstrap", trc level: 1, release: "700"

-


node name : bootstrap

pid : 3204

system name : NWM

system nr. : 00

started at : Wed Dec 16 12:59:53 2009

arguments :

arg[00] : E:\usr\sap\NWM\DVEBMGS00\exe\jlaunch.exe

arg[01] : pf=E:\usr\sap\NWM\SYS\profile\NWM_DVEBMGS00_willsys49

arg[02] : -DSAPINFO=NWM_00_bootstrap

arg[03] : pf=E:\usr\sap\NWM\SYS\profile\NWM_DVEBMGS00_willsys49

arg[04] : -DSAPSTART=1

arg[05] : -DCONNECT_PORT=4513

arg[06] : -DSAPSYSTEM=00

arg[07] : -DSAPSYSTEMNAME=NWM

arg[08] : -DSAPMYNAME=willsys49_NWM_00

arg[09] : -DSAPPROFILE=E:\usr\sap\NWM\SYS\profile\NWM_DVEBMGS00_willsys49

arg[10] : -DFRFC_FALLBACK=ON

arg[11] : -DFRFC_FALLBACK_HOST=localhost

[Thr 340] Wed Dec 16 12:59:53 2009

[Thr 340] *** WARNING => INFO: Unknown property [instance.box.number=NWMDVEBMGS00willsys49] [jstartxx.c 841]

[Thr 340] *** WARNING => INFO: Unknown property [instance.en.host=willsys49] [jstartxx.c 841]

[Thr 340] *** WARNING => INFO: Unknown property [instance.en.port=3201] [jstartxx.c 841]

[Thr 340] *** WARNING => INFO: Unknown property [instance.system.id=0] [jstartxx.c 841]

**********************************************************************

JStartupReadInstanceProperties: read instance properties [E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster\instance.properties]

-> ms host : willsys49

-> ms port : 3901

-> OS libs : E:\usr\sap\NWM\DVEBMGS00\j2ee\os_libs

-> Admin URL :

-> run mode : NORMAL

-> run action : NONE

-> enabled : yes

**********************************************************************

**********************************************************************

Used property files

-> files [00] : E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster\instance.properties

**********************************************************************

**********************************************************************

Instance properties

-> ms host : willsys49

-> ms port : 3901

-> os libs : E:\usr\sap\NWM\DVEBMGS00\j2ee\os_libs

-> admin URL :

-> run mode : NORMAL

-> run action : NONE

-> enabled : yes

**********************************************************************

**********************************************************************

Bootstrap nodes

-> [00] bootstrap : E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster\instance.properties

-> [01] bootstrap_ID5872600 : E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster\instance.properties

-> [02] bootstrap_ID5872650 : E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster\instance.properties

**********************************************************************

**********************************************************************

Worker nodes

-> [00] ID5872600 : E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster\instance.properties

-> [01] ID5872650 : E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster\instance.properties

**********************************************************************

[Thr 340] JLaunchRequestQueueInit: create named pipe for ipc

[Thr 340] JLaunchRequestQueueInit: create pipe listener thread

[Thr 1728] JLaunchRequestFunc: Thread 1728 started as listener thread for np messages.

[Thr 3504] WaitSyncSemThread: Thread 3504 started as semaphore monitor thread.

[Thr 340] NiInit3: NI already initialized; param 'maxHandles' ignored (1;202)

[Thr 340] CPIC (version=700.2006.09.13)

[Thr 340] [Node: bootstrap] java home is set by profile parameter

Java Home: E:\j2sdk1.4.2_12

[Thr 340] JStartupICheckFrameworkPackage: can't find framework package E:\usr\sap\NWM\DVEBMGS00\exe\jvmx.jar

**********************************************************************

JStartupIReadSection: read node properties [bootstrap]

-> node name : bootstrap

-> node type : bootstrap

-> node execute : yes

-> java path : E:\j2sdk1.4.2_12

-> java parameters : -Djco.jarm=1

-> java vm version : 1.4.2_12-b03

-> java vm vendor : Java HotSpot(TM) Server VM (Sun Microsystems Inc.)

-> java vm type : server

-> java vm cpu : x86

-> heap size : 256M

-> root path : E:\usr\sap\NWM\DVEBMGS00\j2ee\cluster

-> class path : .\bootstrap\launcher.jar

-> OS libs path : E:\usr\sap\NWM\DVEBMGS00\j2ee\os_libs

-> main class : com.sap.engine.offline.OfflineToolStart

-> framework class : com.sap.bc.proj.jstartup.JStartupFramework

-> registr. class : com.sap.bc.proj.jstartup.JStartupNatives

-> framework path : E:\usr\sap\NWM\DVEBMGS00\exe\jstartup.jar;E:\usr\sap\NWM\DVEBMGS00\exe\jvmx.jar

-> parameters : com.sap.engine.bootstrap.Bootstrap ./bootstrap ID0058726

-> debuggable : yes

-> debug mode : no

-> debug port : 60000

-> shutdown timeout : 120000

**********************************************************************

[Thr 3616] JLaunchIStartFunc: Thread 3616 started as Java VM thread.

[Thr 3616] *** ERROR => DlLoadLib: LoadLibrary(jvm.dll) Error 126 [dlnt.c 237]

[Thr 3616] Error 126 = "The specified module could not be found."

[Thr 3616] *** ERROR => Can't load VM shared library (jvm.dll) (rc=-2) [jhvmxx.c 1576]

[Thr 3616] **********************************************************************

      • ERROR => Cannot load the Java VM shared library.

      • Please see SAP Note 943602 , section 'Java VM shared library issues'

      • for additional information and trouble shooting.

**********************************************************************

[Thr 3616] *** ERROR => Cannot load DLL for Java VM [jlnchxxi.c 717]

[Thr 340] Wed Dec 16 12:59:55 2009

[Thr 340] JLaunchCloseProgram: good bye (exitcode = -2)

Regards,

Masood

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Masood

Did you change rdisp/J2EE_Start back to 1? If not, it does matter for starting the Java stack since SCS instance needs to read basic parameters to call message server and enqueue server, rdisp/J2EE_Start is one of them along with all others defined in instance profile.

Regards,

Effan

Former Member
0 Kudos

Hello Effan

Thank you for the response. I did change rdisp/J2EE_Start back to 1 by importing the old backup instance profile but result is the same. As far as i know without changing that parameter one can still start Java stack manually using SMICM. Do i have to set the memory settings for Java? Did u figure out from the logs i posted? or do u need any other info please let me know.

Here's my Instance Profile data:

#.******************************************************************************************************************************

#.* *

#.* Instance profile NWM_DVEBMGS00_WILLSYS49 *

#.* *

#.* Version = 000003 *

#.* Generated by user = DDIC *

#.* Generated on = 16.12.2009 , 12:50:26 *

#.* *

#.******************************************************************************************************************************

SAPSYSTEMNAME = NWM

SAPGLOBALHOST = willsys49

SAPSYSTEM = 00

INSTANCE_NAME = DVEBMGS00

DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386

DIR_EXECUTABLE = $(DIR_INSTANCE)\exe

jstartup/trimming_properties = off

jstartup/protocol = on

jstartup/vm/home = E:\j2sdk1.4.2_12

jstartup/max_caches = 500

jstartup/release = 700

jstartup/instance_properties = $(jstartup/j2ee_properties);$(jstartup/sdm_properties)

j2ee/dbdriver = $(DIR_EXECUTABLE)\ojdbc14.jar

PHYS_MEMSIZE = 512

rdisp/wp_no_dia = 6

rdisp/wp_no_btc = 3

rdisp/j2ee_start_control = 1

rdisp/j2ee_start = 1

rdisp/j2ee_libpath = $(DIR_EXECUTABLE)

exe/j2ee = $(DIR_EXECUTABLE)\jcontrol$(FT_EXE)

rdisp/j2ee_timeout = 600

rdisp/frfc_fallback = on

icm/HTTP/j2ee_0 = PREFIX=/,HOST=localhost,CONN=0-500,PORT=5$$00

icm/server_port_0 = PROT=HTTP,PORT=80$$

#----


  1. SAP Messaging Service parameters are set in the DEFAULT.PFL

#----


ms/server_port_0 = PROT=HTTP,PORT=81$$

rdisp/wp_no_enq = 1

rdisp/wp_no_vb = 1

rdisp/wp_no_vb2 = 1

rdisp/wp_no_spo = 1

DIR_CLIENT_ORAHOME = $(DIR_EXECUTABLE)

#----


  1. Jcontrol: Migrated Profile Parameter

# create at Wed Dec 16 12:52:13 2009

#----


j2ee/instance_id = ID0058726

#----


I appreciate your further response.

Regards,

Masood

Former Member
0 Kudos

look's like you use 32 bit windows, and now you have problem with SHARED MEMORY.

Try to reboot whole Windows server, and after start SAP APPL.

Regards.

Former Member
0 Kudos

Yup its a 32bit OS on intel platform. how do i change the shared memory can u please provide the steps to configure? whats that starting SAP APPL u mean application server? i already did that by restarting windows server and the application server several times but with no success. is it to do with communication user SAPJSF? please help me to sort out this problem.

Thanks

Masood

Former Member
0 Kudos

Hi, try to check the

http://help.sap.com/saphelp_nw04/helpdata/en/7f/28074152aff323e10000000a155106/content.htm

P.S. you can simply delete the *.vmprop files , it will be recreated during next start the engine.

Check Note 940893 - Analysis of errors within the startup of J2EE Engine 6.40 (same as 7.0 Analysis).

Regards.

Former Member
0 Kudos

So Java stack can be started before that SGEN error? One more thing to check about memory allocation, in task manager, the total PF usage should be bigger than ABAP memory allocated + Java (bootstrapdispatcherserver nodes). Virtual memory size needs to be set to 2 times or more of physical memory allocated for SAP instance.

Let me know if this is helpful.

Effan

Former Member
0 Kudos

Hello sergo

Thank you for your quick fix i figured out in both instance.properties.vmprop & sdm_jstartup_properties.vmprop files that my whole Java paths are pointing to the wrong Java locations something i initially dump java folder into drive for installation and later deleted. do i just delete these files and let the java engine recreate when its starts again? .

In reply to Effan before running SGEN both ABAP & JAVA were running fine. but i dont think that has caused this problem Also No java processes r showing up in task manager since the java engine itself not able to start. As far as VM goes i have set it to over 4 times of RAM of 1.5GB.Never did processes encroach beyond VM limit when Java was fine so that issue ruled out too. May be the above fix could resolve my issue?

Former Member
0 Kudos
o i just delete these files and let the java engine recreate when its starts again?

Per Note 940893 - Analysis of errors within the startup of J2EE Engine 6.40 (same as 7.0 Analysis)

you can delete *.vmprop files , it will be recreated during next start the engine.

About SGEN, after starting SGEN are you control Tablespaces size are ok? Try to check it using Brtools.

Regards.

Former Member
0 Kudos

I am no able to start my J2EE framework . the problem dicovered in dev_JControl & Dev_JBootstap log files was that my java compiler missing. I accidentally deleted the Java folder containing java executables. So i restored J2SE and pointed Java Home to this location. I although deleted those VMPROP files which got created when the engine started. That note 940893 advised by Sergo helped me too in detecting the JDK issue. I knew SGEN didnt cause the problem it only related to the lcaking of Space in files system at OS level.

Anyways, I thank all of u in supporting me to get resolve my issue. U people r so helping. keep that trait going for others to gain.

Regards

Masood

Answers (0)