jBoss

After deploying the example http://www.jboss.org/rmh_howto.html (with jBoss
specific modifications) I got the following traceback from the jBoss -
Server:

[JAWS] Create, id is 1
[JAWS] Exists command executing: SELECT COUNT(*) AS Total FROM CABIN WHERE
ID=?
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=1
[JAWS] Create command executing: INSERT INTO CABIN
(SHIP_ID,BED_COUNT,ID,NAME,DE
CK_LEVEL) VALUES (?,?,?,?,?)
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=0
[JAWS] Set parameter: idx=2, jdbcType=INTEGER, value=0
[JAWS] Set parameter: idx=3, jdbcType=INTEGER, value=1
[JAWS] Set parameter: idx=4, jdbcType=VARCHAR, value=empty
[JAWS] Set parameter: idx=5, jdbcType=INTEGER, value=0
[JAWS] Rows affected = 1
[CabinBean] null

The CabinBean is null, but there is a valid entry in database. Logicaly the
client throughs a NullPointerException:
Exception in thread "main" java.lang.NullPointerException
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n 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.invokeHom
e(Unknown Source)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java
:221)
at $Proxy0.create(Unknown Source)
at com.titan.cabin.jBossClient_1.main(jBossClient_1.java:47)

Whats wrong with that example? What's about a jboss.xml sample file?
____________________________________________________________________
e.i.s. konzept gmbh -- brunnenweg 19 -- 64331 Weiterstadt -- Germany
Tel : +49-(0)6150-1080-0
Fax : +49-(0)6150-1080-80
email : [EMAIL PROTECTED]
____________________________________________________________________



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

Reply via email to