So you have a CGP server in front on another CGP
server??
> Ok, so I think I've figured out what the problem is NOT. It does not seem to be the code, but rather then set up in CommuniGate Pro. The glitch is that we have added another server to talk to cgp. My question is: Does this server needs to be added somewhere in the interface in CGP, so that it recognizes the server that it is trying to talk to?
>
> Thanks,
> Mersida
>
> --- On Tue, 12/23/08, Pascal Robert <
email@hidden> wrote:
>
> From: Pascal Robert <
email@hidden>
> Subject: Re: Why is this happening?
> To: "Mersida Kurti" <
email@hidden>
> Cc: "WebObjects Dev Apple" <
email@hidden>
> Date: Tuesday, December 23, 2008, 10:37 AM
>
> 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() 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)
> >
-------------------------------------------------------
Pascal Robert
http://www.macti.cahttp://www.aircourriel.comhttp://www.linkedin.com/in/mactiSkype: MacTICanada
AIM/iChat : MacTICanada