cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while trying to get InitialContext in java proxy

Former Member
0 Kudos

Hi

For Java Proxy Scenario I'm getting the following error when I try to execute the java appplication.

Provided that XI server is up and running

I have imported all the neccessary jar files

I have gone through these links also .........

http://help.sap.com/saphelp_nw04s/helpdata/en/c1/302c4142aef623e10000000a155106/content.htm

RemoteException occurred:<b> Exception while trying to get InitialContext</b>.

com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.interfaces.cross.DestinationException: cannot establish connection with any of the available instances:

xxxxx:xxxxReason: Cannot open connection on host: XXXXX and port: 5XXXX]

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

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

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

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

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

at Demo.JavaProxycall.main(JavaProxycall.java:51)

Caused by: com.sap.engine.interfaces.cross.DestinationException: cannot establish connection with any of the available instances:

xxxxx:xxxReason: Cannot open connection on host: xxxxand port:xxxx at com.sap.engine.interfaces.cross.Destination.getNextAvailableBroker(Destination.java:53)

at com.sap.engine.interfaces.cross.Destination.getRemoteBroker(Destination.java:33)

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

... 5 more

Thanks & Regards

Yuga

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor

Check if you can ping the host, you might need full qualified name.

Check the port number. You need the P4 port which is http port number + 4.

Regards

Stefan

Answers (0)