here is the code that throws this exception :
Class xsiClass =
context.getTypeMapping().getClassForQName(type);
if (null != xsiClass &&
!JavaUtils.isConvertable(xsiClass, destClass)) {
throw new SAXException("Bad types (" +
xsiClass + " -> " + destClass +
")"); // FIXME!
}
the exception is :
Caused by: org.xml.sax.SAXException: Bad types (class
com.telebahiacelular.movistore.acao.value.AcaoModel -> class
com.telebahiacelular.movistore.acao.value.AcaoModel)
So this code tries to convert AcaoModel to AcaoModel. It should work....
JavaUtils.isConvertable uses Class.isAssignableFrom
I don't know why it does not work.
C�dric Chabanois
> -----Message d'origine-----
> De : Marcus Brito [mailto:[EMAIL PROTECTED]]
> Envoy� : mardi 26 novembre 2002 14:05
> � : [EMAIL PROTECTED]
> Objet : SAX Exception while using complex types: Bad types
>
>
> Hello again, folks. Here is the second problem I'm having
> while trying
> to access a Stateless Session Bean as a web service using JBoss and
> Axis. I hope your MUA can show this message in the same thread as my
> previous message.
>
> Here is the problem: after being able to generate the WSDL for the
> service (thanks to C�dric Chabanois for the helping me), I tried to
> write a DII client to invoke the service. However, something
> goes wrong
> again and all I get is an AxisFault. Attached goes:
>
> 1) The full stack trace;
> 2) The WSDL (generated by axis using ?wsdl) for the service;
> 3) The Service interface (an EJB remote interface);
> 4) The DII client source code.
>
> I'm willing to provide any further information. I've seen
> that the axis
> generate a lot of logging information during the call. I haven't
> included it here due it's sheer volume (aronud ~60k for just a single
> call), but I could provide it if needed.
>
> --
> Pazu <[EMAIL PROTECTED]>
>