cancel
Showing results for 
Search instead for 
Did you mean: 

Problem getting Initial Context

Former Member
0 Kudos

Unfortunately, I am getting, the following error message, while trying to get an InitialContext for calling an ejb:

com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot create new RemoteLoginContext instance.]

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:532)

at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)

at javax.naming.InitialContext.init(InitialContext.java:219)

at javax.naming.InitialContext.<init>(InitialContext.java:195)

at src.EJBRemoteClient.main(EJBRemoteClient.java:24)

Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Cannot create new RemoteLoginContext instance.

at com.sap.engine.services.security.remote.login.RemoteLoginContext.<init>(RemoteLoginContext.java:98)

at com.sap.engine.services.jndi.implclient.LoginHelper.clientSideLogin(LoginHelper.java:78)

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:396)

... 5 more

Caused by: com.sap.engine.services.rmi_p4.P4RuntimeException: Unexpected exception.Nested exception is:

java.io.EOFException: End of stream is reached unexpectedly during input from Socket[addr=/10.62.145.243,port=50104,localport=1225]

at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:591)

at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:561)

at com.sap.engine.services.security.remote.RemoteSecurity_Stub.getRemoteLoginContext(RemoteSecurity_Stub.java:674)

at com.sap.engine.services.security.remote.login.RemoteLoginContext.<init>(RemoteLoginContext.java:93)

... 7 more

Does anybody know how to solve this problem?

Thank you for your help.

Kind regards, Patrick.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Patrick,

If you have set for a server node the debug setting Restricted Load Balancing, then the specific server node will not be part of the j2ee engine load balancing, hence you will see an error similar to what you have pasted when trying to reach it via p4 protocol (trying to get initial context remotely).

I don't think there's a special document for that, but you can check the property description on help.sap.com.

Greetings, Myriana

Former Member
0 Kudos

What caused the "Unexpected exception.Nested exception is:

java.io.EOFException: End of stream is reached unexpectedly during input from Socke....."

?

Or is that not significant at all?

Thank you

Mary-Jo

Former Member
0 Kudos

Hi Patrick,

This could be due to many reasons:

1.Server died while you tried to connect

2.Dispatcher died while you tried to connect

3. You have only one server node and it is set in debug mode. If this is the case then you will not be able to connect via p4.

Check also the error in the server log files, maybe there is something that gives a hint.

I hope this helps.

Myriana

Former Member
0 Kudos

Hi Myriana,

point1 and 2 are correct. But I don't agree with point 3. Do you have an official document, which describes this?

Kind regards, Patrick.

Former Member
0 Kudos

Hi Patrick

The following link explains exactly the same error you have..

http://help.sap.com/saphelp_nw04/helpdata/en/f4/302c4142aef623e10000000a155106/frameset.htm

Thanks

Subbu