Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1561

JPA integration issue on Tomcat

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JDG 7.2 ER5
    • JDG 7.2 ER3, JDG 7.2 ER4
    • unspecified
    • None
    • JDG Sprint #10

      JPA integration tests fail with following exception (or similar):
      org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
      at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
      ...
      at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:437)
      at org.infinispan.persistence.jpa.configuration.JpaConfigurationTest.testConfigBuilder(JpaConfigurationTest.java:50)
      at com.jboss.datagrid.test.jpastore.JpaConfigurationWrapperIT.testConfigBuilder(JpaConfigurationWrapperIT.java:19)
      ...
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.infinispan.commons.CacheException: Unable to start cache loaders
      at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:193)
      ...
      at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      ... 113 more
      Caused by: org.infinispan.persistence.jpa.JpaStoreException: Persistence Unit [org.infinispan.persistence.jpa.configurationTest] not found
      at org.infinispan.persistence.jpa.JpaStore.start(JpaStore.java:91)
      at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$start$0(PersistenceManagerImpl.java:158)
      at java.util.ArrayList.forEach(ArrayList.java:1255)
      at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:174)
      ... 118 more
      Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.infinispan.persistence.jpa.configurationTest] Unable to build Hibernate SessionFactory
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954)
      ...
      at org.infinispan.persistence.jpa.JpaStore.start(JpaStore.java:89)
      ... 121 more
      Caused by: org.jboss.arquillian.test.spi.ArquillianProxyException: org.hibernate.exception.SQLGrammarException : Error creating DatabaseInformation for schema migration [Proxied because : Original exception caused: class java.io.InvalidClassException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException; local class incompatible: stream classdesc serialVersionUID = 6919059513432113764, local class serialVersionUID = 2676905503909666796]
      at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63)
      ...
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)
      ... 127 more
      Caused by: org.jboss.arquillian.test.spi.ArquillianProxyException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException : Unknown table 'sequences' in information_schema [Proxied because : Original exception caused: class java.io.InvalidClassException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException; local class incompatible: stream classdesc serialVersionUID = 6919059513432113764, local class serialVersionUID = 2676905503909666796]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      ...
      at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1381)
      at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorH2DatabaseImpl.extractMetadata(SequenceInformationExtractorH2DatabaseImpl.java:37)
      at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:64)
      at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.<init>(DatabaseInformationImpl.java:60)
      at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:123)
      ... 131 more

              remerson@redhat.com Ryan Emerson
              zhostasa_jira Zdenek Hostasa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: