on 11-02-2006 10:34 AM
Hi all!
I have a Java client which tries to connect to an EJB application deployed on SAP WebAS of Netweaver Java Edition SP16. The connection isn't successful, I get the following runtime error on my client:
656 [main] ERROR com.catenic.anafee.client.model.CaDataProvider - com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
1546 [main] ERROR com.catenic.anafee.client.Anafee - Unnamed exception
java.lang.Exception: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
at com.catenic.anafee.client.model.CaDataProvider.<init>(CaDataProvider.java:171)
at com.catenic.anafee.client.Anafee.<init>(Anafee.java:178)
at com.catenic.anafee.client.Anafee.main(Anafee.java:318)
Caused by: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:238)
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 com.catenic.anafee.client.model.CaDataProvider.lookupRemote(CaDataProvider.java:2252)
at com.catenic.anafee.client.model.CaDataProvider.<init>(CaDataProvider.java:165)
... 2 more
Caused by: java.lang.NullPointerException
at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:122)
... 8 more
-
The InitialContext is created like this:
Properties props = new Properties();
props.put(Context.PROVIDER_URL, "localhost");
props.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sap.engine.services.jndi.InitialContextFactoryImpl");
props.put(Context.SECURITY_PRINCIPAL, "Administrator");
props.put(Context.SECURITY_CREDENTIALS, "admin");
Context ctx = new InitialContext(props);
Do you have any idea how to solve this problem?
Regards,
Matthias
Hi all!
We get some more info in the meantime. The credentials posted in the previous message are wrong. There's no global user "Administrator" with password "admin" in the server version used. We use Netweaver 2004s at the moment, with user "Administrator" and password
"abcd1234". The PROVIDER_URL did also change. The current code of our RMI-Client to create the InitialContext is:
Properties props = new Properties();
props.put(Context.PROVIDER_URL, "192.168.100.12:50104");
props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
props.put(Context.SECURITY_PRINCIPAL, "Administrator");
props.put(Context.SECURITY_CREDENTIALS, "abcd1234");
It's not possible to connect to the NamingService of our SAP Server on 192.168.100.12 over P4 Port 50104. The error message of our RMI-Client:
0 [main] INFO com.catenic.anafee.client.Anafee - *** Anafee started ***
657 [main] ERROR com.catenic.anafee.client.model.CaDataProvider - com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
2594 [main] ERROR com.catenic.anafee.client.Anafee - Unnamed exception
java.lang.Exception: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
at com.catenic.anafee.client.model.CaDataProvider.<init>(CaDataProvider.java:171)
at com.catenic.anafee.client.Anafee.<init>(Anafee.java:178)
at com.catenic.anafee.client.Anafee.main(Anafee.java:318)
Caused by: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:238)
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 com.catenic.anafee.client.model.CaDataProvider.lookupRemote(CaDataProvider.java:2253)
at com.catenic.anafee.client.model.CaDataProvider.<init>(CaDataProvider.java:165)
... 2 more
Caused by: java.lang.NullPointerException
at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:122)
... 8 more
Any help highly appreciated!
Regards,
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.