-
1. Re: Value found for In attribute has the wrong type
norman.richards Oct 28, 2005 12:29 PM (in response to marius.oancea)This is a JBoss bug, which I assume has been fixed since I haven't seen it in a while. I think the basic problem is that the old version of your bean wasn't getting undeployed correctly. When seam instantiates it, it gets the old version which isn't compatible with the new version it is expecting. So, it fails. The only option appears to be restarting JBoss.
What version of JBoss are you using? -
2. Re: Value found for In attribute has the wrong type
marius.oancea Oct 28, 2005 12:39 PM (in response to marius.oancea)I just got the error again. If I try to redeploy the application I see in logs:
19:38:20,543 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=ro.rmc.LearnAction
java.lang.ClassCastException: org.jboss.ejb3.stateful.StatefulContainer
at org.jboss.util.naming.Util.createSubcontext(Util.java:54)
at org.jboss.util.naming.Util.createSubcontext(Util.java:37)
at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:50) -
3. Re: Value found for In attribute has the wrong type
marius.oancea Oct 28, 2005 12:40 PM (in response to marius.oancea)I use 4.0.3 version of JBOSS and Seam from CVS
-
4. Re: Value found for In attribute has the wrong type
marius.oancea Oct 28, 2005 12:41 PM (in response to marius.oancea)I just tried to add :
private static final long serialVersionUID = 7957902202644365168L;
to my service. Maybe will help. If yes I will let you know -
5. Re: Value found for In attribute has the wrong type
marius.oancea Oct 29, 2005 11:29 AM (in response to marius.oancea)no success with serialVersionUID
-
6. Re: Value found for In attribute has the wrong type
patrick_ibg Oct 29, 2005 5:05 PM (in response to marius.oancea)Are you using the jboss build that came packaged with SEAM? I get the ClassCastException with that version... and it isn't the latest production release (production release is 4.0.3SP1
-
7. Re: Value found for In attribute has the wrong type
marius.oancea Oct 30, 2005 3:36 AM (in response to marius.oancea)No, I use 4.0.3 (from jboss-4.0.3-installer.jar)
-
8. Re: Value found for In attribute has the wrong type
norman.richards Oct 30, 2005 12:30 PM (in response to marius.oancea)SerialVersiodUID isn't relevant here. The values aren't being serialized. This is a straight up class cast exception.
Is anyone having this problem with 4.0.3SP1? If you are, then we need to make sure there is a JIRA issue for EJB3 covering this. -
9. Re: Value found for In attribute has the wrong type
marius.oancea Oct 30, 2005 1:19 PM (in response to marius.oancea)Yes, I'm having the problem with SP1 also
-
10. Re: Value found for In attribute has the wrong type
drujensen Nov 3, 2005 4:34 PM (in response to marius.oancea)I am having the same problem using Jboss 4.0.3 via Eclipse IDE plugin launching in debug mode.
Thanks for this post. You saved me tons of time. -
11. Re: Value found for In attribute has the wrong type
marius.oancea Nov 4, 2005 1:47 AM (in response to marius.oancea)What was the solution you found drujensen ?
You found one ? Or only restarting jboss? -
12. Re: Value found for In attribute has the wrong type
paulie! Nov 10, 2005 3:20 AM (in response to marius.oancea)Just in case people still wanted replies, I am seeing the same problem running jboss in debugging mode in eclipse.
I am using JBOSS 4.0.3SP1 (using the ejb3 install) with seam.
I am very glad this post is here, I almost gave up. Now I just restart every time it happens, which is quite often. -
13. Re: Value found for In attribute has the wrong type
marius.oancea Nov 10, 2005 3:34 AM (in response to marius.oancea)I also gave up. I have no ideea why this happens and how can be solved. I tried everythink (including instally 3 different versions of jboss, pathches ... etc)
-
14. Re: Value found for In attribute has the wrong type
gavin.king Nov 10, 2005 3:46 AM (in response to marius.oancea)Guys, its just a hot redeployment problem. Restart the server when it happens.