Re: Stack Overflow in Continuum XMLRPC server
I mean work around ;) ! On Jan 7, 2008 11:13 AM, Laurent Forêt <[EMAIL PROTECTED]> wrote: > Thanks it is working fine in the trunk. Should I have to wait the 1.2 to > have to make works the Netbeans integration ? > (http://mevenide.codehaus.org/m2-site/mevenide2-netbeans/tutorials/continuumTutorial.html > ). > > Do you (eventually) know a turn around ? > > Laurent. > > > On Jan 3, 2008 9:55 PM, Olivier Lamy <[EMAIL PROTECTED]> wrote: > > > Hi, > > Fixed in trunk. > > If you have trouble, you can reopen the jira issue. > > > > Merci/Thanks, > > > > -- > > Olivier > > > > 2007/12/31, Laurent Forêt <[EMAIL PROTECTED] >: > > > Hi Olivier, > > > > > > I put a comment on the JIRA issue ( > > > http://jira.codehaus.org/browse/CONTINUUM-1590 ). > > > The loop is very easy to understand. But avoid the call at > > > checkViewProjectGroupAuthorization(), may introduce authorization > > lacks. > > > > > > I will try to test and provide a patch later. > > > > > > > > > Bonnes fêtes ;) ! > > > > > > Laurent > > > > > > On Dec 22, 2007 9:05 PM, Olivier Lamy <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > Can you load an issue in jira ? > > > > And if you have a patch it will be helpfull. > > > > > > > > Thanks, > > > > -- > > > > Olivier > > > > > > > > 2007/12/22, Laurent Forêt < [EMAIL PROTECTED]>: > > > > > Maybe, it is not usefull at line 231 in the private method to > > call > > > > > checkViewProjectGroupAuthorization() > > > > > > > > > > Laurent. > > > > > > > > > > On Dec 22, 2007 7:20 PM, Laurent Forêt <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > > > Today I had exactly the same trouble with a freshly installed > > > > continuum > > > > > > 1.1 server. > > > > > > > > > > > > The simple client code is : > > > > > > > > > > > > public static void main( String[] args ) > > > > > > { > > > > > > try { > > > > > > ContinuumXmlRpcClient client = new > > > > ContinuumXmlRpcClient(new > > > > > > URL(" http://localhost:8080/continuum/xmlrpc";), "admin", > > "manager1"); > > > > > > List projectGroups = > > > > > > client.getAllProjectGroupsWithAllDetails (); > > > > > > for (ProjectGroup pg : projectGroups) { > > > > > > System.out.println("PGID : "+pg.getId()); > > > > > > client.getProjects (pg.getId()); > > > > > > } > > > > > > > > > > > > } catch (Exception ex) { > > > > > > ex.printStackTrace(); > > > > > > } > > > > > > } > > > > > > > > > > > > Client Output is : > > > > > > > > > > > > PGID : 1 > > > > > > org.apache.xmlrpc.XmlRpcException: Failed to invoke method > > getProjects > > > > in > > > > > > class > > org.apache.maven.continuum.xmlrpc.server.ContinuumServiceImpl : > > > > null > > > > > > 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 $Proxy33.getProjects(Unknown Source) > > > > > > at > > > > > > > > > > > > org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.getProjects > > > > ( > > > > > > ContinuumXmlRpcClient.java:112) > > > > > > at org.laurentforet.continuum11.client.App.main(App.java > > :22) > > > > > > 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.codehaus.mojo.exec.ExecJavaMojo$1.run ( > > > > ExecJavaMojo.java > > > > > > :271) > > > > > > at java.lang.Thread.run(Thread.java:595) > > > > > > > > > > > > > > > > > > > > > > > > The server output is : > > > > > > > > > > > > > > > > > > jvm 1| 2007-12-22 19:15:03,421 [SocketListener0-1] ERROR > > > > > > org.apache.xmlrpc.server.XmlRpcStreamServer - execut
Re: Stack Overflow in Continuum XMLRPC server
Thanks it is working fine in the trunk. Should I have to wait the 1.2 to have to make works the Netbeans integration ? ( http://mevenide.codehaus.org/m2-site/mevenide2-netbeans/tutorials/continuumTutorial.html). Do you (eventually) know a turn around ? Laurent. On Jan 3, 2008 9:55 PM, Olivier Lamy <[EMAIL PROTECTED]> wrote: > Hi, > Fixed in trunk. > If you have trouble, you can reopen the jira issue. > > Merci/Thanks, > > -- > Olivier > > 2007/12/31, Laurent Forêt <[EMAIL PROTECTED]>: > > Hi Olivier, > > > > I put a comment on the JIRA issue ( > > http://jira.codehaus.org/browse/CONTINUUM-1590). > > The loop is very easy to understand. But avoid the call at > > checkViewProjectGroupAuthorization(), may introduce authorization lacks. > > > > I will try to test and provide a patch later. > > > > > > Bonnes fêtes ;) ! > > > > Laurent > > > > On Dec 22, 2007 9:05 PM, Olivier Lamy <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > Can you load an issue in jira ? > > > And if you have a patch it will be helpfull. > > > > > > Thanks, > > > -- > > > Olivier > > > > > > 2007/12/22, Laurent Forêt <[EMAIL PROTECTED]>: > > > > Maybe, it is not usefull at line 231 in the private method to call > > > > checkViewProjectGroupAuthorization() > > > > > > > > Laurent. > > > > > > > > On Dec 22, 2007 7:20 PM, Laurent Forêt <[EMAIL PROTECTED]> > wrote: > > > > > > > > > Today I had exactly the same trouble with a freshly installed > > > continuum > > > > > 1.1 server. > > > > > > > > > > The simple client code is : > > > > > > > > > > public static void main( String[] args ) > > > > > { > > > > > try { > > > > > ContinuumXmlRpcClient client = new > > > ContinuumXmlRpcClient(new > > > > > URL(" http://localhost:8080/continuum/xmlrpc";), "admin", > "manager1"); > > > > > List projectGroups = > > > > > client.getAllProjectGroupsWithAllDetails (); > > > > > for (ProjectGroup pg : projectGroups) { > > > > > System.out.println("PGID : "+pg.getId()); > > > > > client.getProjects(pg.getId()); > > > > > } > > > > > > > > > > } catch (Exception ex) { > > > > > ex.printStackTrace(); > > > > > } > > > > > } > > > > > > > > > > Client Output is : > > > > > > > > > > PGID : 1 > > > > > org.apache.xmlrpc.XmlRpcException: Failed to invoke method > getProjects > > > in > > > > > class > org.apache.maven.continuum.xmlrpc.server.ContinuumServiceImpl : > > > null > > > > > 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 $Proxy33.getProjects(Unknown Source) > > > > > at > > > > > > > > > org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.getProjects > > > ( > > > > > ContinuumXmlRpcClient.java:112) > > > > > at org.laurentforet.continuum11.client.App.main(App.java > :22) > > > > > 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.codehaus.mojo.exec.ExecJavaMojo$1.run ( > > > ExecJavaMojo.java > > > > > :271) > > > > > at java.lang.Thread.run(Thread.java:595) > > > > > > > > > > > > > > > > > > > > The server output is : > > > > > > > > > > > > > > > jvm 1| 2007-12-22 19:15:03,421 [SocketListener0-1] ERROR > > > > > org.apache.xmlrpc.server.XmlRpcStreamServer - execute: Err > > > > > or while performing request > > > > > jvm 1| org.apache.xmlrpc.XmlRpcException: Failed to invoke > method > > > > > getProjects in class org.apache.maven.continuum.xm > > > > > lrpc.server.ContinuumServiceImpl: null > > > > > jvm 1| at > > > > > > > > > org.apache.maven.continuum.xmlrpc.server.ContinuumXmlRpcMetaDataHandler.invoke > > > > > (ContinuumXmlRp