-
1. Re: JDK Crashing in AS Build
brian.stansberry Apr 16, 2009 5:15 PM (in response to alrubinger)This came up on the jboss-dev list earlier this week. Seems cleaning out the tomcat module's output dir fixed it (don't know why clean wouldn't do that, but...)
http://www.nabble.com/weird-5.1.x-compile-error-td23055494.html -
2. Re: JDK Crashing in AS Build
alrubinger Apr 16, 2009 5:18 PM (in response to alrubinger)Actually now I'm getting it reliably on trunk. :)
-
3. Re: JDK Crashing in AS Build
alrubinger Apr 16, 2009 5:23 PM (in response to alrubinger)"bstansberry@jboss.com" wrote:
This came up on the jboss-dev list earlier this week. Seems cleaning out the tomcat module's output dir fixed it (don't know why clean wouldn't do that, but...)
http://www.nabble.com/weird-5.1.x-compile-error-td23055494.html
I missed that, thanks.
Hmm...cleaning tomcat/target (AS trunk) isn't helping. Using jdk1.6.0_11-x86_64 did the trick this time.
S,
ALR -
4. Re: JDK Crashing in AS Build
pgier Apr 16, 2009 5:47 PM (in response to alrubinger)Brian, any idea what could have caused this to start happening?
It seems like it started after your changes in r87304.
It seems that this is a bug in the jdk since newer revs seems to work fine consistently, is this something we need to look into further? -
5. Re: JDK Crashing in AS Build
brian.stansberry Apr 16, 2009 5:57 PM (in response to alrubinger)That commit wasn't doing anything really exceptional, except for some generics fun.
It's not good though if it's crashing peoples' builds and requiring a JDK upgrade. But not sure what to do about it. :( -
6. Re: JDK Crashing in AS Build
anil.saldhana Apr 16, 2009 6:00 PM (in response to alrubinger)I just had to upgrade from JDK1.5.0_15 to JDK1.5.0_18.
Nice work, Brian showcasing a JDK bug by example. ;) -
7. Re: JDK Crashing in AS Build
brian.stansberry Apr 16, 2009 6:06 PM (in response to alrubinger)I have a 1.5.0_16 on my machine that I just reproduced it with; I'll figure out how to add verbose output to the mvn compile process and see if that sheds any light on the issue
-
8. Re: JDK Crashing in AS Build
brian.stansberry Apr 16, 2009 6:08 PM (in response to alrubinger)"anil.saldhana@jboss.com" wrote:
I just had to upgrade from JDK1.5.0_15 to JDK1.5.0_18.
Nice work, Brian showcasing a JDK bug by example. ;)
Just doing my bit to ensure we all keep up with the latest and greatest. ;) -
9. Re: JDK Crashing in AS Build
brian.stansberry Apr 16, 2009 6:43 PM (in response to alrubinger)Verbose mode is our friend. It seems unable to handle the commented out code below so I'm replacing it with the non-genericized stuff below it.
// Genericized code below crashes some Sun JDK compilers; see // http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154175 // Map<ClusteredSession<? extends OutgoingDistributableSessionData>, SnapshotManager> sessions = ctx.getCrossContextSessions(); // if (sessions != null && sessions.size() > 0) // { // for (Map.Entry<ClusteredSession<? extends OutgoingDistributableSessionData>, SnapshotManager> entry : sessions.entrySet()) // { // entry.getValue().snapshot(entry.getKey()); // } // } // So, use this non-genericized code instead Map sessions = ctx.getCrossContextSessions(); if (sessions != null && sessions.size() > 0) { for (Iterator it = sessions.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry) it.next(); ((SnapshotManager) entry.getValue()).snapshot((ClusteredSession) entry.getKey()); } } }
With that the problem goes away for me. -
10. Re: JDK Crashing in AS Build
brian.stansberry Apr 16, 2009 6:54 PM (in response to alrubinger)I've committed that change to trunk and Branch_5_x.
-
11. Re: JDK Crashing in AS Build
pgier Apr 16, 2009 8:49 PM (in response to alrubinger)That fixed it for me using jdk1.5_12. Thanks!