tenspo / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Gadgets API, get "The module must not have multiple fragments" error #432

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:

gwt-gadgets-1.2.0.zip

Detailed description:

While compiling I receive such error:
...
    [java]    Compile of permutations succeeded
     [java] Linking into C:\[...some path...]\gmcgadget.
     [java]    Invoking Linker Google Gadget
     [java]       [ERROR] The module must not have multiple fragments when using the Google Gadget Linker.
     [java]       [ERROR] Failed to link
     [java] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
     [java]     at com.google.gwt.core.linker.XSLinker.doEmitCompilation(XSLinker.java:49)
     [java]     at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.link(SelectionScriptLinker.java:108)
     [java]     at com.google.gwt.gadgets.linker.GadgetLinker.link(GadgetLinker.java:114)
     [java]     at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLink(StandardLinkerContext.java:408)
     [java]     at com.google.gwt.dev.Link.doLink(Link.java:194)
     [java]     at com.google.gwt.dev.Link.link(Link.java:151)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:228)
     [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) 

Is it error in library or I am doing something in wrong way? 

Could you please explain to me the most probable causes of such error and how 
to avoid them? I could not  find any information about subject.

Original issue reported on code.google.com by akolchin on 2 Dec 2010 at 1:35

GoogleCodeExporter commented 9 years ago
Are you using runAsync()  in your app?   I think this message is trying to tell 
you that is not supported.   There is a compiler flag -XdisableRunAsync that 
might allow the gadget to compile. 

Original comment by zundel@google.com on 2 Dec 2010 at 2:18

GoogleCodeExporter commented 9 years ago
Thank you for your answer.

>> Are you using runAsync()  in your app?  
Maybe somewhere in others code. I am not sure.

>>  There is a compiler flag -XdisableRunAsync that might allow the gadget to 
compile.

Could you please explain two moments:
1. What exactly this flag mean? If I use it can I use  runAsync()  in this case?

2. I have to compile several modules in one project, how can I use this flag to 
affect only to one particular module (gadget), and not to the others?

Original comment by akolchin on 2 Dec 2010 at 2:50

GoogleCodeExporter commented 9 years ago
I just looked at the latest GWT source code and the XSLinker that the Gadget 
linker inherits now appears to support runAsync(), so you might try compiling 
with a more recent version of GWT. 

Here's the detail of the change which was made 2 years ago:

http://code.google.com/p/google-web-toolkit/source/detail?r=3901&path=/trunk/dev
/core/src/com/google/gwt/core/linker/XSLinker.java

Original comment by zundel@google.com on 2 Dec 2010 at 3:09

GoogleCodeExporter commented 9 years ago
Yes, it seems really works with GWT 2.1.0 but not with 2.0.4

Original comment by akolchin on 8 Dec 2010 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 28 Oct 2011 at 4:24