Anonymous | Login | Signup for a new account | 12-17-2024 14:47 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product Version | 3.1.0 | ||||||
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) |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |