Hi,
I’m encountering a bit of a problem when running unit tests in Eclipse using
WOUnit. I am suddenly getting the following error and I’m not certain at all
what changed in my setup to cause this. This is happening for unit test
involving EOs that I run from within Eclipse. To run a test I simply right
click on the test or the test suite and run as JUnit Test. In the case where I
run the app itself locally or on a server or run the unit tests on a server via
Jenkins they all run fine.
It is now happening across all projects, even old ones which makes me think
there is some setting that changed that I am not aware of. I’m running
Yosemite, Java 1.7 and Eclipse Luna 4.4.1 and WOLips 4.4 and for unit testing
I’m using WOUnit 1.2.3 and the JUnit in Wonder.
Any help would be appreciated.
java.lang.IllegalStateException: Cannot guarantee unique global ID generation:
InetAddress for local host not accessible
at
com.webobjects.eocontrol.EOTemporaryGlobalID._hostIdentificationBytes(EOTemporaryGlobalID.java:143)
at
com.webobjects.eocontrol.EOTemporaryGlobalID.assignGloballyUniqueBytes(EOTemporaryGlobalID.java:278)
at
com.webobjects.eocontrol.EOTemporaryGlobalID.<init>(EOTemporaryGlobalID.java:309)
at
com.webobjects.eocontrol.EOEditingContext.insertObject(EOEditingContext.java:2887)
at er.extensions.eof.ERXEC.insertObject(ERXEC.java:989)
at
com.webobjects.eoaccess.EOUtilities.createAndInsertInstance(EOUtilities.java:862)
at
com.wounit.rules.AbstractEditingContextRule$UnderTestFacade.create(AbstractEditingContextRule.java:72)
at
com.wounit.rules.AnnotationProcessor.createEOForType(AnnotationProcessor.java:49)
at
com.wounit.rules.AnnotationProcessor.initializeObject(AnnotationProcessor.java:172)
at
com.wounit.rules.AnnotationProcessor.process(AnnotationProcessor.java:205)
at
com.wounit.rules.AbstractEditingContextRule.before(AbstractEditingContextRule.java:182)
at
com.wounit.rules.MockEditingContext.before(MockEditingContext.java:147)
at
com.wounit.rules.AbstractEditingContextRule$1.evaluate(AbstractEditingContextRule.java:162)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]