This is what is in line 161:

  if(secureLogin && prompt.indexOf('<') >1 )

Why would this be causing issues?  I have updated to the latest version of 
CGPro.

Also, I can't find where you turn the logs on for CGP to all info...where is 
this PWD service? Maybe I'm missing something here...

Thanks,
Mersida

--- On Mon, 12/22/08, Lachlan Deck <[email protected]> wrote:

From: Lachlan Deck <[email protected]>
Subject: Re: Why is this happening?
To: "Mersida Kurti" <[email protected]>
Cc: "WebObjects Dev Apple" <[email protected]>
Date: Monday, December 22, 2008, 3:32 PM

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 protected]",
>                 "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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to