[jboss-user] [JNDI/Naming/Network] - Can't find SerialContextProvider
mohitanchlia
do-not-reply at jboss.com
Tue Jul 10 01:37:31 EDT 2007
I am trying to run following code:
Properties props = new Properties();
props.setProperty("java.naming.factory.initial",
"com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty("java.naming.factory.url.pkgs",
"com.sun.enterprise.naming");
props.setProperty("java.naming.factory.state",
"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
// optional. Defaults to localhost. Only needed if web server is running
// on a different host than the appserver
props.setProperty("org.omg.CORBA.ORBInitialHost", "localhost");
props.setProperty("org.omg.CORBA.ORBInitialPort", "1099");
InitialContext ic = new InitialContext(props);
Sless s = (Sless) ic.lookup("com.abc.Sless");
---------------
I am getting exception GIOP magic number failure. When I connect to some other port I get:
NFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specifi
ed host/port: all interfaces/3075"
javax.naming.CommunicationException: Can't find SerialContextProvider [Root exce
ption is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Ma
ybe]
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:135)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:288
)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.intuit.ejb.client.test.SlessJavaClient.main(Unknown Source)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed:
Maybe
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectionAbort(
ORBUtilSystemException.java:2429)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectionAbort(
ORBUtilSystemException.java:2447)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readBit
s(SocketOrChannelConnectionImpl.java:371)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.handleE
vent(SocketOrChannelConnectionImpl.java:1171)
at com.sun.corba.ee.impl.transport.SelectorImpl.run(SelectorImpl.java:27
5)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 211 completed:
No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.ioexceptionWhenR
eadingConnection(ORBUtilSystemException.java:2513)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.ioexceptionWhenR
eadingConnection(ORBUtilSystemException.java:2531)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.readGIOPHea
der(MessageBase.java:123)
at com.sun.corba.ee.impl.transport.CorbaContactInfoBase.createMessageMed
iator(CorbaContactInfoBase.java:153)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readBit
s(SocketOrChannelConnectionImpl.java:325)
... 2 more
Caused by: java.io.IOException: End-of-stream
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readFul
ly(SocketOrChannelConnectionImpl.java:646)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(So
cketOrChannelConnectionImpl.java:541)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.readGIOPHea
der(MessageBase.java:119)
... 4 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062249#4062249
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062249
More information about the jboss-user
mailing list