I changed my call to instantiate page to create the context longhand
with the same fake request in wonder.
WORequest request = new ERXRequest("GET", "", "HTTP/1.1", null,
null, null);
WOContext context = new WOContext(request);
OrderConfirmation p = (OrderConfirmation)
Application.application().pageWithName("OrderConfirmation", context);
p.so = salesorder;
This looks sloppy, but it works. Is there a problem with this?
Thanks,
John
On Feb 9, 2007, at 10:21 AM, John Larson wrote:
I am trying to use ERXApplication.instantiatePage to generate a
page to use in an e-mail. It works fine from Eclipse, but when I
deploy it to the tomcat server I get this error.
java.lang.NullPointerException
at com.webobjects.jspservlet.WOServletContext.<init>
(WOServletContext.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.webobjects.foundation._NSUtilities.instantiateObject
(_NSUtilities.java:575)
at com.webobjects.appserver.WOApplication.createContextForRequest
(WOApplication.java:1674)
at er.extensions.ERXApplication.createContextForRequest
(ERXApplication.java:758)
at er.extensions.ERXApplication.instantiatePage
(ERXApplication.java:320)
.
.
.
I've been running this app for over a year, so I think the general
setup is right. Any hints would be appreciated.
Thanks,
John
_______________________________________________
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/the_larsons%
40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
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]