Interview Questions

Why do I get the following exception when viewing the JNDI tree?

BEA WebLogic Questions and Answers


(Continued from previous question...)

Why do I get the following exception when viewing the JNDI tree?

Why do I get the following exception when viewing the JNDI tree?
isSerializable(class.javax.naming.Binding)
java.io.NotSerializableException:
java.io.PrintWriter at
java.io.ObjectOutputStream.OutputObject


The Weblogic Server JNDI implementation requires objects to be serializable, not referencable. A PrintWriter cannot be serialized and therefore should be declared transient.

(Continued on next question...)

Other Interview Questions