Here the exception:
Any help apprecciated!
THANKS
Error:
java.lang.NullPointerException
Reason:
Stack trace:
File
Line#
Method
Package
WOToManyRelationship.java
348
updateSourceObject
com.webobjects.woextensions
WOToManyRelationship.java
421
setSelections
com.webobjects.woextensions
NativeMethodAccessorImpl.java
NA
invoke0
sun.reflect
NativeMethodAccessorImpl.java
39
invoke
sun.reflect
DelegatingMethodAccessorImpl.java
25
invoke
sun.reflect
Method.java
324
invoke
java.lang.reflect
NSKeyValueCoding.java
688
setMethodValue
com.webobjects.foundation
NSKeyValueCoding.java
1175
setValueInObject
com.webobjects.foundation
NSKeyValueCoding.java
1293
takeValueForKey
com.webobjects.foundation
WOComponent.java
1550
takeValueForKey
com.webobjects.appserver
NSKeyValueCoding.java
519
takeValueForKey
com.webobjects.foundation
NSValidation.java
733
validateTakeValueForKeyPath
com.webobjects.foundation
WOComponent.java
1273
validateTakeValueForKeyPath
com.webobjects.appserver
WOKeyValueAssociation.java
71
setValue
com.webobjects.appserver._private
WOComponent.java
756
setValueForBinding
com.webobjects.appserver
WOCheckboxMatrix.java
108
setSelections
com.webobjects.woextensions
NativeMethodAccessorImpl.java
NA
invoke0
sun.reflect
NativeMethodAccessorImpl.java
39
invoke
sun.reflect
DelegatingMethodAccessorImpl.java
25
invoke
sun.reflect
Method.java
324
invoke
java.lang.reflect
NSKeyValueCoding.java
688
setMethodValue
com.webobjects.foundation
NSKeyValueCoding.java
1175
setValueInObject
com.webobjects.foundation
NSKeyValueCoding.java
1293
takeValueForKey
com.webobjects.foundation
WOComponent.java
1550
takeValueForKey
com.webobjects.appserver
NSKeyValueCoding.java
519
takeValueForKey
com.webobjects.foundation
NSValidation.java
733
validateTakeValueForKeyPath
com.webobjects.foundation
WOComponent.java
1273
validateTakeValueForKeyPath
com.webobjects.appserver
WOKeyValueAssociation.java
71
setValue
com.webobjects.appserver._private
WOGenericElement.java
74
takeValuesFromRequest
com.webobjects.appserver._private
WOGenericContainer.java
16
takeValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
81
takeChildrenValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
89
takeValuesFromRequest
com.webobjects.appserver._private
WOComponent.java
914
takeValuesFromRequest
com.webobjects.appserver
WOComponentReference.java
97
takeValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
81
takeChildrenValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
89
takeValuesFromRequest
com.webobjects.appserver._private
WOConditional.java
41
takeValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
81
takeChildrenValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
89
takeValuesFromRequest
com.webobjects.appserver._private
WOComponent.java
914
takeValuesFromRequest
com.webobjects.appserver
WOComponentReference.java
97
takeValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
81
takeChildrenValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
89
takeValuesFromRequest
com.webobjects.appserver._private
WOForm.java
70
takeValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
81
takeChildrenValuesFromRequest
com.webobjects.appserver._private
WODynamicGroup.java
89
takeValuesFromRequest
com.webobjects.appserver._private
WOComponent.java
914
takeValuesFromRequest
com.webobjects.appserver
WOSession.java
1139
takeValuesFromRequest
com.webobjects.appserver
WOApplication.java
1350
takeValuesFromRequest
com.webobjects.appserver
WOComponentRequestHandler.java
189
_dispatchWithPreparedPage
com.webobjects.appserver._private
WOComponentRequestHandler.java
287
_dispatchWithPreparedSession
com.webobjects.appserver._private
WOComponentRequestHandler.java
322
_dispatchWithPreparedApplication
com.webobjects.appserver._private
WOComponentRequestHandler.java
358
_handleRequest
com.webobjects.appserver._private
WOComponentRequestHandler.java
432
handleRequest
com.webobjects.appserver._private
WOApplication.java
1306
dispatchRequest
com.webobjects.appserver
WOWorkerThread.java
173
runOnce
com.webobjects.appserver._private
WOWorkerThread.java
254
run
com.webobjects.appserver._private
Thread.java
552
run
java.lang
NA : Non applicable, JIT activated
On 18/mag/05, at 19:39, Chuck Hill wrote:
On May 18, 2005, at 1:59 AM, Amedeo Mantica wrote:
Hi, I have a DB with this entinies: Cars and Accesories...
I need to do a to many relationship between this two entities
a Car can have many Accessories
I made the relationship with EOModeler without any problem, than
added in my accessiories component page a WOToManyRelationship
binding the relationshipkey with the name of the relationship, the
sourceObject with the accessiories object and the source entity name
with tha name of the entity accessiories.
Wen i load the accessiories compnent the WOToManyRelationship
display me the list of Cars that I can choose, correctly.
But when I submit the form I obtain an exception.
Can anyone help me with this?
Exceptions are important. They provide valuable clues as to what
went wrong. Try carefully reading all the details of the exception.
Can you spot the problem? If not, post the entire exception with
stack trace here and perhaps we can help. Otherwise we are just
guessing.
Chuck
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects