Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes JMS Exception -- Migration to Jboss 5.1 AS from Jboss 4.0.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS Exception -- Migration to Jboss 5.1 AS from Jboss 4.0.4" Watch "JMS Exception -- Migration to Jboss 5.1 AS from Jboss 4.0.4" New topic
Author

JMS Exception -- Migration to Jboss 5.1 AS from Jboss 4.0.4

H Und
Greenhorn

Joined: Mar 25, 2010
Posts: 7
Hi,

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.namingrg.jnp.interfaces");
env.setProperty(Context.PROVIDER_URL, "jnp://remotehost:1099");
iniCtx = new InitialContext(env);

Object tmp = iniCtx.lookup("ConnectionFactory");
qcf = (QueueConnectionFactory) tmp;


-------------------------------------------------------------------------------------------------------------------------------------

2010-05-25 10:43:21,718 ERROR [STDERR] (ajp-127.0.0.1-8009-2) 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS Exception -- Migration to Jboss 5.1 AS from Jboss 4.0.4
 
Similar Threads
Problem with Webflow
Clustering an application by jboss produced this:
Enabling session replication does not work jboss 4.3 EAP
Jboss clustering + fault tolerance
JBoss question: NotSerializable Exception