-
1. Re: cdi-example issue
ralf.sigmund Jan 3, 2011 9:08 AM (in response to garcimouche)Hi Franck,
got the same issue here. It was due to an old timstamped errai-common.jar from my local .m2 folder.
Apparently maven-2 builds replace SNAPSHOT with an timestamp and maven-3 stopped doing this.
So to fix this:
- delete ~/.m2/repository/org/jboss/errai on your developer machine
- mvn clean install on a fresh https://github.com/errai/errai checkout
- The decompiled errai-common.jar CollectionToList class should be the same as https://github.com/errai/errai/raw/ecd7e0bc82e167528f09388b49e67a6f90608165/errai-common/src/main/java/org/jboss/errai/common/client/types/handlers/collections/CollectionToList.java it was much longer in the stale artefact..
- build and deploy the cdi-example again
Best Regards
Ralf
-
2. Re: cdi-example issue
garcimouche Jan 4, 2011 8:41 AM (in response to ralf.sigmund)Ralf, thanks for the explanation.As an alternative, I was able to make it work in checking out tag v1.1-beta2 that points to errai v1.1-Final.
-
3. cdi-example issue
heiko.braun Feb 8, 2011 8:09 AM (in response to garcimouche)Yes, working with 1.1-Final is a good idea at the moment. However, I'll take a look at the serialization issue:
[ERROR] 2010-12-21 12:08:23,852 [ERROR] receiver 'ClientBus' threw an exception<br/>Additional details:<br/> <table><thead style='font-weight:bold;'><tr><td>Field</td><td>Value</td></tr></thead><tbody><tr><td>PriorityProcessing</td><td>1</td></tr><tr><td>CommandType</td><td>RemoteSubscribe</td></tr><tr><td>SubjectsList</td><td>[BatchProcessor, calculator, cdi.event:Dispatcher, ServerEchoService, org.jboss.errai.cdi.client.scopes.Categories:RPC, SMTPService, org.jboss.errai.cdi.client.rpc.AccountManager:RPC, AuthorizationService, AuthenticationService, wizard, ServerBus]</td></tr><tr><td>ToSubject</td><td>ClientBus</td></tr></tbody></table>
[ERROR] java.lang.ClassCastException:
[ERROR] java.lang.String cannot be cast to java.util.Collection
[ERROR] at org.jboss.errai.common.client.types.handlers.collections.CollectionToList.getConverted(CollectionToList.java:1)
[ERROR] at org.jboss.errai.common.client.types.handlers.collections.CollectionToList.getConverted(CollectionToList.java:39)
[ERROR] at org.jboss.errai.common.client.types.handlers.collections.CollectionToList.getConverted(CollectionToList.java:1)
[ERROR] at org.jboss.errai.common.client.types.TypeHandlerFactory.convert(Typ
-
4. cdi-example issue
heiko.braun Feb 8, 2011 8:28 AM (in response to heiko.braun)This problem is fixed in master. However to prevent these sort of issues, make sure to run a clean build that updates all the snapshot dependencies:
mvn -U clean install