• 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

Error

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I'm trying to send parameters to SAP(RFC) using JCo. While running the JSP page i'm getting the following error.



Please help me....
Thanks
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What can I say? Your code has a NullPointerException somewhere. It's in a method named saveGLData. It's at line 167, too, but that isn't going to help you unless you can find the Java code that Websphere converted your JSP to. That's pretty much it. Good luck. Hopefully the method isn't too long.

This is one reason why you shouldn't put that sort of logic into a JSP. If you can't find the problem, I would suggest refactoring the JSP. Extract all that SAP update logic into a servlet, where you have a much better chance of locating the problem. Have it forward or redirect to a JSP whose job is limited to displaying HTML to the client.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic