Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17854

ArrayStoreException while opening database in Hibernate Console

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.2.0.CR1
    • 4.2.0.Beta3
    • hibernate
    • None
    • Hide

      STEP: Start JBDS and H2 db (https://github.com/maxandersen/sakila-h2)
      STEP: Create JPA 2.0. Project with Hibernate
      STEP: Convert to maven project
      STEP: Add dependencies (see pom file in description)
      STEP: Try to expand Hibernate console database -> Sakila
      ERROR: Cannot be expanded and error occurs

      Show
      STEP: Start JBDS and H2 db ( https://github.com/maxandersen/sakila-h2 ) STEP: Create JPA 2.0. Project with Hibernate STEP: Convert to maven project STEP: Add dependencies (see pom file in description) STEP: Try to expand Hibernate console database -> Sakila ERROR: Cannot be expanded and error occurs
    • Workaround Exists
    • Hide

      Create hibernate configuration file and set persistence.xml to use it.

      Show
      Create hibernate configuration file and set persistence.xml to use it.

    Description

      An internal error has occurred.
      java.lang.ArrayStoreException

      Used pom file

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>testjpa</groupId>
        <artifactId>testjpa</artifactId>
        <version>0.0.1-SNAPSHOT</version>
          <dependencies>
        	<dependency>
        		<groupId>org.hibernate</groupId>
        		<artifactId>hibernate-core</artifactId>
        		<version>4.0.0.Final</version>
        	</dependency>
        	<dependency>
        		<groupId>org.hibernate</groupId>
        		<artifactId>hibernate-entitymanager</artifactId>
        		<version>4.0.0.Final</version>
        	</dependency>
        	<dependency>
        		<groupId>org.hibernate.javax.persistence</groupId>
        		<artifactId>hibernate-jpa-2.0-api</artifactId>
        		<version>1.0.0.Final</version>
        	</dependency>
        	<dependency>
        		<groupId>com.h2database</groupId>
        		<artifactId>h2</artifactId>
        		<version>1.3.161</version>
        	</dependency>
        </dependencies>
        <build>
          <sourceDirectory>src</sourceDirectory>
          <resources>
            <resource>
              <directory>src</directory>
              <excludes>
                <exclude>**/*.java</exclude>
              </excludes>
            </resource>
          </resources>
          <plugins>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>3.1</version>
              <configuration>
                <source>1.8</source>
                <target>1.8</target>
              </configuration>
            </plugin>
          </plugins>
        </build>
      </project>
      

      Attachments

        Issue Links

          Activity

            People

              kaers@redhat.com Koen Aers
              jpeterka_jira Jiri Peterka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: