Two Laptop Bag
The moose likes Object Relational Mapping and the fly likes JPA query problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "JPA query problem" Watch "JPA query problem" New topic
Author

JPA query problem

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi all,

my query is like:

this is working fine with STS 2.7.1 but not working with Netbean 6.9.1, the exception i am getting is like


i am using JDK 1.6, please suggesting what i am missing

Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Is that the full stacktrace?


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 550
Something is null, check line #32 in obtainMaxNoteOrderByTrade.

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

yes, this is the stack track that i am getting

and

line #32 is
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JPA query problem
 
Similar Threads
Null Pointer Exception using DAO, Hibernate and Struts
How can I divide the result of a query in several JSP files?
LazyInitializationException [spring + struts2]
Struts2 java.lang.reflect.InvocationTargetException (Struts2 with Hibernate)
How to resolve"java.sql.SQLException: Network error IOException: Connection refused: connect"