Hi, 

I have an entity bean which worked in jboss3.2.5. I moved to jboss-3.2.6RC1 for 
different reasons, now I am not able to do a create on my entity beans . Rest of the 
methods work fine. My entity bean is a CMP bean. Please see below for more info. Any 
help is greatly appreciated.

Here is the code I am using 

     CompanyHome agentHome = (CompanyHome) PortableRemoteObject.narrow(
         ctx.lookup("/Company"), CompanyHome.class);
        CompanyData pd = new CompanyData();
        pd.setCompanyName("checking");
        pd.setModDetails("Adding a new project");
       agentHome.create(pd);

I am getting the following error

java.lang.IllegalArgumentException: object is not an instance of declaring class
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCInformixCreateCommand.executeInsert(JDBCInformixCreateCommand.java:86)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:286)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:137)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:582)
        at 
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:203)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:270)




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848982#3848982

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848982


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to