continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milos Kleint (JIRA)" <j...@codehaus.org>
Subject [jira] Reopened: (CONTINUUM-367) error when calling getprojects() through xml-rpc
Date Wed, 26 Oct 2005 16:54:11 GMT
     [ http://jira.codehaus.org/browse/CONTINUUM-367?page=all ]
     
Milos Kleint reopened CONTINUUM-367:
------------------------------------


not really. I've installed 1.0 final and get a similar problem.

not sure what I'm doing wrong. teh code is fairly simple:
            // Create an object to represent our server.
            XmlRpcClient server = new XmlRpcClient("http://localhost:8000");
            
            Object obj = server.execute("continuum.getProjects", new Vector());

I get this error back.
result=failure, stackTrace=java.lang.reflect.InvocationTargetException
        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 org.apache.maven.continuum.xmlrpc.DefaultXmlRpcHelper.objectToHashtable(DefaultXmlRpcHelper.java:212)
        at org.apache.maven.continuum.xmlrpc.DefaultXmlRpcHelper.objectToHashtable(DefaultXmlRpcHelper.java:67)
        at org.apache.maven.continuum.xmlrpc.DefaultContinuumXmlRpc.convertContinuumProject(DefaultContinuumXmlRpc.java:395)
        at org.apache.maven.continuum.xmlrpc.DefaultContinuumXmlRpc.getProjects(DefaultContinuumXmlRpc.java:101)
        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 org.apache.xmlrpc.Invoker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(Unknown Source)
        at org.apache.xmlrpc.XmlRpcWorker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer.execute(Unknown Source)
        at org.apache.xmlrpc.WebServer$Connection.run(Unknown Source)
        at org.apache.xmlrpc.WebServer$Runner.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field
"buildResults" 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.maven.continuum.model.project.Project.jdoGetbuildResults(Project.java)
        at org.apache.maven.continuum.model.project.Project.getBuildResults(Project.java:338)
        ... 20 more
, message=, method=ContinuumXmlRpc.getProjects()}

> error when calling getprojects() through xml-rpc 
> -------------------------------------------------
>
>          Key: CONTINUUM-367
>          URL: http://jira.codehaus.org/browse/CONTINUUM-367
>      Project: Continuum
>         Type: Bug
>   Components: continuum-xmlrpc
>     Versions: 1.0-beta-1
>  Environment: mandrake linux 2005
>     Reporter: Milos Kleint
>     Assignee: Emmanuel Venisse
>     Priority: Blocker
>      Fix For: 1.0

>
>
> when I call getProjects() method through xml-rpc, it returns correctly when there are
no projects, but fails when there are some.
> happened both on my localhost server and maven.zones.apache.org server.
> the error is following:
> obj={result=failure, stackTrace=java.lang.reflect.InvocationTargetException
>         at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.continuum.xmlrpc.DefaultXmlRpcHelper.objectToHashtable(DefaultXmlRpcHelper.java:212)
>         at org.apache.maven.continuum.xmlrpc.DefaultXmlRpcHelper.objectToHashtable(DefaultXmlRpcHelper.java:67)
>         at org.apache.maven.continuum.xmlrpc.DefaultContinuumXmlRpc.convertContinuumProject(DefaultContinuumXmlRpc.java:395)
>         at org.apache.maven.continuum.xmlrpc.DefaultContinuumXmlRpc.getProjects(DefaultContinuumXmlRpc.java:101)
>         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 org.apache.xmlrpc.Invoker.execute(Unknown Source)
>         at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(Unknown Source)
>         at org.apache.xmlrpc.XmlRpcWorker.execute(Unknown Source)
>         at org.apache.xmlrpc.XmlRpcServer.execute(Unknown Source)
>         at org.apache.xmlrpc.XmlRpcServer.execute(Unknown Source)
>         at org.apache.xmlrpc.WebServer$Connection.run(Unknown Source)
>         at org.apache.xmlrpc.WebServer$Runner.run(Unknown Source)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.jdo.JDODetachedFieldAccessException: You have just attempted to access
field "dependencies" 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.maven.continuum.model.project.Project.jdoGetdependencies(Project.java)
>         at org.apache.maven.continuum.model.project.Project.getDependencies(Project.java:329)
>         ... 19 more
> , message=, method=ContinuumXmlRpc.getProjects()}

-- 
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


Mime
View raw message