org.jboss.mq.SpyJMSException: Cannot authenticate user
sgopinathan Sep 16, 2003 11:59 AMI am using the topic/testtopic to try an an example provided by Jboss. When I try to run this example with client running JDK 1.4 it runs fine but when I try to run the same example under JDK 1.3.0, I get the following error( I have marked the line where the error occurs in bold)
InitialContext iniCtx = new InitialContext();
Object tmp = iniCtx.lookup("ConnectionFactory");
TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;
conn = tcf.createTopicConnection(); topic = (Topic) iniCtx.lookup("topic/testTopic");
session = conn.createTopicSession(false,
TopicSession.AUTO_ACKNOWLEDGE);
conn.start();
I get the following error.
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketException: Option unsupported by protocol: connect)
at org.jboss.mq.Connection.authenticate(Connection.java:883)
at org.jboss.mq.Connection.(Connection.java:238)
at org.jboss.mq.Connection.(Connection.java:315)
at org.jboss.mq.SpyConnection.(SpyConnection.java:59)
at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:78)
at com.s1.cust.fhlbny.boi.HelloMessageRClient.setupPubSub(HelloMessageRClient.java:70)
at com.s1.cust.fhlbny.boi.HelloMessageRClient.(HelloMessageRClient.java:41)
at com.s1.cust.fhlbny.boi.HelloMessageRClient.main(HelloMessageRClient.java:111)
+ nested throwable: java.net.SocketException: Option unsupported by protocol: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:355)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:142)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:129)
at java.net.Socket.(Socket.java:273)
at java.net.Socket.(Socket.java:127)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:189)
at org.jboss.mq.il.oil.OILServerIL.createConnection(OILServerIL.java:563)
at org.jboss.mq.il.oil.OILServerIL.checkConnection(OILServerIL.java:507)
at org.jboss.mq.il.oil.OILServerIL.authenticate(OILServerIL.java:289)
at org.jboss.mq.Connection.authenticate(Connection.java:876)
at org.jboss.mq.Connection.(Connection.java:238)
at org.jboss.mq.Connection.(Connection.java:315)
at org.jboss.mq.SpyConnection.(SpyConnection.java:59)
at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:78)
at com.s1.cust.fhlbny.boi.HelloMessageRClient.setupPubSub(HelloMessageRClient.java:70)
at com.s1.cust.fhlbny.boi.HelloMessageRClient.(HelloMessageRClient.java:41)
at com.s1.cust.fhlbny.boi.HelloMessageRClient.main(HelloMessageRClient.java:111)
Does anyone know about this error? I would appreciate if anyone can help me here.
Thanks