1 Reply Latest reply on Dec 30, 2014 7:53 AM by tc.camargo

    what could cause "Internal error: java.lang.NullPointerException: can't not add null to SWF frame" when using compc?

    mjbcola

      using flex sdk 4.6, and air sdk 15.0.0.356

       

      we get the following error when using compc in our ant build:

       

      [java] Internal error: java.lang.NullPointerException: can't not add null to SWF frame

      [java] at com.adobe.flash.swf.SWFFrame.addTag(SWFFrame.java:77)

      [java] at com.adobe.flash.compiler.internal.units.requests.SWFTagsRequestResult.addToFrame(SWFTagsR equestResult.java:114)

      [java] at com.adobe.flash.compiler.internal.targets.SWFTarget.addCompilationUnitsAndDependenciesToF rame(SWFTarget.java:398)

      [java] at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation.createFrame(SWFTarg et.java:838)

      [java] at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation.createFrames(SWFTar get.java:875)

      [java] at com.adobe.flash.compiler.internal.targets.SWFTarget.build(SWFTarget.java:243)

      [java] at com.adobe.flash.compiler.internal.targets.SWCTarget.buildLibrarySWF(SWCTarget.java:348)

      [java] at com.adobe.flash.compiler.internal.targets.SWCTarget.build(SWCTarget.java:128)

      [java] at com.adobe.flash.compiler.clients.COMPC.buildArtifact(COMPC.java:144)

      [java] at com.adobe.flash.compiler.clients.MXMLC.compile(MXMLC.java:541)

      [java] at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:230)

      [java] at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:184)

      [java] at com.adobe.flash.compiler.clients.COMPC.staticMainNoExit(COMPC.java:75)

      [java] at com.adobe.flash.compiler.clients.COMPC.main(COMPC.java:62)

       

      which seems to be rather vague, and offers no clue as to what caused the problem. so, my question is, what could cause this error?

       

      these are the compiler options we use in the build file:

       

      <java jar="${flex.compc.jar}" dir="." fork="true" failonerror="true">

            <jvmarg value="-Xmx512m" />

            <arg line="@{options} ${_compc.libpath} ${_compc.externspath} ${_compc.includespath}" />

            <arg value="+flexlib=${flex.frameworks.dir}" />

            <arg value="-load-config=@{config}" />

            <arg value="-source-path=@{src.dir}" />

            <arg value="-include-sources=@{src.dir}" />

            <arg value="-output=@{dest}" />

            <arg value="-swf-version=@{swf.version}"/>

            <arg value="-debug=${flash.debug}"/>

            <arg value="-advanced-telemetry"/>

      </java>


      assume that the properties resolve to correct values, since all projects (except one) call this task and compile successfully. the error must come from this one project that fails, but we don't know why.


      any ideas?