java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy

Hibernate JIRA | Marcio Jota Coelho | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hello . I'm moving my application to run in wildfly 10. I found an error which I believe is due to very old version of dialect. "DROP not supported as a after-use action for global temp table strategy" I use JavaEE 7 with Intersystems Cache. Currently my application is set up with the dialect " org.hibernate.dialect.Cache71Dialect " and this occurs the following trace: {code} 16:20:54,939 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 62) MSC000001: Failed to start service jboss.persistenceunit."integracao.war#consistem-unit": org.jboss.msc.service.StartException in service jboss.persistenceunit."integracao.war#consistem-unit": java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.<init>(GlobalTemporaryTableBulkIdStrategy.java:79) at org.hibernate.dialect.Cache71Dialect.getDefaultMultiTableBulkIdStrategy(Cache71Dialect.java:450) at org.hibernate.boot.internal.SessionFactoryBuilderImpl$SessionFactoryOptionsStateStandardImpl.<init>(SessionFactoryBuilderImpl.java:605) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:114) at org.hibernate.boot.internal.MetadataImpl.getSessionFactoryBuilder(MetadataImpl.java:135) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874) at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) ... 7 more 16:20:54,979 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 58) MSC000001: Failed to start service jboss.persistenceunit."integracao.war#consistem-custom-unit": org.jboss.msc.service.StartException in service jboss.persistenceunit."integracao.war#consistem-custom-unit": java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.<init>(GlobalTemporaryTableBulkIdStrategy.java:79) at org.hibernate.dialect.Cache71Dialect.getDefaultMultiTableBulkIdStrategy(Cache71Dialect.java:450) at org.hibernate.boot.internal.SessionFactoryBuilderImpl$SessionFactoryOptionsStateStandardImpl.<init>(SessionFactoryBuilderImpl.java:605) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:114) at org.hibernate.boot.internal.MetadataImpl.getSessionFactoryBuilder(MetadataImpl.java:135) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874) at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) ... 7 more {code}

    Hibernate JIRA | 1 year ago | Marcio Jota Coelho
    java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy
  2. 0

    Hello . I'm moving my application to run in wildfly 10. I found an error which I believe is due to very old version of dialect. "DROP not supported as a after-use action for global temp table strategy" I use JavaEE 7 with Intersystems Cache. Currently my application is set up with the dialect " org.hibernate.dialect.Cache71Dialect " and this occurs the following trace: {code} 16:20:54,939 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 62) MSC000001: Failed to start service jboss.persistenceunit."integracao.war#consistem-unit": org.jboss.msc.service.StartException in service jboss.persistenceunit."integracao.war#consistem-unit": java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.<init>(GlobalTemporaryTableBulkIdStrategy.java:79) at org.hibernate.dialect.Cache71Dialect.getDefaultMultiTableBulkIdStrategy(Cache71Dialect.java:450) at org.hibernate.boot.internal.SessionFactoryBuilderImpl$SessionFactoryOptionsStateStandardImpl.<init>(SessionFactoryBuilderImpl.java:605) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:114) at org.hibernate.boot.internal.MetadataImpl.getSessionFactoryBuilder(MetadataImpl.java:135) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874) at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) ... 7 more 16:20:54,979 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 58) MSC000001: Failed to start service jboss.persistenceunit."integracao.war#consistem-custom-unit": org.jboss.msc.service.StartException in service jboss.persistenceunit."integracao.war#consistem-custom-unit": java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.<init>(GlobalTemporaryTableBulkIdStrategy.java:79) at org.hibernate.dialect.Cache71Dialect.getDefaultMultiTableBulkIdStrategy(Cache71Dialect.java:450) at org.hibernate.boot.internal.SessionFactoryBuilderImpl$SessionFactoryOptionsStateStandardImpl.<init>(SessionFactoryBuilderImpl.java:605) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:114) at org.hibernate.boot.internal.MetadataImpl.getSessionFactoryBuilder(MetadataImpl.java:135) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874) at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) ... 7 more {code}

    Hibernate JIRA | 1 year ago | Marcio Jota Coelho
    java.lang.IllegalArgumentException: DROP not supported as a after-use action for global temp table strategy

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      DROP not supported as a after-use action for global temp table strategy

      at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.<init>()
    2. org.hibernate.hql
      GlobalTemporaryTableBulkIdStrategy.<init>
      1. org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.<init>(GlobalTemporaryTableBulkIdStrategy.java:79)
      1 frame
    3. Hibernate
      Cache71Dialect.getDefaultMultiTableBulkIdStrategy
      1. org.hibernate.dialect.Cache71Dialect.getDefaultMultiTableBulkIdStrategy(Cache71Dialect.java:450)
      1 frame
    4. org.hibernate.boot
      MetadataImpl.getSessionFactoryBuilder
      1. org.hibernate.boot.internal.SessionFactoryBuilderImpl$SessionFactoryOptionsStateStandardImpl.<init>(SessionFactoryBuilderImpl.java:605)
      2. org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:114)
      3. org.hibernate.boot.internal.MetadataImpl.getSessionFactoryBuilder(MetadataImpl.java:135)
      3 frames
    5. org.hibernate.jpa
      EntityManagerFactoryBuilderImpl.build
      1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)
      1 frame
    6. org.jboss.as
      TwoPhaseBootstrapImpl.build
      1. org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
      1 frame
    7. JPA
      PersistenceUnitServiceImpl$1$1.run
      1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154)
      2. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)
      2 frames
    8. WildFly Security Manager
      WildFlySecurityManager.doChecked
      1. org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
      1 frame
    9. JPA
      PersistenceUnitServiceImpl$1.run
      1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)
      1 frame
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames
    11. JBoss Threads
      JBossThread.run
      1. org.jboss.threads.JBossThread.run(JBossThread.java:320)
      1 frame