Maybe it is related to the Xerces version because I was able to execute all
Woden test on a 1.5 JDK. It seems to be related to ws-schema.

Jeff MAURY

On Tue, Aug 5, 2008 at 11:44 AM, Jeremy Hughes <[EMAIL PROTECTED]> wrote:

> I'm glad that fixed it, but woden should be working with Java 5 too. I
> haven't reproduced your problem, but my guess is that the
> AbstractMethodError is caused because the getInputEncoding() method is
> there in the Document interface but the implementation of it,
> DeferredDocumentImpl doesn't have the method. Who's implementation of
> j2se 1.5.0 were you using and on what platform when you found the
> problem?
>
> Thanks,
> Jeremy
>
> 2008/8/5 SThanheiser <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > thank you very much for that hint - the java version seems to cause the
> > error.
> >
> > I used j2se 1.5.0 and received the AbstractMethodError -
> > when switching to 1.6.0_06, it seems to work correct...
> >
> > Kind regards and thanks again,
> > Stefan Thanheiser
> >
> >
> > Jeff MAURY wrote:
> >>
> >> Which version of the JDK are you using ? Same for Xerces ?
> >>
> >> Regards
> >> Jeff MAURY
> >>
> >> On Tue, Aug 5, 2008 at 10:53 AM, SThanheiser
> >> <[EMAIL PROTECTED]>wrote:
> >>
> >>>
> >>> 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)
> >>> >>> (...)
> >>> >>> --
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal
Mes CDs à récupérer:
http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTA&hl=en

Reply via email to