skyscreamer / nevado

A JMS driver for Amazon SQS.
http://nevado.skyscreamer.org/
Apache License 2.0
51 stars 48 forks source link

java.lang.ClassNotFoundException: org.skyscreamer.nevado.jms.message.NevadoTextMessageHessianSerializer #77

Closed bapatgeeta closed 10 years ago

bapatgeeta commented 10 years ago

I am getting a weird exception while using Nevado, It is searching for class "org.skyscreamer.nevado.jms.message.NevadoTextMessageHessianSerializer", but there is no such class. I am using nevado simple text message. Message contents are simple String and completely serializable. My application WEB-INF/lib folder does have hessian-4.0.7.jar file in it.

The full stack trace is java.lang.ClassNotFoundException: org.skyscreamer.nevado.jms.message.NevadoTextMessageHessianSerializer from BaseClassLoader@1204c3e{VFSClassLoaderPolicy@16d864e{name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/ domain=ClassLoaderDomain@23cfcf{name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/ parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@8e4805{DefaultDomain}} roots=[MemoryContextHandler@25989259[path= context=vfsmemory://a022o-vqtazp-hrhjb4k7-1-hrhjbhgl-2b real=vfsmemory://a022o-vqtazp-hrhjb4k7-1-hrhjbhgl-2b], ZipEntryHandler@23441700[path=MyApp.war/WEB-INF/classes context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/classes], DelegatingHandler@22069910[path=MyApp.war/WEB-INF/lib/AWSReviewer-soap.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/AWSReviewer-soap.jar], DelegatingHandler@18296193[path=MyApp.war/WEB-INF/lib/XmlSchema-1.4.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/XmlSchema-1.4.jar], DelegatingHandler@11315752[path=MyApp.war/WEB-INF/lib/aopalliance-1.0.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/aopalliance-1.0.jar], DelegatingHandler@30883060[path=MyApp.war/WEB-INF/lib/apache-velocity-velocity-1.5.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/apache-velocity-velocity-1.5.jar], DelegatingHandler@31647828[path=MyApp.war/WEB-INF/lib/aws-java-sdk-1.6.12.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/aws-java-sdk-1.6.12.jar], DelegatingHandler@194894[path=MyApp.war/WEB-INF/lib/aws-soap.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/aws-soap.jar], DelegatingHandler@20811696[path=MyApp.war/WEB-INF/lib/axis.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/axis.jar], DelegatingHandler@10782494[path=MyApp.war/WEB-INF/lib/bcprov-jdk14-131.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/bcprov-jdk14-131.jar], DelegatingHandler@27456022[path=MyApp.war/WEB-INF/lib/cglib.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/cglib.jar], DelegatingHandler@12819932[path=MyApp.war/WEB-INF/lib/commons-beanutils-1.8.0.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/commons-beanutils-1.8.0.jar], DelegatingHandler@11601432[path=MyApp.war/WEB-INF/lib/commons-codec-1.3.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/commons-codec-1.3.jar], DelegatingHandler@469402[path=MyApp.war/WEB-INF/lib/commons-collections.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/commons-collections.jar], ..... Few more Jars.

Kindly advice. If I have put the issue at in correct place then please direct me towards correct place.

Thank You Geeta B

carterpage commented 10 years ago

There is no such class, never has been. Maybe search your code for NevadoTextMessageHessianSerializer? Also your stack trace is a little odd. I don't see an actual calling stack. Can you see what code is actually trying to call it?

On Mon Feb 10 2014 at 4:32:52 AM, bapatgeeta notifications@github.com wrote:

I am getting a weird exception while using Navado, It is searching for class "org.skyscreamer.nevado.jms.message.NevadoTextMessageHessianSerializer", but there is no such class. I am using nevado simple text message. Message contents are simple String and completely serializable. My application WEB-INF/lib folder does have hessian-4.0.7.jar file in it.

The full stack trace is java.lang.ClassNotFoundException: org.skyscreamer.nevado.jms.message.NevadoTextMessageHessianSerializer from BaseClassLoader@1204c3ehttps://github.com/BaseClassLoader/nevado/commit/1204c3e {VFSClassLoaderPolicy@16d864ehttps://github.com/VFSClassLoaderPolicy/nevado/commit/16d864e {name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/domain=ClassLoaderDomain@23cfcf {name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@8e4805{DefaultDomain}} roots=[MemoryContextHandler@2598925https://github.com/MemoryContextHandler/nevado/commit/25989259[path= context=vfsmemory://a022o-vqtazp-hrhjb4k7-1-hrhjbhgl-2b real=vfsmemory://a022o-vqtazp-hrhjb4k7-1-hrhjbhgl-2b], ZipEntryHandler@ 2344170 https://github.com/ZipEntryHandler/nevado/commit/23441700[path =MyApp.war/WEB-INF/classes context=file:/C:/ jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/classes], DelegatingHandler@2206991https://github.com/DelegatingHandler/nevado/commit/22069910[path=MyApp.war/WEB-INF/lib/AWSReviewer-soap.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/AWSReviewer-soap.jar], DelegatingHandler@1829619https://github.com/DelegatingHandler/nevado/commit/18296193[path=MyApp.war/WEB-INF/lib/XmlSchema-1.4.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/XmlSchema-1.4.jar], DelegatingHandler@1131575https://github.com/DelegatingHandler/nevado/commit/11315752[path=MyApp.war/WEB-INF/lib/aopalliance-1.0.jar context=fi le:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/aopalliance-1.0.jar], DelegatingHandler@3088306https://github.com/DelegatingHandler/nevado/commit/30883060[path=MyApp.war/WEB-INF/lib/apache-velocity-velocity-1.5.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/apache-velocity-velocity-1.5.jar], DelegatingHandler@3164782https://github.com/DelegatingHandler/nevado/commit/31647828[path=MyApp.war/WEB-INF/lib/aws-java-sdk-1.6.12.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/aws-java-sdk-1.6.12.jar], DelegatingHandler@194894[path=MyApp.war/WEB-INF/lib/aws-soap.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/aws-soap.jar], DelegatingHandler@2081169https://github.com/DelegatingHandler/nevado/commit/20811696[path=MyApp.war/WEB-INF/lib/axis.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/axis.jar], DelegatingHandler@1078249https://github.com/DelegatingHandler/nevado/commit/10782494[path=MyApp.war/WEB-INF/lib/bcprov-jdk14-131.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/bcprov-jdk14-131.jar], DelegatingHandler@2745602https://github.com/DelegatingHandler/nevado/commit/27456022[path=MyApp.war/WEB-INF/lib/cglib.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/cglib.jar], DelegatingHandler@1281993[path=MyApp.war/WEB-INF/lib/commons-beanutils-1.8.0.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/commons-beanutils-1.8.0.jar], DelegatingHandler@1160143https://github.com/DelegatingHandler/nevado/commit/11601432[path=MyApp.war/WEB-INF/lib/commons-codec-1.3.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/commons-codec-1.3.jar], DelegatingHandler@469402[path=MyApp.war/WEB-INF/lib/commons-collections.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/ jboss-5.1.0.GA/server/default/deploy/MyApp.war/WEB-INF/lib/commons-collections.jar], ..... Few more Jars.

Kindly advice. If I have put the issue at in correct place then please direct me towards correct place.

Thank You Geeta B

Reply to this email directly or view it on GitHubhttps://github.com/skyscreamer/nevado/issues/77 .

bapatgeeta commented 10 years ago

There is no class called "NevadoTextMessageHessianSerializer" in my source code either. I have noticed that we get following error "java.lang.ClassNotFoundException: java/util/HashMapHessianSerializer"

Looks like it is attaching "HessianSerializer" for few classes and not been able to find them then.

Apologies for not putting full stack trace Here it is for "NevadoTextMessageHessianSerializer": java.lang.ClassNotFoundException: org.skyscreamer.nevado.jms.message.NevadoTextMessageHessianSerializer from BaseClassLoader@1204c3e{VFSClassLoaderPolicy@16d864e{name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/ domain=ClassLoaderDomain@23cfcf{name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/ parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@8e4805{DefaultDomain}} .... A whole lot of jar files and libraries........ com.lowagie.text.pdf.interfaces, org.springframework.ejb.interceptor] NON_EMPTY}} at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.caucho.hessian.io.ContextSerializerFactory.getCustomSerializer(ContextSerializerFactory.java:190) at com.caucho.hessian.io.SerializerFactory.loadSerializer(SerializerFactory.java:266) at com.caucho.hessian.io.SerializerFactory.getSerializer(SerializerFactory.java:224) at com.caucho.hessian.io.SerializerFactory.getObjectSerializer(SerializerFactory.java:197) at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:418) at com.caucho.hessian.io.UnsafeSerializer$ObjectFieldSerializer.serialize(UnsafeSerializer.java:293) at com.caucho.hessian.io.UnsafeSerializer.writeInstance(UnsafeSerializer.java:212) at com.caucho.hessian.io.UnsafeSerializer.writeObject(UnsafeSerializer.java:171) at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:421) at org.skyscreamer.nevado.jms.util.SerializeUtil.serialize(SerializeUtil.java:38) at org.skyscreamer.nevado.jms.util.SerializeUtil.serializeToString(SerializeUtil.java:22) at org.skyscreamer.nevado.jms.connector.AbstractSQSConnector.serializeMessage(AbstractSQSConnector.java:276) at org.skyscreamer.nevado.jms.connector.AbstractSQSConnector.sendMessage(AbstractSQSConnector.java:75) at org.skyscreamer.nevado.jms.NevadoSession.sendMessage(NevadoSession.java:416) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(NevadoMessageProducer.java:137) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(NevadoMessageProducer.java:112) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(NevadoMessageProducer.java:100) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:592) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:569) at org.springframework.jms.core.JmsTemplate$4.doInJms(JmsTemplate.java:546) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:620) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:607) at com.MyApp.messages.async.SQSMessaging.sendMessageToQueue(SQSMessaging.java:36) at com.MyApp.messages.async.service.AbstractAsyncService.sendMessage(AbstractAsyncService.java:38) at com.MyApp.service.impl.ServiceImpl.sendAsyncMessage(ServiceImpl.java:2934) at com.MyApp.service.impl.ServiceImpl.sendMessage(ServiceImpl.java:2914) at com.MyApp.service.impl.ServiceImpl.handleEvent(ServiceImpl.java:2544) at com.MyApp.service.impl.ServiceImpl.processTriggerForAccept(ServiceImpl.java:1809) at com.MyApp.service.impl.ServiceImpl.process(ServiceImpl.java:425) at com.MyApp.service.endpoint.processEndpoint.process(processEndpoint.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.ws.server.endpoint.MethodEndpoint.invoke(MethodEndpoint.java:115) at org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter.invokeInternal(MarshallingMethodEndpointAdapter.java:135) at org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter.invoke(AbstractMethodEndpointAdapter.java:58) at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:228) at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:170) at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88) at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57) at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:230) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source)

