Yeah. It seems that CompilePermsServer doesn't have a ModuleDef instance,
so it's not populating compilerContext.getModule(), which laters causes
compilerContext.getModule().isMonolithic() to fail.

I'm working on a fix.


On Wed, Jan 22, 2014 at 11:26 AM, Andrés Testi <[email protected]>wrote:

> Hi John:
>
> I'm running ant without explicit target ("build" by default). No explicit
> flags. I got the same exception in two isolated environments (ubuntu 13.10
> with OpenJDK, and Windows 8 with Oracle JDK). The exception is throwed when
> the script tries to compile the DynaTable sample.
>  CompilerContext.getModule() seems to return null here:
> https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/dev/jjs/UnifiedAst.java#L137
>
> - Andrés Testi
>
> El miércoles, 22 de enero de 2014 15:45:35 UTC-3, John Stalcup escribió:
>>
>> Yeah that does look to be related to my commit.
>>
>> Which compiler entry point are you launching and with what flags? I
>> updated Compiler.java, CompilePerms.java, etc etc to property setup the
>> module property of the compilerContext object, but it looks like I missed
>> somewhere.
>>
>> John
>>
>>
>> On Wed, Jan 22, 2014 at 4:07 AM, Honza Rameš <[email protected]> wrote:
>>
>>> Hello everyone,
>>> I'm using master for my projects and after I updated to commit 5a972863
>>> (Added monolithic/separate branching to JavaToJavaScriptCompiler)  suddenly
>>> I wasn't able to compile any of my GWT projects (in Eclipse, see error
>>> message bellow). I'm using jdk_1.7 and older commit (8ef35362) works just
>>> fine. Did any of you encountered build breakage recently, is there some
>>> workaround you know of?
>>>
>>> DevMode works OK with this commit. I have Eclipse 3.7 and GPE 3.5.1.
>>> While compiling simple project I noticed that some of the permutations
>>> compile just fine. Could this be caused by IE6 permutation, I do have some
>>> deferred binding rules in my module targeting the IE6.
>>>
>>> Error messge:
>>>          [ERROR] Compile failed
>>>          java.lang.NullPointerException
>>>              at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(
>>> UnifiedAst.java:137)
>>>              at com.google.gwt.dev.CompilePerms.compile(
>>> CompilePerms.java:196)
>>>              at com.google.gwt.dev.CompilePermsServer.
>>> compilePermutation(CompilePermsServer.java:307)
>>>              at com.google.gwt.dev.CompilePermsServer.run(
>>> CompilePermsServer.java:274)
>>>              at com.google.gwt.dev.CompilePermsServer.main(
>>> CompilePermsServer.java:237)
>>>       [ERROR] Error from external worker
>>> java.lang.NullPointerException
>>>     at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(
>>> UnifiedAst.java:137)
>>>     at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:196)
>>>     at com.google.gwt.dev.CompilePermsServer.compilePermutation(
>>> CompilePermsServer.java:307)
>>>     at com.google.gwt.dev.CompilePermsServer.run(
>>> CompilePermsServer.java:274)
>>>     at com.google.gwt.dev.CompilePermsServer.main(
>>> CompilePermsServer.java:237)
>>>       [ERROR] Unrecoverable exception, shutting down
>>> com.google.gwt.core.ext.UnableToCompleteException: (see previous log
>>> entries)
>>>     at com.google.gwt.dev.ExternalPermutationWorkerFacto
>>> ry$ExternalPermutationWorker.compile(ExternalPermutationWorkerFacto
>>> ry.java:156)
>>>     at com.google.gwt.dev.PermutationWorkerFactory$
>>> Manager$WorkerThread.run(PermutationWorkerFactory.java:73)
>>>     at java.lang.Thread.run(Thread.java:744)
>>>
>>> Any help would be appreciated.
>>>
>>> Regards
>>>
>>> Honza Rames
>>>
>>> --
>>> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Contributors" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected]
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
> ---
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to