ideaIU-122.694 Flex compiler problem

I am getting an error compiling a large Flex project. Flex Compiler option is set to "Built-in compiler shell", I also tried to set "Parallel compilation" to 1.

Configuration: OS-X 10.8.2, latest Java (Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)).

Internal error: (java.util.concurrent.ExecutionException) sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: Provider org.intellij.images.util.imageio.SanselanImageReaderSpi could not be instantiated: java.lang.NoClassDefFoundError: org/apache/sanselan/ImageReadException
java.util.concurrent.ExecutionException: sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: Provider org.intellij.images.util.imageio.SanselanImageReaderSpi could not be instantiated: java.lang.NoClassDefFoundError: org/apache/sanselan/ImageReadException
 at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
 at java.util.concurrent.FutureTask.get(FutureTask.java:83)
 at org.jetbrains.jps.model.serialization.JpsProjectLoader.a(JpsProjectLoader.java:228)
 at org.jetbrains.jps.model.serialization.JpsProjectLoader.a(JpsProjectLoader.java:105)
 at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadProject(JpsProjectLoader.java:81)
 at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:41)
 at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:60)
 at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:164)
 at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:93)
 at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:105)
 at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:26)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)
Caused by: sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: Provider org.intellij.images.util.imageio.SanselanImageReaderSpi could not be instantiated: java.lang.NoClassDefFoundError: org/apache/sanselan/ImageReadException
 at sun.misc.Service.fail(Service.java:120)
 at sun.misc.Service.access$200(Service.java:111)
 at sun.misc.Service$LazyIterator.next(Service.java:284)
 at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:190)
 at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:121)
 at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:142)
 at apple.awt.CToolkit.registerDefaultServices(CToolkit.java:1336)
 at apple.awt.CToolkit.<init>(CToolkit.java:144)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at java.lang.Class.newInstance0(Class.java:355)
 at java.lang.Class.newInstance(Class.java:308)
 at java.awt.Toolkit$2.run(Toolkit.java:859)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
 at java.awt.Component.getToolkitImpl(Component.java:1174)
 at java.awt.Component.getToolkit(Component.java:1158)
 at java.awt.Component.checkImage(Component.java:3597)
 at java.awt.ImageMediaEntry.getStatus(MediaTracker.java:892)
 at java.awt.MediaTracker.statusID(MediaTracker.java:689)
 at java.awt.MediaTracker.waitForID(MediaTracker.java:637)
 at javax.swing.ImageIcon.loadImage(ImageIcon.java:278)
 at javax.swing.ImageIcon.<init>(ImageIcon.java:208)
 at com.intellij.openapi.util.IconLoader$1.<init>(IconLoader.java:68)
 at com.intellij.openapi.util.IconLoader.<clinit>(IconLoader.java:68)
 at icons.FlexSharedIcons.load(FlexSharedIcons.java:13)
 at icons.FlexSharedIcons.<clinit>(FlexSharedIcons.java:16)
 at com.intellij.flex.model.bc.TargetPlatform.<clinit>(TargetPlatform.java:9)
 at com.intellij.flex.model.bc.impl.JpsFlexBCState.<init>(JpsFlexBCState.java:15)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at java.lang.Class.newInstance0(Class.java:355)
 at java.lang.Class.newInstance(Class.java:308)
 at com.intellij.util.xmlb.BeanBinding.instantiateBean(BeanBinding.java:173)
 at com.intellij.util.xmlb.BeanBinding.deserialize(BeanBinding.java:120)
 at com.intellij.util.xmlb.AbstractCollectionBinding.deserialize(AbstractCollectionBinding.java:155)
 at com.intellij.util.xmlb.TagBinding.deserialize(TagBinding.java:77)
 at com.intellij.util.xmlb.BeanBinding._deserializeInto(BeanBinding.java:163)
 at com.intellij.util.xmlb.BeanBinding.deserialize(BeanBinding.java:120)
 at com.intellij.util.xmlb.XmlSerializer.deserialize(XmlSerializer.java:58)
 at com.intellij.flex.model.module.JpsFlexModuleType$1.loadProperties(JpsFlexModuleType.java:24)
 at com.intellij.flex.model.module.JpsFlexModuleType$1.loadProperties(JpsFlexModuleType.java:20)
 at org.jetbrains.jps.model.serialization.JpsProjectLoader.a(JpsProjectLoader.java:291)
 at org.jetbrains.jps.model.serialization.JpsProjectLoader.a(JpsProjectLoader.java:252)
 at org.jetbrains.jps.model.serialization.JpsProjectLoader.access$000(JpsProjectLoader.java:44)
 at org.jetbrains.jps.model.serialization.JpsProjectLoader$2.call(JpsProjectLoader.java:222)
 at org.jetbrains.jps.model.serialization.JpsProjectLoader$2.call(JpsProjectLoader.java:219)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:35)
 ... 7 more
Caused by: java.lang.NoClassDefFoundError: org/apache/sanselan/ImageReadException
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
 at java.lang.Class.getConstructor0(Class.java:2699)
 at java.lang.Class.newInstance0(Class.java:326)
 at java.lang.Class.newInstance(Class.java:308)
 at sun.misc.Service$LazyIterator.next(Service.java:282)
 ... 58 more
Caused by: java.lang.ClassNotFoundException: org.apache.sanselan.ImageReadException
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 ... 64 more



Any idea what's wrong?

Regards,
Peter
2 comments
Comment actions Permalink

Already fixed, thanks.
Workaround is to disable 'Use external build' option at Preferences | Compiler.

0
Comment actions Permalink

Thanks for the workaround.

Peter

0

Please sign in to leave a comment.