Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001691 [Resin] major always 04-16-07 10:35 04-16-07 12:27
Reporter westrupp View Status public  
Assigned To westrupp
Priority high Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.1 Product Version 3.1.0
  Product Build
Summary 0001691: Amber NP's using createNativeQuery
Description 1) Query q = complianceEm.createNativeQuery("select * from Location l where
l.countryId =?", Location.class);
q.setParameter(1, new Integer(countryID));
List<Location> allLocations = q.getResultList();

Throws this error:
java.lang.NullPointerException
    at
com.caucho.amber.manager.QueryImpl.checkParameterIndex(QueryImpl.java:89
4)
    at
com.caucho.amber.manager.QueryImpl.setParameter(QueryImpl.java:595)
    at
-----------
2) Query q = complianceEm.createNativeQuery("select * from Location l where
l.countryId =3", Location.class);
List<Location> allLocations = q.getResultList();

Throws this error:
java.lang.NullPointerException
    at
com.caucho.amber.manager.AmberConnection.addEntity(AmberConnection.java:
1303)
    at
com.caucho.amber.manager.AmberConnection.load(AmberConnection.java:961)
    at
com.caucho.amber.manager.QueryImpl.getInternalNative(QueryImpl.java:807)
    at
com.caucho.amber.manager.QueryImpl.getResultList(QueryImpl.java:196)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0001853)
westrupp
04-16-07 12:27

jpa/0y17, jpa/0y20
 

- Issue History
Date Modified Username Field Change
04-16-07 10:35 westrupp New Issue
04-16-07 10:45 westrupp Status new => assigned
04-16-07 10:45 westrupp Assigned To  => westrupp
04-16-07 12:27 westrupp Status assigned => closed
04-16-07 12:27 westrupp Note Added: 0001853
04-16-07 12:27 westrupp Resolution open => fixed
04-16-07 12:27 westrupp Fixed in Version  => 3.1.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker