Now that I have your attention..
Could someone help me out with this? I'm deploying a bean that I used just
earlier today on pr_3. I uninstalled pr_3 and upgraded to pr_4. Now I'm
getting this exception from jboss. Has anyone seen this excepption? The
client that I'm using simply gets a reference to the CabinBean and attempts
to set some of its' values. The line that actually throws the exception in
the client is as follows:(line 4)
Context jndiContext = getInitialContext();
Object obj = jndiContext.lookup("java:CabinBean");
CabinHome home = (CabinHome) javax.rmi.PortableRemoteObject.narrow(obj,
CabinHome.class);
Cabin cabin_1 = home.create(1); <-- Exception Thrown here
Now, If I run the client again, it will tell me "Entity with key 1 already
exists".
Any ideas would by gleefully appreciated!
--- jboss exception ---
[Default] JRMPCI:invokeHome public abstract strictfp com.titan.cabin.Cabin
com.titan.cabin.CabinHome.create(int) throws
java.rmi.RemoteException,javax.ejb.CreateException
[CabinBean] Found metadata for bean 'CabinBean' method is create
[JAWS] Create, id is 4
[JAWS] Exists command executing: SELECT COUNT(*) AS Total FROM CabinBean
WHERE id=?
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4
[JAWS] Create command executing: INSERT INTO CabinBean
(bedCount,id,deckLevel,ship,name) VALUES (?,?,?,?,?)
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=0
[JAWS] Set parameter: idx=2, jdbcType=INTEGER, value=4
[JAWS] Set parameter: idx=3, jdbcType=INTEGER, value=0
[JAWS] Set parameter: idx=4, jdbcType=INTEGER, value=0
[JAWS] Set parameter: idx=5, jdbcType=VARCHAR, value=NULL
[JAWS] Rows affected = 1
[CabinBean] null
-=-- client exception - ---
Exception in thread "main" java.lang.NullPointerException
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
wn Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:221)
at $Proxy0.create(Unknown Source)
at com.titan.cabin.Client_1.main(Client_1.java:21)
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]