File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "NullPointerException" Watch "NullPointerException" New topic


ron mccarthy

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???
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

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

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!!!
I agree. Here's the link:
subject: NullPointerException
jQuery in Action, 3rd edition