Return-Path: Delivered-To: apmail-ws-tuscany-dev-archive@locus.apache.org Received: (qmail 81379 invoked from network); 2 Apr 2007 19:41:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2007 19:41:55 -0000 Received: (qmail 73383 invoked by uid 500); 2 Apr 2007 19:42:01 -0000 Delivered-To: apmail-ws-tuscany-dev-archive@ws.apache.org Received: (qmail 73340 invoked by uid 500); 2 Apr 2007 19:42:01 -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 73331 invoked by uid 99); 2 Apr 2007 19:42:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 12:42:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 12:41:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9EC53714069 for ; Mon, 2 Apr 2007 12:41:32 -0700 (PDT) Message-ID: <2864482.1175542892647.JavaMail.jira@brutus> Date: Mon, 2 Apr 2007 12:41:32 -0700 (PDT) From: "Frank Budinsky (JIRA)" To: tuscany-dev@ws.apache.org Subject: [jira] Resolved: (TUSCANY-1198) ClassCastException when getting back a type extended from anything besides a string In-Reply-To: <26268321.1175541152236.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-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Frank Budinsky resolved TUSCANY-1198. ------------------------------------- Resolution: Cannot Reproduce I generated the SDO interfaces using the attached wsdl file, and the getAccountBalanceResponse interface contains: double getReturn(); void setReturn(double value); Exactly the same as if xs:double was used as the type, instead of sample:Dollars. Since the SDO part is working as expected, perhaps this is some kind of SCA proxy problem? > ClassCastException when getting back a type extended from anything besides a string > ----------------------------------------------------------------------------------- > > Key: TUSCANY-1198 > URL: https://issues.apache.org/jira/browse/TUSCANY-1198 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Implementation > Affects Versions: Java-M2 > Environment: Apache Tomcat 5.5.17 > Reporter: Sunny Ip > Attachments: AccountHistoryService.wsdl > > > In my client code (calling from a JSP), whenever I am expecting a return type that extends anything but a string (tried so far with boolean, int, double, decimal, long), I get the following: > java.lang.ClassCastException: java.lang.String > $Proxy34.getAccountBalance(Unknown Source) > com.bns.references.account.client.AccountClientImpl.getAccountBalance(AccountClientImpl.java:14) > org.apache.jsp.AccountClientTest_jsp._jspService(AccountClientTest_jsp.java:81) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > org.apache.tuscany.runtime.webapp.TuscanyFilter.doFilter(TuscanyFilter.java:58) > Here is a snippet from a WSDL file that is being used: > > > > > > > > > > > > > > > > > > > > > > with everything else exactly the same, changing the return type for getAccountBalanceResponse from "sample:Dollars" to "xsd:double" makes everything work fine. However, I need to be able to handle these kinds of extensions. -- 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