Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333530 - FAKE JPQL syntax problem: node to traverse cannot be null!
Summary: FAKE JPQL syntax problem: node to traverse cannot be null!
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.3.2   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: dali.general-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 23:45 EST by elhanan Maayan CLA
Modified: 2011-01-05 10:19 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.