Re: Why is this happening?
Re: Why is this happening?
- Subject: Re: Why is this happening?
- From: Lachlan Deck <email@hidden>
- Date: Tue, 23 Dec 2008 07:32:20 +1100
On 23/12/2008, at 7:03 AM, Mersida Kurti wrote:
So we have this java code, which we extend from the CGProCLI. The
code was written in Java 1.4.2 and lately we switched it to Java 1.5
and the new webobjects. The code works fine in 1.4.2. It builds
and runs fine until a certain point with Java 1.5 and new
webobjects, and I cannot figure out why it is giving me a null
pointer exception. Here's what I'm looking at:
<...>
public class OISCLI extends CGProCLI {
<...>
public OISCLI() throws CGProException {
super("host.domain.com",
1111,
"email@hidden",
"password");
port = Constants.port_mail_server;
adminUserid = Constants.USER_POSTMASTER + domain();
password = (String)Application.password();
serverAddress = Constants.SERVER_MAIL;
.....cont
}
Here's the error message stack:
I don't get it why it is nulling it out when I'm specifically
telling it what the password is...Any chance that this CGProCLI does
not work with the new webobjects...Anyone seen this before?
Thank you in advance!
Mersida
2008-12-22 14:57:10 EST] <main> Waiting for requests...
[2008-12-22 14:57:33 EST] <WorkerThread6>
java.lang.NullPointerException
at com.stalker.CGPro.CGProCLI.connect(CGProCLI.java:161)
at com.stalker.CGPro.CGProCLI.<init>(CGProCLI.java:65)
at blah.blah.common.OISCLI.<init>(OISCLI.java:20)
The question is what is CGProCLI.java:161 doing?
If it's calling some method called password() which you've not set yet
then that'll be your problem.
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden