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\royalelogin\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,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient, -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\royalelogin\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)com.google.javascript.jscomp.Compiler.compile(Compiler.java:751)org.apache.royale.compiler.utils.JSClosureCompilerWrapper.compile(JSClosureCompilerWrapper.java:184)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:603)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:447)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:264)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:221)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:363)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:298)org.apache.royale.compiler.clients.MXMLJSC.execute(MXMLJSC.java:228)org.apache.royale.maven.BaseMojo.execute(BaseMojo.java:383)org.apache.royale.maven.CompileAppMojo.execute(CompileAppMojo.java:112)org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)org.apache.maven.cli.MavenCli.execute(MavenCli.java:972)org.apache.maven.cli.MavenCli.doMain(MavenCli.java:293)org.apache.maven.cli.MavenCli.main(MavenCli.java:196)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java:498)org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)org.codehaus.plexus.classworlds.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)com.google.javascript.jscomp.Compiler.compile(Compiler.java:751)org.apache.royale.compiler.utils.JSClosureCompilerWrapper.compile(JSClosureCompilerWrapper.java:184)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:603)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:447)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:264)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:221)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:363)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:298)org.apache.royale.compiler.clients.MXMLJSC.execute(MXMLJSC.java:228)org.apache.royale.maven.BaseMojo.execute(BaseMojo.java:383)org.apache.royale.maven.CompileAppMojo.execute(CompileAppMojo.java:112)org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)org.apache.maven.cli.MavenCli.doMain(MavenCli.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.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.base/java.lang.reflect.Method.invoke(Method.java:566)org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Thanks, -- Piotr Zarzycki