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

Samebug tips

  1. ,

    Check whether privilege has the "not null" restriction. If so it always has to have a value and can never be null.

    A different reason could be a wrong implementation of a foreign key. Check whether you always correctly insert/update in both tables.

  2. ,

    Nothing is wrong with the database. When it gives you those errors, it's telling you that you are trying to input "nothing" (null) into a column that doesn't allow it. Fix it by removing the not null constraint or by passing a value to that field.

Solutions on the web

via Kuali JIRA by Lora Headdy-Fox, 1 year ago
OJB operation; SQL []; Column 'tk_clock_log_id' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'tk_clock_log_id' cannot be null
via Kuali JIRA by Lora Headdy-Fox, 2 years ago
OJB operation; SQL []; Column 'tk_clock_log_id' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'tk_clock_log_id' cannot be null
via Kuali JIRA by Mike Riley, 9 months ago
OJB operation; SQL []; ORA-01400: cannot insert NULL into ("KMS"."KMS_VR_T"."SVN_PATH") ; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("KMS"."KMS_VR_T"."SVN_PATH")
via Kuali JIRA by Andy Orahood, 9 months ago
OJB operation; SQL []; ORA-02291: integrity constraint (KMS.FK_FIL_DOC_ID) violated - parent key not found ; nested exception is java.sql.SQLException: ORA-02291: integrity constraint (KMS.FK_FIL_DOC_ID) violated - parent key not found
via Kuali JIRA by Weldon Sams, 9 months ago
OJB operation; SQL []; ORA-02291: integrity constraint (KMS.FK_REF_TYP) violated - parent key not found ; nested exception is java.sql.SQLException: ORA-02291: integrity constraint (KMS.FK_REF_TYP) violated - parent key not found
via Kuali JIRA by Asik Gongaju, 2 years ago
OJB operation; SQL []; Data truncation: Data too long for column 'log' at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'log' at row 1
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'tk_clock_log_id' cannot be null	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)	at com.mysql.jdbc.Util.getInstance(Util.java:381)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1016)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2543)	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1737)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2022)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1940)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1925)	at org.enhydra.jdbc.core.CorePreparedStatement.executeUpdate(CorePreparedStatement.java:102)	at org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(JdbcAccessImpl.java:221)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBrokerImpl.java:1931)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:911)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:948)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:818)	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.java:220)	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.java:220)	at org.springmodules.orm.ojb.PersistenceBrokerTemplate$9.doInPersistenceBroker(PersistenceBrokerTemplate.java:246)	at org.springmodules.orm.ojb.PersistenceBrokerTemplate.execute(PersistenceBrokerTemplate.java:141)	at org.springmodules.orm.ojb.PersistenceBrokerTemplate.store(PersistenceBrokerTemplate.java:244)	at org.kuali.rice.kns.dao.impl.DocumentDaoOjb.save(DocumentDaoOjb.java:66)	at org.kuali.rice.kns.dao.proxy.DocumentDaoProxy.save(DocumentDaoProxy.java:143)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy893.save(Unknown Source)	at org.kuali.rice.kns.service.impl.DocumentServiceImpl.validateAndPersistDocument(DocumentServiceImpl.java:687)	at org.kuali.rice.kns.service.impl.DocumentServiceImpl.routeDocument(DocumentServiceImpl.java:183)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy901.routeDocument(Unknown Source)	at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.route(KualiDocumentActionBase.java:784)	at org.kuali.hr.time.missedpunch.MissedPunchAction.route(MissedPunchAction.java:57)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)	at org.kuali.rice.kns.web.struts.action.KualiAction.dispatchMethod(KualiAction.java:172)	at org.kuali.rice.kns.web.struts.action.KualiAction.execute(KualiAction.java:123)	at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.execute(KualiDocumentActionBase.java:158)	at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:503)	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)	at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:499)	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)	at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:101)	at org.kuali.hr.time.web.TKRequestProcessor.process(TKRequestProcessor.java:40)	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:92)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.kuali.rice.kew.web.DummyLoginFilter.doFilter(DummyLoginFilter.java:86)	at org.kuali.hr.time.web.TkLoginFilter.doFilter(TkLoginFilter.java:34)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.kuali.rice.kew.web.BootstrapFilterChain.doFilter(BootstrapFilter.java:273)	at org.kuali.rice.kew.web.DummyLoginFilter.doFilter(DummyLoginFilter.java:86)	at org.kuali.hr.time.web.TkLoginFilter.doFilter(TkLoginFilter.java:34)	at org.kuali.rice.kew.web.BootstrapFilterChain.doFilter(BootstrapFilter.java:266)	at org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:164)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)	at java.lang.Thread.run(Thread.java:619)