java.lang.ExceptionInInitializerError: java.lang.NullPointerException

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3004, 1 year ago
java.lang.NullPointerException
via Apache Bugzilla by girenko, 1 year ago
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at java.lang.StringBuffer.(StringBuffer.java:130)
at java.net.URLStreamHandler.toExternalForm(URLStreamHandler.java:366)
at java.net.URL.toExternalForm(URL.java:754)
at java.net.URL.toString(URL.java:741)
at java.lang.String.valueOf(String.java:1947)
at java.lang.StringBuffer.append(StringBuffer.java:370)
at org.apache.log4j.Category.(Category.java:145)
at com.bea.logging.LogManager.configureHierarchy(LogManager.java:122)
at com.bea.logging.LogManager.configure(LogManager.java:94)
at com.bea.adapter.spi.AbstractManagedConnectionFactory.initializeLogResources(AbstractManagedConnectionFactory.java:280)
at com.bea.adapter.spi.AbstractManagedConnectionFactory.isValidState(AbstractManagedConnectionFactory.java:229)
at com.bea.adapter.spi.AbstractManagedConnectionFactory.assertValidState(AbstractManagedConnectionFactory.java:174)
at com.bea.adapter.spi.AbstractManagedConnectionFactory.createConnectionFactory(AbstractManagedConnectionFactory.java:1186)
at weblogic.connector.common.internal.ConnectionPoolManager.createConnectionFactory(ConnectionPoolManager.java:131)
at weblogic.connector.deploy.JNDIHandler.getObjectInstance(JNDIHandler.java:28)
at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:110)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:707)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:679)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:176)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:181)
at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:265)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166)
at weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:255)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:222)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at undefined.$Proxy53.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:99)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:707)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:679)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:176)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:181)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:181)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:181)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:36)
at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:124)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.test.resource.pbs.PBSAdapterSBean.getConnection(PBSAdapterSBean.java:36)
at com.test.resource.pbs.PBSAdapterSBean.test(PBSAdapterSBean.java:23)
at com.test.resource.pbs.PBSAdapterSBean_2debel_EOImpl.test(PBSAdapterSBean_2debel_EOImpl.java:36)
at com.test.resource.pbs.PBSAdapterSBean_2debel_EOImpl_WLSkel.invoke(UnknownSource)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:265)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166)
at weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:255)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:222)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at undefined.$Proxy79.test(Unknown Source)
at jsp_servlet.__test._jspService(__test.java:98)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.