4 Replies Latest reply on Apr 21, 2006 7:54 AM by Kunaal Vaghela

    Value found for In attribute has the wrong type

    Kunaal Vaghela Newbie

      I am using JBoss 4.0.4.CR2 and using Seam for my EJBs.
      Deployment succeeding and creates the Entity and Session Beans and the appropriate tables but when i try to get a value from my Session Bean i get the following error: -

      Caused by: java.lang.IllegalArgumentException: value found for In attribute has
      the wrong type: UserFacadeBean
       at org.jboss.seam.Component.getInstance(Component.java:1054)
       at org.jboss.seam.Component.getInstance(Component.java:1027)
       at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableR

      There is no @In annotation on the session bean concerned (source follows this message).

      Ive seen a previous topic which suggests to restart JBoss when the problem occurs but that was JBoss 4.0.3 and was believed to have been fixed. Restarting JBoss makes no change, the problem still exists

      public class UserFacadeBean implements UserFacade, java.io.Serializable
      @PersistenceContext EntityManager em;
       private String resultCode;
       public Users create( String first, String last )
       Users u = new Users();
       u.setFirst_name( first );
       u.setLast_name( last );
       u.setDisplay_name( last +", "+ first );
       u.setLogin_name( first.substring( 1, 1 ) + last );
       em.persist( u );
       return u;
       public String getResultCode()
       return "all_users";