You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Serkan Taş <se...@likyateknoloji.com> on 2018/10/20 07:46:09 UTC

compiler error

Hi,

I created a sample and simple project for test purposes.  When i compile 
the project i get en error :

Internal error: java.lang.NullPointerException 
org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:317)org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:396)
org.apache.royale.compiler.internal.graph.GoogDepsWriter.sort(GoogDepsWriter.java:285)org.apache.royale.compiler.internal.graph.GoogDepsWriter.getListOfFiles(GoogDepsWriter.java:101)
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:421)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:403)
org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:250)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:207)
org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:365)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:300)
org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:259)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:241)

Although i have an error, Main.swf file is generated.

Here is the repo on github. You may find the build.bat file for compiling.

Thanks
Serkan




Re: compiler error

Posted by Alex Harui <ah...@adobe.com>.
Hi Serkan,

I just pushed a change to the compiler to try to report which class it could not find JS files for.  It will take at least 2 hours for it to show up in the nightly, maybe even more if we get an intermittent build failure.

AFAICT, you have resolved or worked around all other issues on the other threads?

-Alex

From: Alex Harui <ah...@adobe.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Saturday, October 20, 2018 at 11:08 PM
To: "users@royale.apache.org" <us...@royale.apache.org>
Subject: Re: compiler error

I won’t have time to look into it for another 24 hours or so, but in general, if GoogDepsWriter is blowing up, it is a problem with which SWCs are on the library-path vs external-library-path or something wrong with a SWC on the library-path not having JS files in it, or some thing like that.  By default the SWF gets built first, then the JS and the MXMLRoyalePublisher tries to gather JS files from the SWCs via GoogDepsWriter.

HTH,
-Alex

From: Serkan Taş <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Saturday, October 20, 2018 at 12:46 AM
To: "users@royale.apache.org" <us...@royale.apache.org>
Subject: compiler error

Hi,

I created a sample and simple project for test purposes.  When i compile the project i get en error :

Internal error: java.lang.NullPointerException org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:317)org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:396)
org.apache.royale.compiler.internal.graph.GoogDepsWriter.sort(GoogDepsWriter.java:285)org.apache.royale.compiler.internal.graph.GoogDepsWriter.getListOfFiles(GoogDepsWriter.java:101)
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:421)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:403)
org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:250)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:207)
org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:365)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:300)
org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:259)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:241)

Although i have an error, Main.swf file is generated.

Here is the repo on github. You may find the build.bat file for compiling.

Thanks
Serkan






Re: compiler error

Posted by Alex Harui <ah...@adobe.com>.
I won’t have time to look into it for another 24 hours or so, but in general, if GoogDepsWriter is blowing up, it is a problem with which SWCs are on the library-path vs external-library-path or something wrong with a SWC on the library-path not having JS files in it, or some thing like that.  By default the SWF gets built first, then the JS and the MXMLRoyalePublisher tries to gather JS files from the SWCs via GoogDepsWriter.

HTH,
-Alex

From: Serkan Taş <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Saturday, October 20, 2018 at 12:46 AM
To: "users@royale.apache.org" <us...@royale.apache.org>
Subject: compiler error

Hi,

I created a sample and simple project for test purposes.  When i compile the project i get en error :

Internal error: java.lang.NullPointerException org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:317)org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:396)
org.apache.royale.compiler.internal.graph.GoogDepsWriter.sort(GoogDepsWriter.java:285)org.apache.royale.compiler.internal.graph.GoogDepsWriter.getListOfFiles(GoogDepsWriter.java:101)
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:421)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:403)
org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:250)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:207)
org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:365)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:300)
org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:259)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:241)

Although i have an error, Main.swf file is generated.

Here is the repo on github. You may find the build.bat file for compiling.

Thanks
Serkan





Re: compiler error

Posted by Serkan Taş <se...@likyateknoloji.com>.
Repo : https://github.com/nihavend/royale-testing

20.10.2018 10:46 tarihinde Serkan Taş yazdı:
> Hi,
>
> I created a sample and simple project for test purposes.  When i 
> compile the project i get en error :
>
> Internal error: java.lang.NullPointerException 
> org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:317)org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:396)
> org.apache.royale.compiler.internal.graph.GoogDepsWriter.sort(GoogDepsWriter.java:285)org.apache.royale.compiler.internal.graph.GoogDepsWriter.getListOfFiles(GoogDepsWriter.java:101)
> org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:421)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:403)
> org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:250)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:207)
> org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:365)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:300)
> org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:259)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:241)
>
> Although i have an error, Main.swf file is generated.
>
> Here is the repo on github. You may find the build.bat file for compiling.
>
> Thanks
> Serkan
>
>
>