Hi Eric,

ODE ships with two DAO layers. The default DAO layer uses OpenJPA,
which currently does not implement the function you are calling. There
are two options to overcome this situation:
  1. Switch to the hibernate DAO layer, which is slightly more stable
and implements this function.
  2. Implement the missing function in OpenJPA layer and submit a patch :)

HTH,
  Tammo

On Mon, May 14, 2012 at 10:53 AM, ericlin <[email protected]> wrote:
> here is my key code:
>  public class Test01 {
>  /**
>  * @param args
>  */
>  public static void main(String[] args) {
>  // TODO Auto-generated method stub
>   ServiceClientUtil client = new ServiceClientUtil();
>  OMElement msg = client.buildMessage("listEvents", new 
> String[]{"instanceFilter","eventFilter", "maxCount"},new String[]{"", "", 
> "0"});
>  System.out.println(msg.toString());
>  OMElement result;
>  try {
>   result = client.send(msg, 
> "http://localhost:8080/ode/processes/InstanceManagement";);
>    System.out.println(result.toString());
>  } catch (AxisFault e) {
>   e.printStackTrace();
>  }
>  }
>  }
>  Exception:
>  org.apache.axis2.AxisFault: java.lang.RuntimeException: Invocation of method 
> listEvents in management interface failed: Exception during database 
> operationjava.lang.UnsupportedOperationException
>  at 
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
>  at 
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
>  at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
>  at 
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
>  at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>  at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
>  at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
>  at 
> org.apache.ode.axis2.service.ServiceClientUtil.send(ServiceClientUtil.java:69)
>  at 
> org.apache.ode.axis2.service.ServiceClientUtil.send(ServiceClientUtil.java:48)
>  at Test01.main(Test01.java:50)
>
>  please tell me why there is an exception and how to fix it .
>  thank you all!! :)



-- 
Tammo van Lessen - http://www.taval.de

Reply via email to