You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2017/06/10 15:51:19 UTC

[jira] [Resolved] (AXIS2-5851) Exception in thread "main" java.lang.NumberFormatException: For input string: "1000.0"

     [ https://issues.apache.org/jira/browse/AXIS2-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIS2-5851.
------------------------------------
    Resolution: Duplicate

> Exception in thread "main" java.lang.NumberFormatException: For input string: "1000.0"
> --------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5851
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5851
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, databinding
>            Reporter: khalithbasha
>              Labels: adb, axis2, axis2_1.7.5, convertToStandardDecimalNotation, databinding
>
> Exception in thread "main" java.lang.NumberFormatException: For input string: "1000.0"
> I am facing the same issue in version 1.7.5. Kindly help me on the same..
>   public void setEMPL_RCDTypeDef(int param) {
>             java.lang.String totalDigitsDecimal = org.apache.axis2.databinding.utils.ConverterUtil.convertToStandardDecimalNotation(
>                     "3").toPlainString();
>             if (org.apache.axis2.databinding.utils.ConverterUtil.compare(
>                         param, totalDigitsDecimal) < 0) {
>                 this.localEMPL_RCDTypeDef = param;
>             } else {
>                 throw new java.lang.RuntimeException(
>                     "Input values do not follow defined XSD restrictions");
>             }
>         }



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org