Re: Wrong Session class
Re: Wrong Session class
- Subject: Re: Wrong Session class
- From: Jean Pierre Malrieu <email@hidden>
- Date: Tue, 07 Jun 2011 14:37:40 +0200
Le 7 juin 2011 à 14:23, Mike Schrag a écrit : not sure what changed in your app, but it's basically just guessing wrong on the session class .. you can override _session() in your WOApplication subclass and return the exact class you expect it to be.
if I put the following method in my Application
@Override protected Class _sessionClass() { return com.educlab.iep.Session.class; }
I receive the following exception:
Application: SaisieIEP Error: java.lang.IllegalStateException exception Reason: java.lang.IllegalStateException: An Exception occurred while generating the Exception page 'WOExceptionPage'. This is most likely due to an error in 'WOExceptionPage' itself or WebObjects encountered an uncaught exception while creating a Session object.
Below are the logs of the original Exception which occured in com.educlab.iep.Application, then the later Exception in WOExceptionPage.
Original Exception: java.lang.ClassNotFoundException: com.educlab.iep.Session at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.educlab.iep.Application._sessionClass(Application.java:122) at com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973) at er.extensions.appserver.ERXApplication.createSessionForRequest(ERXApplication.java:2239) at com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110) at com.webobjects.appserver.WOContext.session(WOContext.java:369) at com.webobjects.appserver.WOContext.componentActionURL(WOContext.java:1208) at com.webobjects.appserver.WOContext._componentActionURL(WOContext.java:1255) at er.extensions.components._private.ERXWOForm.appendAttributesToResponse(ERXWOForm.java:421) at com.webobjects.appserver._private.WOHTMLDynamicElement._appendOpenTagToResponse(WOHTMLDynamicElement.java:493) at er.extensions.components._private.ERXWOForm.appendToResponse(ERXWOForm.java:449) at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122) at com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574) at com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543) at com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538) at com.webobjects.appserver.WODirectAction.defaultAction(WODirectAction.java:119) 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:597) at com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:124) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949) 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:680)
WOExceptionPage Exception: java.lang.NoClassDefFoundError: com/educlab/iep/Session at com.educlab.iep.Application._sessionClass(Application.java:122) at com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973) at er.extensions.appserver.ERXApplication.createSessionForRequest(ERXApplication.java:2239) at com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110) at com.webobjects.appserver.WOContext.session(WOContext.java:369) at com.webobjects.appserver.WOContext.componentActionURL(WOContext.java:1208) at com.webobjects.appserver._private.WOHyperlink._appendComponentActionURLToResponse(WOHyperlink.java:183) at com.webobjects.appserver._private.WOHyperlink.appendAttributesToResponse(WOHyperlink.java:219) at er.extensions.components._private.ERXHyperlink.appendAttributesToResponse(ERXHyperlink.java:98) at com.webobjects.appserver._private.WOHTMLDynamicElement._appendOpenTagToResponse(WOHTMLDynamicElement.java:493) at com.webobjects.appserver._private.WOHyperlink._appendOpenTagToResponse(WOHyperlink.java:133) at com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse(WOHTMLDynamicElement.java:443) at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com.webobjects.appserver._private.WOConditional.appendToResponse(WOConditional.java:94) at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122) at com.webobjects.appserver._private.WOComponentReference.appendToResponse(WOComponentReference.java:135) at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122) at com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574) at com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543) at com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538) at com.webobjects.woextensions.WOExceptionPage.generateResponse(WOExceptionPage.java:38) at com.webobjects.appserver.WOApplication._handleError(WOApplication.java:3095) at com.webobjects.appserver.WOApplication.handleException(WOApplication.java:3245) at er.extensions.appserver.ERXApplication.handleException(ERXApplication.java:1768) at er.extensions.appserver.ERXApplication.handleActionRequestError(ERXApplication.java:1701) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:271) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:124) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949) 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:680)
|
_______________________________________________
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