Stack trace for "java/util/HashMapHessianSerializer"" 2014-02-11 12:28:05,174 ALL com.caucho.hessian.io.ContextSerializerFactory java.lang.ClassNotFoundException: java/util/HashMapHessianSerializer java.lang.ClassNotFoundException: java/util/HashMapHessianSerializer at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.caucho.hessian.io.ContextSerializerFactory.getCustomSerializer(ContextSerializerFactory.java:190) at com.caucho.hessian.io.SerializerFactory.loadSerializer(SerializerFactory.java:266) at com.caucho.hessian.io.SerializerFactory.getSerializer(SerializerFactory.java:224) at com.caucho.hessian.io.SerializerFactory.getObjectSerializer(SerializerFactory.java:197) at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:418) at com.caucho.hessian.io.UnsafeSerializer$ObjectFieldSerializer.serialize(UnsafeSerializer.java:293) at com.caucho.hessian.io.UnsafeSerializer.writeInstance(UnsafeSerializer.java:212) at com.caucho.hessian.io.UnsafeSerializer.writeObject(UnsafeSerializer.java:171) at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:421) at org.skyscreamer.nevado.jms.util.SerializeUtil.serialize(SerializeUtil.java:38) at org.skyscreamer.nevado.jms.util.SerializeUtil.serializeToString(SerializeUtil.java:22) at org.skyscreamer.nevado.jms.connector.AbstractSQSConnector.serializeMessage(AbstractSQSConnector.java:276) at org.skyscreamer.nevado.jms.connector.AbstractSQSConnector.sendMessage(AbstractSQSConnector.java:75) at org.skyscreamer.nevado.jms.NevadoSession.sendMessage(NevadoSession.java:416) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(NevadoMessageProducer.java:137) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(NevadoMessageProducer.java:112) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(NevadoMessageProducer.java:100) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:592) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:569) at org.springframework.jms.core.JmsTemplate$4.doInJms(JmsTemplate.java:546) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:620) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:607) at com.MyApp.messages.async.SQSMessaging.sendMessageToQueue(SQSMessaging.java:36) at com.MyApp.messages.async.service.AbstractAsyncService.sendMessage(AbstractAsyncService.java:38) at com.MyApp.service.impl.ServiceImpl.sendAsyncMessage(ServiceImpl.java:2934) at com.MyApp.service.impl.ServiceImpl.sendMessage(ServiceImpl.java:2914) at com.MyApp.service.impl.ServiceImpl.handleEvent(ServiceImpl.java:2544) at com.MyApp.service.impl.ServiceImpl.processTriggerForAccept(ServiceImpl.java:1809) at com.MyApp.service.impl.ServiceImpl.process(ServiceImpl.java:425) at com.MyApp.service.endpoint.processEndpoint.process(processEndpoint.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.ws.server.endpoint.MethodEndpoint.invoke(MethodEndpoint.java:115) at

