compiler error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

compiler error

Serkan Taş
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



Reply | Threaded
Open this post in threaded view
|

Re: compiler error

Serkan Taş
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




Reply | Threaded
Open this post in threaded view
|

Re: compiler error

Alex Harui-2
In reply to this post by Serkan Taş

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ş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Saturday, October 20, 2018 at 12:46 AM
To: "[hidden email]" <[hidden email]>
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




Reply | Threaded
Open this post in threaded view
|

Re: compiler error

Alex Harui-2

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Saturday, October 20, 2018 at 11:08 PM
To: "[hidden email]" <[hidden email]>
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ş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Saturday, October 20, 2018 at 12:46 AM
To: "[hidden email]" <[hidden email]>
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