This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes JPA query problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA query problem" Watch "JPA query problem" New topic

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?

[] [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: 553
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


line #32 is
I agree. Here's the link:
subject: JPA query problem
Similar Threads
How can I divide the result of a query in several JSP files?
Struts2 java.lang.reflect.InvocationTargetException (Struts2 with Hibernate)
LazyInitializationException [spring + struts2]
Null Pointer Exception using DAO, Hibernate and Struts
How to resolve"java.sql.SQLException: Network error IOException: Connection refused: connect"