We've a java class that creates a stateful ejb in its constructor and removes 
it in its finalize method. It works fine in weblogic. Removal does not work in 
Jboss 4.0.4. The remove call gives this exception:

java.lang.NullPointerException
at 
org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:101)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
...
...
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy436.remove(Unknown Source)


The remove call works OK if it's called from a method other than finalize.

Is there a way to make it work in finalize method?






View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939648#3939648

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939648


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to