Which JDK are you using? (OpenJDK? Oracle? 6? 7?)
Please file an issue with as much information as possible, and if you can
make a small project that reproduces the issue it'd be even better.
On Tuesday, December 11, 2012 9:15:33 AM UTC+1, SiJa wrote:
>
> It doesn´t matter which GWT version I use. It´s the same behaviour in
> version 2.4.0 and 2.5.0. It happens during "mvn clean compile" and "mvn
> compile". Before I used "mvn clean compile" I deleted every generated
> source code and eclipse automatically build was disabled. The
> ValidationTool runs during maven-compiler-plugin. That´s the entry in
> pom-file.
>
> <plugin>
>> <artifactId>maven-compiler-plugin</artifactId>
>> <version>2.5.1</version>
>> <configuration>
>> <source>1.6</source>
>> <target>1.6</target>
>> </configuration>
>> <dependencies>
>> <dependency>
>> <groupId>com.google.web.bindery</groupId>
>> <artifactId>requestfactory-apt</artifactId>
>> <version>${gwtVersion}</version>
>> </dependency>
>> </dependencies>
>> </plugin>
>>
>
> Am Montag, 10. Dezember 2012 18:38:24 UTC+1 schrieb Thomas Broyer:
>>
>> How are you running the ValidationTool? (I suppose annotation processing
>> during maven-compiler-plugin) Does it happen during "mvn clean compile" or
>> only "mvn compile"?
>> Feel free to file an issue after you double-check it's not an
>> environmental issue (e.g. some classes compiled by Eclipse and others by
>> javac, etc.)
>> Also, is this GWT 2.4.0 or 2.5.0? Try requestfactory-apt:2.5.0 before
>> reporting an issue.
>>
>> On Monday, December 10, 2012 5:41:37 PM UTC+1, SiJa wrote:
>>>
>>> Hallo,
>>>
>>> there is a duplicated entry in DeobfuscatorBuilder class when I compile
>>> the application with maven and the lists with the proxies for the
>>> duplicated bean are different. But if I compile the application with
>>> eclipse-compiler, there is no duplicated entry and nothing went wrong (only
>>> the first entry of the list above for OPAssertionWithInformation).
>>>
>>> withOperation(new OperationKey("KUn4aunHWrVyneYsWoPuvNECTaM="),
>>>> new OperationData.Builder()
>>>>
>>>> .withClientMethodDescriptor("(Lxxx/gui/shared/beans/rf/proxies/filtering/FilterLoadConfigProxy;Lxxx/gui/shared/beans/rf/proxies/paging/PagingLoadConfigProxy;)Lcom/google/web/bindery/requestfactory/shared/Request;")
>>>>
>>>> .withDomainMethodDescriptor("(Lxxx/editor/loadconfig/FilterLoadConfig;Lxxx/editor/loadconfig/PagingLoadConfig;)Lxxx/editor/loadconfig/PagingLoadResultOPAssertion;")
>>>> .withMethodName("loadObjectPropertyAssertions")
>>>>
>>>> .withRequestContext("xxx.gui.shared.beans.rf.WebInterfaceRequestFactory$PropertyAssertionRequest")
>>>> .build());
>>>> ...
>>>> withClientToDomainMappings("xxx.editor.model.OPAssertionWithInformation",
>>>> Arrays.asList("xxx.gui.shared.beans.rf.proxies.model.OPAssertionWithInfEntityProxy",
>>>>
>>>> "xxx.gui.shared.beans.rf.proxies.model.OPAssertionWithMinInformationProxy"));
>>>> ...
>>>> withClientToDomainMappings("xxx.editor.model.OPAssertionWithInformation",
>>>> Arrays.asList("xxx.gui.shared.beans.rf.proxies.model.OPAssertionWithInfEntityProxy"));
>>>>
>>> ...
>>>>
>>>
>>> The first entry for OPAssertionWithInformation is the right one because
>>> my proxies look like this
>>>
>>> @ProxyFor(value = OPAssertionWithInformation.class, locator =
>>>> OPAssertionLocator.class)
>>>> public interface OPAssertionWithInfEntityProxy extends EntityProxy {
>>>> ...
>>>> }
>>>>
>>>
>>> @ProxyFor(OPAssertionWithInformation.class)
>>>> public interface OPAssertionWithMinInformationProxy extends ValueProxy {
>>>> ...
>>>> }
>>>>
>>>
>>> I need both proxies.
>>>
>>> Now if I call the method "loadObjectPropertyAssertions" with param
>>> OPAssertionWithMinInformationProxy, I get an exception that "The domain
>>> type OPAssertionWithInformation cannot be sent to the client", because the
>>> second entry in DeobfuscatorBuilder overrides the first entry and so
>>> OPAssertionWithMinInformationProxy cannot be found.
>>>
>>> I´ve been searching for a couple of days but I don´t understand why the
>>> result of eclipse and maven compile are different and why maven compile
>>> produces this duplicated entry. Can anybody help me?
>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/trRQ9ugP-Y4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.