Hi Jorge ,

Sorry for the late reply. I was occupied with some other work. Looks like
this issue has re-appeared in 4.0.2 release.
I have re-opened the ticket. This is a class loading issue and it is fixed
in ESB 4.0.0 release. We will fix this in the next ESB release.

Thanks for identifying the issue.


--Charith

On Tue, Nov 22, 2011 at 9:58 AM, Jorge Infante Osorio <[email protected]>wrote:

> This is my scenario, I just testing JMS stuff in wso2:
>
> • I send a message to a proxy service in ESB 4.0.2.
> • The proxy service use a messageStore to store the message in a Queue in
> MB
> 1.0.2.
> • A client app in Eclipse IDE make a call, using the qpid client libs
> inside
> MB, to the Queue requesting the messages store inside.
>
> A few hours ago I resolve my client side issue, thanks any way, but I still
> receive this warning in MB every time I made a call:
>
> [2011-11-21 23:06:46,926]  WARN
>
> {org.apache.qpid.server.subscription.ExplicitAcceptDispositionChangeListener
> } -  MessageRelease received for message which has not been acquired
> (likely
> client error)
>
>
> In the server side, in ESB I have this issue If I restarted it (the only
> solution was delete the Queues in MB ):
>
> TID: [0] [WSO2 ESB] [2011-11-17 13:13:31,307] FATAL
> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Couldn't
> initialize the ESB...
> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer}
> java.lang.RuntimeException: javax.jms.MessageFormatException: Could not
> deserialize message: java.lang.ClassNotFoundException:
> org.wso2.carbon.message.store.persistence.jms.message.JMSPersistentMessage
>        at
>
> org.apache.qpid.client.message.AbstractJMSMessage.toString(AbstractJMSMessag
> e.java:406)
>        at java.lang.String.valueOf(String.java:2827)
>        at java.lang.StringBuilder.append(StringBuilder.java:115)
>        at
>
> org.apache.qpid.client.AMQQueueBrowser$QueueBrowserEnumeration.<init>(AMQQue
> ueBrowser.java:116)
>        at
>
> org.apache.qpid.client.AMQQueueBrowser.getEnumeration(AMQQueueBrowser.java:9
> 5)
>        at
>
> org.wso2.carbon.message.store.persistence.jms.JMSMessageStore.syncSize(JMSMe
> ssageStore.java:644)
>        at
>
> org.wso2.carbon.message.store.persistence.jms.JMSMessageStore.init(JMSMessag
> eStore.java:105)
>        at
>
> org.apache.synapse.config.SynapseConfiguration.init(SynapseConfiguration.jav
> a:1340)
>        at
>
> org.apache.synapse.Axis2SynapseController.createSynapseEnvironment(Axis2Syna
> pseController.java:422)
>        at org.apache.synapse.ServerManager.start(ServerManager.java:181)
>        at
>
> org.wso2.carbon.mediation.initializer.ServiceBusInitializer.initESB(ServiceB
> usInitializer.java:408)
>        at
>
> org.wso2.carbon.mediation.initializer.ServiceBusInitializer.activate(Service
> BusInitializer.java:170)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceCompo
> nent.java:230)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceC
> omponentProp.java:140)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComp
> onentProp.java:330)
>        at
>
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProce
> ss.java:560)
>        at
>
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProc
> ess.java:182)
>        at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:292)
>        at
>
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:22
> 6)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceCha
> nged(FilteredServiceListener.java:124)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
> dleContextImpl.java:930)
>        at
>
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
> java:220)
>        at
>
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(L
> istenerQueue.java:149)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
> tPrivileged(ServiceRegistry.java:757)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
> t(ServiceRegistry.java:712)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(S
> erviceRegistrationImpl.java:129)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(Se
> rviceRegistry.java:206)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
> undleContextImpl.java:506)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
> undleContextImpl.java:524)
>        at
>
> org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS.activate(Ev
> entBrokerBuilderDS.java:71)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceCompo
> nent.java:230)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceC
> omponentProp.java:140)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComp
> onentProp.java:330)
>        at
>
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProce
> ss.java:560)
>        at
>
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProc
> ess.java:182)
>        at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:292)
>        at
>
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:22
> 6)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceCha
> nged(FilteredServiceListener.java:124)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
> dleContextImpl.java:930)
>        at
>
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
> java:220)
>        at
>
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(L
> istenerQueue.java:149)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
> tPrivileged(ServiceRegistry.java:757)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
> t(ServiceRegistry.java:712)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(S
> erviceRegistrationImpl.java:129)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(Se
> rviceRegistry.java:206)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
> undleContextImpl.java:506)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
> undleContextImpl.java:524)
>        at
>
> org.wso2.carbon.qpid.internal.QpidServiceComponent.activate(QpidServiceCompo
> nent.java:134)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceCompo
> nent.java:230)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceC
> omponentProp.java:140)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComp
> onentProp.java:330)
>        at
>
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProce
> ss.java:560)
>        at
>
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProc
> ess.java:182)
>        at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:292)
>        at
>
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:22
> 6)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceCha
> nged(FilteredServiceListener.java:124)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
> dleContextImpl.java:930)
>        at
>
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
> java:220)
>        at
>
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(L
> istenerQueue.java:149)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
> tPrivileged(ServiceRegistry.java:757)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
> t(ServiceRegistry.java:712)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(S
> erviceRegistrationImpl.java:129)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(Se
> rviceRegistry.java:206)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
> undleContextImpl.java:506)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
> undleContextImpl.java:524)
>        at
>
> org.wso2.carbon.core.services.internal.CarbonServicesServiceComponent.activa
> te(CarbonServicesServiceComponent.java:72)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceCompo
> nent.java:230)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceC
> omponentProp.java:140)
>        at
>
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComp
> onentProp.java:330)
>        at
>
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProce
> ss.java:560)
>        at
>
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProc
> ess.java:182)
>        at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:292)
>        at
>
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:22
> 6)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceCha
> nged(FilteredServiceListener.java:124)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
> dleContextImpl.java:930)
>        at
>
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
> java:220)
>        at
>
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(L
> istenerQueue.java:149)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
> tPrivileged(ServiceRegistry.java:757)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
> t(ServiceRegistry.java:712)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(S
> erviceRegistrationImpl.java:129)
>        at
>
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(Se
> rviceRegistry.java:206)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
> undleContextImpl.java:506)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
> undleContextImpl.java:524)
>        at
>
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerM
> anager.java:471)
>        at
>
> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServer
> Manager.java:273)
>        at
>
> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2C
> onfigItemListener.java:117)
>        at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
> dleContextImpl.java:916)
>        at
>
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
> java:220)
>        at
>
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManage
> r.java:330)
> Caused by: javax.jms.MessageFormatException: Could not deserialize message:
> java.lang.ClassNotFoundException:
> org.wso2.carbon.message.store.persistence.jms.message.JMSPersistentMessage
>        at
>
> org.apache.qpid.client.message.JMSObjectMessage.getObject(JMSObjectMessage.j
> ava:153)
>        at
>
> org.apache.qpid.client.message.JMSObjectMessage.toBodyString(JMSObjectMessag
> e.java:90)
>        at
>
> org.apache.qpid.client.message.AbstractJMSMessage.toString(AbstractJMSMessag
> e.java:371)
>        ... 104 more
> Caused by: java.lang.ClassNotFoundException:
> org.wso2.carbon.message.store.persistence.jms.message.JMSPersistentMessage
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader
> .java:489)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:40
> 5)
>        at
>
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:39
> 3)
>        at
>
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultCl
> assLoader.java:105)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:247)
>        at
>
> org.apache.qpid.client.util.ClassLoadingAwareObjectInputStream.load(ClassLoa
> dingAwareObjectInputStream.java:64)
>        at
>
> org.apache.qpid.client.util.ClassLoadingAwareObjectInputStream.resolveClass(
> ClassLoadingAwareObjectInputStream.java:38)
>        at
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
>        at
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>        at
>
> org.apache.qpid.client.message.JMSObjectMessage.getObject(JMSObjectMessage.j
> ava:142)
>        ... 106 more
>  [2011-11-21 23:06:46,973]  INFO - EventBrokerBuilderDS Successfully
> registered the event broker
> [2011-11-21 23:07:06,848]  WARN - StartupFinalizerServiceComponent Waiting
> for required OSGi services:
> org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
> [2011-11-21 23:08:06,848]  WARN - StartupFinalizerServiceComponent Waiting
> for required OSGi services:
> org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
>
> So the ESB cannot start.
>
> Saludos,
> Ing. Jorge Infante Osorio.
> J´Dpto Soluciones SOA.
> CDAE.
> Fac. 5.
> UCI.
>
> De: Charith Wickramarachchi [mailto:[email protected]]
> Enviado el: lunes, 21 de noviembre de 2011 21:33
> Para: Charitha Kankanamge; [email protected]
> CC: carbon-dev
> Asunto: Re: About CARBON-10154 issue.
>
> Hi Charitha ,
>
> I'm not sure what Jorge mean by he is facing this issue in the eclipse
> client side  as this issue was caused when a jms client inside a carbon
> environment trying to connect to the MB using the client libs that
> are coming with ESB.
>
> May be Jorge can explain us more on what he is trying to do. So that we can
> help.
>
> This patch was applied to our code base and Apache qpid trunk too. Anyway
> i'll try this scenario and verify.
>
> thanks,
> Charith
>
> On Tue, Nov 22, 2011 at 2:06 AM, Charitha Kankanamge <[email protected]>
> wrote:
> Forwarding to carbon-dev.
>
> Charith, Please help Jorge to resolve this issue.
>
> /Charitha
> ---------- Forwarded message ----------
> From: Jorge Infante Osorio <[email protected]>
> Date: Tue, Nov 22, 2011 at 1:09 AM
> Subject: About CARBON-10154 issue.
> To: Charitha Kankanamge <[email protected]>
>
> Hi Charitha.
> I have the same problem that you faced in this issue [1] and I see that it
> status is “resolved” but in my implementation with ESB 4.02 and MB 1.0.2 I
> still have this problem in the eclipse client side.
>
> Can you provide me with a client code example to test this solution?
>
> Thanks.
>
> [1]
>
> https://wso2.org/jira/browse/CARBON-10154?page=com.atlassian.jira.plugin.sys
> tem.issuetabpanels%3Aall-tabpanel#issue-tabs<https://wso2.org/jira/browse/CARBON-10154?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel#issue-tabs>
>
> Saludos,
> Ing. Jorge Infante Osorio.
> J´Dpto Soluciones SOA.
> CDAE.
> Fac. 5.
> UCI.
>
>
>
>
>
>
>
>
>
> --
> Charith Dhanushka Wickramarachchi
> Software Engineer
> WSO2 Inc
> http://wso2.com/
> http://wso2.org/
>
> blog
> http://charithwiki.blogspot.com/
>
> twitter
> http://twitter.com/charithwiki
>
> Mobile : 0776706568
>
>
>
>
>
> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE
> ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
> http://www.antiterroristas.cu
> http://justiciaparaloscinco.wordpress.com
>



-- 
Charith Dhanushka Wickramarachchi
Software Engineer
WSO2 Inc
http://wso2.com/
http://wso2.org/

blog
http://charithwiki.blogspot.com/

twitter
http://twitter.com/charithwiki

Mobile : 0776706568
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to