Menu:

Sponsor

Discover Master of Alchemy, our first iPad/iPhone and iPod touch game!

Follow Me

 

Forum's topics

Latest Files

Archives

Top Rated

Categories

Photo Gallery


Alessandro Crugnola on September 12, 2008 in flex

Java 6 Update 10 breaks Flex compiler!

java-update-10.png

I just want to share this problem I found so maybe someone can save some time..
Today while surfing the net I received a notification of an update of my Java installation to the Update 10 in order to see correctly the contents of that site.. bla bla bla..

Sometime later I switched to Flex and at the first execution of my ant script for compiling a flex project I suddenly received this beautiful error:

[exec] Error: java/security/MessageDigest
     [exec] java.lang.NoClassDefFoundError: java/security/MessageDigest
     [exec]     at java.io.ObjectStreamClass.computeDefaultSUID(Unknown Source)
     [exec]     at java.io.ObjectStreamClass.access$100(Unknown Source)
     [exec]     at java.io.ObjectStreamClass$1.run(Unknown Source)
     [exec]     at java.security.AccessController.doPrivileged(Native Method)
     [exec]     at java.io.ObjectStreamClass.getSerialVersionUID(Unknown Source)
     [exec]     at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
     [exec]     at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
     [exec]     at java.io.ObjectInputStream.readClassDesc(Unknown Source)
     [exec]     at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
     [exec]     at java.io.ObjectInputStream.readClassDesc(Unknown Source)
     [exec]     at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
     [exec]     at java.io.ObjectInputStream.readObject0(Unknown Source)
     [exec]     at java.io.ObjectInputStream.readObject(Unknown Source)
     [exec]     at flex.util.SerializedTemplateFactory.load(SerializedTemplateFactory.java:30)
     [exec]     at flex2.compiler.util.VelocityManager.getTemplate(VelocityManager.java:162)
     [exec]     at flex2.compiler.util.VelocityManager.getTemplate(VelocityManager.java:151)
     [exec]     at flex2.compiler.util.VelocityManager.getTemplate(VelocityManager.java:137)
     [exec]     at flex2.compiler.as3.genext.GenerativeSecondPassEvaluator.generateSupportCode(GenerativeSecondPassEvaluator.java:256)
     [exec]     at flex2.compiler.as3.genext.GenerativeSecondPassEvaluator.modifySyntaxTree(GenerativeSecondPassEvaluator.java:355)
     [exec]     at flex2.compiler.as3.binding.BindableSecondPassEvaluator.evaluate(BindableSecondPassEvaluator.java:102)
     [exec]     at macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:106)
     [exec]     at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:338)
     [exec]     at macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:60)
     [exec]     at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:923)
     [exec]     at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
     [exec]     at flex2.compiler.as3.genext.GenerativeExtension.parse2(GenerativeExtension.java:114)
     [exec]     at flex2.compiler.as3.Compiler.parse2(Compiler.java:386)
     [exec]     at flex2.compiler.API.parse2(API.java:2390)
     [exec]     at flex2.compiler.API.parse2(API.java:2348)
     [exec]     at flex2.compiler.API.batch2(API.java:375)
     [exec]     at flex2.compiler.API.batch(API.java:1117)
     [exec]     at flex2.compiler.API.compile(API.java:1290)
     [exec]     at flex2.compiler.API.compile(API.java:1210)
     [exec]     at flex2.tools.Compc.compc(Compc.java:158)
     [exec]     at flex2.tools.Compc.main(Compc.java:41)

so I tried also to compile another project before go crazy, but I got this another java funny error, which was more or less unreadable as the previous one!

Fortunately I remembered the update I did of Java! And in fact after remove that update everything worked again!

 

 

 

Bookmark and Share

 

Tags: ant , bug , flex , java 

 

6 comments
Java 6 Update 10 is now in it's stable version. On my machine (Pentium 4, Windows XP, ATI Card with latest official driver) both the Flex Compiler and Runescape are running fine (the second even appears to get a speed enhance on the HD version). By the way, there is no public API changes on java updates (only upgrades) so java.lang.NoClassDefFoundError "java/security/MessageDigest" error sounds more like a CLASSPATH problem...Are your flex compiler pointing correctly to the JVM libs? Something like "C:\Program Files\Java\jdk1.6.0_10\jre". Best Regards.
Admittedly, since you make such great tools, I spend my 16 hour days doing Actionscript and not much Java anymore, but I upgraded to the 1.6.10 Release Candidate more than 6 weeks ago and have had no trouble with that Java Runtime working with either of your absolutely crucial plug-ins -- tracer and switcher. Maybe the problems only occur for compilations; for the ordinary user of your plug-ins everything seems to work fine on my XP, W2K even Mac OSX boxes, so perhaps it is not as broken as it might seem. Best regards, and thanks.
While using the beta release of Java(Java 6 update 10 beta), I tried to play a game I usually play, a game called Runescape and after a few minutes of playing it something.. seriously disturbing happened. My computer froze and my laptop screen went white and black then completely black so I restarted my pc and uninstalled the beta version of Java and went back to the earlier version and everything worked fine again in Runescape.
While using the beta release of Java(Java 6 update 10 beta), I tried to play a game I usually play, a game called Runescape and after a few minutes of playing it something.. seriously disturbing happened. My computer froze and my laptop screen went white and black then completely black so I restarted my pc and uninstalled the beta version of Java and went back to the earlier version and everything worked fine again in Runescape.
Ooh, nasty. Although, it finally shows a use for the version specific Java installers / uninstallers ;).
Hi

Did you open an issue about that on bug.adobe.com?

If so, please post the number here, so we can vote on it.

VELO


Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Type the characters you see in the picture above.





 

TrackBacks

TrackBack URL for this entry: http://www.sephiroth.it/cgi-bin/mt/mt-tb.cgi/252