To change
the log level, go to the CGP admin interface (
http://host.domain.com:8010) -> Settings -> Services -> PWD.
> 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@hidden> wrote:
>
> From: Lachlan Deck <
email@hidden>
> Subject: Re: Why is
this happening?
> To: "Mersida Kurti" <
email@hidden>
> Cc: "WebObjects Dev Apple" <
email@hidden>
> 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@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()
target="_blank">http://www.macti.ca
http://www.aircourriel.comhttp://www.linkedin.com/in/mactiSkype: MacTICanada
AIM/iChat : MacTICanada