flex - MXMLC throws a java.lang.NullExceptionPointer when compiling in windows (not in mac nor ubuntu) -
i'm running ant compile flex application, , build keeps failing when running on windows command line. other people in team can run same build under mac , linux.
this error shown in command prompt:
compile-main: [mxmlc] loading configuration file c:\program files (x86)\adobe\adobe flash builder burrito\sdks\3.5.0\frameworks\flex-config.xml [mxmlc] error: null [mxmlc] [mxmlc] java.lang.nullpointerexception [mxmlc] @ flex2.compiler.compilerswccontext.createsource(compilerswccontext.java:353) [mxmlc] @ flex2.compiler.compilerswccontext.getsource(compilerswccontext.java:337) [mxmlc] @ flex2.compiler.api.finddefinition(api.java:2685) [mxmlc] @ flex2.compiler.api.resolvemultiname(api.java:3350) [mxmlc] @ flex2.compiler.api.resolveexpression(api.java:3193) [mxmlc] @ flex2.compiler.api.batch2(api.java:399) [mxmlc] @ flex2.compiler.api.batch(api.java:1117) [mxmlc] @ flex2.compiler.api.compile(api.java:1290) [mxmlc] @ flex2.compiler.api.compile(api.java:1210) [mxmlc] @ flex2.tools.compiler.mxmlc(compiler.java:275) [mxmlc] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) [mxmlc] @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) [mxmlc] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) [mxmlc] @ java.lang.reflect.method.invoke(method.java:597) [mxmlc] @ flex.ant.flextask.executeinprocess(flextask.java:283) [mxmlc] @ flex.ant.flextask.execute(flextask.java:225) [mxmlc] @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:291) [mxmlc] @ sun.reflect.generatedmethodaccessor68.invoke(unknown source) [mxmlc] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) [mxmlc] @ java.lang.reflect.method.invoke(method.java:597) [mxmlc] @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106) [mxmlc] @ org.apache.tools.ant.task.perform(task.java:348) [mxmlc] @ org.apache.tools.ant.target.execute(target.java:390) [mxmlc] @ org.apache.tools.ant.target.performtasks(target.java:411) [mxmlc] @ org.apache.tools.ant.project.executesortedtargets(project.java:1399) [mxmlc] @ org.apache.tools.ant.helper.singlecheckexecutor.executetargets(singlecheckexecutor.java:38) [mxmlc] @ org.apache.tools.ant.project.executetargets(project.java:1251) [mxmlc] @ org.apache.tools.ant.taskdefs.ant.execute(ant.java:442) [mxmlc] @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:291) [mxmlc] @ sun.reflect.generatedmethodaccessor68.invoke(unknown source) [mxmlc] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) [mxmlc] @ java.lang.reflect.method.invoke(method.java:597) [mxmlc] @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106) [mxmlc] @ org.apache.tools.ant.task.perform(task.java:348) [mxmlc] @ org.apache.tools.ant.target.execute(target.java:390) [mxmlc] @ org.apache.tools.ant.target.performtasks(target.java:411) [mxmlc] @ org.apache.tools.ant.project.executesortedtargets(project.java:1399) [mxmlc] @ org.apache.tools.ant.helper.singlecheckexecutor.executetargets(singlecheckexecutor.java:38) [mxmlc] @ org.apache.tools.ant.project.executetargets(project.java:1251) [mxmlc] @ org.apache.tools.ant.taskdefs.ant.execute(ant.java:442) [mxmlc] @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:291) [mxmlc] @ sun.reflect.generatedmethodaccessor68.invoke(unknown source) [mxmlc] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) [mxmlc] @ java.lang.reflect.method.invoke(method.java:597) [mxmlc] @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106) [mxmlc] @ org.apache.tools.ant.task.perform(task.java:348) [mxmlc] @ org.apache.tools.ant.target.execute(target.java:390) [mxmlc] @ org.apache.tools.ant.target.performtasks(target.java:411) [mxmlc] @ org.apache.tools.ant.project.executesortedtargets(project.java:1399) [mxmlc] @ org.apache.tools.ant.helper.singlecheckexecutor.executetargets(singlecheckexecutor.java:38) [mxmlc] @ org.apache.tools.ant.project.executetargets(project.java:1251) [mxmlc] @ org.apache.tools.ant.taskdefs.ant.execute(ant.java:442) [mxmlc] @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:291) [mxmlc] @ sun.reflect.generatedmethodaccessor68.invoke(unknown source) [mxmlc] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) [mxmlc] @ java.lang.reflect.method.invoke(method.java:597) [mxmlc] @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106) [mxmlc] @ org.apache.tools.ant.task.perform(task.java:348) [mxmlc] @ org.apache.tools.ant.target.execute(target.java:390) [mxmlc] @ org.apache.tools.ant.target.performtasks(target.java:411) [mxmlc] @ org.apache.tools.ant.project.executesortedtargets(project.java:1399) [mxmlc] @ org.apache.tools.ant.project.executetarget(project.java:1368) [mxmlc] @ org.apache.tools.ant.helper.defaultexecutor.executetargets(defaultexecutor.java:41) [mxmlc] @ org.apache.tools.ant.project.executetargets(project.java:1251) [mxmlc] @ org.apache.tools.ant.main.runbuild(main.java:809) [mxmlc] @ org.apache.tools.ant.main.startant(main.java:217) [mxmlc] @ org.apache.tools.ant.launch.launcher.run(launcher.java:280) [mxmlc] @ org.apache.tools.ant.launch.launcher.main(launcher.java:109) build failed d:\workspaces\adobe flash builder burrito preview\flexprojects\build.xml:10: following error occurred while executing line: d:\workspaces\adobe flash builder burrito preview\flexprojects\adtoolssp\build.xml:33: following error occurred while executing line: d:\workspaces\adobe flash builder burrito preview\flexprojects\adtoolssp\build\build.xml:18: following error occurred while executing line: d:\workspaces\adobe flash builder burrito preview\flexprojects\adtoolssp\build\compileproject.xml:39: mxmlc task failed total time: 21 seconds
this particular target in compileproject.xml build file:
<target name="compile-main" description="compila la aplicaciĆ³n principal"> <mxmlc allow-source-path-overlap="${compiler.allow_overlap}" debug="${compiler.debug}" file="${app.main.mxml}" fork="${compiler.fork}" keep-generated-actionscript="${compiler.keep_gen_as}" link-report="${flex.output.dir}/report.xml" locale="${compiler.locale}" maxmemory="256m" optimize="${compiler.optimize}" output="${app.main.swf}" services="${flex.services.dir}/services-config.xml" > <!-- default compiler options --> <load-config filename="${flex_home}/frameworks/flex-config.xml" /> <!-- list of path elements form roots of actionscript class hierarchies --> <source-path path-element="${flex_home}/frameworks" /> <!-- path locales --> <source-path path-element="${flex.resources.dir}/locale/{locale}" /> <!-- list of swc files or directories contain swc files --> <compiler.library-path dir="${flex.libs.dir}" append="true"> <include name="**/as3-signals-v0.6.swc" /> <include name="**/datavisualization_rb.swc" /> <include name="**/datavisualization.swc" /> <include name="**/genaoccairngorm.swc" /> <include name="**/genaoclib.swc" /> </compiler.library-path> <compiler.library-path dir="${flex.src.dir}/assets" append="true"> <include name="**/*.swc" /> </compiler.library-path> </mxmlc> </target>
all tokens set in corresponding build.properties , filter .properties files (and, said before, compiles under mac , linux).
the windows version 7 ultimate, flex_home set environment variable flex sdk 3.5 (the 3.5.0.12683 build comes adobe flash builder burrito). ${compiler.fork} set false, avoid issue sdk , source files being in different logic drives.
any clues (at all) appreciated!
maybe it's problem of "burrito preview"? file bug @ http://bugs.adobe.com.
Comments
Post a Comment