i solved the problem myself: stupid i forgot to create a beanMapping entry in
the servers wsdd-file.
:o/
On Thursday 20 June 2002 16:46, Tom Braun wrote:
> hi,
> trying to make an rpc to my service i get the mentioned exception. The only
> argument to the call is a javabean object (SurveyOptions) created via
> java2wsdl + wsdl2java.
>
> here is a communication trace:
>
>
> POST /axis/servlet/AxisServlet/SurveyService HTTP/1.0
> Host: localhost:8080
> Content-Type: text/xml; charset=utf-8
> SOAPAction: ""
> Content-Length: 884
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
> <soapenv:Body>
> <ns1:createSurvey xmlns:ns1="http://qservice.hpc.com">
> <options href="#id0"/>
> </ns1:createSurvey>
> <multiRef id="id0" SOAP-ENC:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns2:SurveyOptions" xmlns:ns2="http://dal.qservice.hpc.com">
> <name xsi:type="xsd:string">sss</name>
> <endDate xsi:type="xsd:string">2003/02/22</endDate>
> <maxAnswers xsi:type="xsd:int">2222</maxAnswers>
> <language xsi:type="xsd:string">de</language>
> </multiRef>
> </soapenv:Body>
> </soapenv:Envelope>HTTP/1.1 500 Internal Server Error
> Content-Type: text/xml; charset=utf-8
> Connection: close
> Date: Thu, 20 Jun 2002 14:09:19 GMT
> Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
> <soapenv:Body>
> <soapenv:Fault>
> <faultcode
> xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.userException</faultcode
>> <faultstring>org.xml.sax.SAXException: Bad types (null -> class
> com.hpc.qservice.dal.SurveyOptions)</faultstring>
> <detail>
> <ns2:stackTrace
> xmlns:ns2="http://xml.apache.org/axis/">org.xml.sax.SAXException: Bad types
> (null -> class com.hpc.qservice.dal.SurveyOptions)
> at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:207)
> at
> org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializ
>ationContextImpl.java:859) at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:199
>) at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java
>:637) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:200)
> at org.apache.axis.message.RPCElement.getParams(RPCElement.java:258) at
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:
>161) at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:285)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java
>:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:286)
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:559)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:247) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:193) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:243) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>566) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>ava:190) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>566) at
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
>246) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>564) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>0) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>566) at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
>.java:170) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>564) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
>0) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>564) at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>564) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a:174) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>566) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java
>:1012) at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:110
>7) at java.lang.Thread.run(Thread.java:536)
> </ns2:stackTrace>
> </detail>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>
> what's going wrong here? did i miss something ? ??
>
> attached, you'll find the debug-log.
> thanx,
> tom