kodo.util.UnsupportedOptionException: kodo.jdbc.SQL language queries cannot be executed in-memory. Either set the javax.jdo.option.IgnoreCache property to true, set the kodo.FlushBeforeQueries property to true, or execute the query before modifying objects within the transaction.

Oracle Community | 3004 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    using SQL in Query in 3.0.0

    Oracle Community | 1 decade ago | 3004
    kodo.util.UnsupportedOptionException: kodo.jdbc.SQL language queries cannot be executed in-memory. Either set the javax.jdo.option.IgnoreCache property to true, set the kodo.FlushBeforeQueries property to true, or execute the query before modifying objects within the transaction.
  2. 0

    UnsupportedOption Exception while executing Query

    Oracle Community | 1 decade ago | 3004
    kodo.util.UnsupportedOptionException: kodo.jdbc.SQL language queries cannot be executed in-memory. Either set the javax.jdo.option.IgnoreCache property to true, set the kodo.FlushBeforeQueries property to true, or execute the query before modifying objects within the transaction.

    Root Cause Analysis

    1. kodo.util.UnsupportedOptionException

      kodo.jdbc.SQL language queries cannot be executed in-memory. Either set the javax.jdo.option.IgnoreCache property to true, set the kodo.FlushBeforeQueries property to true, or execute the query before modifying objects within the transaction.

      at kodo.jdbc.query.SQLQuery.newInMemoryQueryExecutor()
    2. kodo.jdbc.query
      SQLQuery.newInMemoryQueryExecutor
      1. kodo.jdbc.query.SQLQuery.newInMemoryQueryExecutor(SQLQuery.java:117)
      1 frame
    3. kodo.query
      AbstractQuery.execute
      1. kodo.query.AbstractQuery.internalCompile(AbstractQuery.java:545)
      2. kodo.query.AbstractQuery.getAccessPathMetaDatas(AbstractQuery.java:938)
      3. kodo.query.AbstractQuery.isAccessPathDirty(AbstractQuery.java:745)
      4. kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:672)
      5. kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
      6. kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
      6 frames
    4. com.metasolv.resources
      ChannelAvailabilityQueryBean.execute
      1. com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelAvailabilityQueryBean.java:84)
      1 frame
    5. com.metasolv.oss
      InventorySessionBean.queryInventory
      1. com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySessionBean.java:1504)
      1 frame