Here is the stacktrace taken from the server log. You'll see the NPE down below:
[code]
[#|2007-02-26T18:49:56.465-0800|FINE|sun-appserver-pe9.0|javax.enterprise.system.core.naming|_ThreadID=15;_ThreadName=httpWorkerThread-443-2;ClassName=com.sun.enterprise.naming.SerialContext;MethodName=<init>;_RequestID=6af38427-31b2-4a69-b7f7-9e754befcc41;|SerialContext ==> SerialContext instance created : com.sun.enterprise.naming.SerialContext_at_1aa3306|#]
[#|2007-02-26T18:49:56.466-0800|FINE|sun-appserver-pe9.0|javax.enterprise.system.core.naming|_ThreadID=15;_ThreadName=httpWorkerThread-443-2;ClassName=com.sun.enterprise.naming.SerialContext;MethodName=lookup;_RequestID=6af38427-31b2-4a69-b7f7-9e754befcc41;|SerialContext ==> doing lookup with com.sun.enterprise.naming.SerialContext_at_1aa3306|#]
[#|2007-02-26T18:49:56.466-0800|FINE|sun-appserver-pe9.0|javax.enterprise.system.core.naming|_ThreadID=15;_ThreadName=httpWorkerThread-443-2;ClassName=com.sun.enterprise.naming.SerialContext;MethodName=lookup;_RequestID=6af38427-31b2-4a69-b7f7-9e754befcc41;|SerialContext ==> looking up : java:comp/env/jdbc/oraclesccweb|#]
[#|2007-02-26T18:49:56.467-0800|FINE|sun-appserver-pe9.0|javax.enterprise.system.core.naming|_ThreadID=15;_ThreadName=httpWorkerThread-443-2;ClassName=com.sun.enterprise.naming.java.javaURLContext;MethodName=lookup;_RequestID=6af38427-31b2-4a69-b7f7-9e754befcc41;|In javaURLContext.lookup, name = java:comp/env/jdbc/oraclesccweb serialcontext...com.sun.enterprise.naming.SerialContext_at_1aa3306|#]
[#|2007-02-26T18:49:56.467-0800|FINE|sun-appserver-pe9.0|javax.enterprise.system.core.naming|_ThreadID=15;_ThreadName=httpWorkerThread-443-2;ClassName=com.sun.enterprise.naming.NamingManagerImpl;MethodName=lookup;_RequestID=6af38427-31b2-4a69-b7f7-9e754befcc41;|serialcontext in NamingManagerImpl..com.sun.enterprise.naming.SerialContext_at_1aa3306|#]
[#|2007-02-26T18:49:56.467-0800|FINE|sun-appserver-pe9.0|javax.enterprise.system.core.naming|_ThreadID=15;_ThreadName=httpWorkerThread-443-2;ClassName=com.sun.enterprise.naming.NamingManagerImpl;MethodName=lookup;_RequestID=6af38427-31b2-4a69-b7f7-9e754befcc41;|NamingManagerImpl : looking up name : java:comp/env/jdbc/oraclesccweb|#]
[#|2007-02-26T18:49:56.468-0800|FINE|sun-appserver-pe9.0|javax.enterprise.system.core.naming|_ThreadID=15;_ThreadName=httpWorkerThread-443-2;ClassName=com.sun.enterprise.naming.NamingManagerImpl;MethodName=getMangledIdName;_RequestID=6af38427-31b2-4a69-b7f7-9e754befcc41;|Component Id: actionplans_/actionplans|#]
[#|2007-02-26T18:49:56.472-0800|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=15;_ThreadName=httpWorkerThread-443-2;_RequestID=6af38427-31b2-4a69-b7f7-9e754befcc41;|
javax.naming.NameNotFoundException: No object bound for java:comp/env/jdbc/oraclesccweb [Root exception is java.lang.NullPointerException]
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:196)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at melib.network.ConnectionManager.getPooledConnection(ConnectionManager.java:74)
at melib.network.ConnectionManager.<init>(ConnectionManager.java:43)
at melib.network.ConnectionManager.<init>(ConnectionManager.java:61)
at melib.network.Database.getSelect(Database.java:195)
at melib.network.Database.getSelect(Database.java:239)
at melib.sun.SessionManager.getStored(SessionManager.java:103)
at melib.sun.SimpleAuthorize.checkAuth(SimpleAuthorize.java:188)
at melib.sun.SimpleAuthorize.checkAuth(SimpleAuthorize.java:164)
at org.apache.jsp.general_jsp._jspService(general_jsp.java:131)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processBlocked(ProcessorTask.java:607)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:842)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:436)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: java.lang.NullPointerException
at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:748)
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
... 40 more
|#]
[/code]
thanks!
[Message sent by forum member 'dailysun' (dailysun)]
http://forums.java.net/jive/thread.jspa?messageID=205386