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]

Reply via email to