+ We also tested and verified that Object messages can be produced and
consumed fine with the current andes client (without fronting with the
ESB).

Thanks

On Sun, Apr 2, 2017 at 4:35 PM, Hasitha Amal De Silva <[email protected]>
wrote:

> Hi Vijitha,
>
> We found a similar issue reported at [1], in which synapse-core is unable
> to load a class from CacheMediator. It seems the fix here was to remove the
> "resolution:=optional" line at the OSGI Import-Package section in the pom
> of CacheMediator (refer [2]).
>
> I tried the same fix at the synapse-core and saw that the error does not
> occur anymore. However, I'm still not sure how this scenario works with the
> old andes-client. Maybe the carbon-kernel upgrade handles optional
> resolutions in a different way ?
>
> @PrabathAr - any clue on this ?
>
> [1] : https://wso2.org/jira/browse/ESBJAVA-4878
> [2] : https://github.com/wso2/carbon-mediation/pull/745/files#diff-
> 4873f9136db2279e0714fbf75dfbbd1aL51
>
> Thanks
>
> On Sat, Apr 1, 2017 at 5:15 PM, Indika Sampath <[email protected]> wrote:
>
>> I was able to reproduce the above issue in ESB 5.0.0 with
>> andes-client-3.2.6.jar (beta release) as well. Exception says
>> org.apache.synapse.message.store.impl.commons.StorableMessage cannot be
>> found by andes_client. Basically what we getting is ByteBuffer as a message
>> and do not maintain any specific format. I wonder the issue regard to
>> kernel change (4.4.15) in the latest version. We need to further look into
>> the issue to identify the exact root cause. Public JIRA[1] create to track
>> down the issue.
>>
>> [1] https://wso2.org/jira/browse/MB-1923
>>
>> On Sat, Apr 1, 2017 at 10:37 AM, Nandika Jayawardana <[email protected]>
>> wrote:
>>
>>> Adding DEV
>>>
>>> Nandika
>>>
>>> On Fri, Mar 31, 2017 at 9:51 PM, Vijitha Ekanayake <[email protected]>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> We Observe class loading issue with latest andes client (3.2.4) in MSMP
>>>> scenarios. The issue occurs while consuming message from the message store
>>>> where it continuously prints message[1]. I change the code a bit and got
>>>> exact stack trace [2].It seems to be OSGI issue and this issue isn't there
>>>> if we use previous andes client version(3.1.4).
>>>>
>>>> Did anyone come across this kind of OSGI issue before?
>>>>
>>>>
>>>> [1].
>>>>
>>>> [2017-03-31 20:57:01,076] [EI-Core] ERROR - JmsConsumer
>>>> [PaymentRequestJMSMessageStore-C-1] cannot receive message from store.
>>>> Error:Could not deserialize message: java.lang.ClassNotFoundException:
>>>> org.apache.synapse.message.store.impl.commons.StorableMessage cannot
>>>> be found by andes_client_3.2.4_1.0.0
>>>>
>>>> [2].
>>>> javax.jms.MessageFormatException: Could not deserialize message:
>>>> java.lang.ClassNotFoundException: org.apache.synapse.message.sto
>>>> re.impl.commons.StorableMessage cannot be found by
>>>> andes_client_3.2.4_1.0.0
>>>> at org.wso2.andes.client.message.JMSObjectMessage.getObject(JMS
>>>> ObjectMessage.java:154)
>>>> at org.apache.synapse.message.store.impl.jms.JmsConsumer.receiv
>>>> e(JmsConsumer.java:99)
>>>> at org.apache.synapse.message.processor.impl.sampler.SamplingSe
>>>> rvice.fetch(SamplingService.java:188)
>>>> at org.apache.synapse.message.processor.impl.sampler.SamplingSe
>>>> rvice.execute(SamplingService.java:120)
>>>> at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAd
>>>> apter.java:98)
>>>> at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute
>>>> (TaskQuartzJobAdapter.java:67)
>>>> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>>>> at java.util.concurrent.Executors$RunnableAdapter.call(Executor
>>>> s.java:511)
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>>> Executor.java:1142)
>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>>> lExecutor.java:617)
>>>> at java.lang.Thread.run(Thread.java:745)
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.apache.synapse.message.store.impl.commons.StorableMessage cannot
>>>> be found by andes_client_3.2.4_1.0.0
>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter
>>>> nal(BundleLoader.java:501)
>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>>>> leLoader.java:421)
>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>>>> leLoader.java:412)
>>>> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa
>>>> dClass(DefaultClassLoader.java:107)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>> at java.lang.Class.forName0(Native Method)
>>>> at java.lang.Class.forName(Class.java:348)
>>>> at org.wso2.andes.client.util.ClassLoadingAwareObjectInputStrea
>>>> m.load(ClassLoadingAwareObjectInputStream.java:64)
>>>> at org.wso2.andes.client.util.ClassLoadingAwareObjectInputStrea
>>>> m.resolveClass(ClassLoadingAwareObjectInputStream.java:38)
>>>> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream
>>>> .java:1613)
>>>> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
>>>> at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre
>>>> am.java:1774)
>>>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
>>>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
>>>> at org.wso2.andes.client.message.JMSObjectMessage.getObject(JMS
>>>> ObjectMessage.java:143)
>>>>
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> Vijitha Ekanayake
>>>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>>>> lean.enterprise.middleware
>>>>
>>>
>>>
>>>
>>> --
>>> Nandika Jayawardana
>>> WSO2 Inc ; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> Indika Sampath
>> Senior Software Engineer
>> WSO2 Inc.
>> http://wso2.com
>>
>> Phone: +94 716 424 744 <+94%2071%20642%204744>
>> Blog: http://indikasampath.blogspot.com/
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Cheers,
>
> Hasitha Amal De Silva
> Senior Software Engineer
> Mobile : +94772037426 <+94%2077%20203%207426>
> Blog    : http://devnutshell.tumblr.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>



-- 
Cheers,

Hasitha Amal De Silva
Senior Software Engineer
Mobile : +94772037426
Blog    : http://devnutshell.tumblr.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to