Hi, i checked the encoding - it was cp1252 but now is utf-8. Yet still the same error.
Here's the wsdl file i try to read (it's more or less an adoption of the sample wsdl 2.0 file from http://www.w3.org/TR/wsdl20-primer/ ) - maybe it's just some error in there? <?xml version="1.0" encoding="utf-8"?> <description xmlns="http://www.w3.org/ns/wsdl" targetNamespace="http://www.example.com/2008/wsdl/ServiceA2" xmlns:tns="http://www.example.com/2008/wsdl/ServiceA2" xmlns:a1ns="http://www.example.com/2008/schemas/ServiceA2" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:wsoap= "http://www.w3.org/ns/wsdl/soap" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsdlx= "http://www.w3.org/ns/wsdl-extensions"> > <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TYPE DEFINITION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <types> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/2008/wsdl/ServiceA2" xmlns="http://www.example.com/2008/schemas/ServiceA2" > <xs:element name="ServiceA2Request" type="xs:string"/> <xs:element name="ServiceA2Response" type="xs:string"/> <xs:element name="invalidDataError" type="xs:string"/> </xs:schema> </types> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PARTNER LINK TYPE DEFINITION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <plnk:partnerLinkType name="ServiceA2"> <plnk:role name="ServiceA2Provider" portType="tns:ServiceA2"/> <plnk:role name="ServiceA2Requester" portType="tns:ServiceA2Callback"/> </plnk:partnerLinkType> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ INTERFACE DEFINITION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <interface name = "ServiceA2Interface" > <fault name = "invalidDataFault" element = "invalidDataError"/> <operation name="ServiceA2Operation" pattern="http://www.w3.org/ns/wsdl/in-out" style="http://www.w3.org/ns/wsdl/style/iri" wsdlx:safe="true" > <input messageLabel="In" element="a1ns:ServiceA2Request" /> <output messageLabel="Out" element="a1ns:ServiceA2Response" /> <outfault ref="tns:invalidDataFault" messageLabel="Out"/> </operation> </interface> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BINDING DEFINITION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <binding name="ServiceA2SOAPBinding" interface="tns:ServiceA2Interface" type="http://www.w3.org/ns/wsdl/soap" wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"> <fault ref="invalidDataFault" wsoap:code="soap:Sender"/> <operation ref="ServiceA2Operation" wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"/> </binding> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SERVICE DEFINITION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <service name="ServiceA2Service" interface="tns:ServiceA2Interface" > <endpoint name="ServiceA2Endpoint" binding="tns:ServiceA2SOAPSOAPBinding" address ="http://www.example.com/2008/wsdl/ServiceA2"/> </service> </description> hughesj wrote: > > Hmm, the trouble is XmlSchema's intent was to check whether the > Document object has a getInputEncoding() method then when it doesn't > to just return a default. However, only Exception is caught and > AbstractMethodError is not an exception - it extends Throwable, but > not exception. > > Jeremy > > 2008/8/4 Jeremy Hughes <[EMAIL PROTECTED]>: >> Hi, what's the encoding in your WSDL? Is it something other than UTF-8 > >> or UTF-16? >> >> Thanks, >> Jeremy >> >> 2008/8/4 SThanheiser <[EMAIL PROTECTED]>: >>> >>> Hello everyone, >>> >>> By using Woden, I tried to write a simple class reading WSDL files with >>> a >>> given filename into a Woden WSDL20 Description (more or less by >>> following >>> the example given in the release notes...) >>> However, when invoking the class (code below), I get a >>> java.lang.AbstractMethodError (see below the source code). After some >>> Google >>> research, I tried to assure that I will only load the required Xerces >>> version, etc - yet, I still get the error. >>> >>> Any hint on how to resolve this? >>> Any help will be highly appreciated. >>> >>> Thanks in advance & kind regards, >>> Stefan Thanheiser >>> >>> package de.uka.aifb.oc.simplesoa.cc_WSDLRead; >>> >>> import java.io.File; >>> import java.io.IOException; >>> import java.net.MalformedURLException; >>> import java.net.URI; >>> import java.net.URISyntaxException; >>> import java.net.URL; >>> >>> import org.apache.woden.wsdl20.Description; >>> import org.apache.woden.WSDLException; >>> import org.apache.woden.WSDLFactory; >>> import org.apache.woden.WSDLReader; >>> >>> import de.uka.aifb.oc.simplesoa.logging_helper.LogPrinter; >>> >>> public class WD_WSDLReader { >>> >>> >>> private Description wsdlDesc; >>> >>> public WD_WSDLReader (String fileName) { >>> >>> try{ >>> File wsdlfile = new File(fileName); >>> URL wsdlurl = wsdlfile.toURL(); >>> URI wsdluri = wsdlurl.toURI(); >>> >>> WSDLFactory wsdlFactory = >>> WSDLFactory.newInstance(); >>> WSDLReader wsdlReader = >>> wsdlFactory.newWSDLReader(); >>> >>> wsdlReader.setFeature(WSDLReader.FEATURE_VALIDATION, true); >>> wsdlDesc = >>> wsdlReader.readWSDL(wsdluri.toASCIIString()); // I get the >>> Error in this line.. >>> >>> } catch(WSDLException e){ >>> Logfile.Fatal("WSDLException, Details:",e); >>> } catch (MalformedURLException e) { >>> Logfile.Fatal("MalformedURLException, >>> Details:",e); >>> } catch (URISyntaxException e) { >>> Logfile.Fatal("URISyntaxException, Details:",e); >>> } >>> } >>> >>> /** >>> * @return the wsdlDesc >>> */ >>> public Description getWsdlDef() { >>> return wsdlDesc; >>> } >>> } >>> >>> Exception in thread "main" java.lang.AbstractMethodError: >>> org.apache.xerces.dom.DeferredDocumentImpl.getInputEncoding()Ljava/lang/String; >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at >>> org.apache.ws.commons.schema.utils.DOMUtil.getInputEncoding(DOMUtil.java:602) >>> at >>> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:432) >>> at >>> org.apache.woden.internal.DOMWSDLReader.parseSchemaInline(DOMWSDLReader.java:307) >>> at >>> org.apache.woden.internal.BaseWSDLReader.parseTypes(BaseWSDLReader.java:577) >>> at >>> org.apache.woden.internal.BaseWSDLReader.parseDescription(BaseWSDLReader.java:429) >>> at >>> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:185) >>> at >>> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:233) >>> at >>> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:268) >>> at >>> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:127) >>> (...) >>> -- >>> View this message in context: >>> http://www.nabble.com/java.lang.AbstractMethodError-when-reading-a-WSDL-file-tp18810660p18810660.html >>> Sent from the Woden - Dev mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/java.lang.AbstractMethodError-when-reading-a-WSDL-file-tp18810660p18827094.html Sent from the Woden - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
