On 05/12/2009, at 10:01 PM, Paul Hoadley wrote:
> 4. The suite will run and all tests pass _the first time_. If I hit the
> JUnit pane's "Rerun Test" button, though, it fails on subsequent runs in
> AddressTest.beforeAddressTest() at the line above calling
> ContactSet.createContactSet() with:
>
> com.webobjects.foundation.NSForwardException
> [java.lang.reflect.InvocationTargetException]
> null:java.lang.reflect.InvocationTargetException
> at
> com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:600)
> at
> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:639)
> at
> com.webobjects.eoaccess.EOEntityClassDescription.createInstanceWithEditingContext(EOEntityClassDescription.java:242)
> at
> com.webobjects.eoaccess.EOUtilities.createAndInsertInstance(EOUtilities.java:861)
> at
> net.logicsquad.pbf.model.contactset._ContactSet.createContactSet(_ContactSet.java:322)
> at
> net.logicsquad.pbf.tests.model.contactset.AddressTest.beforeAddressTest(AddressTest.java:23)
> ...
I may have trailed off prematurely there. Here's the NPE that I presume is the
first problem:
Caused by: java.lang.NullPointerException
at
com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)
at
com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
at com.webobjects.eoaccess.EOAttribute.<init>(EOAttribute.java:998)
at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789)
at com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:1098)
at
com.webobjects.eoaccess.EOEntity._propertyDictionaryInitializer(EOEntity.java:3321)
at
com.webobjects.eoaccess.EOEntity._newDictionaryForProperties(EOEntity.java:3667)
at
com.webobjects.eoaccess.EOEntityClassDescription._newDictionaryForProperties(EOEntityClassDescription.java:88)
at
com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:111)
at
com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:100)
at
com.webobjects.eocontrol.EOGenericRecord.<init>(EOGenericRecord.java:73)
at er.extensions.eof.ERXGenericRecord.<init>(ERXGenericRecord.java:98)
at
net.logicsquad.webobjects.core.LSGenericRecord.<init>(LSGenericRecord.java:43)
at
net.logicsquad.pbf.model.contactset._ContactSet.<init>(_ContactSet.java:15)
at
net.logicsquad.pbf.model.contactset.ContactSet.<init>(ContactSet.java:18)
... 32 more
Does that suggest anything obvious?
--
Paul.
w http://logicsquad.net/
h http://paul.hoadley.name/
_______________________________________________
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]