[jira] [Commented] (QPID-3307) ClassNotfound Exception when using Qpid java client in Complex classloading Environments.

2011-07-12 Thread Charith Dhanushka Wickramarachchi (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13064361#comment-13064361
 ] 

Charith Dhanushka Wickramarachchi commented on QPID-3307:
-

Hi Robbie, 

Sorry for the delay in updating. Actually i found a way to simulate the 
Environment but i caught  up with some work and couldn't find a time to work on 
a unit test case. I think happy path is already covered in the current 
serialization test cases we have. Only thing is i need to add a test case that 
simulates the above mentioned class loading environment. Will be able to 
provide a patch for that soon, possibly in next weekend.

thanks,
Charith

 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
Assignee: Robbie Gemmell
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



[jira] [Commented] (QPID-3307) ClassNotfound Exception when using Qpid java client in Complex classloading Environments.

2011-06-21 Thread Charith Dhanushka Wickramarachchi (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13053031#comment-13053031
 ] 

Charith Dhanushka Wickramarachchi commented on QPID-3307:
-

Hi Keith ,

Thanks for the feedback. Yes you are correct i was looking at Test cases in 
systests/src/main/java. As you mentioned the scenario covered by the test case 
i have provided is already covered in 
org.apache.qpid.test.unit.client.message.ObjectMessageTest.

I see there is no unit test for Object messages in package 
org.apache.qpid.test.unit.client.message to I'll add an unit test for it and 
provide a patch. 

thanks,
Charith

 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



[jira] [Updated] (QPID-3307) ClassNotfound Exception when using Qpid java client in Complex classloading Environments.

2011-06-20 Thread Charith Dhanushka Wickramarachchi (JIRA)

 [ 
https://issues.apache.org/jira/browse/QPID-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charith Dhanushka Wickramarachchi updated QPID-3307:


Attachment: QPID-3307_patch_unit_test.txt

Hi , 

I'm attaching an unit test case which will send receive an Object Message which 
have a custom Serializable Type inside.In that case the ObjectInputStream i 
have provided will be used. To re-create the exact class loading scenario I'll 
have to find a way to simulate that kind of class loading environment within 
the Unit test. I'll have to think through it on how to implement that.

thanks,
Charith


 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



[jira] [Updated] (QPID-3307) ClassNotfound Exception when using Qpid java client in Complex classloading Environments.

2011-06-17 Thread Charith Dhanushka Wickramarachchi (JIRA)

 [ 
https://issues.apache.org/jira/browse/QPID-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charith Dhanushka Wickramarachchi updated QPID-3307:


Attachment: QPID-3307_patch.txt

Re-attaching the patch Granting license to ASF for inclusion in ASF works :)

 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


 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