axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony v" <antho...@cvsol.com>
Subject RE: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertToint(Ljava/lang/String;)
Date Sun, 08 Oct 2006 01:21:20 GMT
Just thought that I would let you know that I downloaded the latest nightly
builds and reset everything up and everything now works fine.

Anthony

 

  _____  

From: Thilina Gunarathne [mailto:csethil@gmail.com] 
Sent: Saturday, 7 October 2006 7:46 PM
To: axis-dev@ws.apache.org
Subject: Re: java.lang.NoSuchMethodError:
org.apache.axis2.databinding.utils.ConverterUtil.convertToint(Ljava/lang/Str
ing;)

 

Please use the latest nightlies to code generate...  
This method was renamed to convertToInt...

~Thilina

On 10/7/06, Anthony v < anthonyv@cvsol.com <mailto:anthonyv@cvsol.com> >
wrote:

Hi guys have a look at this and see what you think. 

Thanks in advance.

Anthony

 

Here is a stack trace. This is when I call a web service via a SOAP call:

 

<?xml version =' 1.0' encoding=' utf-8'?>

<soapenv:Envelope xmlns:soapenv ="
http://schemas.xmlsoap.org/soap/envelope/" >

  <soapenv:Header />

  <soapenv:Body >

    < soapenv:Fault>

      < faultcode>soapenv:Client </faultcode>

      < faultstring>java.lang.NoSuchMethodError :
org.apache.axis2.databinding.utils.ConverterUtil.convertToint(Ljava/lang/Str
ing;)I</faultstring >

      < detail>

        < Exception>org.apache.axis2.AxisFault :
java.lang.NoSuchMethodError:
org.apache.axis2.databinding.utils.ConverterUtil.convertToint(Ljava/lang/Str
ing;)I; nested exception is: 

      java.lang.NoSuchMethodError:
org.apache.axis2.databinding.utils.ConverterUtil.convertToint(Ljava/lang/Str
ing;)I

      at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:270)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

      at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

      at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

      at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

      at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

      at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

      at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

      at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

      at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

      at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)

      at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)

      at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

      at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

      at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoSuchMethodError:
org.apache.axis2.databinding.utils.ConverterUtil.convertToint(Ljava/lang/Str
ing;)I

      at
org.austmedicalcentreassoc.RetrieveMedicalCentre$Factory.parse(RetrieveMedic
alCentre.java:110)

      at
org.apache.axis2.AustMedicalCentreAssocMessageReceiverInOut.fromOM(AustMedic
alCentreAssocMessageReceiverInOut.java:239)

      at
org.apache.axis2.AustMedicalCentreAssocMessageReceiverInOut.invokeBusinessLo
gic(AustMedicalCentreAssocMessageReceiverInOut.java:69)

      at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstract
InOutSyncMessageReceiver.java:39)

      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)

      at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.java:324)

      at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:230)

      ... 16 more

 

        </ Exception>

      </ detail>

    </ soapenv:Fault>

  </soapenv:Body >

</soapenv:Envelope >

 

 

Here is the SOAP message that is making the call:

 

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi= <http://www.w3.org/2001/XMLSchema-instance>
http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 

        <soap:Body> 

            <RetrieveMedicalCentre
xmlns="http://AustMedicalCentreAssoc.org/">   

                <intCentreID>1</intCentreID> 

            </RetrieveMedicalCentre> 

        </soap:Body> 

    </soap:Envelope>

 

 

I just downloaded the lastest nightly builds am still having the same
trouble. I am using:

 

axis2-std-SNAPSHOT-src.zip 06-Oct-2006 23:33

axis2.war                  06-Oct-2006 23:32

 

 

If it makes a difference I generated the server code WSDL first.

 

 

Here is the WSDL that I am using:

<wsdl:definitions xmlns:tns =" http://AustMedicalCentreAssoc.org/"
xmlns:http=" http://schemas.xmlsoap.org/wsdl/http/
<http://schemas.xmlsoap.org/wsdl/http/> " xmlns:mime
="http://schemas.xmlsoap.org/wsdl/mime/
<http://schemas.xmlsoap.org/wsdl/mime/> " xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/ " xmlns:tm="
http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/
<http://schemas.xmlsoap.org/soap/encoding/> " xmlns:soap
="http://schemas.xmlsoap.org/wsdl/soap/
<http://schemas.xmlsoap.org/wsdl/soap/> " xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/" xmlns:s="
<http://www.w3.org/2001/XMLSchema>  http://www.w3.org/2001/XMLSchema"
targetNamespace ="http://AustMedicalCentreAssoc.org/ ">

  <wsdl:documentation >AustMedicalCentreAssoc </wsdl:documentation>

  <wsdl:types >

    < s:schema attributeFormDefault =" unqualified" elementFormDefault=
"qualified" targetNamespace =" http://AustMedicalCentreAssoc.org/
<http://AustMedicalCentreAssoc.org/> ">

      < s:element name =" RetrieveMedicalCentre">

        < s:complexType>

          < s:sequence>

            <s:element name= "intCentreID" type="s:int" />

          </ s:sequence>

        </ s:complexType>

      </ s:element>

      < s:element name =" RetrieveMedicalCentreResponse">

        < s:complexType>

          < s:sequence>

            <s:element minOccurs= "0" name="RetrieveMedicalCentreResult"
type="tns:MedicalCentreDetail " />

          </ s:sequence>

        </ s:complexType>

      </ s:element>

      < s:complexType name=" MedicalCentreDetail">

        < s:sequence>

          < s:element name =" HealthCentreID" type=" s:int" />

          < s:element name =" CentreTypeCodeID" type=" s:int" />

          < s:element minOccurs =" 0" name=" CentreType" type ="s:string" />

          < s:element minOccurs =" 0" name=" CentreName" type ="s:string" />

          < s:element minOccurs =" 0" name=" CentreAbbrev" type ="s:string"
/>

          < s:element minOccurs =" 0" name=" CentreContactPersonnel" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreContactFax" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreContactPhone" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreContactMobile" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreEmergencyPersonnel" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreEmergencyPhone" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreEmergencyMobile" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentrePostalAddress1" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentrePostalAddress2" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentrePostalSuburb" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentrePostalState" type
="s:string" />

          < s:element name =" CentrePostalCountryCodeID" type= "s:int" />

          < s:element minOccurs =" 0" name=" CentrePostalCountry" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreStreetAddress1" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreStreetAddress2" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreStreetSuburb" type
="s:string" />

          < s:element minOccurs =" 0" name=" CentreStreetState" type
="s:string" />

          < s:element name =" CentreStreetCountryCodeID" type= "s:int" />

          < s:element minOccurs =" 0" name=" CentreStreetCountry" type
="s:string" />

          < s:element name =" CreateDatetime" type=" s:dateTime" />

          < s:element name =" ChangeDatetime" type=" s:dateTime" />

        </ s:sequence>

      </ s:complexType>

      < s:element name =" SearchMedicalCentre">

        < s:complexType>

          < s:sequence>

            <s:element minOccurs= "0" name="strCentreName" type="s:string"
/>

            <s:element minOccurs= "0" name="strCentreAbbrv" type="s:string"
/>

            <s:element name= "intCentreTypeCodeID" type="s:int" />

            <s:element minOccurs= "0" name="strCentreType" type="s:string"
/>

          </ s:sequence>

        </ s:complexType>

      </ s:element>

      < s:element name =" SearchMedicalCentreResponse">

        < s:complexType>

          < s:sequence>

            <s:element maxOccurs= "unbounded" minOccurs="0"
name="SearchMedicalCentreResult " type=" tns:MedicalCentreDetailSummary" />

          </ s:sequence>

        </ s:complexType>

      </ s:element>

      < s:complexType name=" MedicalCentreDetailSummary">

        < s:sequence>

          < s:element name =" HealthCentreID" type=" s:int" />

          < s:element name =" CentreTypeCodeID" type=" s:int" />

          < s:element minOccurs =" 0" name=" CentreType" type ="s:string" />

          < s:element

...

[Message clipped]  




-- 
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/ 


Mime
View raw message