This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ]
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.