• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is this happening?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is this happening?


  • Subject: Re: Why is this happening?
  • From: Pascal Robert <email@hidden>
  • Date: Mon, 22 Dec 2008 15:25:24 -0500

I don't think that the problem is with WO, but maybe with Java 1.5. But I don't remember having problems with CGP's Java API and Java 1.5. Maybe CGP logs have a better error message. You may need to put the log level (in CGP) of the PWD service to "All Info". And try to upgrade to the latest CGProCLI.jar (http://www.communigate.com/CGJava/).

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:


import com.stalker.CGPro.CGProCLI; import com.stalker.CGPro.CGProException;

import blah.blah.application.Application;
import blah.blah.common.Constants;

public class OISCLI extends CGProCLI {

    private int port;
    private String adminUserid;
    private String password;
    private String serverAddress;

    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)
at blah.blah.database.MailGroup.startCLI(MailGroup.java:299)
at blah.blah.database.MailGroup.create(MailGroup.java:57)
at blah.blah.create.CreateGroupPage.createTheGroup(CreateGroupPage.java: 49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor $1.methodValue(NSKeyValueCoding.java:636)
at com.webobjects.foundation.NSKeyValueCoding $_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at com.webobjects.foundation.NSKeyValueCoding $DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java: 1736)
at com.webobjects.foundation.NSKeyValueCoding $Utility.valueForKey(NSKeyValueCoding.java:447)
at com.webobjects.foundation.NSKeyValueCodingAdditions $ DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 212)
at com .webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 1804)
at com .webobjects .appserver ._private .WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
at com .webobjects .appserver._private.WOSubmitButton.invokeAction(WOSubmitButton.java: 70)
at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java: 115)
at com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:141)
at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java: 115)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 1079)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
at com .webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 1745)
at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:369)
at com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(WOComponentRequestHandler.java:442)
at com .webobjects .appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at com .webobjects .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at com .webobjects .appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:613)



_______________________________________________ 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


-------------------------------------------------------
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

_______________________________________________
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


References: 
 >Why is this happening? (From: Mersida Kurti <email@hidden>)

  • Prev by Date: Re: Recording and looking up dates, when day-wide precision is required
  • Next by Date: Re: Why is this happening?
  • Previous by thread: Why is this happening?
  • Next by thread: Re: Why is this happening?
  • Index(es):
    • Date
    • Thread