cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Java system not starting

former_member248450
Active Participant
0 Kudos

Dear experts-

We have upgraded our java system db and kernel. after the upgrade instance is not getting started. has anyone seen anything similar to this?

Below is the error I see in jcontrol log.

Thanks for your help in advance..

Mon Feb  4 15:45:31 2013

[Thr 01] ***LOG Q0I=> NiPConnect: 122.22.22.22:3901: connect (146: Connection refused) [nixxi.cpp 2898]

[Thr 01] *** ERROR => NiPConnect: SiConnect failed for hdl 30/sock 11

    (SI_ECONN_REFUSE/146; I4; ST; 122.22.22:3901) [nixxi.cpp    2898]

[Thr 01] *** ERROR => MsIAttachEx: NiBufConnect to sapmk0ci/3901 failed (rc=NIECONN_REFUSED) [msxxi_mt.c   713]

[Thr 01] *** ERROR => Can't attach to message server (sapmk0ci/3901) [rc = -100]-> terminate [jcntrms_mt.c 376]

[Thr 01] JControlCloseProgram: started (exitcode = -100)

[Thr 01] *** ERROR => MsIModState: not_attached [msxxi_mt.c   4226]

[Thr 01] *** ERROR => Can't modify message server state (state = 7, rc = -3) [jcntrms_mt.c 841]

[Thr 01] JControlCloseProgram: good bye... (exitcode = -100)

~

Accepted Solutions (1)

Accepted Solutions (1)

former_member192421
Active Participant
0 Kudos

Hello Jun,

Could you please check if the schema user account i.e. SAP<SCHEMA-ID>DB is locked? If it is locked then unlock it.

Also please attach dev_disp, dev_server0 and dev_jcontrol log files.

Regards,

Rajkumar

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

If you are using oracle , make sure oracle client also upgraded along with kernel and DB.

Regards,

Saju

AntalP
Product and Topic Expert
Product and Topic Expert
0 Kudos

Check the SCSxx instance. It must be running, otherwise the J2EE server cannot be started.

See the SCSxx/work/dev_ms file, it should contain a line that hostname is sapmk0ci

and it is listening on port number 3901.

former_member248450
Active Participant
0 Kudos

SCS01 is not starting.

I see this in dev_ms file

[Thr  1] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 24187) [msxxserv_mt. 1853]

[Thr  1] SigISetDefaultAction : default handling for signal 18

[Thr  1] load acl file = /usr/sap/SID/SYS/global/ms_acl_info

[Thr  1] MsGetOwnIpAddr: my host addresses are :

[Thr  1]   1 : [ip]  (HOSTNAME)

[Thr  1]   2 : [127.0.0.1] localhost (LOCALHOST)

[Thr  1]   3 : [ip] sapmk0ci.own.com (NILIST)

[Thr  1] MsHttpInit: full qualified hostname = sapmk0ci.own.com

[Thr  1] HTTP logging is switch off

[Thr  1] set HTTP state to LISTEN

[Thr  1] MsHttpOwnDomain: own domain[1] = own.com

[Thr  1] ms/icf_info_server : deleted

[Thr  1] *** I listen to internal port 3901 (3901) ***

[Thr  1] *** HTTP port 8101 state LISTEN ***

[[Thr  1] build version=701.2009.12.02

x

x

x

x

x

x

x

===========

[Thr  1] Thu Jan 31 18:31:33 2013
[Thr  1] MsJ2EE_AddLoggedInNode: add node [8096700] into logged in list
[Thr  1] MsJ2EE_AddLoggedInNode: add node [8096750] into logged in list

[Thr  1] Mon Feb 11 09:38:44 2013
[Thr  1] *** ERROR => MsSRead: NiBufReceive (rc=NIECONN_BROKEN) [msxxserv_mt. 10703]
[Thr  1] *** ERROR => MsSClientHandle: MsSRead C3 (JM_T1359678694376_0_grcqly01), MSEINTERN [msxxserv_mt. 4215]

[Thr  1] Mon Feb 11 09:38:54 2013
[Thr  1] MsJ2EE_AddDisconnectedNode: add node [8096700] into disconnect list
[Thr  1] MsJ2EE_CleanDisconnectedNodes: clean disconnect list

[Thr  1] Mon Feb 11 09:40:45 2013
[Thr  1] *** ERROR => MsSRead: NiBufReceive (rc=NIECONN_BROKEN) [msxxserv_mt. 10703]
[Thr  1] *** ERROR => MsSClientHandle: MsSRead C2 (J2EE8096750), MSEINTERN [msxxserv_mt. 4215]
[Thr  1] MsJ2EE_AddDisconnectedNode: add node [8096750] into disconnect list

[Thr  1] Mon Feb 11 09:41:02 2013
[Thr  1] MsSExit: received SIGINT (2)
[Thr  1] ***LOG Q02=> MsSHalt, MSStop (Msg Server 24187) [msxxserv_mt. 6041]
~

Former Member
0 Kudos

Hello Juan

To find if Message Server is running or not, please check status Green in output of command:

sapcontrol -nr <SCS_Instance_ID> -function GetProcessList

For exception "[Thr 01] *** ERROR => Can't attach to message server (sapmk0ci/3901) [rc = -100]-"

1. Please check if the mshost=sapmk0ci and msport=3901 are correct and message server is actually reachable on this location.

 

2. In dev_ms file at location \usr\sap\<SID>\SCSXX\work you will see a statement like

 

[Thr  1] *** I listen to internal port XXXX (XXXX) ***

This is the correct message server port. All instances should connect to this port.

3. Please check paramters of /usr/sap/<SID>/<instanceID>/j2ee/cluster/instance.properties file

instance.ms.host=XXXXXX

instance.ms.port=XXXXXX

 

These should contain the correct values. If values are wrong you need to assgin correct values via configtool for all dispatcher and server nodes.

 

4. Please make sure that the following profile parameters exist in the instance profile in question. The instance profile can be found on the central file system share (sapmnt) in the SYS/profile directory. If they do not exist, add them.

 

  j2ee/scs/host = <hostname of your SCS instance>

  j2ee/scs/system = <instance number of your SCS instance>

 

5. Please check if all parameters exist as per following sap note:

741289 Profile parameters of the J2EE Engine are lost

6. Please check if following parameters exist in default profile file

 

j2ee/scs/host = <hostname of your SCS instance>

j2ee/scs/system = <instance number of your SCS instance>

j2ee/ms/port = <message server port>

 

If not, add them. When adjusting the DEFAULT profile please use

RZ10 transaction in R/3. If you edit the file directly the parameters

will be lost the next time the profile is modified with RZ10.

Regards,

Tapan


Former Member
0 Kudos

Hi Jun,

I also faced the same issue many times.

I hope by following the below steps will help u to solve this :

1.Check data base connectivity.

2.If it is failing and Restart ONLY DB and try to connect to config tool.

3.If the connection is fine then try to start JAVA.

Hope fully it will work.

Former Member
0 Kudos

Hi Jun,

         If possible better go for whole OS reboot so that services gets started cleanly.

Regards

Vaibhav

Former Member
0 Kudos

Hi,

First of all please clean the memory(sapcontrol, cleanipc).

Then check, is there any service listening on port 3901.

You can check it with the command lsof -i:3901 on Unix.

Regards,

Laszlo

Former Member
0 Kudos

Hi,

  Please maintain the correct hostname entry in your host file and try again.

If still you are facing the issue, please attach dev_server0, dev_disp , dev_ms for more analysis

Thanks and Regards,

Vimal

former_member248450
Active Participant
0 Kudos

yes, i am still seeing the issue. none of this logs are updated recently.

Former Member
0 Kudos

Please post the output of r3trans -d and dpmon nr=instance number

Hope this helps ..

former_member248450
Active Participant
0 Kudos

R3trans doesnt work java system.

former_member188883
Active Contributor
0 Kudos

Hi Jun,

Could you check what this IP address is for  122.22.22.22.

If it is not of your server then hash this entry in /etc/hosts file and then check the system startup.

Regards,

Deepak Kori