SourceForge.net
2004-01-22 23:10:10 UTC
Bugs item #875841, was opened at 2004-01-13 02:27
Message generated for change (Comment added) made by bmjiang
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=875841&group_id=54559
Category: jndi
Group: v0.7.6-rc3
Status: Open
Resolution: None
Priority: 5
Submitted By: Bo Min Jiang (bmjiang)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error performing JNDI lookups from Sun ONE App Server 7
Initial Comment:
When performing JNDI lookups of OpenJMS resources
from Sun ONE App Server 7, a CORBA BAD PARAM error
occurs, indicating that one or more classes has not been
made serializable.
The following classes need to be made serializable:
org.exolab.jms.jndi.mipc.NameServiceProxy
org.apache.avalon.excalibur.naming.DefaultNamespace
It seems that the package
org.apache.avalon.excalibur.naming has been
deprecated on the Avalon site (and moved to a
repository on codehaus.org), so I am not sure if I should
submit a bug to the Avalon group.
----------------------------------------------------------------------
Message:
Logged In: YES
user_id=645251
The stack trace for the exception is attached. The minor
code is 6.
----------------------------------------------------------------------
Comment By: Tim Anderson (tanderson)
Date: 2004-01-17 12:15
Message:
Logged In: YES
user_id=557161
A more correct approach would be to implement the:
private void writeObject(java.io.ObjectOutputStream out)
throws IOException
private void readObject(java.io.ObjectInputStream in)
throws IOException, ClassNotFoundException;
methods as per the Serializable interface, so that the
RemoteContext.NAMING_PROVIDER and
RemoteContext.NAMESPACE attributes of m_environment
aren't serialized.
I'm not going to make the 2 classes Serializable for the reason
stated previously, but if you submit a patch along the above
lines, I will apply it.
----------------------------------------------------------------------
Comment By: Tim Anderson (tanderson)
Date: 2004-01-17 11:30
Message:
Logged In: YES
user_id=557161
It looks like Sun ONE App Server is trying to serialize the
org.apache.avalon.excalibur.naming.RemoteContext class -
which would be OK but for the fact that the m_environment
attribute of the parent AbstractContext contains instances of
the 2 classes you mention, which aren't Serializable.
They aren't Serializable because it doesn't make sense for
them to be - deserializing them would result in an error.
Can you include the exception stack trace, and minor code
with Sun One's description of the minor code, so I can
confirm this?
----------------------------------------------------------------------
Comment By: Tim Anderson (tanderson)
Date: 2004-01-17 11:28
Message:
Logged In: YES
user_id=557161
It looks like Sun ONE App Server is trying to serialize the
org.apache.avalon.excalibur.naming.RemoteContext class -
which would be OK but for the fact that the m_environment
attribute of the parent AbstractContext contains instances of
the 2 classes you mention, which aren't Serializable.
They aren't Serializable because it doesn't make sense for
them to be - deserializing them would result in an error.
Can you include the exception stack trace, and minor code
with Sun One's description of the minor code, so I can
confirm this?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=875841&group_id=54559
Message generated for change (Comment added) made by bmjiang
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=875841&group_id=54559
Category: jndi
Group: v0.7.6-rc3
Status: Open
Resolution: None
Priority: 5
Submitted By: Bo Min Jiang (bmjiang)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error performing JNDI lookups from Sun ONE App Server 7
Initial Comment:
When performing JNDI lookups of OpenJMS resources
from Sun ONE App Server 7, a CORBA BAD PARAM error
occurs, indicating that one or more classes has not been
made serializable.
The following classes need to be made serializable:
org.exolab.jms.jndi.mipc.NameServiceProxy
org.apache.avalon.excalibur.naming.DefaultNamespace
It seems that the package
org.apache.avalon.excalibur.naming has been
deprecated on the Avalon site (and moved to a
repository on codehaus.org), so I am not sure if I should
submit a bug to the Avalon group.
----------------------------------------------------------------------
Comment By: Bo Min Jiang (bmjiang)
Date: 2004-01-22 23:10Message:
Logged In: YES
user_id=645251
The stack trace for the exception is attached. The minor
code is 6.
----------------------------------------------------------------------
Comment By: Tim Anderson (tanderson)
Date: 2004-01-17 12:15
Message:
Logged In: YES
user_id=557161
A more correct approach would be to implement the:
private void writeObject(java.io.ObjectOutputStream out)
throws IOException
private void readObject(java.io.ObjectInputStream in)
throws IOException, ClassNotFoundException;
methods as per the Serializable interface, so that the
RemoteContext.NAMING_PROVIDER and
RemoteContext.NAMESPACE attributes of m_environment
aren't serialized.
I'm not going to make the 2 classes Serializable for the reason
stated previously, but if you submit a patch along the above
lines, I will apply it.
----------------------------------------------------------------------
Comment By: Tim Anderson (tanderson)
Date: 2004-01-17 11:30
Message:
Logged In: YES
user_id=557161
It looks like Sun ONE App Server is trying to serialize the
org.apache.avalon.excalibur.naming.RemoteContext class -
which would be OK but for the fact that the m_environment
attribute of the parent AbstractContext contains instances of
the 2 classes you mention, which aren't Serializable.
They aren't Serializable because it doesn't make sense for
them to be - deserializing them would result in an error.
Can you include the exception stack trace, and minor code
with Sun One's description of the minor code, so I can
confirm this?
----------------------------------------------------------------------
Comment By: Tim Anderson (tanderson)
Date: 2004-01-17 11:28
Message:
Logged In: YES
user_id=557161
It looks like Sun ONE App Server is trying to serialize the
org.apache.avalon.excalibur.naming.RemoteContext class -
which would be OK but for the fact that the m_environment
attribute of the parent AbstractContext contains instances of
the 2 classes you mention, which aren't Serializable.
They aren't Serializable because it doesn't make sense for
them to be - deserializing them would result in an error.
Can you include the exception stack trace, and minor code
with Sun One's description of the minor code, so I can
confirm this?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=875841&group_id=54559