Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 75170 invoked from network); 3 Oct 2005 09:37:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2005 09:37:15 -0000 Received: (qmail 71876 invoked by uid 500); 3 Oct 2005 09:37:02 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 71850 invoked by uid 500); 3 Oct 2005 09:37:02 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 71832 invoked by uid 99); 3 Oct 2005 09:37:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 02:37:01 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS,FROM_HAS_ULINE_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.49.176] (HELO web54606.mail.yahoo.com) (206.190.49.176) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 03 Oct 2005 02:37:04 -0700 Received: (qmail 73133 invoked by uid 60001); 3 Oct 2005 09:36:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bcfYDujGEAQRlrAjR4TYAalp3tmp7QEjkjn8Y2QoXeJHv/dXHv3QomHy1DLS7BHPhrB6A4++TGdm0VlKvK2vF5dEEmuhELhOwUdCMagvKH1CC5T5uyyHgRe2t4m759aIAyu3l+rpxCvbNOgOrJUd8ayVeKcd459nO/T/frrADZE= ; Message-ID: <20051003093637.73131.qmail@web54606.mail.yahoo.com> Received: from [59.163.113.85] by web54606.mail.yahoo.com via HTTP; Mon, 03 Oct 2005 02:36:37 PDT Date: Mon, 3 Oct 2005 02:36:37 -0700 (PDT) From: karusala kiranbabu Subject: Re: class-cast exception while writing the client for the webservice To: axis-user@ws.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi krthekeyan, I have transformed files into datasources which further into datahandlers and send them to the webservice .The service directly takes the datahandlers as parameters. In this process i am getting the exception mentioned below. So give me the process how to follow ? Thanks in advance. Thanks, KiranBabu.K It could be that you are setting the file in datasource from client . and might be trying to take it directly from datahandler. Regards, krthekeyan.s karusala kiranbabu wrote: >Hi, >I have created one webservice and deployed that >webservice jar file in AXIS/WEB-INF/lib/ directory. > >I have accessed the wdsl of the webservice by giving >the url for the webservice.here there is no problem. > >After th at, we have written the client and passing the >datahandlers to the webservice . > 1.It is not invoking the method of the webservice and >it is giving the exception as mentioned below. > >HOW CAN WE RESOLVE THIS ISSUE? plz help me in this >regard, it's very urgent for me. > > > > >THE EXCEPTION COMING IS: > > >C:\Documents and >Settings\Administrator\Desktop\Downloads\webservice\newwebservice_client\client>javac >-d . XSLTClient.java > >C:\Documents and >Settings\Administrator\Desktop\Downloads\webservice\newwebservice_client\client>java >xsltransform/XSLTClient > sample.xml sample.xsl >the inFileDataHandler >isjavax.activation.DataHandler@ca0b6 >the xslFileDataHandler >isjavax.activation.DataHandler@10b30a7 >AxisFault > faultCode: >{http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: > faultString: java.lang.ClassCastException > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}hostname:SGSC1 > >java.lang.ClassCastException > at >org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) > at >org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) > at >org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) > at >org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown >Source) > at >org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown >Source) > at >org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) > at >org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) > at >org.apache.xerces.parsers.XMLParser.parse(Unknown >Source) > at >org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) > at javax.xml.parsers.SAXParser.parse(Unknown >Source) > at >org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) > at >org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > at >org.apache.axis.Message.getSOAPEnvelope(Message.java:424) > at >org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) > at >org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > at >org.apache.axis.client.Call.invokeEngine(Call.java:2765) > at >org.apache.axis.client.Call.invoke(Call.java:2748) > at >org.apache.axis.client.Call.invoke(Call.java:2424) > at >org.apache.axis.client.Call.invoke(Call.java:2347) > at >org.apache.axis.client.Call.invoke(Call.java:1804) > at >xsltransform.XSLTClient.main(XSLTClient.java:72) > >C:\Documents and >Settings\Administrator\Desktop\Downloads\webservice\newwebservice_client\client> > > > > > >__________________________________ >Yahoo! Mail - PC Magazine Editors' Choice 2005 >http://mail.yahoo.com > > > ______________________________________________________ Yahoo! for Good Donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/