StrutsCXDocumentBuilder not serializing custom packages on Orion 2.0.2

"Mohammed Dessouky" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Message-ID <D1CA422ED0E2A34DA4BF6CD6CB39FA7C45C3AA@exchsrv.versa.versasys.com>
Small problem,

 

Now whenever we pass An Object to StrutsCXServlet that contains an Array
with other objects

(e.g. CustomerObject ->

AddressesObject[] ->

AddressObject

AddressObject

)

 

The mother bean is not serialized completely. After tracing this it
seems that the StrutsCXDocumentBuilder.getBeanElement() method is used
as a part of the introspection process before serialization. This method
tries to use Class.getPackage(). For our custom embedded classes (like
AddressObject[])  Class.getPackage() returns null. Ando ofcourse the
object is never completey serialized because of a condition that checks
for null package names. The easy solution is to simply remove the
condition that checks for null packages names, but it sounds ugly.

 

My question is why does this problem happen on Orion 2.0.2 and not on
OC4J 9.0.4 (I have tried both). I think it is somehow related to the
ClassLoader or something.

 

Can anyone shed some light ?

 

Thanks,

 

Mohammed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.