java.lang.IllegalArgumentException at flex facet compile

I have module with flex facet configured. During its compilation I got IllegalArgumentException without any details:


Information:[Client] c:\program files\jetbrains\intellij idea 9.0.3\jre\jre\bin\java.exe -Duser.language=en -Duser.region=en -Xmx1024m -classpath C:\Users\Den\.m2\repository\com\adobe\flex\compiler\adt\4.1.0.16248\adt-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\afe\4.1.0.16248\afe-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\aglj40\4.1.0.16248\aglj40-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\asc\4.1.0.16248\asc-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\asdoc\4.1.0.16248\asdoc-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\batik-all-flex\4.1.0.16248\batik-all-flex-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\batik_de\4.1.0.16248\batik_de-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\batik_fr\4.1.0.16248\batik_fr-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\batik_ja\4.1.0.16248\batik_ja-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\batik_ko\4.1.0.16248\batik_ko-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\batik_ru\4.1.0.16248\batik_ru-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\batik_zh_CN\4.1.0.16248\batik_zh_CN-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\commons-collections\4.1.0.16248\commons-collections-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\commons-discovery\4.1.0.16248\commons-discovery-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\commons-logging\4.1.0.16248\commons-logging-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\compc\4.1.0.16248\compc-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\copylocale\4.1.0.16248\copylocale-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\digest\4.1.0.16248\digest-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\fcsh\4.1.0.16248\fcsh-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\fdb\4.1.0.16248\fdb-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\flex-compiler-oem\4.1.0.16248\flex-compiler-oem-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\flex-fontkit\4.1.0.16248\flex-fontkit-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\flex-messaging-common\4.1.0.16248\flex-messaging-common-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\fxgutils\4.1.0.16248\fxgutils-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\license\4.1.0.16248\license-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc\4.1.0.16248\mxmlc-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_da\4.1.0.16248\mxmlc_da-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_de\4.1.0.16248\mxmlc_de-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_es\4.1.0.16248\mxmlc_es-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_fi\4.1.0.16248\mxmlc_fi-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_fr\4.1.0.16248\mxmlc_fr-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_it\4.1.0.16248\mxmlc_it-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_ja\4.1.0.16248\mxmlc_ja-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_ko\4.1.0.16248\mxmlc_ko-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_nb\4.1.0.16248\mxmlc_nb-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_nl\4.1.0.16248\mxmlc_nl-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_pt\4.1.0.16248\mxmlc_pt-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_ru\4.1.0.16248\mxmlc_ru-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_sv\4.1.0.16248\mxmlc_sv-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_zh_CN\4.1.0.16248\mxmlc_zh_CN-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\mxmlc_zh_TW\4.1.0.16248\mxmlc_zh_TW-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\optimizer\4.1.0.16248\optimizer-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\rideau\4.1.0.16248\rideau-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\saxon9\4.1.0.16248\saxon9-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\swcdepends\4.1.0.16248\swcdepends-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\swfdump\4.1.0.16248\swfdump-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\swfutils\4.1.0.16248\swfutils-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\velocity-dep-1.4-flex\4.1.0.16248\velocity-dep-1.4-flex-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xalan\4.1.0.16248\xalan-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xercesImpl\4.1.0.16248\xercesImpl-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xercesImpl_de\4.1.0.16248\xercesImpl_de-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xercesImpl_fr\4.1.0.16248\xercesImpl_fr-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xercesImpl_ja\4.1.0.16248\xercesImpl_ja-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xercesImpl_ko\4.1.0.16248\xercesImpl_ko-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xercesImpl_ru\4.1.0.16248\xercesImpl_ru-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xercesImpl_zh_CN\4.1.0.16248\xercesImpl_zh_CN-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xercesPatch\4.1.0.16248\xercesPatch-4.1.0.16248.jar;C:\Users\Den\.m2\repository\com\adobe\flex\compiler\xmlParserAPIs\4.1.0.16248\xmlParserAPIs-4.1.0.16248.jar flex2.tools.Mxmlc -load-config=Client_temp_flex_main_class_config.xml
Information:[Client] Loading configuration file C:\Projects\cp-latest\Client_temp_flex_main_class_config.xml
Information:[Client]     public class UserAttributesBase implements IExternalizable {
Information:[Client]                  ^
Information:[Client]     public class GeoPtBase implements IExternalizable {
Information:[Client]     public class RecurringDateBase implements IExternalizable {
Information:[Client]     public class RideBase implements IExternalizable {
Information:[Client]         var _daysOfWeek:BitSet = new BitSet();
Information:[Client]         var _buttons:Array = new Array();
Information:[Client]         var htmlTextCSS:StyleSheet = new StyleSheet();
Information:[Client]         <mx:Text
Information:[Client]         <mx:ComboBox id='hoursInput' selectedIndex="{new Date().hours}" paddingLeft="4" paddingRight="2">
Information:[Client]         <mx:ComboBox id='minutesInput' selectedIndex="{new Date().minutes % 15}" paddingLeft="4" paddingRight="2">
Information:[Client]         var userAttributes:UserAttributes;
Information:[Client]         var userId:String;
Information:[Client] C:\Projects\cp-latest\Client\target\_cp.swf (1370073 bytes)
Information:[Client] Compilation successful
Information:Compilation completed with 1 error and 13 warnings
Information:1 error
Information:13 warnings
Error:Error: java.lang.IllegalArgumentException



What could be the reason?

Also attaching Client_temp_flex_main_class_config.xml.

Den

Attachment(s):
Client_temp_flex_main_class_config.xml
3 comments
Please look into ${user.home}\.IntelliJIdea90\system\log\idea.log, may be full stack trace is there.
0

BTW, after IDEA restart I've been able to compile module.

Yep stack trace is there:

2010-10-08 14:55:36,715 [15992320]  ERROR - currency.PrioritizedFutureTask - IntelliJ IDEA 9.0.3  Build #IU-95.429
2010-10-08 14:55:36,715 [15992320]  ERROR - currency.PrioritizedFutureTask - JDK: 1.6.0_17
2010-10-08 14:55:36,715 [15992320]  ERROR - currency.PrioritizedFutureTask - VM: Java HotSpot(TM) Client VM
2010-10-08 14:55:36,715 [15992320]  ERROR - currency.PrioritizedFutureTask - Vendor: Sun Microsystems Inc.
2010-10-08 14:55:36,715 [15992320]  ERROR - currency.PrioritizedFutureTask - OS: Windows Vista
2010-10-08 14:55:36,715 [15992320]  ERROR - currency.PrioritizedFutureTask - java.lang.RuntimeException: java.lang.IllegalArgumentException
java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.IllegalArgumentException
 at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
 at java.util.concurrent.FutureTask.get(FutureTask.java:83)
 at com.intellij.concurrency.PrioritizedFutureTask.done(PrioritizedFutureTask.java:117)
 at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
 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:619)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException
 at com.intellij.util.io.PersistentEnumerator.valueOf(PersistentEnumerator.java:471)
 at com.intellij.util.io.StringRef.getString(StringRef.java:48)
 at com.intellij.util.io.StringRef.length(StringRef.java:80)
 at com.intellij.psi.impl.java.stubs.impl.PsiFieldStubImpl.<init>(PsiFieldStubImpl.java:54)
 at com.intellij.psi.impl.java.stubs.JavaFieldStubElementType.deserialize(JavaFieldStubElementType.java:103)
 at com.intellij.psi.impl.java.stubs.JavaFieldStubElementType.deserialize(JavaFieldStubElementType.java:44)
 at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:203)
 at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:206)
 at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:206)
 at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:188)
 at com.intellij.psi.stubs.SerializedStubTree.getStub(SerializedStubTree.java:34)
 at com.intellij.psi.stubs.StubTree.readFromVFile(StubTree.java:138)
 at com.intellij.psi.stubs.StubTree.readOrBuild(StubTree.java:102)
 at com.intellij.psi.impl.compiled.ClsFileImpl.getStubTree(ClsFileImpl.java:377)
 at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:188)
 at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:176)
 at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:56)
 at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:176)
 at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:34)
 at com.intellij.psi.impl.java.stubs.index.JavaFullClassNameIndex.get(JavaFullClassNameIndex.java:44)
 at com.intellij.psi.impl.file.impl.JavaFileManagerImpl.a(JavaFileManagerImpl.java:312)
 at com.intellij.psi.impl.file.impl.JavaFileManagerImpl.findClass(JavaFileManagerImpl.java:199)
 at com.intellij.psi.impl.JavaPsiFacadeImpl$PsiElementFinderImpl.findClass(JavaPsiFacadeImpl.java:360)
 at com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.java:175)
 at com.intellij.psi.impl.ElementPresentationUtil.a(ElementPresentationUtil.java:153)
 at com.intellij.psi.impl.ElementPresentationUtil.access$000(ElementPresentationUtil.java:39)
 at com.intellij.psi.impl.ElementPresentationUtil$1.compute(ElementPresentationUtil.java:124)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:57)
 at com.intellij.psi.impl.ElementPresentationUtil.getClassKind(ElementPresentationUtil.java:129)
 at com.intellij.psi.impl.PsiClassImplUtil$2.fun(PsiClassImplUtil.java:320)
 at com.intellij.psi.impl.PsiClassImplUtil$2.fun(PsiClassImplUtil.java:315)
 at com.intellij.ui.DeferredIconImpl$2.run(DeferredIconImpl.java:135)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:697)
 at com.intellij.ui.IconDeferrerImpl.evaluateDeferredInReadAction(IconDeferrerImpl.java:118)
 at com.intellij.ui.DeferredIconImpl.evaluate(DeferredIconImpl.java:146)
 at com.intellij.ui.DeferredIconImpl$1.run(DeferredIconImpl.java:97)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 ... 4 more
Caused by: java.lang.IllegalArgumentException
 at java.nio.Buffer.position(Buffer.java:218)
 at com.intellij.util.io.PagedFileStorage.get(PagedFileStorage.java:171)
 at com.intellij.util.io.PagedFileStorage.getInt(PagedFileStorage.java:121)
 at com.intellij.util.io.ResizeableMappedFile.getInt(ResizeableMappedFile.java:141)
 at com.intellij.util.io.PersistentEnumerator.valueOf(PersistentEnumerator.java:458)
 ... 41 more

0

I suppose IDEA's index was corrupted for some reason. I hope you'll not see this problem any more. To make sure that index is up-to-date you may click File | Invalidate Caches and restart IDEA.

0

Please sign in to leave a comment.