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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.18.0, 3.0.0
    • 2.25.0, 3.1.0, 3.0.2
    • camel-validator
    • None
    • 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. FileUtilTest.output
          0.3 kB
          Alexander Kardapolov
        2. IllegalArgumentException_StackTrace.txt
          4 kB
          Alexander Kardapolov

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: