Problem with HQL Console--java.lang.NullPointerException

This is a discussion on Problem with HQL Console--java.lang.NullPointerException within the J2EE forums in Framework and Interface Programming category; Hi, I'm using IDEA 7.0.3 and have a project with a Hibernate Facets which has a correct cfg.xml file and a tested DataSouce pointed to its SessionFactory. Using Annotation to set up the entities mapping instead of mapping files, and then when I open the HQL console window and intend to do a hql query, there is only a "java.lang.NullPointerException" shown in the query result window without any query result. Is there something wrong with my configuration or a bug and any one has the same problem? Thanks all...

Go Back   Application Development Forum > Framework and Interface Programming > J2EE

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 03-14-2008, 02:40 AM
jason F wei
Guest
 
Default Problem with HQL Console--java.lang.NullPointerException

Hi,
I'm using IDEA 7.0.3 and have a project with a Hibernate Facets which has a correct cfg.xml file and a tested DataSouce pointed to its SessionFactory.

Using Annotation to set up the entities mapping instead of mapping files, and then when I open the HQL console window and intend to do a hql query, there is only a "java.lang.NullPointerException" shown in the query result window without any query result.

Is there something wrong with my configuration or a bug and any one has the same problem?

Thanks all
Reply With Quote
  #2  
Old 03-26-2008, 02:59 PM
Gregory Shrago (JetBrains)
Guest
 
Default Re: Problem with HQL Console--java.lang.NullPointerException

Hello jason,

In the next minor release/EAP the error reporting will be improved,
thanks to your report.

Meanwhile if this problem bothers you often a
small sample project to reproduce it would be a great help to fix it.
Otherwise I can send you an updated hibernate plugin so that
you'll be able to post a normal bug report with a good old stacktrace.

Thank you,
Gregory Shrago

jason F wei wrote:
> Hi, I'm using IDEA 7.0.3 and have a project with a Hibernate Facets
> which has a correct cfg.xml file and a tested DataSouce pointed to
> its SessionFactory.
>
> Using Annotation to set up the entities mapping instead of mapping
> files, and then when I open the HQL console window and intend to do a
> hql query, there is only a "java.lang.NullPointerException" shown in
> the query result window without any query result.
>
> Is there something wrong with my configuration or a bug and any one
> has the same problem?
>
> Thanks all

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:15 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.