[
https://jira.jboss.org/browse/JBIDE-7817?page=com.atlassian.jira.plugin.s...
]
Vitali Yemialyanchyk updated JBIDE-7817:
----------------------------------------
Fix Version/s: 3.2.0.CR1
NPE when query in query exporter is not defined
-----------------------------------------------
Key: JBIDE-7817
URL:
https://jira.jboss.org/browse/JBIDE-7817
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.2.0.Beta2
Environment: JBDS 4.0.0.beta2 h23
Reporter: Jiri Peterka
Assignee: Vitali Yemialyanchyk
Fix For: 3.2.0.CR1
Create Query Exporter and do not define query property, you'll get:
java.lang.NullPointerException
at
org.hibernate.engine.query.QueryPlanCache$HQLQueryPlanKey.<init>(QueryPlanCache.java:203)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:91)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1760)
at org.hibernate.tool.hbm2x.QueryExporter.doStart(QueryExporter.java:36)
at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
at
org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:354)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:71)
at
org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:329)
at
org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:256)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:923)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1126)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira