H U [
http://community.jboss.org/people/jbosstaskmgmt2] created the discussion
"(Remote JMS client Exception) Migration to Jboss5.1AS from Jboss4.0.4"
To view the discussion, visit:
http://community.jboss.org/message/545214#545214
--------------------------------------------------------------
I was trying to migrate our enterprise application running in Jboss4.0.4 AS to Jboss 5.1
and JDK1.4.2 to JDK 1.6.0_20. I was mostly successful in migration except the JMS part. I
really appreciate your help on resolving the following issue(s).
This migrated enterprise application (client) publish messages to Jboss MQ server
(Jboss4.0.4 & JDK 1.4.2) running on a remote machine. Everything was working fine
before the migration, but after the migration the messaging client(Enterprise application)
is unable to publish messages (establish connection to the Queue on remote machine). I am
getting the following exception. I have very simple JNDI configuration to remote
connection.
Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.setProperty(Context.URL_PKG_PREFIXES,"org.jboss.naming
http://www.coderanch.com/images/smilies/jr-redface.gif
http://www.coderanch.com/images/smilies/jr-redface.gif rg.jnp.interfaces");
env.setProperty(Context.PROVIDER_URL, "jnp://remotehost:1099");
iniCtx = new
http://java.sun.com/javase/6/docs/api/javax/naming/InitialContext.html
InitialContext(env);
Object tmp = iniCtx.lookup("ConnectionFactory");
qcf = (
http://java.sun.com/javaee/6/docs/api/javax/jms/QueueConnectionFactory.html
QueueConnectionFactory) tmp;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2)
http://java.sun.com/javase/6/docs/api/java/lang/UnsupportedOperationExcep...
java.lang.UnsupportedOperationException
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jnp.interfaces.FastNamingProperties.toString(FastNamingProperties.java:175)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1379)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
javax.naming.CompoundName.writeObject(CompoundName.java:541)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.lang.reflect.Method.invoke(Method.java:597)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
javax.naming.InitialContext.lookup(InitialContext.java:392)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
java.lang.reflect.Method.invoke(Method.java:597)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:135)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
2010-05-25 10:43:21,734 ERROR [STDERR] (ajp-127.0.0.1-8009-2) at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/545214#545214]
Start a new discussion in JNDI and Naming at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]