Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14372

Validator component fails with java.lang.IllegalArgumentException: protocol = http host = null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.18.0, 3.0.0
    • Fix Version/s: 2.25.0, 3.1.0, 3.0.2
    • Component/s: camel-validator
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When using the Validator component with the http protocol the component throw an IllegalArgumentException.

      To reproduce the issue run (for example):

      .toD("validator:http://foo.com/apps/func/schemas/part/myap/dummy-schema.xsd")

      Error:

      IllegalArgumentException: protocol = http host = null error (see full stack trace in IllegalArgumentException_StackTrace.txt)

       

      Find out the root cause: Calling the FileUtil.compactPath from resolveResource method in org/apache/camel/component/validator/DefaultLSResourceResolver.java 

       

      Test case and output in attachments.

       

      Thanks,

      Alex.

       

       

        Attachments

        1. IllegalArgumentException_StackTrace.txt
          4 kB
          Alexander Kardapolov
        2. FileUtilTest.output
          0.3 kB
          Alexander Kardapolov

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              akardapolov Alexander Kardapolov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: