Return-Path: Delivered-To: apmail-ws-tuscany-dev-archive@locus.apache.org Received: (qmail 59115 invoked from network); 14 Mar 2008 16:54:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2008 16:54:05 -0000 Received: (qmail 33655 invoked by uid 500); 14 Mar 2008 16:53:56 -0000 Delivered-To: apmail-ws-tuscany-dev-archive@ws.apache.org Received: (qmail 33632 invoked by uid 500); 14 Mar 2008 16:53:56 -0000 Mailing-List: contact tuscany-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-dev@ws.apache.org Received: (qmail 33623 invoked by uid 99); 14 Mar 2008 16:53:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 09:53:56 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 16:53:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9ADCC234C0A3 for ; Fri, 14 Mar 2008 09:50:24 -0700 (PDT) Message-ID: <1243722863.1205513424633.JavaMail.jira@brutus> Date: Fri, 14 Mar 2008 09:50:24 -0700 (PDT) From: "Simon Nash (JIRA)" To: tuscany-dev@ws.apache.org Subject: [jira] Updated: (TUSCANY-2059) Exception when using binding.ws instead of binding.sca. Interface contains only methods without any in/out parameters and return values In-Reply-To: <840070342.1204541330401.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TUSCANY-2059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon Nash updated TUSCANY-2059: -------------------------------- Attachment: jira2059.zip The attached test case demonstrates the problem. > Exception when using binding.ws instead of binding.sca. Interface contains only methods without any in/out parameters and return values > --------------------------------------------------------------------------------------------------------------------------------------- > > Key: TUSCANY-2059 > URL: https://issues.apache.org/jira/browse/TUSCANY-2059 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Core Runtime > Affects Versions: Java-SCA-1.1 > Environment: Windows XP SP2, Intel Core 2 CPU, 2.6, 2GB Ram, jdk 1.5.0_10 > Reporter: Daniel Stucky > Assignee: Raymond Feng > Fix For: Java-SCA-Next > > Attachments: jira2059.zip, test.zip > > > I have the following Java Interface that works with binding.sca: > public interface Gamma > { > void start(); > void doSomething(); > void stop(); > } > When I use binding.ws (I let Tuscany create the WSDL interfaces automatically), I get the following exception (see below): > If I add a parameter (e.g. int x) to any of the methods or I replace any return type void by a type (e.g. int) it works. > Does WSDL not allow services without any In/Out parameters ? > java.lang.reflect.UndeclaredThrowableException > at $Proxy12.getRef(Unknown Source) > at services.AlphaImpl.run(AlphaImpl.java:27) > 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.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105) > at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:88) > at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:249) > at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:146) > at $Proxy11.run(Unknown Source) > at launch.Launch.main(Launch.java:14) Caused by: org.apache.tuscany.sca.interfacedef.util.FaultException: An unknown message label has been encountered: In > at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:80) > at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:74) > at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:249) > at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:146) > ... 12 more > I also tried it with version 1.2, the exception changed to this: > org.osoa.sca.ServiceRuntimeException: Target fault type cannot be resolved: null > at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:134) > at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:267) > at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:155) > at $Proxy12.getRef(Unknown Source) > at services.AlphaImpl.run(AlphaImpl.java:27) > 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.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:109) > at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:108) > at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61) > at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:108) > at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:267) > at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:155) > at $Proxy11.run(Unknown Source) > at launch.Launch.main(Launch.java:14) > Caused by: org.apache.tuscany.sca.interfacedef.util.FaultException: Target fault type cannot be resolved: null > at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:97) > at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78) > ... 16 more > Caused by: org.apache.axis2.AxisFault: Target fault type cannot be resolved: null > 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.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:118) > at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:89) > ... 17 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org For additional commands, e-mail: tuscany-dev-help@ws.apache.org