Calling getAllProjectGroups() fails
-----------------------------------

                 Key: CONTINUUM-1495
                 URL: http://jira.codehaus.org/browse/CONTINUUM-1495
             Project: Continuum
          Issue Type: Bug
          Components: XMLRPC Interface
    Affects Versions: 1.1-beta-3
         Environment: 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

            Reporter: Steven Cummings


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();)
            {
                final ProjectGroupSummary projectGroup = (ProjectGroupSummary) 
projectGroupIterator.next();
                System.out.println(projectGroup.getName());
            }


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



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to