• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Selecting Data from Oracle

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Can someone please tell me what am I doing wrong here? What I'm trying to do is extract data from Oracle with functions and into XML
It keeps greeting me with NullPointerException error.

This page is excuted first;


Then comes here to write XML
 
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So is the actual NullPointerException error you're getting a secret? At the very least, it will include the file and line where the error occurred, which will save folks a lot of time hunting through your code looking for what might be wrong.

 
J James
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks for your reply, sorry I couldn't post this before the Server went down.



Mark E Hansen wrote:So is the actual NullPointerException error you're getting a secret? At the very least, it will include the file and line where the error occurred, which will save folks a lot of time hunting through your code looking for what might be wrong.

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could the problem be line 36?



I am not sure why you have a CallableStatement and an OracleCallableStatement, but your CallableStatement variable callSP is set to null at line 4.
 
J James
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you.
Indeed it was line 36 I've just commented it out and it's working also made the amendments what you suggested.
many thanks
JJ

Charles Owen wrote:Could the problem be line 36?



I am not sure why you have a CallableStatement and an OracleCallableStatement, but your CallableStatement variable callSP is set to null at line 4.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic