Hi, it worked for me too. Thanks Alex.
Hiedra

-----Mensaje original-----
De: Piotr Zarzycki <piotrzarzyck...@gmail.com> 
Enviado el: miércoles, 29 de diciembre de 2021 10:20
Para: Apache Royale Development <dev@royale.apache.org>
Asunto: Re: Build of application failing with java exception - Internal error: 
java.lang.NullPointerException

Hi Alex,

Issue has been resolved after your commit. Thank you so much!

Piotr

śr., 29 gru 2021 o 03:55 Alex Harui <aha...@adobe.com.invalid> napisał(a):

> IIRC, libraries don't get integrated with the Closure Library.  That 
> only happens at the end of an Application compile.
>
> Looks like there was a whitelist of what Maven includes from Closure 
> Library.  I updated that list.  Hopefully that will help.
>
> -Alex
>
> On 12/28/21, 2:08 PM, "Maria Jose Esteve" <mjest...@iest.com> wrote:
>
>     It's funny, the compilation of my library (made up of more than 15 
> Maven modules) compiles without errors...
>
>     Hiedra
>
>     -----Mensaje original-----
>     De: Maria Jose Esteve <mjest...@iest.com>
>     Enviado el: martes, 28 de diciembre de 2021 23:00
>     Para: dev@royale.apache.org
>     Asunto: RE: Build of application failing with java exception - 
> Internal error: java.lang.NullPointerException
>
>     Hi, I just compiled the sdk with the latest commits. Before the 
> compilation I have removed the folder you comment, Alex, royale-asjs/js/lib.
>     The SDK has been built correctly and I don't see any new errors 
> that I didn't get before today.
>     The problem, just as it happens to Piotr, is the compilation of my 
> application, now it throws the following error:
>
>     [INFO] --- royale-maven-plugin:0.9.9-SNAPSHOT:compile-app
> (default-compile-app) @ royalelogin --- [INFO] Executing MXMLC in tool 
> group Royale with args:
> [-load-config=D:\Develop_Royale\Projects\WinPlusWebSuite\royaleapp\roy
> alelogin\target\compile-app-config.xml,
> -js-default-initializers=true, -source-map=true, 
> -js-dynamic-access-unknown-members=true,
> -keep-as3-metadata+=Inject,Dispatcher,EventHandler,Event,PostConstruct
> -keep-as3-metadata+,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transien
> -keep-as3-metadata+t,
> -keep-code-with-metadata=Inject, -show-binding-warnings=false, 
> -export-public-symbols=false, -prevent-rename-protected-symbols=false,
> -prevent-rename-internal-symbols=false,
> -prevent-rename-public-static-methods=false,
> -prevent-rename-public-instance-methods=false,
> -js-output=D:\Develop_Royale\Projects\WinPlusWebSuite\royaleapp\royale
> login\target\javascript,
> -compiler.targets=JSRoyale,
> D:\Develop_Royale\Projects\WinPlusWebSuite\royaleapp\royalelogin\src\main\royale\App.mxml]
>     got null for string/typedstring.js
>     got null for string/const.js
>     got null for i18n/bidi.js
>     got null for html/trustedresourceurl.js
>     got null for fs/url.js
>     got null for html/safeurl.js
>     got null for html/safestyle.js
>     got null for html/safestylesheet.js
>     got null for html/safescript.js
>     got null for dom/tags.js
>     got null for dom/htmlelement.js
>     got null for dom/tagname.js
>     got null for html/safehtml.js
>     got null for html/uncheckedconversions.js got null for 
> html/sanitizer/tagwhitelist.js got null for 
> html/sanitizer/tagblacklist.js got null for math/size.js got null for 
> math/math.js got null for math/coordinate.js got null for 
> dom/asserts.js got null for dom/safe.js got null for 
> dom/browserfeature.js got null for dom/dom.js got null for 
> html/sanitizer/csssanitizer.js got null for 
> html/sanitizer/attributewhitelist.js
>     got null for functions/functions.js
>     got null for html/sanitizer/htmlsanitizer.js Internal error:
> java.lang.NullPointerException
> com.google.javascript.jscomp.Compiler.newTracer(Compiler.java:1256)com
> .google.javascript.jscomp.Compiler.generateReport(Compiler.java:765)co
> m.google.javascript.jscomp.Compiler.compile(Compiler.java:751)org.apac
> he.royale.compiler.utils.JSClosureCompilerWrapper.compile(JSClosureCom
> pilerWrapper.java:184)org.apache.royale.compiler.internal.codegen.mxml
> .royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:603)org.a
> pache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java
> :447)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXML
> JSCRoyale.java:264)org.apache.royale.compiler.clients.MXMLJSCRoyale.ma
> inNoExit(MXMLJSCRoyale.java:221)org.apache.royale.compiler.clients.MXM
> LJSC._mainNoExit(MXMLJSC.java:363)org.apache.royale.compiler.clients.M
> XMLJSC.mainNoExit(MXMLJSC.java:298)org.apache.royale.compiler.clients.
> MXMLJSC.execute(MXMLJSC.java:228)org.apache.royale.maven.BaseMojo.exec
> ute(BaseMojo.java:383)org.apache.royale.maven.CompileAppMojo.execute(C
> ompileAppMojo.java:112)org.apache.maven.plugin.DefaultBuildPluginManag
> er.executeMojo(DefaultBuildPluginManager.java:137)org.apache.maven.lif
> ecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)org.apache.
> maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)or
> g.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> va:148)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buil
> dProject(LifecycleModuleBuilder.java:117)org.apache.maven.lifecycle.in
> ternal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java
> :81)org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleT
> hreadedBuilder.build(SingleThreadedBuilder.java:56)org.apache.maven.li
> fecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)or
> g.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)org.apache
> .maven.DefaultMaven.doExecute(DefaultMaven.java:192)org.apache.maven.D
> efaultMaven.execute(DefaultMaven.java:105)org.apache.maven.cli.MavenCl
> i.execute(MavenCli.java:972)org.apache.maven.cli.MavenCli.doMain(Maven
> Cli.java:293)org.apache.maven.cli.MavenCli.main(MavenCli.java:196)sun.
> reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso
> rImpl.java:62)sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegati
> ngMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.ja
> va:498)org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhance
> d(Launcher.java:282)org.codehaus.plexus.classworlds.launcher.Launcher.
> launch(Launcher.java:225)org.codehaus.plexus.classworlds.launcher.Laun
> cher.mainWithExitCode(Launcher.java:406)org.codehaus.plexus.classworld
> s.launcher.Launcher.main(Launcher.java:347)
>
>     Hiedra
>
>     -----Mensaje original-----
>     De: Alex Harui <aha...@adobe.com.INVALID> Enviado el: martes, 28 
> de diciembre de 2021 21:17
>     Para: dev@royale.apache.org
>     Asunto: Re: Build of application failing with java exception - 
> Internal error: java.lang.NullPointerException
>
>     If you are building the SDK yourself, delete the 
> royale-asjs/js/lib folder and rebuild. You need for force a new 
> download and unzip of Google Closure Library.
>
>     On 12/28/21, 7:48 AM, "Piotr Zarzycki" <piotrzarzyck...@gmail.com>
> wrote:
>
>         Hi Guys,
>
>         Some of latest changes causing build failure for our application.
> We are
>         building with debug=false by Maven. Debug build is working 
> perfectly.
>         Anything familiar in this exception ?
>
>         : got null for string/typedstring.js
>         : got null for string/const.js
>         : got null for i18n/bidi.js
>         : got null for html/trustedresourceurl.js
>         : got null for fs/url.js
>         : got null for html/safeurl.js
>         : got null for html/safestyle.js
>         : got null for html/safestylesheet.js
>         : got null for html/safescript.js
>         : got null for dom/tags.js
>         : got null for dom/htmlelement.js
>         : got null for dom/tagname.js
>         : got null for html/safehtml.js
>         : got null for html/uncheckedconversions.js
>         : got null for html/sanitizer/tagwhitelist.js
>         : got null for html/sanitizer/tagblacklist.js
>         : got null for math/size.js
>         : got null for math/math.js
>         : got null for math/coordinate.js
>         : got null for dom/asserts.js
>         : got null for dom/safe.js
>         : got null for dom/browserfeature.js
>         : got null for dom/dom.js
>         : got null for html/sanitizer/csssanitizer.js
>         : got null for html/sanitizer/attributewhitelist.js
>         : got null for functions/functions.js
>         : got null for html/sanitizer/htmlsanitizer.js
>         : Internal error: java.lang.NullPointerException
>
> com.google.javascript.jscomp.Compiler.newTracer(Compiler.java:1256)com
> .google.javascript.jscomp.Compiler.generateReport(Compiler.java:765)co
> m.google.javascript.jscomp.Compiler.compile(Compiler.java:751)org.apac
> he.royale.compiler.utils.JSClosureCompilerWrapper.compile(JSClosureCom
> pilerWrapper.java:184)org.apache.royale.compiler.internal.codegen.mxml
> .royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:603)org.a
> pache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java
> :447)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXML
> JSCRoyale.java:264)org.apache.royale.compiler.clients.MXMLJSCRoyale.ma
> inNoExit(MXMLJSCRoyale.java:221)org.apache.royale.compiler.clients.MXM
> LJSC._mainNoExit(MXMLJSC.java:363)org.apache.royale.compiler.clients.M
> XMLJSC.mainNoExit(MXMLJSC.java:298)org.apache.royale.compiler.clients.
> MXMLJSC.execute(MXMLJSC.java:228)org.apache.royale.maven.BaseMojo.exec
> ute(BaseMojo.java:383)org.apache.royale.maven.CompileAppMojo.execute(C
> ompileAppMojo.java:112)org.apache.maven.plugin.DefaultBuildPluginManag
> er.executeMojo(DefaultBuildPluginManager.java:137)org.apache.maven.lif
> ecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)org.apache.
> maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)or
> g.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> va:148)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buil
> dProject(LifecycleModuleBuilder.java:117)org.apache.maven.lifecycle.in
> ternal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java
> :81)org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleT
> hreadedBuilder.build(SingleThreadedBuilder.java:56)org.apache.maven.li
> fecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)or
> g.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)org.apache
> .maven.DefaultMaven.doExecute(DefaultMaven.java:192)org.apache.maven.D
> efaultMaven.execute(DefaultMaven.java:105)org.apache.maven.cli.MavenCl
> i.execute(MavenCli.java:956)org.apache.maven.cli.MavenCli.doMain(Maven
> Cli.java:288)org.apache.maven.cli.MavenCli.main(MavenCli.java:192)java
> .base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>
> Method)java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)java.base/jdk.internal.reflect.Delega
> tingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)jav
> a.base/java.lang.reflect.Method.invoke(Method.java:566)org.codehaus.pl
> exus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)or
> g.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2
> 29)org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
> Launcher.java:415)org.codehaus.plexus.classworlds.launcher.Launcher.ma
> in(Launcher.java:356)
>
>         Thanks,
>         --
>
>         Piotr Zarzycki
>
>
>

-- 

Piotr Zarzycki

Reply via email to