[
https://jira.jboss.org/jira/browse/JBIDE-4194?page=com.atlassian.jira.plu...
]
Murat HAZER commented on JBIDE-4194:
------------------------------------
IMHO this issue occurs on complex relationships between entity classes, i have to analyze
each entity objects (i have appr. 200 objects) to find out which one causes this error (i
can't see any specific output in logs),
also there is a JIRA issue here:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-617
i can say that hibernate.cfg.xml is fairly simple ....
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="ht_try">
<property
name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property
name="hibernate.connection.password">pass</property>
<property
name="hibernate.connection.url">jdbc:oracle:thin:@IP_ADDRESS:DB_NAME</property>
<property
name="hibernate.connection.username">username</property>
<property name="hibernate.default_schema">SCHEMA</property>
<property
name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
<mapping class="com.tr....." />
</session-factory>
</hibernate-configuration>
NPE with Hibernate Tools
------------------------
Key: JBIDE-4194
URL:
https://jira.jboss.org/jira/browse/JBIDE-4194
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.0.0.GA
Environment: Eclipse Platform, Version: 3.4.2, Build id: M20090211-1700
JBoss Tools RichFaces for Eclipse, Version: 3.0.0.GA-R200903141626-H5
Reporter: Murat HAZER
Fix For: 3.0.1.GA, 3.1.0.M1
if you create hibernate-cfg.xml with annotations driven mapping classes hibernate tools
gives following error;
!ENTRY org.hibernate.eclipse.console 4 2 2009-04-16 16:14:58.008
!MESSAGE java.lang.NullPointerException
!SUBENTRY 1 org.hibernate.eclipse.console 4 150 2009-04-16 16:14:58.008
!MESSAGE <No message>
!STACK 0
java.lang.NullPointerException
at
org.hibernate.cfg.annotations.CollectionBinder.buildOrderByClauseFromHql(CollectionBinder.java:851)
at
org.hibernate.cfg.annotations.CollectionBinder.bindOneToManySecondPass(CollectionBinder.java:608)
at
org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:563)
at
org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:517)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:316)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter$1.execute(ConsoleConfigurationWorkbenchAdapter.java:45)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:94)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:41)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
at
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
solution: upgrade hibernate-annotations.jar to 3.3.1.GA and hibernate-entitymanager.jar
to 3.3.2.GA
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira