axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anup sinha <kranup2...@yahoo.co.in>
Subject RE: Bad Type: axis trying to deserialize a primitive boolean
Date Tue, 22 Jun 2004 04:35:56 GMT
Hi,
    I found the same exception for the boolean value on axis. I think there is some problem
in axis to map it with primitive boolean. You create an object of boolean type and use as
a parameters. I hope it will work .
 
Anup Kumar
nishit.kumar@wipro.com wrote:
I am getting an exception of this sort. I am not sure whether it relates to your problem or
not. My scenario is my clients run perfectly fine when run as a java application however once
I deploy it on WebLogic and then try to invoke it using a JSP it fails giving the following
exception.

org.xml.sax.SAXParseException: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at net.mappoint.s.mappoint_30.FindServiceSoapStub.findAddress(FindServic
eSoapStub.java:1110)

Thanks,
Nishit

-----Original Message----- 
From: Joel Carklin [mailto:joelc@innoforge.com] 
Sent: Mon 6/21/2004 1:49 PM 
To: axis-user@ws.apache.org 
Cc: 
Subject: Bad Type: axis trying to deserialize a primitive boolean



Hi all,
I have a client which calls a method on my web service which is running
on axis. One of the method parameters is a primitive boolean. I get the
following error thrown by Axis:
org.xml.sax.SAXException: Bad types (boolean -> class
my.path.to.an.Object)

It appears to me that axis is trying to deserialize the boolean in the
and for some reason is trying to map it to an unrelated object (another
parameter in the same method). The XML tag itself looks like this:
false

There is no mapping for this tag in any of the xml config files

Has anyone else you know of had this problem?

Thanks
Joel 








> ATTACHMENT part 2 application/ms-tnef name=winmail.dat

Yahoo! India Matrimony: Find your partner online.
Mime
View raw message