APIdia Launch Partner
Top Description Fields Constructors Methods
javax.naming

public Class NoInitialContextException

extends NamingException
Class Inheritance

This exception is thrown when no initial context implementation can be created. The policy of how an initial context implementation is selected is described in the documentation of the InitialContext class.

This exception can be thrown during any interaction with the InitialContext, not only when the InitialContext is constructed. For example, the implementation of the initial context might lazily retrieve the context only when actual methods are invoked on it. The application should not have any dependency on when the existence of an initial context is determined.

Synchronization and serialization issues that apply to NamingException apply directly here.

Authors
Rosanna Lee, Scott Seligman
Since
1.3
See Also
InitialContext, javax.naming.directory.InitialDirContext, javax.naming.spi.NamingManager#getInitialContext, javax.naming.spi.NamingManager#setInitialContextFactoryBuilder

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability
Inherited from javax.naming.NamingException:
remainingNameresolvedNameresolvedObjrootException

Constructor Summary

AccessConstructor and Description
public
NoInitialContextException()

Constructs an instance of NoInitialContextException.

public
NoInitialContextException(String
Possibly null additional detail about this exception.
explanation
)

Constructs an instance of NoInitialContextException with an explanation.

Method Summary

Inherited from javax.naming.NamingException:
appendRemainingComponentappendRemainingNamegetCausegetExplanationgetRemainingNamegetResolvedNamegetResolvedObjgetRootCauseinitCausesetRemainingNamesetResolvedNamesetResolvedObjsetRootCausetoStringtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability

Constructor Detail

NoInitialContextExceptionback to summary
public NoInitialContextException()

Constructs an instance of NoInitialContextException. All fields are initialized to null.

NoInitialContextExceptionback to summary
public NoInitialContextException(String explanation)

Constructs an instance of NoInitialContextException with an explanation. All other fields are initialized to null.

Parameters
explanation:String

Possibly null additional detail about this exception.

See Also
java.lang.Throwable#getMessage