[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread darranl
Your session bean contains a reference to something that can not be serialized 
by the container.

anonymous wrote : java.io.NotSerializableException: org.jboss.mq.SpyQueueSender 

Within the ejbPassivate method you need to clear the references to anything 
that can not be serialized by the container.

Have you got a QueueSender or something that you have not closed and set to 
null?

If you have a look at the EJB 2.1 specification section 7.4.1 there is a list 
of what can be handled by the container.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878872#3878872

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878872


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread Jonasl
Thank you for the reply.
Yes I have a QueueSender initialized in ejbCreate.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878887#3878887

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878887


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread Jonasl
I tried to set the QueueSender to null in ejbPassivate, and reactivate it in 
ejbActivate.

It changes the error to:

13:33:29,358 WARN  [AbstractInstanceCache] failed to passivate, id=e941glx4-d
javax.ejb.EJBException: Could not passivate; failed to save state; CausedByExcep
tion is:
org.jboss.resource.adapter.jdbc.WrappedConnection
at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivate
Session(StatefulSessionFilePersistenceManager.java:404)
at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(Stateful
SessionInstanceCache.java:93)
at org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractIn
stanceCache.java:180)
at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.ru
n(LRUEnterpriseContextCachePolicy.java:419)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
java.io.NotSerializableException: org.jboss.resource.adapter.jdbc.WrappedConnect
ion
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13
41)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav
a:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13
41)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav
a:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivate
Session(StatefulSessionFilePersistenceManager.java:395)
at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(Stateful
SessionInstanceCache.java:93)
at org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractIn
stanceCache.java:180)
at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.ru
n(LRUEnterpriseContextCachePolicy.java:419)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

anonymous wrote : java.io.NotSerializableException: 
org.jboss.resource.adapter.jdbc.WrappedConnect
  | ion

Any hints on that one.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878892#3878892

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878892


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread schrouf
Think about it, as it is the same error as before !


  | java.io.NotSerializableException: 
org.jboss.resource.adapter.jdbc.WrappedConnect
  | ion
  | 


This simply means, that you have an attribute of type 
org.jboss.resource.adapter.jdbc.WrappedConnect
ion ( or mybe java.sql.Connection ) that is NOT serializable... like 
org.jboss.mq.SpyQueueSender 

Regards
Ulf


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878893#3878893

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878893


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread Jonasl
Yes, but I dont know what that wrappecconnector is. I dont have any sql code 
in my bean.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878894#3878894

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878894


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12alloc_id344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread schrouf
Post your ejb class attribute section

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878896#3878896

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878896


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread Jonasl
I had a logger class, that used a jdbc connection. Looks like it is working 
correct now - setting it to null in passivate etc.

At least no errors for 17 minutes now ;)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878900#3878900

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878900


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread darranl
Don't forget to re-initialise the values in your ejbActivate method otherwise 
your next set of errors will be NullPointer exceptions when your code attempts 
to use the variables you have just set to null.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878902#3878902

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878902


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Could not passivate; failed to save state

2005-05-24 Thread Jonasl
Yes, I did do that. 
Thanks alot for the help both of you.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878903#3878903

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878903


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user