Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9190

Cannot generate schema by hibernate for Oracle and DB2 database

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.1
    • fuse-7.0.1, fuse-7.1
    • Hibernate, Karaf
    • None
    • % %
    • Hide

      1. Run AMQ-7 with credentials admin and admin123.
      e.g. docker run --rm -ti -p 8161:8161 -p 61617:61616 docker-registry.engineering.redhat.com/fuse-qe/jboss-amq-7:7.1.0
      2. Allocate Oracle database in http://dballocator.mw.lab.eng.bos.redhat.com:8080/Allocator/AllocatorServlet?operation=report
      3. Extract reproducer
      4. Run karaf
      5. Execute command in bash: mvn clean install
      6. Install bundle in Karaf : bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172

      Show
      1. Run AMQ-7 with credentials admin and admin123. e.g. docker run --rm -ti -p 8161:8161 -p 61617:61616 docker-registry.engineering.redhat.com/fuse-qe/jboss-amq-7:7.1.0 2. Allocate Oracle database in http://dballocator.mw.lab.eng.bos.redhat.com:8080/Allocator/AllocatorServlet?operation=report 3. Extract reproducer 4. Run karaf 5. Execute command in bash: mvn clean install 6. Install bundle in Karaf : bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172
    • Fuse 7.1 Sprint 32

      Cannot generate schema when deploying XA transaction scenario for Oracle and DB2.

      I got following exception for Oracle.

      :07:22.685 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] Found provider for camel org.hibernate.jpa.HibernatePersistenceProvider
      17:07:22.703 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000204: Processing PersistenceUnitInfo [
      	name: camel
      	...]
      17:07:22.745 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000412: Hibernate Core {5.1.10.Final-redhat-1}
      17:07:22.746 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000206: hibernate.properties not found
      17:07:22.748 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000021: Bytecode provider name : javassist
      17:07:22.774 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
      17:07:23.107 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
      17:07:23.115 WARN [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000342: Could not obtain connection to query metadata : null
      17:07:23.116 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
      17:07:23.120 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000422: Disabling contextual LOB creation as connection was null
      17:07:23.390 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@fa85b45'
      17:07:23.415 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] HHH000477: Starting delayed drop of schema as part of SessionFactory shut-down'
      17:07:23.416 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] Tracking DataSource for punit camel with filter (&(objectClass=javax.sql.DataSource)(osgi.jndi.service.name=jdbc/oracleDS))
      17:07:23.416 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] Found DataSource for camel osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/oracleDS)
      17:07:23.418 INFO [CM Configuration Updater (ManagedService Update: pid=[org.apache.aries.jpa.camel])] Registering EntityManagerFactory for persistence unit camel
      17:07:23.418 INFO [CM Configuration Updater (ManagedService Update: pid=[org.apache.aries.jpa.camel])] HHH000204: Processing PersistenceUnitInfo [
      	name: camel
      	...]
      17:07:23.419 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] Persistence units added for bundle org.jboss.fuse.quickstarts.begineer.camel.eip.camel-xa-jpa-jms event 128
      17:07:23.949 INFO [pipe-bundle:install -s mvn:org.jboss.fuse.quickstarts.begineer.camel.eip/camel-xa-jpa-jms/7.0.0.fuse-000172] Bundle org.jboss.fuse.quickstarts.begineer.camel.eip.camel-xa-jpa-jms/7.0.0.fuse-000172 is waiting for dependencies [(objectClass=javax.persistence.EntityManagerFactory)]
      17:07:25.361 INFO [CM Configuration Updater (ManagedService Update: pid=[org.apache.aries.jpa.camel])] HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
      17:07:27.274 ERROR [CM Configuration Updater (ManagedService Update: pid=[org.apache.aries.jpa.camel])] [org.osgi.service.cm.ManagedService, id=691, bundle=278/mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.6.1]: Unexpected problem updating configuration org.apache.aries.jpa.camel
      javax.persistence.PersistenceException: [PersistenceUnit: camel] Unable to build Hibernate SessionFactory
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:953) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:883) ~[?:?]
      	at org.hibernate.osgi.OsgiPersistenceProvider.createContainerEntityManagerFactory(OsgiPersistenceProvider.java:95) ~[?:?]
      	at org.apache.aries.jpa.container.impl.ManagedEMF.createAndPublishEMF(ManagedEMF.java:129) ~[?:?]
      	at org.apache.aries.jpa.container.impl.ManagedEMF.updated(ManagedEMF.java:125) ~[?:?]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) ~[9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1479) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1435) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) [9:org.apache.felix.configadmin:1.8.16]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.reflect.UndeclaredThrowableException
      	at com.sun.proxy.$Proxy151.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
      	at org.ops4j.pax.transx.jdbc.impl.Wrappers.lambda$wrap$0(Wrappers.java:67) ~[?:?]
      	at com.sun.proxy.$Proxy151.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
      
      	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:494) ~[?:?]
      	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:446) ~[?:?]
      	at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1054) ~[?:?]
      	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:623) ~[?:?]
      	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:252) ~[?:?]
      	at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:612) ~[?:?]
      	at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:213) ~[?:?]
      	at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:37) ~[?:?]
      	at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:896) ~[?:?]
      	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1119) ~[?:?]
      	at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1737) ~[?:?]
      	at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1692) ~[?:?]
      	at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:300) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
      	at org.ops4j.pax.transx.jdbc.impl.Wrappers.lambda$wrap$0(Wrappers.java:67) ~[?:?]
      	at com.sun.proxy.$Proxy151.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      Caused by: oracle.jdbc.OracleDatabaseException: ORA-00942: table or view does not exist
      
      	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:498) ~[?:?]
      	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:446) ~[?:?]
      	at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1054) ~[?:?]
      	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:623) ~[?:?]
      	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:252) ~[?:?]
      	at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:612) ~[?:?]
      	at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:213) ~[?:?]
      	at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:37) ~[?:?]
      	at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:896) ~[?:?]
      	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1119) ~[?:?]
      	at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1737) ~[?:?]
      	at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1692) ~[?:?]
      	at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:300) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
      	at org.ops4j.pax.transx.jdbc.impl.Wrappers.lambda$wrap$0(Wrappers.java:67) ~[?:?]
      	at com.sun.proxy.$Proxy151.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      
      2018-07-16 18:11:12,227 | ERROR | he.aries.jpa.camel]) | o.a.f.configadmin                | 9 - org.apache.felix.configadmin - 1.8.16 | [org.osgi.service.cm.ManagedService, id=690, bundle=227/mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.6.1]: Unexpected problem updating configuration org.apache.aries.jpa.camel
      javax.persistence.PersistenceException: [PersistenceUnit: camel] Unable to build Hibernate SessionFactory
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:953) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:883) ~[?:?]
      	at org.hibernate.osgi.OsgiPersistenceProvider.createContainerEntityManagerFactory(OsgiPersistenceProvider.java:95) ~[?:?]
      	at org.apache.aries.jpa.container.impl.ManagedEMF.createAndPublishEMF(ManagedEMF.java:129) ~[?:?]
      	at org.apache.aries.jpa.container.impl.ManagedEMF.updated(ManagedEMF.java:125) ~[?:?]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) ~[9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1479) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1435) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) [9:org.apache.felix.configadmin:1.8.16]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.reflect.UndeclaredThrowableException
      	at com.sun.proxy.$Proxy164.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
      	at org.ops4j.pax.transx.jdbc.impl.Wrappers.lambda$wrap$0(Wrappers.java:67) ~[?:?]
      	at com.sun.proxy.$Proxy164.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      Caused by: com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=DBALLO03.MESSAGE, DRIVER=4.14.146
      	at com.ibm.db2.jcc.am.ed.a(ed.java:677) ~[?:?]
      	at com.ibm.db2.jcc.am.ed.a(ed.java:60) ~[?:?]
      	at com.ibm.db2.jcc.am.ed.a(ed.java:127) ~[?:?]
      	at com.ibm.db2.jcc.am.oo.c(oo.java:2730) ~[?:?]
      	at com.ibm.db2.jcc.am.oo.d(oo.java:2718) ~[?:?]
      	at com.ibm.db2.jcc.am.oo.b(oo.java:2085) ~[?:?]
      	at com.ibm.db2.jcc.t4.bb.i(bb.java:226) ~[?:?]
      	at com.ibm.db2.jcc.t4.bb.c(bb.java:48) ~[?:?]
      	at com.ibm.db2.jcc.t4.q.b(q.java:38) ~[?:?]
      	at com.ibm.db2.jcc.t4.rb.h(rb.java:114) ~[?:?]
      	at com.ibm.db2.jcc.am.oo.hb(oo.java:2080) ~[?:?]
      	at com.ibm.db2.jcc.am.oo.a(oo.java:3254) ~[?:?]
      	at com.ibm.db2.jcc.am.oo.e(oo.java:1088) ~[?:?]
      	at com.ibm.db2.jcc.am.oo.execute(oo.java:1071) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
      	at org.ops4j.pax.transx.jdbc.impl.Wrappers.lambda$wrap$0(Wrappers.java:67) ~[?:?]
      	at com.sun.proxy.$Proxy164.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      
      2018-07-16 18:25:09,535 | ERROR | he.aries.jpa.camel]) | o.a.f.configadmin                | 9 - org.apache.felix.configadmin - 1.8.16 | [org.osgi.service.cm.ManagedService, id=690, bundle=227/mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.6.1]: Unexpected problem updating configuration org.apache.aries.jpa.camel
      javax.persistence.PersistenceException: [PersistenceUnit: camel] Unable to build Hibernate SessionFactory
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:953) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:883) ~[?:?]
      	at org.hibernate.osgi.OsgiPersistenceProvider.createContainerEntityManagerFactory(OsgiPersistenceProvider.java:95) ~[?:?]
      	at org.apache.aries.jpa.container.impl.ManagedEMF.createAndPublishEMF(ManagedEMF.java:129) ~[?:?]
      	at org.apache.aries.jpa.container.impl.ManagedEMF.updated(ManagedEMF.java:125) ~[?:?]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) ~[9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1479) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1435) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) [9:org.apache.felix.configadmin:1.8.16]
      	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) [9:org.apache.felix.configadmin:1.8.16]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.reflect.UndeclaredThrowableException
      	at com.sun.proxy.$Proxy164.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
      	at org.ops4j.pax.transx.jdbc.impl.Wrappers.lambda$wrap$0(Wrappers.java:67) ~[?:?]
      	at com.sun.proxy.$Proxy164.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot drop the table 'message', because it does not exist or you do not have permission.
      	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217) ~[?:?]
      	at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1655) ~[?:?]
      	at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:885) ~[?:?]
      	at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:778) ~[?:?]
      	at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505) ~[?:?]
      	at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2445) ~[?:?]
      	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:191) ~[?:?]
      	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:166) ~[?:?]
      	at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(SQLServerStatement.java:751) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
      	at org.ops4j.pax.transx.jdbc.impl.Wrappers.lambda$wrap$0(Wrappers.java:67) ~[?:?]
      	at com.sun.proxy.$Proxy164.execute(Unknown Source) ~[?:?]
      	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlString(SchemaDropperImpl.java:373) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.applySqlStrings(SchemaDropperImpl.java:358) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.dropFromMetadata(SchemaDropperImpl.java:240) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.performDrop(SchemaDropperImpl.java:153) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:125) ~[?:?]
      	at org.hibernate.tool.schema.internal.SchemaDropperImpl.doDrop(SchemaDropperImpl.java:111) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:137) ~[?:?]
      	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:65) ~[?:?]
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:476) ~[?:?]
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422) ~[?:?]
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880) ~[?:?]
      	... 11 more
      

              ggrzybek Grzegorz Grzybek
              vkasala@redhat.com Viliam Kasala
              Viliam Kasala Viliam Kasala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: