Bugs item #840885, was opened at 2003-11-12 10:37 Message generated for change (Comment added) made by starksm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=840885&group_id=22866
Category: JBossServer Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Adrian Price (adrianprice) Assigned to: Scott M Stark (starksm) Summary: UnifiedClassLoader3 is not threadsafe Initial Comment: I'm getting an intermittent j.l.ClassCastException on the dynamic proxy returned by JNDI lookup of an EJB local home. A single copy of the EJBLocalHome subinterface in question is deployed in an ejb.jar inside an .ear with an application-scoped ClassLoader. No other copies of the class file are deployed anywhere else. Application level debug output (attached) shows clearly that the same application-scoped UnifiedClassLoader3 instance associated with the ear file has loaded the same bytecode twice, into two distinct copies of the same class, with the result that the dynamic proxy implements a different copy of the home interface than that which the calling code sees. Hence the ClassCastException. Both copies of the class share the same ClassLoader instance. This is JBoss-3.2.2, and I've seen the same problem on both Linux and Windows XP. ---------------------------------------------------------------------- >Comment By: Scott M Stark (starksm) Date: 2003-11-12 11:08 Message: Logged In: YES user_id=175228 It would be useful to see the trace level log output of this scenario. Add the following config to the conf/log4j.xml file to create a separate ucl.log: <appender name="UCL" class="org.apache.log4j.FileAppender"> <param name="File" value="${jboss.server.home.dir}/log/ucl.log"/> <param name="Append" value="false"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%r,%c{1},%t] %m%n"/> </layout> </appender> <category name="org.jboss.mx.loading" additivity="false"> <priority value="TRACE" class="org.jboss.logging.XLevel"/> <appender-ref ref="UCL"/> </category> Zip that up and mail it to [EMAIL PROTECTED] as its unlikely to fit the file size attachment restrictions of sourceforge. ---------------------------------------------------------------------- Comment By: Scott M Stark (starksm) Date: 2003-11-12 10:50 Message: Logged In: YES user_id=175228 There is no debug output attached, make sure you check the 'Check to Upload and Attach a File:' box below. ---------------------------------------------------------------------- Comment By: Adrian Price (adrianprice) Date: 2003-11-12 10:49 Message: Logged In: YES user_id=580837 Detailed diagnostics and commentary attached. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=840885&group_id=22866 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development