Bugs item #517130, was opened at 2002-02-13 11:47
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=517130&group_id=22866

Category: JBossServer
Group: v2.4 (stable)
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Egan Allen (eganallen)
Assigned to: Nobody/Anonymous (nobody)
Summary: serialization failure

Initial Comment:
I have an instance variable jndiContext of type 
Context that is assigned new InitialContext() in the 
setSessionContext() method in my stateful session 
EJBs. I realize that javax.naming.Context is not 
serializable but I understood that the container (as 
per the EJB1.1/2.0 spec) should still be able to deal 
with this instance variable given it is of 
javax.naming.Conext (and thus, 
javax.naming.InitialContext) and NOT hinder 
passivation.

Here is server.log info:

[Bean Cache] Scheduling for passivation overaged bean 
LineageManagerEJB with id = 1012776007792 - Cache size 
= 1
[Bean Cache] Aging out from cache bean 
LineageManagerEJBwith id = 1012776007792; cache size = 
1
[Container factory] Scheduled passivation of bean 
LineageManagerEJB with id = 1012776007792
[Container factory] java.rmi.ServerException: Could 
not passivate; nested exception is: 
[Container factory] java.io.NotSerializableException: 
javax.naming.InitialContext
[Container factory] java.io.NotSerializableException: 
javax.naming.InitialContext
[Container factory] at 
java.io.ObjectOutputStream.outputObject(Unknown Source)
[Container factory] at 
java.io.ObjectOutputStream.writeObject(Unknown Source)
[Container factory] at 
java.io.ObjectOutputStream.outputClassFields(Unknown 
Source)
[Container factory] at 
java.io.ObjectOutputStream.defaultWriteObject(Unknown 
Source)
[Container factory] at 
java.io.ObjectOutputStream.outputObject(Unknown Source)
[Container factory] at 
java.io.ObjectOutputStream.writeObject(Unknown Source)
[Container factory] at 
org.jboss.ejb.plugins.StatefulSessionFilePersistenceMan
ager.passivateSession
(StatefulSessionFilePersistenceManager.java:285)
[Container factory] at 
org.jboss.ejb.plugins.StatefulSessionInstanceCache.pass
ivate(StatefulSessionInstanceCache.java:67)
[Container factory] at 
org.jboss.ejb.plugins.AbstractInstanceCache$1.execute
(AbstractInstanceCache.java:709)
[Container factory] at 
org.jboss.util.WorkerQueue$QueueLoop.run
(WorkerQueue.java:199)
[Container factory] at java.lang.Thread.run(Unknown 
Source)

Help!!
thanks,
Egan Allen 

----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2002-04-04 21:11

Message:
Logged In: YES 
user_id=175228

The only Context the spec refers to is:
A reference to the environment naming context (that is, the 
java:comp/env JNDI context) or any of its subcontexts.

An InitialContext does not fall into this category.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=517130&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to