File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullPointerException

 
ron mccarthy
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I am getting the above error when I try and use the jsapi interface, the I/O points the line as follows:

Any ideas???
Please???
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the very top line of the stack trace points to this line, it has to mean that "synth" is null -- it's never been initialized; unless the method you're calling is a native method, in which case, the problem could be with the parameters, or an internal fault. Are you sure you're allowed to pass "null" as the second argument? Are you sure the first parameter is non-null?
[ May 05, 2004: Message edited by: Ernest Friedman-Hill ]
 
ron mccarthy
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have printed out the String parameter that is to be my first argument in that line, and it does contain data. The reason I have null as the second parameter in there is because from other code snippets and examples that I have seen. I am at a loss as to why this is a problem. I have the class in a package in my slasses folder in my netbeans, and it compiles just fine. Anyone else got any other ideas???
Please help me!!!
Neil.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic