Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-4129

Can't deploy webservice on JDK11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jbossws-cxf-5.2.2.Final
    • jbossws-cxf-5.2.1.Final
    • None
    • None

    Description

      When you try to deploy webservice (eg. by running the testsuite) on latest Wildfly running on latest JDK11 available http://jdk.java.net/11/, an error is thrown on server side during the process, ultimately caused by:

      Caused by: java.lang.NumberFormatException: For input string: "11-ea"
      at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.base/java.lang.Integer.parseInt(Integer.java:652)
      at java.base/java.lang.Integer.valueOf(Integer.java:983)
      at org.apache.cxf@3.2.5//org.apache.cxf.helpers.JavaUtils.<clinit>(JavaUtils.java:57)
      ... 31 more
      [jbliznak@rh cxf]$ java -version
      java version "11-ea" 2018-09-25
      Java(TM) SE Runtime Environment 18.9 (build 11-ea+21)
      Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11-ea+21, mixed mode)
      

      The blame goes for naive check at https://github.com/apache/cxf/blob/3.2.x-fixes/core/src/main/java/org/apache/cxf/helpers/JavaUtils.java#L62 which do not count with "-ea" or any other suffix in version, in other words we need fix on CXF side.
      Inspiration including tests https://github.com/google/gson/commit/a6890bbaba29fb1074388c06bf0c231f8e06b4f2

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: