0 Replies Latest reply on Aug 20, 2004 8:39 AM by Aruna Chalasani

    Stateless Bean to Hibernate

    Aruna Chalasani Newbie

      Hi,
      I am trying to make some data persistent in to the database and using hibernate for that.....i am doing this through a session ejb......I have a client where i am calling addItem(item) method.....

      Problem is in client program.....i am stuck there itself.....
      i get the following error....
      I am using JBoss3.2.3, Hibernate 2.1.4, MySQL4.0

      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
       java.rmi.ServerException: RuntimeException; nested exception is:
       java.lang.NullPointerException
      java.rmi.ServerException: RuntimeException; nested exception is:
       java.lang.NullPointerException
      java.lang.NullPointerException
       at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
       at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
       at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
       at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
       at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
       at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
       at $Proxy1.addItem(Unknown Source)
       at com.leed.ejb.Client.main(Client.java:63)
      Exception: RemoteException occurred in server thread; nested exception is:
       java.rmi.ServerException: RuntimeException; nested exception is:
       java.lang.NullPointerException
      


      This is very strange to me......can anybody give some clue regarding this...so that i can proceed.

      Thanks in advance