• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JPA 2.1 NamedStoredProcedureQuery using

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Oracle procedure(REGION table in hr scheme)



I could call StoredProcedure by the way:(dynamically)



Run succesed:
[EL Info]: 2015-07-07 14:46:09.746--ServerSession(1948868640)--EclipseLink, version: Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5
[EL Info]: connection: 2015-07-07 14:46:10.006--ServerSession(1948868640)--file:/C:/xampp/htdocs/StoredProcedureWithJPA/build/classes/_StoredProcedureWithJPAPU login successful
Americas
-----------------------------------------------------------------------------------
But dont work below way:





Output error:
Exception in thread "main" java.lang.IllegalStateException: No value was bound to parameter named: reg_name
at org.eclipse.persistence.internal.jpa.QueryImpl.getParameterValue(QueryImpl.java:1098)
at storedprocedurewithjpa.StoredProcedureWithAnnotation.main(StoredProcedureWithAnnotation.java:31)
Java Result: 1

What do I do?Please help
 
Hey cool! They got a blimp! But I have a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic