com.ibm.websphere.naming
Class CannotInstantiateObjectException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.naming.NamingException
                    |
                    +--com.ibm.websphere.naming.WebSphereNamingException
                          |
                          +--com.ibm.websphere.naming.CannotInstantiateObjectException
All Implemented Interfaces:
java.io.Serializable

public class CannotInstantiateObjectException
extends WebSphereNamingException

This exception is thrown by WebSphere JNDI Context implementations when a serialized object either cannot be deserialized, or when the deserialized object is a javax.naming.Reference and the JNDI Naming Manager cannot successfully process it. This type of exception may occur during a lookup, or while iterating through a NamingEnumeration returned from a Context.listBindings() call.

This exception encapsulates a NameClassPair instance for the failing object as additional debug information for clients.

See Also:
Serialized Form

Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
CannotInstantiateObjectException(java.lang.String msg)
          This constructor is used to instantiate an exception of this type when a NameClassPair instance is not available.
CannotInstantiateObjectException(java.lang.String msg, javax.naming.NameClassPair nameClassPair)
          This constructor is used to instantiate an exception of this type when a NameClassPair instance is available.
 
Method Summary
 javax.naming.NameClassPair getNameClassPair()
          This method gets the NameClassPair for the failing serialized object.
 
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, printStackTrace, printStackTrace, printStackTrace, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CannotInstantiateObjectException

public CannotInstantiateObjectException(java.lang.String msg)
This constructor is used to instantiate an exception of this type when a NameClassPair instance is not available.

CannotInstantiateObjectException

public CannotInstantiateObjectException(java.lang.String msg,
                                        javax.naming.NameClassPair nameClassPair)
This constructor is used to instantiate an exception of this type when a NameClassPair instance is available.
Method Detail

getNameClassPair

public javax.naming.NameClassPair getNameClassPair()
This method gets the NameClassPair for the failing serialized object.