[ https://issues.apache.org/jira/browse/QPID-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052878#comment-13052878 ]
Keith Wall commented on QPID-3307: ---------------------------------- Hi Charith Did you take a look at the unit tests in directory client/src/test/java in package org.apache.qpid.test.unit.client.message? I think the addition of a 'pure' unit test, rather than an extension to the system test would be more appropriate. I'd imagine we'd want a unit test much like client's BytesMessageTest, which would exercise the happy paths (serialised class, serialised primitive) and the maybe the unhappy path (serialised class not found through I can see this might be tricky). I took a look at your extension to the system test ObjectInputStream. Does the test using CustomSerializableObject give us anything more than the existing tests with ObjectMessageTest.Payload? Hope this helps. > ClassNotfound Exception when using Qpid java client in Complex classloading > Environments. > ------------------------------------------------------------------------------------------- > > Key: QPID-3307 > URL: https://issues.apache.org/jira/browse/QPID-3307 > Project: Qpid > Issue Type: Bug > Components: Java Client > Reporter: Charith Dhanushka Wickramarachchi > Priority: Critical > Attachments: QPID-3307_patch.txt, QPID-3307_patch.txt, > QPID-3307_patch.txt, QPID-3307_patch_unit_test.txt > > > Hi , > When we are using qpid client to receive JMSObject in complex class loading > environments like web application containers/Osgi environments .There is a > scenario where this issues comes. > Scenario. > In a web application container normally they use a class loader per web app. > and if we have qpid client libs at the root classloader level this error can > come. The reason for this is Serializable Object types that are used inside > the web app are not visible to the class loader that loads the JMSObject > message and unmarshall it. > thanks, > Charith -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org