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 Mike Riley, 1 year ago
OJB operation; SQL []; Column 'svn_path' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'svn_path' cannot be null
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 Atlassian JIRA by Julien Hoarau, 1 year ago
Hibernate operation: could not insert: [com.atlassian.confluence.pages.Page#2097315]; SQL []; ERROR: value too long for type character varying(255); nested exception is org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
via Atlassian JIRA by Julien Hoarau, 1 year ago
Hibernate operation: could not insert: [com.atlassian.confluence.pages.Page#2097315]; SQL []; ERROR: value too long for type character varying(255); nested exception is org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
via Kuali JIRA by Dawn Bodle, 1 year ago
OJB operation; SQL []; Column 'QID' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'QID' cannot be null
via Kuali JIRA by Dawn Bodle, 2 years ago
OJB operation; SQL []; Column 'QID' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'QID' cannot be null
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'svn_path' 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:411)	at com.mysql.jdbc.Util.getInstance(Util.java:386)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2345)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2330)	at org.enhydra.jdbc.core.CorePreparedStatement.executeUpdate(CorePreparedStatement.java:102)	at org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeAndLinkOneToMany(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeCollections(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeAndLinkOneToOne(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeReferences(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeAndLinkOneToOne(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeReferences(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown Source)	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown Source)	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.GeneratedMethodAccessor702.invoke(Unknown Source)	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 $Proxy41.save(Unknown Source)	at org.kuali.rice.kns.service.impl.DocumentServiceImpl.validateAndPersistDocument(DocumentServiceImpl.java:687)	at org.kuali.rice.kns.service.impl.DocumentServiceImpl.validateAndPersistDocumentAndSaveAdHocRoutingRecipients(DocumentServiceImpl.java:363)	at org.kuali.rice.kns.service.impl.DocumentServiceImpl.saveDocument(DocumentServiceImpl.java:125)	at org.kuali.rice.kns.service.impl.DocumentServiceImpl.saveDocument(DocumentServiceImpl.java:109)	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 $Proxy49.saveDocument(Unknown Source)	at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.save(KualiDocumentActionBase.java:544)	at org.kuali.kits.kms.web.KmsDocumentAction.save(KmsDocumentAction.java:571)	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:118)	at org.kuali.kits.kms.web.KmsDocumentAction.execute(KmsDocumentAction.java:98)	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.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:641)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:92)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	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.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:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.kuali.rice.kns.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)	at java.lang.Thread.run(Thread.java:662)