cancel
Showing results for 
Search instead for 
Did you mean: 

J2EE Server Starts Slowly

0 Kudos

I have installed the stand alone Java System locally on my laptop. The type that I used was Java System - Oracle - Central System - Custom Installation. My operating system is Windows XP.

The J2EE server starts up but there is about a 10 minute period where it is trying to connect to another system. This is the developer trace and the problem starts at Thread 5384:

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

JHVM_BuildArgumentList: main method arguments of node [server0]

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

[Thr 5116] Wed Mar 08 10:09:44 2006

[Thr 5116] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework

[Thr 5116] JLaunchISetClusterId: set cluster id 9428850

[Thr 5116] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]

[Thr 5116] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]

[Thr 3752] Wed Mar 08 10:10:55 2006

[Thr 3752] JHVM_RegisterNatives: registering methods in com.sap.security.core.server.vsi.service.jni.VirusScanInterface

[Thr 5116] Wed Mar 08 10:11:35 2006

[Thr 5116] JLaunchISetState: change state from [Starting (2)] to [Starting applications (10)]

[Thr 4528] Wed Mar 08 10:11:36 2006

[Thr 4528] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver

[Thr 5384] Wed Mar 08 10:12:03 2006

[Thr 5384] *** ERROR => GwIConnect: GwConnect to localhost / sapgw00 failed (rc=NIECONN_REFUSED) [gwxx.c 291]

[Thr 5376] *** ERROR => GwIConnect: GwConnect to localhost / sapgw00 failed (rc=NIECONN_REFUSED) [gwxx.c 291]

[Thr 5380] *** ERROR => GwIConnect: GwConnect to localhost / sapgw00 failed (rc=NIECONN_REFUSED) [gwxx.c 291]

[Thr 5372] ***LOG Q0I=> NiPConnect2: SiPeekPendConn (10061: WSAECONNREFUSED: Connection refused) [nixxi_r.cpp 8672]

[Thr 5372] *** ERROR => GwIConnect: GwConnect to localhost / sapgw00 failed (rc=NIECONN_REFUSED) [gwxx.c 291]

[Thr 5372] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx.c 297]

[Thr 5380] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx.c 297]

[Thr 5376] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx.c 297]

[Thr 5384] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx.c 297]

[Thr 5384] ***LOG S0R=> GwIConnect, GwConnect () [gwxx.c 302]

[Thr 5384] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx.c 306]

[Thr 5384] ***LOG S90=> SAP_CMREGTP2, GwIConnect ( 236) [r3cpic.c 8797]

[Thr 5376] ***LOG S0R=> GwIConnect, GwConnect () [gwxx.c 302]

[Thr 5380] ***LOG S0R=> GwIConnect, GwConnect () [gwxx.c 302]

[Thr 5372] ***LOG S0R=> GwIConnect, GwConnect () [gwxx.c 302]

[Thr 5372] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx.c 306]

[Thr 5372] ***LOG S90=> SAP_CMREGTP2, GwIConnect ( 236) [r3cpic.c 8797]

[Thr 5372]

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

*

[Thr 5372] * ERROR partner not reached (host 127.0.0.1, service sapgw00)

[Thr 5372] *

  • TIME Wed Mar 08 10:12:03 2006

[Thr 5372] * RELEASE 640

[Thr 5372] * COMPONENT NI (network interface)

[Thr 5372] * VERSION 37

[Thr 5372] * RC -10

[Thr 5372] * MODULE nixxi_r.cpp

[Thr 5372] * LINE 8672

[Thr 5372] * DETAIL NiPConnect2

[Thr 5372] * SYSTEM CALL SiPeekPendConn

[Thr 5372] * ERRNO 10061

[Thr 5372] * ERRNO TEXT WSAECONNREFUSED: Connection refused

[Thr 5372] * COUNTER 1

[Thr 5372] *

[Thr 5372] *****************************************************************************

[Thr 5372] *** ERROR => NiCloseHandle: invalid hdl -1 [nixx.c 666]

[Thr 5380] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx.c 306]

[Thr 5380] ***LOG S90=> SAP_CMREGTP2, GwIConnect ( 236) [r3cpic.c 8797]

[Thr 5380]

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

*

[Thr 5380] * ERROR partner not reached (host 127.0.0.1, service sapgw00)

[Thr 5380] *

  • TIME Wed Mar 08 10:12:03 2006

