com.solarmetric.kodo.QueryCacheProperties: CacheSize=10000 And I'm getting the following exception: ORA-01400: cannot insert NULL into ("BOBCAT"."T_CONTRACTITEMPRICE"."ID_I")

Oracle Community | 3004 | 1 decade ago
  1. 0

    jdoPreStore and FlushBeforeQueries

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.kodo.QueryCacheProperties: CacheSize=10000 And I'm getting the following exception: ORA-01400: cannot insert NULL into ("BOBCAT"."T_CONTRACTITEMPRICE"."ID_I")

    Root Cause Analysis

    1. com.solarmetric.kodo.QueryCacheProperties

      CacheSize=10000 And I'm getting the following exception: ORA-01400: cannot insert NULL into ("BOBCAT"."T_CONTRACTITEMPRICE"."ID_I")

      at com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal()
    2. com.solarmetric.kodo
      CacheAwareQuery.execute
      1. com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLExceptions.java:58)
      2. com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:559)
      3. com.solarmetric.kodo.runtime.datacache.DataCacheStoreManager.flush(DataCacheStoreManager.java:666)
      4. com.solarmetric.kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:697)
      5. com.solarmetric.kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:666)
      6. com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:666)
      7. com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
      8. com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
      9. com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:507)
      10. com.solarmetric.kodo.runtime.datacache.query.CacheAwareQuery.execute(CacheAwareQuery.java:298)
      10 frames
    3. com.bobcat.products
      ItemPeer.findByContract
      1. com.bobcat.products.ItemPeer.findByContract(ItemPeer.java:39)
      1 frame
    4. com.bobcat.contract
      JContract$7.actionPerformed
      1. com.bobcat.contract.Contract.getAllDiscountedItems(Contract.java:255)
      2. com.bobcat.contract.ContractDiscount.reGenerateContractItemPrices(ContractDiscount.java:78)
      3. com.bobcat.contract.swing.JContract$7.actionPerformed(JContract.java:202)
      3 frames
    5. Java RT
      EventDispatchThread.pumpOneEventForHierarchy
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
      2. javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener..java:245)
      6. java.awt.Component.processMouseEvent(Component.java:5100)
      7. java.awt.Component.processEvent(Component.java:4897)
      8. java.awt.Container.processEvent(Container.java:1569)
      9. java.awt.Component.dispatchEventImpl(Component.java:3615)
      10. java.awt.Container.dispatchEventImpl(Container.java:1627)
      11. java.awt.Component.dispatchEvent(Component.java:3477)
      12. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
      13. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
      14. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
      15. java.awt.Container.dispatchEventImpl(Container.java:1613)
      16. java.awt.Window.dispatchEventImpl(Window.java:1606)
      17. java.awt.Component.dispatchEvent(Component.java:3477)
      18. java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
      19. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
      19 frames