Hi,

I'm using orion 0.9.4l.

I have a session bean talking to entity beans.

When the session bean tries to remove an entity bean I get some exceptions
(int the application log file) and the entity bean is not removed.

The code in the session bean is:

        public TradeResult remove(TradePK pk) throws
ProcessingErrorException {
                Debug.println("TradeEntry(" + user + ") - remove(" + pk +
")");

                try {
                        Trade trade = tradeHome.findByPrimaryKey(pk);
                        trade.remove();
                        return new TradeResult(pk, null);
                }
                catch (Exception e) {
                        throw new ProcessingErrorException(e.getMessage());
                }
        }

The exceptions are:

14/03/00 17:06 Started
14/03/00 17:09 Error in bean decalog.TradeHome
java.lang.NullPointerException: 
        at EntityBeanWrapper0.saveState(EntityBeanWrapper0.java:374)
        at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX)
        at com.evermind.server.ApplicationServerTransaction.commit(JAX)
        at com.evermind.server.ApplicationServerTransaction.end(JAX)
        at
StatefulSessionBeanWrapper2.remove(StatefulSessionBeanWrapper2.java:787)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.evermind.server.rmi.a1.fn(JAX)
        at com.evermind.server.rmi.a1.run(JAX)
        at com.evermind.util.b.run(JAX)
14/03/00 17:09 Error in bean decalog.TradeHome: Error in ejbPassivate
java.lang.NullPointerException: 
        at EntityBeanWrapper0.saveState(EntityBeanWrapper0.java:374)
        at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX)
        at com.evermind.server.ApplicationServerTransaction.commit(JAX)
        at com.evermind.server.ApplicationServerTransaction.end(JAX)
        at
StatefulSessionBeanWrapper2.remove(StatefulSessionBeanWrapper2.java:787)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.evermind.server.rmi.a1.fn(JAX)
        at com.evermind.server.rmi.a1.run(JAX)
        at com.evermind.util.b.run(JAX)
14/03/00 17:09 Error in bean decalog.TradeHome: Error loading state
java.lang.NullPointerException: 
        at EntityBeanWrapper0.loadState(EntityBeanWrapper0.java:369)
        at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX)
        at com.evermind.server.ApplicationServerTransaction.commit(JAX)
        at com.evermind.server.ApplicationServerTransaction.end(JAX)
        at
StatefulSessionBeanWrapper2.remove(StatefulSessionBeanWrapper2.java:787)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.evermind.server.rmi.a1.fn(JAX)
        at com.evermind.server.rmi.a1.run(JAX)
        at com.evermind.util.b.run(JAX)

What's wrong???
Philippe.

 

Philippe Renon
décalog - 5, rue Bachaumont - 75002 PARIS
Voice   : +33 (0) 1 40 28 44 64
Fax             : +33 (0) 1 40 28 24 54
E-mail  : mailto:[EMAIL PROTECTED]
 



Reply via email to