I have more: I generate several classes using Javassist, all with that same signature 
which seems to cause so much trouble: guess what ? Some load successfully, others 
don't... I try to find out what makes them so different.

Now I have streamlined my tests to the maximum, and the problem seems to lie right in 
the very heart of the class bytecodes:

      Class.forName ( "fractals.psychos.core.system.transfer.AddressData" 
).newInstance ();
      System.out.println ( "successfully instanciated AddressData" );
      Class.forName ( "fractals.psychos.core.system.transfer.DomainData" ).newInstance 
();
      System.out.println ( "successfully instanciated DomainData" );
      Class.forName ( "fractals.psychos.core.system.transfer.UserData" ).newInstance 
();
      System.out.println ( "successfully instanciated UserData" );
      Class.forName ( "fractals.psychos.core.system.transfer.UserInfo" ).newInstance 
();
      System.out.println ( "successfully instanciated UserInfo" );
      
      Class.forName ( "fractals.psychos.core.media.transfer.ArticleData" ).newInstance 
();
      System.out.println ( "successfully instanciated ArticleData" );
      Class.forName ( "fractals.psychos.core.media.transfer.ArticleInfo" ).newInstance 
();
      System.out.println ( "successfully instanciated ArticleInfo" );

.... etc

But it stops here, i.e. the class loader has a problem with the ArticleInfo class. 
Always the same problem: it's about the saveData ( Article, Session ) method. Note 
that the previous class, which loads successfully, has the exact same method.

Well, I don't know, but it looks like a Javassist bug, doesn't it ?

Oh, and I've tried that with both the 2.6 and the 3.0beta versions. No difference.




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838568#3838568

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838568


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to