[Thr 5380] * RELEASE 640

[Thr 5380] * COMPONENT NI (network interface)

[Thr 5380] * VERSION 37

[Thr 5380] * RC -10

[Thr 5380] * MODULE nixxi_r.cpp

[Thr 5380] * LINE 8663

[Thr 5380] * DETAIL NiPConnect2

[Thr 5380] * SYSTEM CALL SiPeekPendConn

[Thr 5380] * ERRNO 10061

[Thr 5380] * ERRNO TEXT WSAECONNREFUSED: Connection refused

[Thr 5380] * COUNTER 1

[Thr 5380] *

[Thr 5380] *****************************************************************************

[Thr 5380] *** ERROR => NiCloseHandle: invalid hdl -1 [nixx.c 666]

[Thr 5376] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx.c 306]

[Thr 5376] ***LOG S90=> SAP_CMREGTP2, GwIConnect ( 236) [r3cpic.c 8797]

[Thr 5376]

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

*

[Thr 5376] * ERROR partner not reached (host 127.0.0.1, service sapgw00)

[Thr 5376] *

  • TIME Wed Mar 08 10:12:03 2006

[Thr 5376] * RELEASE 640

[Thr 5376] * COMPONENT NI (network interface)

[Thr 5376] * VERSION 37

[Thr 5376] * RC -10

[Thr 5376] * MODULE nixxi_r.cpp

[Thr 5376] * LINE 8663

[Thr 5376] * DETAIL NiPConnect2

[Thr 5376] * SYSTEM CALL SiPeekPendConn

[Thr 5376] * ERRNO 10061

[Thr 5376] * ERRNO TEXT WSAECONNREFUSED: Connection refused

[Thr 5376] * COUNTER 1

[Thr 5376] *

[Thr 5376] *****************************************************************************

[Thr 5376] *** ERROR => NiCloseHandle: invalid hdl -1 [nixx.c 666]

[Thr 5384]

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

*

[Thr 5384] * ERROR partner not reached (host 127.0.0.1, service sapgw00)

[Thr 5384] *

  • TIME Wed Mar 08 10:12:03 2006

[Thr 5384] * RELEASE 640

[Thr 5384] * COMPONENT NI (network interface)

[Thr 5384] * VERSION 37

[Thr 5384] * RC -10

[Thr 5384] * MODULE nixxi_r.cpp

[Thr 5384] * LINE 8663

[Thr 5384] * DETAIL NiPConnect2

[Thr 5384] * SYSTEM CALL SiPeekPendConn

[Thr 5384] * ERRNO 10061

[Thr 5384] * ERRNO TEXT WSAECONNREFUSED: Connection refused

[Thr 5384] * COUNTER 1

[Thr 5384] *

[Thr 5384] *****************************************************************************

[Thr 5384] *** ERROR => NiCloseHandle: invalid hdl -1 [nixx.c 666]

Does anyone know how I can eliminate this error? Thank you for you assistance.

Alex Zelinski

Accepted Solutions (1)

Accepted Solutions (1)

angel_dichev
Active Participant
0 Kudos

Hi Alex,

You probably have SLD server running on this instance and the Data supplyer bridge admin is started as well, so the configuration of the DSB is pointing to the sapgateway

but you don't have one.

Just go to the sld -> administration -> DSB and stop it you don't use it, or point it to existing one in the network.

Regards, Angel

Message was edited by: Angel Dichev

0 Kudos

Hi Angel,

I think the problem was related to SLD. My hard disk was having errors so I had it replaced and then installed the server again. I did not find the exact problem but everything is working fine again.

Thanks for your help.

Alex Zelinski

Answers (1)

Answers (1)

Former Member
0 Kudos

Add this:

sapgw00 3300/tcp

sapgw01 3301/tcp

sapgw02 3302/tcp

To:

C:\WINDOWS\system32\drivers\etc\services

172.0.0.1 isn't another system, it is yourself, a loopback IP address. sapgw00 may not be defined in your services file.

My java engines take about 8 minutes to get up and running under normal conditions. 10 minutes on a laptop is not that bad in my own opinion.

0 Kudos

Hi David,

I had those entries defined in my services file.

My hard disk was having errors so I had it replaced and then installed the server again. Everything is working fine again. Not sure what the problem was but I think it was related to SLD.

Thanks for your help.

Alex Zelinski