You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org> on 2007/05/16 17:26:59 UTC

[jira] Updated: (CONTINUUM-1191) editProject: NoSuchMethodException:

     [ http://jira.codehaus.org/browse/CONTINUUM-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Venisse updated CONTINUUM-1191:
----------------------------------------

    Fix Version/s:     (was: 1.1-alpha-2)
                   1.1-alpha-3

> editProject: NoSuchMethodException:
> -----------------------------------
>
>                 Key: CONTINUUM-1191
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-1191
>             Project: Continuum
>          Issue Type: Bug
>          Components: XMLRPC Interface
>    Affects Versions: 1.0.3
>            Reporter: Patrick Huber
>             Fix For: 1.1-alpha-3
>
>
> I'm writing a small application that's intended to consolidate all build goals and arguments for all our projects in continuum:
> Client:
> ---
> String address = "http://continuumhost:8000/continuum";
>         
>         ProjectsReader reader = new ProjectsReader(new URL(address));
>         
>         for (Project project : reader.readProjects()) {
> //          reader.refreshProject(project);
>           
>           List<BuildDefinition> defs = project.getBuildDefinitions();
>           if (defs != null && defs.size() == 1) {
>             for (BuildDefinition def : defs) {
>               def.setGoals("clean deploy site:site site:deploy eclipse:eclipse scm:checkin");
>               def.setArguments("--batch-mode --non-recursive -Dincludes=\".project .classpath .settings\" -Dmessage=\"continuum checkin of generated eclipse files\"");
>             }
>           }
>           else {
>             System.out.println("Project " + project.getId() + " " + project.getName() + " has not exactly one build");
>           }
>           
>           reader.editProject(project);
> ---
> Exception:
> ---
> Exception in thread "main" org.apache.xmlrpc.XmlRpcException: java.lang.NoSuchMethodException: org.apache.maven.continuum.xmlrpc.DefaultContinuumXmlRpc.updatenullProject(java.util.Hashtable)
> 	at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:102)
> 	at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:69)
> 	at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
> 	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
> 	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
> 	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
> 	at org.apache.maven.continuum.rpc.ProjectsReader.editProject(ProjectsReader.java:127)
> 	at SampleClient.main(SampleClient.java:55)
> ---
> It doesn't matter wether or not "reader.refreshProject(project);" is active. Am I doing something wrong here or is this a bug? The documentation only shows how to read a project...

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