File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "NullPointerException" Watch "NullPointerException" New topic
Author

NullPointerException

ron mccarthy
Greenhorn

Joined: Apr 29, 2004
Posts: 17
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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 ]

[Jess in Action][AskingGoodQuestions]
ron mccarthy
Greenhorn

Joined: Apr 29, 2004
Posts: 17
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
 
subject: NullPointerException