Skip to Content
author's profile photo Former Member
Former Member

Problem getting Initial Context

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2007 at 12:26 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2007 at 05:13 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2007 at 07:34 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.