On Tuesday 30 March 2010 09:30:27, Adam Murdoch wrote:
> On 30/03/10 6:13 PM, Geronimo M. H. wrote:
> > After switching back to the 0.9-preview, the test passed too!
> > Then I did a "gradle clean test" and all tests failed again.
> > If there is some configuration-changes, I have to do, I'd missed that.
>
> It's really difficult to diagnose this problem without more information.
> How did they fail? What error messages did you get? From where? Also,
> stack traces are always valuable information.
OK, the testreport is this:
------------<snip>------------------------
error on context processing
de.schwarzrot.app.errors.ApplicationException: error on context processing
at
de.schwarzrot.app.support.AbstractApplicationLauncher.init(AbstractApplicationLauncher.java:208)
at
de.schwarzrot.app.support.SimpleApplicationLauncher.init(SimpleApplicationLauncher.java:68)
at
de.schwarzrot.app.support.AbstractApplicationLauncher.<init>(AbstractApplicationLauncher.java:119)
at
de.schwarzrot.app.support.SimpleApplicationLauncher.<init>(SimpleApplicationLauncher.java:55)
at de.schwarzrot.data.access.RepoTest.setUp(RepoTest.java:96)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:422)
at
org.gradle.api.internal.tasks.testing.junit.AntJUnitTestClassProcessor.processTestClass(AntJUnitTestClassProcessor.java:79)
at
org.gradle.api.internal.tasks.testing.WorkerTestClassProcessor.processTestClass(WorkerTestClassProcessor.java:49)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:31)
at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:22)
at
org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at
org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:59)
at $Proxy3.processTestClass(Unknown Source)
at
org.gradle.api.testing.execution.fork.TestWorker.processTestClass(TestWorker.java:83)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:31)
at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:22)
at
org.gradle.messaging.dispatch.MethodInvocationUnmarshallingDispatch.dispatch(MethodInvocationUnmarshallingDispatch.java:45)
at
org.gradle.messaging.dispatch.MethodInvocationUnmarshallingDispatch.dispatch(MethodInvocationUnmarshallingDispatch.java:22)
at
org.gradle.messaging.dispatch.DiscardOnFailureDispatch.dispatch(DiscardOnFailureDispatch.java:31)
at
org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:194)
at org.gradle.messaging.dispatch.AsyncDispatch.access$200
(AsyncDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch$2.run(AsyncDispatch.java:84)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from class path resource
[de/schwarzrot/app/base/ctx/data-access-context.xml]; nested exception is
java.io.FileNotFoundException: class path resource
[de/schwarzrot/app/base/ctx/data-access-context.xml] cannot be opened because
it does not exist
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:320)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:184)
at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:97)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:338)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at
de.schwarzrot.app.support.AbstractApplicationLauncher.init(AbstractApplicationLauncher.java:205)
... 37 more
Caused by: java.io.FileNotFoundException: class path resource
[de/schwarzrot/app/base/ctx/data-access-context.xml] cannot be opened because
it does not exist
at
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:142)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:307)
... 49 more
------------<snap>------------------------
The missing context is part of another libProject of the same top-level
project and the dependency declaration is:
compile project(':SRLibDA')
The library has been built and is ok, which means, that it contains that
resource.
I don't have any special test configuration.
> Generally, yes, though there's still a few places where this is not
> working yet
Ok - if you already know that - forget what I wrote about it.
My intention was feedback ...
> > Next point may be my misunderstanding - gradle clean stil works.
> > From the announcement I thought, it has been renamed to delete?
>
> The class name was changed from Clean to Delete. The Delete instance
> added by the java plugin still has the name 'clean'. So the command-line
> interface hasn't changed.
I see - very nice :)
Thanks for pointing that out.
> > The last point is just an issue in the context "gradle does not lock you
> > in": I'd like to have the testreports at rootProject-level with
> > subdirectories for each project, so I tried:
> >
> > testReportDirName = new File(rootProject.projectDir.absolutePath
> > + "/reports/", project.name)
> >
> > but gradle did not respect the absolute path.
> > Then I read in the userguide, that the testReportDir is relative to the
> > reportdir, which is relative to the builddir.
> >
> > Well, from my point of view this is kind of "locked in".
>
> You want testReportDir = new File(...)
I don't mind, whether to set testReportDirName or testReportDir ...
regarding to 19.6 of the userguide, testReportDir is a read-only property and
I don't see any property, that I could use to overwrite relativeness.
kind regards
Geronimo
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email