Guys,

I am trying to create an CMP entity object, passing a String and a Hashtable 
to the home object create method.

I am using Oracle.

jBoss.xml has the String as an sql VARCHAR(256) and the Hashtable as an sql 
JAVA_OBJECT.

The two public (persistent) variables are called _shopName and _itemStock, 
respectively, and these same names are used in the xml as column names.

I don't know what else might be of use.

I'm getting this:


<Client.main (String[])>
parse arguments...
Would you like to find an existing object ? yes/no: no
Enter a primary key for your object: Billy
get JNDI initial context...
lookup the Home...
create an object...
javax.ejb.CreateException: Could not create entity:java.sql.SQLException: 
Invalid column type
        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:249)
        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:224)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
        at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown 
Source)
        at 
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:80)
        at org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
        at 
com.valtech.solutions.ContainerManagedEntityBean.interfaces.CMShopHome$Proxy.create(Unknown
 
Source)
        at 
com.valtech.solutions.ContainerManagedEntityBean.client.Client.getNewObject(Client.java:97)
        at 
com.valtech.solutions.ContainerManagedEntityBean.client.Client.main(Client.java:29)
</Client.main (String[])>


and when I try to retrieve an object that might already be in storage, I get 
this:


<Client.main (String[])>
parse arguments...
Would you like to find an existing object ? yes/no: y
Enter the object primary key you are looking for: Billy
get JNDI initial context...
lookup the Home...
find by primary key...
get shop item stock...
java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is:
        java.rmi.ServerException: Load failed; nested exception is:
        java.sql.SQLException: ORA-00911: invalid character

java.rmi.ServerException: Load failed; nested exception is:
        java.sql.SQLException: ORA-00911: invalid character

java.sql.SQLException: ORA-00911: invalid character

        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:249)
        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:224)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
        at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown 
Source)
        at 
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:115)
        at org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
        at 
com.valtech.solutions.ContainerManagedEntityBean.interfaces.CMShop$Proxy.getItemStock(Unknown
 
Source)
        at 
com.valtech.solutions.ContainerManagedEntityBean.client.Client.main(Client.java:32)
</Client.main (String[])>


If anyone has seen any of these errors (in their nightmares or otherwise), 
could he please let me know?

Cheers,

M
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to