[
https://issues.apache.org/jira/browse/CAMEL-14372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-14372.
---------------------------------
Resolution: Fixed
> Validator component fails with java.lang.IllegalArgumentException: protocol =
> http host = null
> ----------------------------------------------------------------------------------------------
>
> Key: CAMEL-14372
> URL: https://issues.apache.org/jira/browse/CAMEL-14372
> Project: Camel
> Issue Type: Bug
> Components: camel-validator
> Affects Versions: 2.18.0, 3.0.0
> Reporter: Alexander Kardapolov
> Priority: Minor
> Fix For: 2.25.0, 3.1.0, 3.0.2
>
> Attachments: FileUtilTest.java, FileUtilTest.output,
> IllegalArgumentException_StackTrace.txt
>
>
> When using the Validator component with the http protocol the component throw
> an IllegalArgumentException.
> To reproduce the issue run (for example):
> {{.toD("validator:http://abcd.lb.sdfwo.com/apps/func/LEF/integration-mail/lef/Lef_ExportXmlProcess/schemas/PART/APP_LS/fAPP.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.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)