Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5842

wsdl2java generates faulty runtime code for <xsd:totalDigits>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.7.4
    • None
    • codegen
    • None
    • axis2-wsdl2code-maven-plugin:1.7.4:wsdl2code

    Description

      For this reason, it can't be used.

      This error occurs starting with version Axis2 1.6.2 ( AXIS2-5342 ) and is already marked as resolved. Why?
      But this is not solved!

      Please take a look into the attached sample "generated.code.zip" ...
      a) download and unpack them
      b) cd generated.code
      c) mvn test

      Running de.udoline.axis2.wsdl2code.generated.xi.SachbuchkontoTest
      ~~~ The underline error:
      ~~~ java.lang.NumberFormatException: For input string: "1000000.0"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
              at java.lang.Long.parseLong(Long.java:589)
              at java.lang.Long.parseLong(Long.java:631)
              at org.apache.axis2.databinding.utils.ConverterUtil.compare(ConverterUtil.java:1345)
              at de.udoline.axis2.wsdl2code.generated.xi.Sachbuchkonto.setSachbuchkonto(Sachbuchkonto.java:41)
              at de.udoline.axis2.wsdl2code.generated.xi.SachbuchkontoTest.testGeneratedWsdlCode(SachbuchkontoTest.java:53)
              ...
      

      Attachments

        1. generated.code.zip
          6 kB
          Udo Kühne

        Issue Links

          Activity

            People

              Unassigned Unassigned
              udoline Udo Kühne
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: