Wednesday, March 22, 2017

Re: Strange compilation errors on linux platform

Same identical issue, build works on windows, but fails with all sorts of strange compiler errors on RHEL6

Tried forcing encoding via <project.build.sourceEncoding>cp1252</project.build.sourceEncoding>

Tried via export JAVA_TOOL_OPTIONS=-Dfile.encoding=iso-8859-1

Same result, i guess u can fix it by not using gwt...

On Monday, February 3, 2014 at 10:43:40 AM UTC-5, Sai Siddarth Muralidharan wrote:
I am running into the same issue now. Any idea how to fix this?

On Friday, October 15, 2010 10:44:59 AM UTC-4, bananos wrote:
We have a pretty heterogeneous team which works with GWT on Mac,
Windows & linux machines.
One of our latest commit crashed the automatic build which runs on
linux box.
The problem is that GWT java source generator fails with
NullPointerException at different places with the same configuration
inputs, therefore it is very hard to reproduce bug or nail it down.

The only regularity we've found is that it fails at some point when
trying to generate client bundles from PNG files.
Here are few examples:

Case #1

    [java]    Scanning for additional dependencies: file:/home/bear-z/
work/client/Application/src/com/project/client/common/bundles/
CommonResources.java
     [java]       Computing all possible rebind results for
'com.project.client.common.bundles.CommonResources'
     [java]          Rebinding
com.project.client.common.bundles.CommonResources
     [java]             Invoking
com.google.gwt.dev.javac.StandardGeneratorContext@72af7016
     [java]                [ERROR] Generator
'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator'
threw threw an exception while rebinding
'com.project.client.common.bundles.CommonResources'
     [java] java.lang.NullPointerException
     [java]     at
com.google.gwt.resources.rebind.context.InlineResourceContext.deploy(InlineResourceContext.java:
40)
     [java]     at
com.google.gwt.resources.rebind.context.AbstractResourceContext.deploy(AbstractResourceContext.java:
97)
     [java]     at
com.google.gwt.resources.rg.ImageResourceGenerator.maybeDeploy(ImageResourceGenerator.java:
369)
     [java]     at
com.google.gwt.resources.rg.ImageResourceGenerator.createFields(ImageResourceGenerator.java:
176)
     [java]     at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.createFieldsAndAssignments(AbstractClientBundleGenerator.java:
328)
     [java]     at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.createFieldsAndAssignments(AbstractClientBundleGenerator.java:
385)
     [java]     at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate(AbstractClientBundleGenerator.java:
245)
     [java]     at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
418)
     [java]     at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
38)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:108)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:54)
     [java]     at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
154)
     [java]     at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
143)
     [java]     at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
317)
     [java]     at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
95)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
     [java]     at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.access$200(AbstractCompiler.java:109)
     [java]     at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
     [java]     at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
112)
     [java]     at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
47)
     [java]     at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
430)
     [java]     at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
     [java]     at
com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
     [java]     at
com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:201)
     [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:
152)
     [java]     at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
     [java]     at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
     [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:159)

Fails at
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator



Case #2
  [java]    [ERROR] Errors in 'file:/home/bear-z/work/client/
Application/src/com/project/client/common/bundles/
CommonResources.java'
     [java]       [ERROR] Line 13:  Failed to resolve
'com.project.client.common.bundles.CommonResources' via deferred
binding
     [java]    Scanning for additional dependencies: file:/home/bear-z/
work/client/Application/src/com/project/client/contacts/bundles/
ContactsResources.java
     [java]       Computing all possible rebind results for
'com.project.client.contacts.bundles.ContactsResources'
     [java]          Rebinding
com.project.client.contacts.bundles.ContactsResources
     [java]             Invoking
com.google.gwt.dev.javac.StandardGeneratorContext@72af7016
     [java]                [ERROR] Generator
'com.google.gwt.resources.rebind.context.StaticClientBundleGenerator'
threw threw an exception while rebinding
'com.project.client.contacts.bundles.ContactsResources'
     [java] java.lang.NullPointerException
     [java]     at
com.google.gwt.dev.util.Util.computeStrongName(Util.java:166)
     [java]     at
com.google.gwt.dev.util.Util.computeStrongName(Util.java:141)
     [java]     at
com.google.gwt.resources.rg.ImageBundleBuilder.assimilate(ImageBundleBuilder.java:
627)
     [java]     at
com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java:
235)
     [java]     at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:
556)
     [java]     at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:
582)
     [java]     at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate(AbstractClientBundleGenerator.java:
204)
     [java]     at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
418)
     [java]     at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
38)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:108)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:54)
     [java]     at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
154)
     [java]     at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
143)
     [java]     at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
317)
     [java]     at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
95)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
     [java]     at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.access$200(AbstractCompiler.java:109)
     [java]     at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
     [java]     at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
112)
     [java]     at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
47)
     [java]     at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
430)
     [java]     at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
     [java]     at
com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
     [java]     at
com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:201)
     [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:
152)
     [java]     at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
     [java]     at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
     [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:159)

Fails at
com.google.gwt.resources.rebind.context.StaticClientBundleGenerator

We are using GWT 2.0.4  and tried to compile on
  a) fedora 13 x86_64  / Both sun Java 1.6.0_16 & java-1.6.0-
openjdk-1.6.0.0-42.b18.fc13.x86_64
  b) Ubuntu 10.04  x86 / Both sun Java 1.6.0_16 & OpenJDK Server VM
(16.0-b13) for linux-x86


I believe that problem is somewhere deep inside Java/GWT internals,
related to low level memory/threads handling because of following
  1) it compiles like a charm on Windows & Mac boxes
  2) it is not regular, i.e.  the same code fails at different places
during compilation


Is there anyone who have experienced something similar on linux? I
would really appreciate any help

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment