java.sql.SQLException: Got a null connection

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 Venuy2k, 1 year ago
via Oracle Community by 430675, 1 year ago
via theserverside.com by Unknown author, 1 year ago
[IBM][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect
via gmane.org by Unknown author, 1 year ago
Single-Sign-On is only supported on Windows. Please specify a user name.
via gmane.org by Unknown author, 1 year ago
Single-Sign-On is only supported on Windows. Please specify a user name.
via Oracle Community by 501198, 1 year ago
Attempt to set a parameter name that does not occur in the SQL: DateOfBirth
java.sql.SQLException: Got a null connection
at java.lang.Throwable.(Throwable.java:67)
at java.sql.SQLException.(SQLException.java:101)
at java.sql.SQLException.(SQLException.java:71)
at com.thortech.xl.dataaccess.tcDataBase.readPartialStatement(tcDataBase.java:694)
at com.thortech.xl.dataobj.tcDataBase.readPartialStatement(tcDataBase.java:271)
at com.thortech.xl.dataobj.tcDataBase.readStatement(tcDataBase.java:221)
at com.thortech.xl.dataobj.tcDataBase.getError(tcDataBase.java:700)
at com.thortech.xl.dataobj.tcDataObj.handleError(tcDataObj.java:1197)
at com.thortech.xl.dataobj.tcDataObj.handleError(tcDataObj.java:1151)
at com.thortech.xl.dataobj.tcDataObj.isInsertPermissible(tcDataObj.java:1828)
at com.thortech.xl.dataobj.tcDataObj.eventPreInsert(tcDataObj.java:2144)
at com.thortech.xl.dataobj.tcSDK.eventPreInsert(tcSDK.java:132)
at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:578)
at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2905)
at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(tcDataObjectBase.java:177)
at com.thortech.xl.ejb.databeansimpl.tcSDKBean.save(tcSDKBean.java:99)
at com.thortech.xl.ejb.interfaces.tcSDKEJB.savex(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:102)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:102)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at undefined.$Proxy337.savex(Unknown Source)
at com.thortech.xl.ejb.interfaces.tcSDK_hxpdpf_tcSDKRemoteImpl.savex(tcSDK_hxpdpf_tcSDKRemoteImpl.java:2294)
at com.thortech.xl.ejb.interfaces.tcSDK_hxpdpf_tcSDKRemoteImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Users with the same issue

You are the first who have seen this exception.

Write tip

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