Problems with rebinding of MarshallerFactory in current snapshot build
almac Dec 2, 2011 2:31 PMI'm trying to use the current snapshot-2.0 (build #193). [We're still using 1.3.0-CR1 for our product, because it's the last release that doesn't suffer from bug #150, which has only been fixed in trunk. So, I figure I'd try trunk, since 1.3.0-CR1 has other bugs...]
I grabbed the errai-marshaller and errai-codegen jars from that build independently, since they weren't packed with the distribution zip file.
When I try to build our product, I get a slew of errors of the form (actual names anonymized to protect our IP, yadda, yadda):
[java] 2011-12-02 11:13:24,992 INFO [org.jboss.errai.bus.rebind.RpcProxyLoaderGenerator] nothing has changed. using cached rpc proxy loader class. [java] [ERROR] Errors in 'generated://8F011AF8194ADFC2CFCE2878118BCFF7/org/jboss/errai/marshalling/client/api/MarshallerFactoryImpl.java' [java] [ERROR] Line 31: The import myproject.shared.Aaa.Nested collides with another import statement [java] [ERROR] Line 33: The import myproject.shared.Bbb.Nested collides with another import statement [java] [ERROR] Line 34: The import myproject.shared.shadow.Ccc.NestedTwo collides with another import statement [java] [ERROR] Line 35: The import myproject.shared.Ddd.Nested collides with another import statement [java] [ERROR] Line 258: The method setDdd(Ddd.Nested) in the type Fff is not applicable for the arguments (Eee.Nested) [java] [ERROR] Line 261: The method setGgg(Ddd.Nested) in the type Fff is not applicable for the arguments (Eee.Nested) [java] [ERROR] Line 264: The method setAaa(Aaa.Nested) in the type Fff is not applicable for the arguments (Eee.Nested) [java] [ERROR] Line 282: The method marshall(Eee.Nested, MarshallingSession) in the type Marshaller is not applicable for the arguments (Ddd.Nested, MarshallingSession) [java] [ERROR] Line 282: The method marshall(Eee.Nested, MarshallingSession) in the type Marshaller is not applicable for the arguments (Ddd.Nested, MarshallingSession) [java] [ERROR] Line 282: The method marshall(Eee.Nested, MarshallingSession) in the type Marshaller is not applicable for the arguments (Aaa.Nested, MarshallingSession) [java] [ERROR] Line 834: The method setDdd(Ddd.Nested) in the type Ccc is not applicable for the arguments (Eee.Nested) [java] [ERROR] Line 855: The method marshall(Eee.Nested, MarshallingSession) in the type Marshaller is not applicable for the arguments (Ddd.Nested, MarshallingSession) [java] [ERROR] Line 1025: The method setEee(Eee.Nested) is undefined for the type Eee.Nested [java] [ERROR] Line 1043: The method getEee() is undefined for the type Eee.Nested [java] [ERROR] Line 1122: The method setFoo(Integer) is undefined for the type Eee.Nested [java] [ERROR] Line 1125: The method setBar(Integer) is undefined for the type Eee.Nested [java] [ERROR] Line 1143: The method getFoo() is undefined for the type Eee.Nested [java] [ERROR] Line 1143: The method getBar() is undefined for the type Eee.Nested [java] [ERROR] Line 1372: The method setBaz(List) is undefined for the type Fff.NestedTwo [java] [ERROR] Line 1375: The method setBuz(List) is undefined for the type Fff.NestedTwo [java] [ERROR] Line 1393: The method getBaz() is undefined for the type Fff.NestedTwo [java] [ERROR] Line 1393: The method getBuz() is undefined for the type Fff.NestedTwo
I figure something is messed up in a code-generator somewhere --- perhaps another bug in dealing with (static) nested classes?
For future reference, what's the best way to debug stuff like this? Is there a way to get a look at the generated code?