D2W exception resulting in app hanging
D2W exception resulting in app hanging
- Subject: D2W exception resulting in app hanging
- From: Sam Barnum <email@hidden>
- Date: Fri, 12 Dec 2003 09:36:36 -0800
I have a user class with a relation to schools.
When I create a new user,
public WOComponent addUser() {
return
(WOComponent)D2W.factory().editPageForNewObjectWithEntityNamed("User",
mySession());
}
then click on the 'edit school relationship' icon, I get the exception
detailed below. I'm assuming that this is because the user doesn't
exist in the database yet, so there's no object to send to the school
edit relationship page (?)
The really strange part is, the app hangs after doing this! It doesn't
respond to any further requests, and trying to shut it down in
JavaMonitor doesn't work, it stays running and requires a force quit.
Anyone have any similar experience/workarounds?
Here is the exception I receive?
Stack trace: java.lang.NullPointerException
at
com.webobjects.directtoweb.D2WEditRelationshipPage.setMasterObjectAndRel
ationshipKey(D2WEditRelationshipPage.java:106)
at
com.webobjects.directtoweb.D2WEditToOneFault.editRelationship(D2WEditToO
neFault.java:32)
at java.lang.reflect.Method.invoke(Native Method)
at
com.webobjects.foundation.NSKeyValueCoding$1.methodValue(NSKeyValueCodin
g.java:684)
at
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(
NSKeyValueCoding.java:1160)
at
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueFo
rKey(NSKeyValueCoding.java:1268)
at
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1544)
at
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValu
eCoding.java:498)
at
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementatio
n.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:16
05)
at
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent
(WOKeyValueAssociation.java:46)
at
com.webobjects.appserver._private.WOImageButton.invokeAction(WOImageButt
on.java:239)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicG
roup.java:110)
at
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:950)
at
com.webobjects.appserver._private.WOComponentReference.invokeAction(WOCo
mponentReference.java:113)
at
com.webobjects.appserver._private.WOSwitchComponent.invokeAction(WOSwitc
hComponent.java:171)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WOGenericContainer.invokeAction(WOGene
ricContainer.java:23)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicG
roup.java:110)
at
com.webobjects.appserver._private.WORepetition.invokeAction(WORepetition
.java:230)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WOGenericContainer.invokeAction(WOGene
ricContainer.java:23)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicG
roup.java:110)
at
com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:82)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WOGenericContainer.invokeAction(WOGene
ricContainer.java:23)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicG
roup.java:110)
at
com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComp
onentContent.java:31)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicG
roup.java:110)
at
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:950)
at
com.webobjects.appserver._private.WOComponentReference.invokeAction(WOCo
mponentReference.java:113)
at
com.webobjects.appserver._private.WOSwitchComponent.invokeAction(WOSwitc
hComponent.java:171)
at
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:950)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1136)
at com.prosc.core.ProscSession.invokeAction(ProscSession.java:29)
at
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1
313)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedPage(WOComponentRequestHandler.java:196)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedSession(WOComponentRequestHandler.java:287)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReque
st(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleReques
t(WOComponentRequestHandler.java:432)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav
a:1244)
at
com.prosc.core.ProscApplication.dispatchRequest(ProscApplication.java:23
5)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.
java:167)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java
:248)
at java.lang.Thread.run(Thread.java:491)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.