java.sql.SQLException

ORA-01758: table must be empty to add mandatory (NOT NULL) column

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2191

  • via Unknown by 902046,
  • via Unknown by sjgarciav,
  • Stack trace

    • java.sql.SQLException: ORA-01758: table must be empty to add mandatory (NOT NULL) column at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210) at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:961) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1285) at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1772) at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1741) at com.thortech.xl.util.JDBCUtils.executeUpdate(Unknown Source) at com.thortech.xl.dataaccess.tcDataBase.writeStatement(Unknown Source) at com.thortech.xl.dataobj.tcDataBase.writeStatement(Unknown Source) at com.thortech.xl.client.events.tcSDHAddForeignConstraint.createColumns(Unknown Source) at com.thortech.xl.client.events.tcSDHAddForeignConstraint.implementation(Unknown Source) at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source) at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source) at com.thortech.xl.dataobj.tcDataObj.eventPostInsert(Unknown Source) at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source) at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source) at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source) at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Source) at com.thortech.xl.ejb.databeansimpl.tcSDHBean.save(Unknown Source) 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:585) at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55) at com.evermind.server.ejb.StatefulSessionEJBObject.OC4J_invokeMethod(StatefulSessionEJBObject.java:844) at tcSDH_RemoteProxy_6ocop18.save(Unknown Source) 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:585) at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    76 more bugmates