BTW what is wrong with "MarshalledObject" it is just a ByteArray with proper
CL behaviour, you are going to end up rewriting this class as I read it.

marcf

|-----Original Message-----
|From: marc fleury [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, November 21, 2001 11:05 PM
|To: David Jencks; [EMAIL PROTECTED]
|Subject: RE: [JBoss-dev] Classloader puzzle
|
|
|>
||> This code is in org.jboss.ejb.plugins.iiop.server.IIOPContainerInvoker,
||> under contrib/iiop. Insertion/extraction of the PK is done through the
||> methods toByteArray() and toObject(). Each of these methods has two
|
|professor,
|
|rereading this, if you set the context classloader correctly then
|the MarshalledObject works from these guys hence no problem.  the
|toByteArray() and toObject() needs to work with the context class loader.
|
|So
|1- make sure the context cl is set properly (system.out its hash
|when you enter the method), make sure it is the hash of the cl
|that created the container (compare to the cl printouts)
|
|2- make sure your code uses the context cl when deserializing, it
|seems that the cl that is asked for the application is the system
|cl and that indicates that the io deserialization is asking the cl
|that loaded the system class (the container invoker in this case).
|
|marcf
|
||> implementations, one of them commented out. The commented out
||> implementation "solves" the problem in the way described above.
||>
||> Suggestions are very welcome!
||>
||> Cheers,
||>
||> Francisco
||>
||>
||>
||>
||>
||>
||>
||>
||> _______________________________________________
||> Jboss-development mailing list
||> [EMAIL PROTECTED]
||> https://lists.sourceforge.net/lists/listinfo/jboss-development
||>
||>
||
||_______________________________________________
||Jboss-development mailing list
||[EMAIL PROTECTED]
||https://lists.sourceforge.net/lists/listinfo/jboss-development


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to