Kindly advice.

carterpage commented 10 years ago

Please confirm which version of Nevado you are using.

On Tue Feb 11 2014 at 9:41:36 AM, Carter Page carter.c.page@gmail.com wrote:

What version of Nevado and what version of Hessian

On Tue Feb 11 2014 at 2:01:30 AM, bapatgeeta notifications@github.com wrote:

There is no class called "NevadoTextMessageHessianSerializer" in my source code either. Apologies for not putting full stack trace. Here it is: java.lang.ClassNotFoundException: org.skyscreamer.nevado.jms.message. NevadoTextMessageHessianSerializer from BaseClassLoader@1204c3ehttps://github.com/BaseClassLoader/nevado/commit/1204c3e {VFSClassLoaderPolicy@16d864ehttps://github.com/VFSClassLoaderPolicy/nevado/commit/16d864e {name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/domain=ClassLoaderDomain@ 23cfcf{name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@8e4805{DefaultDomain}} .... A whole lot of jar files and libraries........ com.lowagie.text.pdf.interfaces, org.springframework.ejb.interceptor] NON_EMPTY}} at org.jboss.classloader.spi.base.BaseClassLoader. loadClass(BaseClassLoader.java:448) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.caucho.hessian.io.ContextSerializerFactory.getCustomSerializer( ContextSerializerFactory.java:190) at com.caucho.hessian.io.SerializerFactory.loadSerializer( SerializerFactory.java:266) at com.caucho.hessian.io.SerializerFactory.getSerializer( SerializerFactory.java:224) at com.caucho.hessian.io.SerializerFactory.getObjectSerializer( SerializerFactory.java:197) at com.caucho.hessian.io.Hessian2Output.writeObject( Hessian2Output.java:418) at com.caucho.hessian.io.UnsafeSerializer$ObjectFieldSerializer. serialize(UnsafeSerializer.java:293) at com.caucho.hessian.io.UnsafeSerializer.writeInstance( UnsafeSerializer.java:212) at com.caucho.hessian.io.UnsafeSerializer.writeObject( UnsafeSerializer.java:171) at com.caucho.hessian.io.Hessian2Output.writeObject( Hessian2Output.java:421) at org.skyscreamer.nevado.jms.util.SerializeUtil.serialize( SerializeUtil.java:38) at org.skyscreamer.nevado.jms.util.SerializeUtil.serializeToString( SerializeUtil.java:22) at org.skyscreamer.nevado.jms.connector.AbstractSQSConnector. serializeMessage(AbstractSQSConnector.java:276) at org.skyscreamer.nevado.jms.connector.AbstractSQSConnector.sendMessage( AbstractSQSConnector.java:75) at org.skyscreamer.nevado.jms.NevadoSession.sendMessage( NevadoSession.java:416) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send( NevadoMessageProducer.java:137) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send( NevadoMessageProducer.java:112) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send( NevadoMessageProducer.java:100) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:592) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:569) at org.springframework.jms.core.JmsTemplate$4.doInJms( JmsTemplate.java:546) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543) at org.springframework.jms.core.JmsTemplate.convertAndSend( JmsTemplate.java:620) at org.springframework.jms.core.JmsTemplate.convertAndSend( JmsTemplate.java:607) at com.MyApp.messages.async.SQSMessaging.sendMessageToQueue( SQSMessaging.java:36) at com.MyApp.messages.async.service.AbstractAsyncService.sendMessage( AbstractAsyncService.java:38) at com.MyApp.service.impl.ServiceImpl.sendAsyncMessage( ServiceImpl.java:2934) at com.MyApp.service.impl.ServiceImpl.sendMessage(ServiceImpl.java:2914) at com.MyApp.service.impl.ServiceImpl.handleEvent(ServiceImpl.java:2544) at com.MyApp.service.impl.ServiceImpl.processTriggerForAccept( ServiceImpl.java:1809) at com.MyApp.service.impl.ServiceImpl.process(ServiceImpl.java:425) at com.MyApp.service.endpoint.processEndpoint.process( processEndpoint.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.ws.server.endpoint.MethodEndpoint. invoke(MethodEndpoint.java:115) at org.springframework.ws.server.endpoint.adapter. MarshallingMethodEndpointAdapter.invokeInternal( MarshallingMethodEndpointAdapter.java:135) at org.springframework.ws.server.endpoint.adapter. AbstractMethodEndpointAdapter.invoke(AbstractMethodEndpointAdapter. java:58) at org.springframework.ws.server.MessageDispatcher.dispatch( MessageDispatcher.java:228) at org.springframework.ws.server.MessageDispatcher.receive( MessageDispatcher.java:170) at org.springframework.ws.transport.support.WebServiceMessageReceiverObjec tSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88) at org.springframework.ws.transport.http.WebServiceMessageReceiverHandl erAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57) at org.springframework.ws.transport.http.MessageDispatcherServlet. doService(MessageDispatcherServlet.java:230) at org.springframework.web.servlet.FrameworkServlet.processRequest( FrameworkServlet.java:647) at org.springframework.web.servlet.FrameworkServlet. doPost(FrameworkServlet.java:563) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter( ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke( SecurityAssociationValve.java:190) at org.jboss.web.tomcat.security.JaccContextValve.invoke( JaccContextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentVa lve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke( SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve. invoke(CachedConnectionValve.java:158) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:330) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler. process(Http11Protocol.java:598) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source)

