• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs


  • Subject: Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
  • From: Paul Hoadley <email@hidden>
  • Date: Sun, 6 Dec 2009 10:20:16 +1030

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >JUnit4 testing of EOs: InvocationTargetException on subsequent runs (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Small feedback to ProjectWonder team
  • Next by Date: Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
  • Previous by thread: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
  • Next by thread: Re: JUnit4 testing of EOs: InvocationTargetException on subsequent runs
  • Index(es):
    • Date
    • Thread