I've new info. If I comment all the class except the testing method,
it works fine with REST. If I uncomment another method like this :


class TestingClass {

public MyTestingData anotherMethod(String param1, String param2,
String param3) {
  return new MyTestingData(param1, param2, param3);
}

public String testing(String param1, String param2) {
       System.out.println("message");
       return param1 + " " + param2;
}

}

  Then, the REST call to the testing method fails with the exception
on the previous post, but it works fine with the RPC client. Any
idea?. Thanks in advance.

albert




2007/11/21, albert quinn <[EMAIL PROTECTED]>:
>  Hi all :
>
>  I'm developing a web service using the POJO approach. I have a
> method like this :
>
> class TestingClass {
> ...
> public String testing(String param1, String param2) {
>        System.out.println("message");
>        return param1 + " " + param2;
> }
> ...
> }
>
>  I've coded a RPC client and it works fine. Then I've tried to call
> the service using REST like this :
>
> http://localhost:8080/axis2/services/TestingClass/testing?param1=hi&param2=all
>
> Then it fails with this exception :
>
>
> java.util.ConcurrentModificationException
>        java.util.HashMap$HashIterator.nextEntry(Unknown Source)
>        java.util.HashMap$KeyIterator.next(Unknown Source)
>        
> org.apache.axis2.builder.BuilderUtil.buildsoapMessage(BuilderUtil.java:92)
>        
> org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:100)
>        
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:130)
>        
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:98)
>        
> org.apache.axis2.transport.http.AxisServlet$ProcessRESTRequest.processURLRequest(AxisServlet.java:776)
>        org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:238)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>  I've searched in the Tomcat logs but I couldn't find more info. Any
> idea of what could be happening here?. Thanks in advance.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to