[jbosstools-issues] [JBoss JIRA] (JBIDE-17854) ArrayStoreException while opening database in Hibernate Console

Jiri Peterka (JIRA) issues at jboss.org
Mon Sep 1 06:06:00 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997339#comment-12997339 ] 

Jiri Peterka edited comment on JBIDE-17854 at 9/1/14 6:05 AM:
--------------------------------------------------------------

Same scenario another error so it's not fully fixed. It complains that hibernate.cfg.xml is not found, but configuration is configured as [ JPA Project Configured Connection ] and should use connection from Project JPA Settings and not to look for hibernate.cfg.xml
{code}
org.hibernate.HibernateException: /hibernate.cfg.xml not found
	at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:173)
	at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1940)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1921)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1901)
	at org.jboss.tools.hibernate.proxy.ConfigurationProxy.buildServiceRegistry(ConfigurationProxy.java:253)
	at org.jboss.tools.hibernate.proxy.ConfigurationProxy.buildSettings(ConfigurationProxy.java:125)
	at org.hibernate.console.ConsoleConfiguration$6.execute(ConsoleConfiguration.java:438)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:108)
	at org.hibernate.console.ConsoleConfiguration.getSettings(ConsoleConfiguration.java:436)
	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:129)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:108)
	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:125)
	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:65)
	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:104)
	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:238)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
{code}


was (Author: jpeterka):
Same scenario another error so it's not fully fixed. It complains that hibernate.cfg.xml is not found, but configuration is configured as [ JPA Project Configured Connection ] and should use connection from Project JPA Settings and not look for hibernate.cfg.xml and not look for hibernate.cfg.xml
{code}
org.hibernate.HibernateException: /hibernate.cfg.xml not found
	at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:173)
	at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1940)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1921)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1901)
	at org.jboss.tools.hibernate.proxy.ConfigurationProxy.buildServiceRegistry(ConfigurationProxy.java:253)
	at org.jboss.tools.hibernate.proxy.ConfigurationProxy.buildSettings(ConfigurationProxy.java:125)
	at org.hibernate.console.ConsoleConfiguration$6.execute(ConsoleConfiguration.java:438)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:108)
	at org.hibernate.console.ConsoleConfiguration.getSettings(ConsoleConfiguration.java:436)
	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:129)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:108)
	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:125)
	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:65)
	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:104)
	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:238)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
{code}

> ArrayStoreException while opening database in Hibernate Console
> ---------------------------------------------------------------
>
>                 Key: JBIDE-17854
>                 URL: https://issues.jboss.org/browse/JBIDE-17854
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 4.2.0.Beta3
>         Environment: JBDS 8.0.0.
>            Reporter: Jiri Peterka
>            Assignee: Koen Aers
>            Priority: Blocker
>              Labels: respin-a
>             Fix For: 4.2.0.CR1
>
>
> An internal error has occurred.
> java.lang.ArrayStoreException
> Used pom file 
> {code}
> <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>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list