Reply to this email directly or view it on GitHubhttps://github.com/skyscreamer/nevado/issues/77#issuecomment-34730651 .

carterpage commented 10 years ago

Also, what's your JVM version?

On Tue Feb 11 2014 at 9:45:59 AM, Carter Page carter.c.page@gmail.com wrote:

Please confirm which version of Nevado you are using.

On Tue Feb 11 2014 at 9:41:36 AM, Carter Page carter.c.page@gmail.com wrote:

What version of Nevado and what version of Hessian

On Tue Feb 11 2014 at 2:01:30 AM, bapatgeeta notifications@github.com wrote:

There is no class called "NevadoTextMessageHessianSerializer" in my source code either. Apologies for not putting full stack trace. Here it is: java.lang.ClassNotFoundException: org.skyscreamer.nevado.jms.message. NevadoTextMessageHessianSerializer from BaseClassLoader@1204c3ehttps://github.com/BaseClassLoader/nevado/commit/1204c3e {VFSClassLoaderPolicy@16d864ehttps://github.com/VFSClassLoaderPolicy/nevado/commit/16d864e {name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/domain=ClassLoaderDomain@ 23cfcf{name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/MyApp.war/parentPolicy=AFTER_BUTJAVA BEFORE parent=ClassLoaderDomain@8e4805{DefaultDomain}} .... A whole lot of jar files and libraries........ com.lowagie.text.pdf.interfaces, org.springframework.ejb.interceptor] NON_EMPTY}} at org.jboss.classloader.spi.base.BaseClassLoader.loadClass( BaseClassLoader.java:448) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.caucho.hessian.io.ContextSerializerFactory.getCustomSerializer( ContextSerializerFactory.java:190) at com.caucho.hessian.io.SerializerFactory.loadSerializer(Seria lizerFactory.java:266) at com.caucho.hessian.io.SerializerFactory.getSerializer(Serial izerFactory.java:224) at com.caucho.hessian.io.SerializerFactory.getObjectSerializer( SerializerFactory.java:197) at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Out put.java:418) at com.caucho.hessian.io.UnsafeSerializer$ObjectFieldSerializer. serialize(UnsafeSerializer.java:293) at com.caucho.hessian.io.UnsafeSerializer.writeInstance(UnsafeS erializer.java:212) at com.caucho.hessian.io.UnsafeSerializer.writeObject(UnsafeSer ializer.java:171) at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Out put.java:421) at org.skyscreamer.nevado.jms.util.SerializeUtil.serialize(Seri alizeUtil.java:38) at org.skyscreamer.nevado.jms.util.SerializeUtil.serializeToString( SerializeUtil.java:22) at org.skyscreamer.nevado.jms.connector.AbstractSQSConnector.se rializeMessage(AbstractSQSConnector.java:276) at org.skyscreamer.nevado.jms.connector.AbstractSQSConnector.sendMessage( AbstractSQSConnector.java:75) at org.skyscreamer.nevado.jms.NevadoSession.sendMessage(NevadoS ession.java:416) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(Nevado MessageProducer.java:137) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(Nevado MessageProducer.java:112) at org.skyscreamer.nevado.jms.NevadoMessageProducer.send(Nevado MessageProducer.java:100) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:592) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:569) at org.springframework.jms.core.JmsTemplate$4.doInJms(JmsTempla te.java:546) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsT emplate.java:620) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsT emplate.java:607) at com.MyApp.messages.async.SQSMessaging.sendMessageToQueue(SQS Messaging.java:36) at com.MyApp.messages.async.service.AbstractAsyncService.sendMessage( AbstractAsyncService.java:38) at com.MyApp.service.impl.ServiceImpl.sendAsyncMessage(ServiceI mpl.java:2934) at com.MyApp.service.impl.ServiceImpl.sendMessage(ServiceImpl.java:2914) at com.MyApp.service.impl.ServiceImpl.handleEvent(ServiceImpl.java:2544) at com.MyApp.service.impl.ServiceImpl.processTriggerForAccept(S erviceImpl.java:1809) at com.MyApp.service.impl.ServiceImpl.process(ServiceImpl.java:425) at com.MyApp.service.endpoint.processEndpoint.process(processEn dpoint.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.ws.server.endpoint.MethodEndpoint.invoke (MethodEndpoint.java:115) at org.springframework.ws.server.endpoint.adapter.MarshallingMe thodEndpointAdapter.invokeInternal(MarshallingMethodEndpointAdapt er.java:135) at org.springframework.ws.server.endpoint.adapter.AbstractMetho dEndpointAdapter.invoke(AbstractMethodEndpointAdapter.java:58) at org.springframework.ws.server.MessageDispatcher.dispatch(Mes sageDispatcher.java:228) at org.springframework.ws.server.MessageDispatcher.receive(Mess ageDispatcher.java:170) at org.springframework.ws.transport.support.WebServiceMessageReceiverObjec tSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88) at org.springframework.ws.transport.http.WebServiceMessageReceiverHandl erAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57) at org.springframework.ws.transport.http.MessageDispatcherServlet. doService(MessageDispatcherServlet.java:230) at org.springframework.web.servlet.FrameworkServlet.processRequest( FrameworkServlet.java:647) at org.springframework.web.servlet.FrameworkServlet.doPost( FrameworkServlet.java:563) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke( SecurityAssociationValve.java:190) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccCo ntextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentVa lve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke( SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invok e(CachedConnectionValve.java:158) at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:330) at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler. process(Http11Protocol.java:598) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source)

