Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333530

Summary: FAKE JPQL syntax problem: node to traverse cannot be null!
Product: [WebTools] Dali JPA Tools Reporter: elhanan Maayan <elh.mailgate>
Component: GeneralAssignee: dali.general-inbox <dali.general-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3 CC: karenfbutzke, neil.hauge
Version: 2.3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description elhanan Maayan CLA 2011-01-04 23:45:09 EST
if you create a method in your class called createQuery give it a simple string parameter, and then call it with just a string value (like "getBySalary"), you will get this problem, initially i didn't understand what's going on, untill i figured out that it's exacltly like the EntityManagers' createQuery method. it simply thinks the paramters is a query clause

this is why i think it's dali problem and not a Hibernate tools problem.
Comment 1 Karen Butzke CLA 2011-01-05 09:10:40 EST
This does not sound like an issue with Dali, is there a stack trace you could attach?
Comment 2 elhanan Maayan CLA 2011-01-05 09:20:47 EST
no there isn't, it's not an exception,
Comment 3 Neil Hauge CLA 2011-01-05 09:54:31 EST
Where exactly do you see this "node to traverse cannot be null" message?  What are you doing when this message occurs?
Comment 4 elhanan Maayan CLA 2011-01-05 10:06:46 EST
(In reply to comment #3)
> Where exactly do you see this "node to traverse cannot be null" message?  What
> are you doing when this message occurs?

i'm extending an AbstractDao class which contains an EntityManager 

this class has createQuery method which calls the entity Manager's createQuery and returns the TypedQuery

the subclass call this method with the name of the named query i want, however just by calling this method, generates that error.
Comment 5 Neil Hauge CLA 2011-01-05 10:19:37 EST
I think you are either trying to file a bug against the JPA specification, or the Hibernate implementation of that specification.  In either case, this is a "run-time" issue, not a Dali Java Persistence Tools issue.  I recommend taking this issue to the Hibernate forums, or perhaps enter a bug against Hibernate if you think this is a bug.