Ok this error has nothing to do with GWT but with Errai. They iterate
through the current working directory (CWD) to find the output folder to
generate the server side marshalling classes. If the CWD has symbolic links
this will apparently result in a NullPointerException. I have the strong
feeling this is a bug (it should have a nullpointercheck).

On Thu, Oct 16, 2014 at 2:54 PM, Ümit Seren <[email protected]> wrote:

> Hmm that's weird. I remember that when I tried to compile the same app
> with 2.7.0-SNAPSHOT (gwt-maven plugin) two weeks ago it worked fine with
> maven 3.0.5.
>
> However I have now a different issue:
>
> I have used your gwt archetype (
> https://github.com/tbroyer/gwt-maven-archetypes)  and I have three
> modules (app-client, app-server and app-shared) inside a parent pom project
> (app) .
>
> When I run "mvn clean install" in app-client everything works fine (gwt
> compiles, finishes).
> However when I run "mvn clean install" in parent "app" pom projet I get
> following error:
>
> [INFO]    Computing all possible rebind results for
> 'org.jboss.errai.marshalling.client.api.MarshallerFactory'
> [INFO]       Rebinding
> org.jboss.errai.marshalling.client.api.MarshallerFactory
> [INFO]          Invoking generator
> org.jboss.errai.marshalling.rebind.MarshallersGenerator
> [INFO]             Generating Marshallers Bootstrapper...
> [ERROR] java.util.concurrent.ExecutionException:
> java.lang.NullPointerException
> [ERROR]         at
> java.util.concurrent.FutureTask.report(FutureTask.java:122)
> [ERROR]         at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> [ERROR]         at
> org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)
> [ERROR]         at
> org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)
> [ERROR]         at
> org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:188)
> [ERROR]         at
> org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:226)
> [ERROR]         at
> com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
>
> [INFO] Caused by: java.lang.NullPointerException
> [INFO]  at
> org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:453)
> [INFO]  at
> org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
> [INFO]  at
> org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
> [INFO]  at
> org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
> [INFO]  at
> org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
> [INFO]  at
> org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
> [INFO]  at
> org.jboss.errai.codegen.util.ClassChangeUtil.findAllMatching(ClassChangeUtil.java:446)
>
>
>
>
> On Thu, Oct 16, 2014 at 2:29 PM, Thomas Broyer <[email protected]> wrote:
>
>> This is strange, because I tested the samples with Maven 3.0.5 (this is
>> still my default version) and didn't have this problem :-/
>>
>> On Thu, Oct 16, 2014 at 2:11 PM, Ümit Seren <[email protected]>
>> wrote:
>>
>>> no it didn't help unfortunately.
>>> But I upgraded to maven 3.2.1 and the error went away.
>>>
>>>
>>>
>>>
>>> On Thu, Oct 16, 2014 at 1:57 PM, Thomas Broyer <[email protected]>
>>> wrote:
>>>
>>>> gwt-maven-plugin snapshots are deployed to codehaus, but the plugin
>>>> depends on GWT snapshots which are at sonatype, and Maven thus uses the
>>>> pluginRepositories to download them as dependencies of the gwt-maven-plugin
>>>> (it doesn't look like it uses the repositories listed in gwt-maven-plugin's
>>>> own POM).
>>>>
>>>> Does it change anything if you declare google-snapshots as a
>>>> pluginRepository as well?
>>>>
>>>> On Thu, Oct 16, 2014 at 1:42 PM, Ümit Seren <[email protected]>
>>>> wrote:
>>>>
>>>>> I have the same issue with maven 3.0.5
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (gwt-compile) on
>>>>> project genophenbrowser-client: Failed to resolve artifact: Some problems
>>>>> were encountered while processing the POMs:
>>>>> [ERROR] [ERROR] Non-resolvable import POM: Could not find artifact
>>>>> com.google.web.bindery:requestfactory:pom:2.7.0-SNAPSHOT in
>>>>> sonatype-nexus-snapshots (
>>>>> https://oss.sonatype.org/content/repositories/snapshots) @
>>>>> com.google.gwt:gwt:2.7.0-SNAPSHOT,
>>>>> /home/GMI/uemit.seren/.m2/repository/com/google/gwt/gwt/2.7.0-SNAPSHOT/gwt-2.7.0-SNAPSHOT.pom,
>>>>> line 50, column 25
>>>>> [ERROR] [ERROR] Non-resolvable import POM: Could not find artifact
>>>>> org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT,
>>>>> /home/GMI/uemit.seren/.m2/repository/com/google/gwt/gwt/2.7.0-SNAPSHOT/gwt-2.7.0-SNAPSHOT.pom,
>>>>> line 74, column 25
>>>>> [ERROR] for project
>>>>> [ERROR] -> [Help 1]
>>>>> [ERROR]
>>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with
>>>>> the -e switch.
>>>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>>>> [ERROR]
>>>>> [ERROR] For more information about the errors and possible solutions,
>>>>> please read the following articles:
>>>>> [ERROR] [Help 1]
>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>>>> uemit.seren@gmi-lws06:~/eclipse_workspaces/intellij/genophenbrowser/genophenbrowser-client$
>>>>> mvn --version
>>>>> Apache Maven 3.0.5
>>>>> Maven home: /usr/share/maven
>>>>> Java version: 1.7.0_72, vendor: Oracle Corporation
>>>>> Java home: /usr/lib/jvm/java-7-oracle/jre
>>>>> Default locale: de_DE, platform encoding: UTF-8
>>>>> OS name: "linux", version: "3.13.0-37-generic", arch: "amd64", family:
>>>>> "unix"
>>>>>
>>>>>
>>>>> This is how the repositories look like
>>>>>
>>>>> <pluginRepositories>
>>>>>         <pluginRepository>
>>>>>             <id>codehaus-snapshots</id>
>>>>>             <url>
>>>>> https://nexus.codehaus.org/content/groups/snapshots-group/</url>
>>>>>             <releases>
>>>>>                 <enabled>false</enabled>
>>>>>             </releases>
>>>>>             <snapshots>
>>>>>                 <enabled>true</enabled>
>>>>>             </snapshots>
>>>>>         </pluginRepository>
>>>>>     </pluginRepositories>
>>>>>
>>>>>
>>>>> <repositories>
>>>>> <repository>
>>>>>             <id>google-snapshots</id>
>>>>>             <url>
>>>>> https://oss.sonatype.org/content/repositories/google-snapshots/</url>
>>>>>             <snapshots>
>>>>>                 <enabled>true</enabled>
>>>>>             </snapshots>
>>>>>             <releases>
>>>>>                 <enabled>false</enabled>
>>>>>             </releases>
>>>>>         </repository>
>>>>>     </repositories>
>>>>>
>>>>>
>>>>> When I checked the
>>>>> https://gwt.googlesource.com/gwt/+/master/samples/dynatablerf/pom.xml
>>>>> sample it had also the  <url>
>>>>> https://oss.sonatype.org/content/repositories/google-snapshots/</url>
>>>>> as a pluginRepository ?
>>>>>
>>>>> Where do you deploy the latest gwt-maven snapshot to sonatype or
>>>>> codehaus ?
>>>>>
>>>>>
>>>>>
>>>>> On Thursday, October 16, 2014 11:38:27 AM UTC+2, Thomas Broyer wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Oct 16, 2014 at 11:10 AM, Drew Spencer <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> I think I'm getting two errors relating to the bugs in the POM that
>>>>>>> Thomas mentions above:
>>>>>>>
>>>>>>> [ERROR] Failed to execute goal 
>>>>>>> org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile
>>>>>>> (default-cli) on project UsavAppV7: Failed to resolve artifact: Some
>>>>>>> problems were encountered while processing the POMs:
>>>>>>> [ERROR] [ERROR] Non-resolvable import POM: Failure to find
>>>>>>> com.google.web.bindery:requestfactory:pom:2.7.0-SNAPSHOT in
>>>>>>> https://oss.sonatype.org/content/repositories/snapshots was cached
>>>>>>> in the local repository, resolution will not be reattempted until the
>>>>>>> update interval of sonatype-nexus-snapshots has elapsed or updates are
>>>>>>> forced @ com.google.gwt:gwt:2.7.0-SNAPSHOT,
>>>>>>> C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-
>>>>>>> SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 50, column 25
>>>>>>> [ERROR] [ERROR] Non-resolvable import POM: Could not find artifact
>>>>>>> org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT,
>>>>>>> C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-
>>>>>>> SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 74, column 25
>>>>>>>
>>>>>>> I have tried adding gwt-dev, gwt-codeserver, and the asm dependency
>>>>>>> but still getting it. Also tried forcing an update of snapshots/releases
>>>>>>> but no change.
>>>>>>>
>>>>>>> I'm still a bit green when it comes to maven.
>>>>>>>
>>>>>>
>>>>>>
>>>>>> Which version of Maven are you using? Also, have you configured the
>>>>>> google-snapshots both as a repository *and* pluginRepository? (I
>>>>>> think this is needed for the plugin to resolve its dependencies)
>>>>>>
>>>>>> I was fighting yesterday with a discrepancy between Maven 3.0.5 and
>>>>>> 3.1 / 3.2 with the maven-invoker-plugin (used to run tests of the
>>>>>> gwt-maven-plugin): things passed with 3.1 (on BuildHive) and 3.2 (on
>>>>>> Travis-CI) but failed on my machine (3.0.5). Trying with 3.2.3 on my
>>>>>> machine, things worked. The error was exactly the same wrt
>>>>>> com.google.web.bindery:requestfactory.
>>>>>>
>>>>>> The error about ASM is strange though, it's in Central so it should
>>>>>> Just Work™, unless you have some repository/mirror configuration getting 
>>>>>> in
>>>>>> the way?
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thomas Broyer
>>>>>> /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>
>>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "Google Web Toolkit" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe
>>>>> .
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> [email protected].
>>>>> To post to this group, send email to
>>>>> [email protected].
>>>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thomas Broyer
>>>> /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "Google Web Toolkit" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> To post to this group, send email to
>>>> [email protected].
>>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Google Web Toolkit" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To post to this group, send email to [email protected]
>>> .
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Thomas Broyer
>> /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Google Web Toolkit" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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

Reply via email to