You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Jean-Christophe (JIRA)" <ji...@apache.org> on 2011/05/05 18:11:03 UTC
[jira] [Created] (CAMEL-3942) AnnotationTypeConverterLoader failed
for folders containing spaces
AnnotationTypeConverterLoader failed for folders containing spaces
------------------------------------------------------------------
Key: CAMEL-3942
URL: https://issues.apache.org/jira/browse/CAMEL-3942
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.7.1
Environment: Windows XP
Reporter: Jean-Christophe
Priority: Minor
This problem appears when jar dependencies with type converters have path containing space characters.
In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
I get this error during my project startup:
{noformat}
[...]
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parse(URI.java:3019)
at java.net.URI.<init>(URI.java:578)
at java.net.URL.toURI(URL.java:918)
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
... 63 more
{noformat}
FIX:
findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Jean-Christophe Delmas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Christophe Delmas updated CAMEL-3942:
------------------------------------------
Attachment: (was: spaces_issue.patch)
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Priority: Minor
> Attachments: spaces_issue.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-3942:
----------------------------------
Assignee: Claus Ibsen
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Assignee: Claus Ibsen
> Priority: Minor
> Attachments: spaces_issue.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Jean-Christophe Delmas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Christophe Delmas updated CAMEL-3942:
------------------------------------------
Summary: AnnotationTypeConverterLoader fails for folders containing spaces (was: AnnotationTypeConverterLoader failed for folders containing spaces)
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Priority: Minor
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Jean-Christophe Delmas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030648#comment-13030648 ]
Jean-Christophe Delmas commented on CAMEL-3942:
-----------------------------------------------
Ok, the patch has been re-attached.
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Priority: Minor
> Attachments: spaces_issue.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030300#comment-13030300 ]
Claus Ibsen commented on CAMEL-3942:
------------------------------------
Jean can you re-attach your patch and this time make sure to [x] in grant license to Apache. Otherwise we cannot accept your patch.
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Priority: Minor
> Attachments: spaces_issue.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Jean-Christophe Delmas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Christophe Delmas updated CAMEL-3942:
------------------------------------------
Patch Info: [Patch Available]
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Priority: Minor
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated CAMEL-3942:
-------------------------------
Fix Version/s: 2.7.3
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.7.3, 2.8.0
>
> Attachments: spaces_issue.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-3942.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.8.0
Thanks for the patch. I have applied it, although I used getPath from the URL (no need to convert to URI).
Do you mind testing code from trunk on your system?
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.8.0
>
> Attachments: spaces_issue.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Jean-Christophe Delmas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Christophe Delmas updated CAMEL-3942:
------------------------------------------
Attachment: spaces_issue.patch
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Priority: Minor
> Attachments: spaces_issue.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-3942) AnnotationTypeConverterLoader fails
for folders containing spaces
Posted by "Jean-Christophe Delmas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Christophe Delmas updated CAMEL-3942:
------------------------------------------
Attachment: spaces_issue.patch
> AnnotationTypeConverterLoader fails for folders containing spaces
> -----------------------------------------------------------------
>
> Key: CAMEL-3942
> URL: https://issues.apache.org/jira/browse/CAMEL-3942
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.7.1
> Environment: Windows XP
> Reporter: Jean-Christophe Delmas
> Priority: Minor
> Attachments: spaces_issue.patch, spaces_issue.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> This problem appears when jar dependencies with type converters have path containing space characters.
> In my case, the camel-mail-2.7.1.jar jar is located in my local maven repository.
> I get this error during my project startup:
> {noformat}
> [...]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/D:/Documents and Settings/501915291/.m2/repository/org/apache/camel/camel-mail/2.7.1/camel-mail-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URL.toURI(URL.java:918)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
> at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
> ... 63 more
> {noformat}
> FIX:
> findPackages method in AnnotationTypeConverterLoader shouldn't use URIs to store already visited jars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira