Re: Main is not a WOComponent ?
Re: Main is not a WOComponent ?
- Subject: Re: Main is not a WOComponent ?
- From: Henrique Prange <email@hidden>
- Date: Tue, 19 Oct 2010 12:37:17 -0200
Hi James,
Add to your Application class:
@Override
public void installPatches() {
super.installPatches();
ERXPatcher.setClassForName(Main.class, "Main");
}
Cheers,
Henrique
On 19/10/2010, at 12:11, James Cicenia wrote:
> Trying to get this dev laptop working but when I try to run the app I get the following which I haven't seen.
> Thoughts? Thanks James
>
> Tue Oct 19 13:54:33 GMT 2010 WARN: Invalid value {1} for server variable named {0}, falling back to sane default of {2}.
> JDBC connection successful!
> Tue Oct 19 13:54:33 GMT 2010 WARN: Invalid value {1} for server variable named {0}, falling back to sane default of {2}.
> [2010-10-19 8:54:35 CDT] <main> ** DirectToWeb could not merge d2wmodel from file:/Users/jerrykosek/Library/Frameworks/ERDirectToWeb.framework/Resources/d2w.d2wmodel for reason: ** DirectToWeb exception - a rule cannot be instantiated if its right hand side is null. LHS=null RHS=null
> [2010-10-19 8:54:36 CDT] <main> Opening application's URL in browser:
> http://10.0.1.15:5555/cgi-bin/WebObjects/TOSDevelopment.woa
> [2010-10-19 8:54:35 CDT] <main> null
> [2010-10-19 8:54:36 CDT] <main> DirectToWeb WebAssistant launch line: appletviewer http://localhost:5555/cgi-bin/WebObjects/TOSDevelopment.woa/wa/D2WActions/openWebAssistant
> [2010-10-19 8:54:46 CDT] <WorkerThread0> <com.webobjects.appserver.WODirectAction>: Exception in performActionNamed() on the action "default" with the message:java.lang.IllegalArgumentException: <com.webobjects.appserver._private.WOComponentDefinition> Class 'Main' exists but is not a subclass of WOComponent.
> handleActionRequewtError java.lang.reflect.InvocationTargetException
> [2010-10-19 8:54:46 CDT] <WorkerThread0> <com.webobjects.appserver._private.WODirectActionRequestHandler>: Exception while handling action named "default" on action class "null" :java.lang.reflect.InvocationTargetException
> [2010-10-19 8:54:46 CDT] <WorkerThread0> <WOWorkerThread id=0 socket=Socket[addr=/10.0.1.15,port=49620,localport=5555]> Exception occurred while responding to client: com.webobjects.foundation.NSForwardException [java.lang.NullPointerException] null:<com.webobjects.appserver._private.WODirectActionRequestHandler>: Exception while trying to generate an error response: java.lang.NullPointerException
> [2010-10-19 8:54:47 CDT] <WorkerThread0> com.webobjects.foundation.NSForwardException [java.lang.NullPointerException] null:<com.webobjects.appserver._private.WODirectActionRequestHandler>: Exception while trying to generate an error response: java.lang.NullPointerException
> at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:320)
> at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161)
> at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
> at com.noxymo.application.NXApplication.dispatchRequest(NXApplication.java:201)
> at com.tos.Application.dispatchRequest(Application.java:436)
> 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:637)
> Caused by: java.lang.NullPointerException
> at com.tos.Application.handleException(Application.java:461)
> at com.webobjects.appserver._private.WODirectActionRequestHandler.generateErrorResponse(WODirectActionRequestHandler.java:126)
> at com.webobjects.appserver._priva
> _______________________________________________
> 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
_______________________________________________
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