0 Replies Latest reply on May 28, 2007 3:58 AM by k.kveler

    IBM JRE 1.5: Uncaught exception in compiler

    k.kveler
      I installed trial version of Flex Builder 2 Eclipse plug-in. If I run eclipse with the shortcut created by Flex Builder installation, everything works fine (it uses the Sun JRE 1.4.2 included with the installation). If I modify the shortcut to run eclipse with the IBM JRE 1.5 (according to Flex 2.0.1 system requirements, such configuration is supported) and create new Flex project, the following error appears during the first build:

      Error
      Mon May 28 13:53:00 IDT 2007
      Uncaught exception in compiler

      java.lang.IllegalAccessError: org.apache.xerces.util.XMLAttributesImpl$Attribute
      at java.lang.ClassLoader.defineClassImpl(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:222)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.j ava:160)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:49 8)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java: 468)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager. java:427)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :410)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:188)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:33 9)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:391)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:561)
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerMMImpl.<init>(XMLDocumentFragmentScanner MMImpl.java:105)
      at org.apache.xerces.impl.XMLDocumentScannerMMImpl.<init>(XMLDocumentScannerMMImpl.java:258)
      at org.apache.xerces.impl.XMLNSDocumentScannerMMImpl.<init>(XMLNSDocumentScannerMMImpl.java: 120)
      at org.apache.xerces.parsers.IntegratedParserConfigurationMMImpl.createDocumentScanner(Integ ratedParserConfigurationMMImpl.java:282)
      at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
      at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
      at org.apache.xerces.parsers.IntegratedParserConfigurationMMImpl.<init>(IntegratedParserConf igurationMMImpl.java:193)
      at org.apache.xerces.parsers.XML11ConfigurationMMImpl.<init>(XML11ConfigurationMMImpl.java:1 82)
      at org.apache.xerces.parsers.XML11ConfigurationMMImpl.<init>(XML11ConfigurationMMImpl.java:1 39)
      at java.lang.Class.newInstanceImpl(Native Method)
      at java.lang.Class.newInstance(Class.java:1263)
      at org.apache.xerces.util.ObjectFactory.newInstance(Unknown Source)
      at org.apache.xerces.util.ObjectFactory.findJarServiceProvider(Unknown Source)
      at org.apache.xerces.util.ObjectFactory.createObject(Unknown Source)
      at org.apache.xerces.util.ObjectFactory.createObject(Unknown Source)
      at org.apache.xerces.parsers.SAXParserMMImpl.<init>(SAXParserMMImpl.java:155)
      at org.apache.xerces.parsers.SAXParserMMImpl.<init>(SAXParserMMImpl.java:138)
      at org.apache.xerces.jaxp.SAXParserMMImpl.<init>(SAXParserMMImpl.java:109)
      at org.apache.xerces.jaxp.SAXParserFactoryMMImpl.newSAXParser(SAXParserFactoryMMImpl.java:10 2)
      at flex2.compiler.config.FileConfigurator.load(FileConfigurator.java:60)
      at flex2.tools.Compiler.processConfiguration(Compiler.java:465)
      at flex2.tools.oem.internal.OEMUtil.getApplicationConfiguration(OEMUtil.java:208)
      at flex2.tools.oem.internal.OEMUtil.getApplicationConfiguration(OEMUtil.java:180)
      at flex2.tools.oem.Application.recompile(Application.java:662)
      at flex2.tools.oem.Application.compile(Application.java:530)
      at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:224)
      at com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(Un known Source)
      at com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder.build(Unknown Source)
      at com.adobe.flexbuilder.project.compiler.internal.ASBuilder.build(Unknown Source)
      at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(U nknown Source)
      at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown Source)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)