You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Ralf Bierig <so...@yahoo.com> on 2001/07/09 13:52:56 UTC
Abstract Method Error while calling Service...???
Hi,
I got the following error, while trying to execute an
own service with an own serializer (which worked fine,
by the way, under WebSphere Test Environment in
VAJava):
----- Error after starting at the console -----
Exception in thread "main"
java.lang.AbstractMethodError
at
org.apache.soap.encoding.soapenc.ParameterSerializer.marshall(Paramet
erSerializer.java:102)
at
org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:333)
at
org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:307)
at
org.apache.soap.Body.marshall(Body.java:145)
at
org.apache.soap.Envelope.marshall(Envelope.java:195)
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:246)
at
org.apache.soap.rpc.Call.invoke(Call.java:205)
at mypackage.myclass.main(myclass.java:60)
---------- End of error message --------------
Did somebody have an idea???
Thanks in advance!
Ralf
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Re: Abstract Method Error while calling Service...???
Posted by Scott Nichol <sn...@computer.org>.
The line of code from which the exception is thrown is
>>>>
s.marshall(inScopeEncStyle, type, value, name,
sink, nsStack, xjmr, ctx);
<<<<
In this case, s is a Serializer obtained from your type mapping registry
>>>>
Serializer s = xjmr.querySerializer(type, actualEncStyle);
<<<<
This is why I am asking about your type mapping and serializers.
The error is occurring in the client code; no message is even being sent to
the server. If you are running the client from the command line in this
case, but were running the client from within the VA IDE previously, perhaps
there is something in your classpath that is a problem, maybe an older
definition of the Serializer interface, or an older version of the
serializer for your WrapperClass is being loaded.
Scott
----- Original Message -----
From: "Ralf Bierig" <so...@yahoo.com>
To: <so...@xml.apache.org>
Sent: Monday, July 09, 2001 9:45 AM
Subject: Re: Abstract Method Error while calling Service...???
> I use an own serializer for a WrapperClass which has
> the following signature
>
> private byte[] byteArray;
> public byte[] getByteArray();
>
> This Wrapperclass enable me to write an optimized
> Serializer for bytes, which I encode as hex values,
> because the ArraySerializer has a lot of overhead.
>
> I have registered this Wrapperclass correctly with the
> Admin Tool of Apache SOAP 2.2 and I have also used a
> the correct mapping in my SOAP Client code.
>
> I am not sure, if this problem is about the own
> serializer.
>
> The same examples work find with VAJava and the
> WebSphereTestEnvironment. So what is the problem?
> Maybe I need another Parameter set or an additional
> Path variable. My other examples, without own
> serializers, work great with Tomcat! ????
>
> Thanks in advance.
>
> Ralf
>
>
> --- Scott Nichol <sn...@computer.org> wrote:
> > What types are you putting in your mapping registry?
> >
> > Scott
> >
> > ----- Original Message -----
> > From: "Ralf Bierig" <so...@yahoo.com>
> > To: <so...@xml.apache.org>
> > Sent: Monday, July 09, 2001 7:52 AM
> > Subject: Abstract Method Error while calling
> > Service...???
> >
> >
> > > Hi,
> > >
> > > I got the following error, while trying to execute
> > an
> > > own service with an own serializer (which worked
> > fine,
> > > by the way, under WebSphere Test Environment in
> > > VAJava):
> > >
> > > ----- Error after starting at the console -----
> > > Exception in thread "main"
> > > java.lang.AbstractMethodError
> > > at
> > >
> >
> org.apache.soap.encoding.soapenc.ParameterSerializer.marshall(Paramet
> > > erSerializer.java:102)
> > > at
> > >
> >
> org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:333)
> > > at
> > >
> >
> org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:307)
> > > at
> > > org.apache.soap.Body.marshall(Body.java:145)
> > > at
> > >
> > org.apache.soap.Envelope.marshall(Envelope.java:195)
> > > at
> > >
> >
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja
> > va:246)
> > > at
> > > org.apache.soap.rpc.Call.invoke(Call.java:205)
> > > at mypackage.myclass.main(myclass.java:60)
> > >
> > > ---------- End of error message --------------
> > >
> > > Did somebody have an idea???
> > >
> > > Thanks in advance!
> > >
> > > Ralf
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo! Mail
> > > http://personal.mail.yahoo.com/
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
Re: Abstract Method Error while calling Service...???
Posted by Ralf Bierig <so...@yahoo.com>.
I use an own serializer for a WrapperClass which has
the following signature
private byte[] byteArray;
public byte[] getByteArray();
This Wrapperclass enable me to write an optimized
Serializer for bytes, which I encode as hex values,
because the ArraySerializer has a lot of overhead.
I have registered this Wrapperclass correctly with the
Admin Tool of Apache SOAP 2.2 and I have also used a
the correct mapping in my SOAP Client code.
I am not sure, if this problem is about the own
serializer.
The same examples work find with VAJava and the
WebSphereTestEnvironment. So what is the problem?
Maybe I need another Parameter set or an additional
Path variable. My other examples, without own
serializers, work great with Tomcat! ????
Thanks in advance.
Ralf
--- Scott Nichol <sn...@computer.org> wrote:
> What types are you putting in your mapping registry?
>
> Scott
>
> ----- Original Message -----
> From: "Ralf Bierig" <so...@yahoo.com>
> To: <so...@xml.apache.org>
> Sent: Monday, July 09, 2001 7:52 AM
> Subject: Abstract Method Error while calling
> Service...???
>
>
> > Hi,
> >
> > I got the following error, while trying to execute
> an
> > own service with an own serializer (which worked
> fine,
> > by the way, under WebSphere Test Environment in
> > VAJava):
> >
> > ----- Error after starting at the console -----
> > Exception in thread "main"
> > java.lang.AbstractMethodError
> > at
> >
>
org.apache.soap.encoding.soapenc.ParameterSerializer.marshall(Paramet
> > erSerializer.java:102)
> > at
> >
>
org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:333)
> > at
> >
>
org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:307)
> > at
> > org.apache.soap.Body.marshall(Body.java:145)
> > at
> >
> org.apache.soap.Envelope.marshall(Envelope.java:195)
> > at
> >
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja
> va:246)
> > at
> > org.apache.soap.rpc.Call.invoke(Call.java:205)
> > at mypackage.myclass.main(myclass.java:60)
> >
> > ---------- End of error message --------------
> >
> > Did somebody have an idea???
> >
> > Thanks in advance!
> >
> > Ralf
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Re: Abstract Method Error while calling Service...???
Posted by Scott Nichol <sn...@computer.org>.
What types are you putting in your mapping registry?
Scott
----- Original Message -----
From: "Ralf Bierig" <so...@yahoo.com>
To: <so...@xml.apache.org>
Sent: Monday, July 09, 2001 7:52 AM
Subject: Abstract Method Error while calling Service...???
> Hi,
>
> I got the following error, while trying to execute an
> own service with an own serializer (which worked fine,
> by the way, under WebSphere Test Environment in
> VAJava):
>
> ----- Error after starting at the console -----
> Exception in thread "main"
> java.lang.AbstractMethodError
> at
> org.apache.soap.encoding.soapenc.ParameterSerializer.marshall(Paramet
> erSerializer.java:102)
> at
> org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:333)
> at
> org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:307)
> at
> org.apache.soap.Body.marshall(Body.java:145)
> at
> org.apache.soap.Envelope.marshall(Envelope.java:195)
> at
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja
va:246)
> at
> org.apache.soap.rpc.Call.invoke(Call.java:205)
> at mypackage.myclass.main(myclass.java:60)
>
> ---------- End of error message --------------
>
> Did somebody have an idea???
>
> Thanks in advance!
>
> Ralf
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/