Reply to this email directly or view it on GitHubhttps://github.com/skyscreamer/nevado/issues/77#issuecomment-34730651 .

bapatgeeta commented 10 years ago

Apologies for delay. We are using nevado-jms-1.3.0.jar and jdk1.6.0_24.

bapatgeeta commented 10 years ago

Hello, Is anyone can guide me on this?

carterpage commented 10 years ago

I am unable to reproduce this. I'd suggest you walk through a debugger and figure out where your VM is getting that class from. Let me know if you find out any additional information. On Feb 21, 2014 12:34 AM, "bapatgeeta" notifications@github.com wrote:

Hello, Is anyone can guide me on this?

Reply to this email directly or view it on GitHubhttps://github.com/skyscreamer/nevado/issues/77#issuecomment-35708253 .

bapatgeeta commented 10 years ago

Thanks for response. We did ran this in debug mode. and what we observed that it is appending HessianSerializer to NevadoText or HashMap under some if else condition.

carterpage commented 10 years ago

Can you point me to where this is happening in the code? On Feb 21, 2014 6:21 AM, "bapatgeeta" notifications@github.com wrote:

Thanks for response. We did ran this in debug mode. and what we observed that it is appending HessianSerializer to NevadoText or HashMap under some if else condition.

Reply to this email directly or view it on GitHubhttps://github.com/skyscreamer/nevado/issues/77#issuecomment-35733730 .

carterpage commented 10 years ago

(Or even a screenshot of the debugger would help.) On Feb 21, 2014 6:31 AM, "Carter Page" cpage@pobox.com wrote:

Can you point me to where this is happening in the code? On Feb 21, 2014 6:21 AM, "bapatgeeta" notifications@github.com wrote:

Thanks for response. We did ran this in debug mode. and what we observed that it is appending HessianSerializer to NevadoText or HashMap under some if else condition.

Reply to this email directly or view it on GitHubhttps://github.com/skyscreamer/nevado/issues/77#issuecomment-35733730 .

bapatgeeta commented 10 years ago

It is clear from stack traced the code is in ContextSerializerFactory.java file. In following method you can see that it is appending "HessianSerializer"

Class serClass = Class.forName(cl.getName() + "HessianSerializer",

public Serializer getCustomSerializer(Class cl) { Serializer serializer = _customSerializerMap.get(cl.getName());

if (serializer == AbstractSerializer.NULL)
  return null;
else if (serializer != null)
  return serializer;

try {
  Class serClass = Class.forName(cl.getName() + "HessianSerializer",
                                   false, cl.getClassLoader());

  Serializer ser = (Serializer) serClass.newInstance();

  _customSerializerMap.put(cl.getName(), ser);

  return ser;
} catch (ClassNotFoundException e) {
  log.log(Level.ALL, e.toString(), e);
} catch (Exception e) {
  throw new HessianException(e);
}

_customSerializerMap.put(cl.getName(), AbstractSerializer.NULL);

return null;

}

carterpage commented 10 years ago

Quick question: Is anything actually broken or are you just getting the stack trace in your logs?

On Tue, Feb 25, 2014 at 6:33 AM, bapatgeeta notifications@github.comwrote:

It is clear from stack traced the code is in ContextSerializerFactory.java file. In following method you can see that it is appending "HessianSerializer"

Class serClass = Class.forName(cl.getName() + "HessianSerializer",

public Serializer getCustomSerializer(Class cl) { Serializer serializer = _customSerializerMap.get(cl.getName());

if (serializer == AbstractSerializer.NULL) return null; else if (serializer != null) return serializer;

try { Class serClass = Class.forName(cl.getName() + "HessianSerializer", false, cl.getClassLoader());

Serializer ser = (Serializer) serClass.newInstance();

_customSerializerMap.put(cl.getName(), ser);

return ser; } catch (ClassNotFoundException e) { log.log(Level.ALL, e.toString(), e); } catch (Exception e) { throw new HessianException(e); }

_customSerializerMap.put(cl.getName(), AbstractSerializer.NULL);

return null;

}

Reply to this email directly or view it on GitHubhttps://github.com/skyscreamer/nevado/issues/77#issuecomment-35998821 .

bapatgeeta commented 10 years ago

Nothing is breaking it post message on queue but leaves hell lot of stack trace each time message is sent or received to increase our logs files.

carterpage commented 10 years ago

Interesting. You're printing out debugging messages from java.util.logging. It is a shame that Hessian logs this stack trace, even at debug level, but you can make it go away by tightening your logging level for com.caucho.hessian.

Try something like:

com.caucho.hessian=CONFIG

in your logging.properties file.