Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1-beta-3
-
None
-
Server (with continuum): Windows Server 2003,Java 1.5.0_11-b03
Client: Maven2 java project (sourcelevel 1.5) dependent upon org.apache.maven.continuum:continuum-xmlrpc-client:1.1-beta-3
Description
Trying this:
final ContinuumXmlRpcClient client = new ContinuumXmlRpcClient(new URL("http://myserver:8080/continuum/xmlrpc"), "me", "my passwd");
for (final Iterator projectGroupIterator = client.getAllProjectGroups().iterator(); projectGroupIterator.hasNext()
I get this:
java.lang.RuntimeException: org.apache.maven.continuum.ContinuumException: The remote method failed.
at com.cerner.msvc.orders.continuum.InstallProjectsTest.testGetAllProjectGroups(InstallProjectsTest.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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 org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.apache.maven.continuum.ContinuumException: The remote method failed.
at org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.getAllProjectGroups(ContinuumXmlRpcClient.java:211)
at com.cerner.msvc.orders.continuum.InstallProjectsTest.testGetAllProjectGroups(InstallProjectsTest.java:58)
... 16 more
Caused by: org.apache.xmlrpc.XmlRpcException: Failed to invoke method getAllProjectGroups in class org.apache.maven.continuum.xmlrpc.server.ContinuumServiceImpl: You have just attempted to access field "projects" yet this field was not detached when you detached the object. Either dont access this field, or detach the field when detaching the object.
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:184)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at org.apache.xmlrpc.client.util.ClientFactory$1.invoke(ClientFactory.java:104)
at $Proxy0.getAllProjectGroups(Unknown Source)
at org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.getAllProjectGroups(ContinuumXmlRpcClient.java:207)
... 17 more