You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Fabio Marinelli (JIRA)" <ji...@apache.org> on 2009/09/01 11:25:24 UTC
[jira] Created: (CAMEL-1974) Package scanning cannot be used for
folders containing special characters
Package scanning cannot be used for folders containing special characters
-------------------------------------------------------------------------
Key: CAMEL-1974
URL: https://issues.apache.org/activemq/browse/CAMEL-1974
Project: Apache Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.0.0
Environment: macbook pro, osx leopard
Reporter: Fabio Marinelli
I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-"
You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1974) Package scanning cannot be used for
folders containing special characters
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1974.
--------------------------------
Resolution: Fixed
Thanks Fabio for reporting and showing how to fix it.
trunk: 814499.
> Package scanning cannot be used for folders containing special characters
> -------------------------------------------------------------------------
>
> Key: CAMEL-1974
> URL: https://issues.apache.org/activemq/browse/CAMEL-1974
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.0.0
> Environment: macbook pro, osx leopard
> Reporter: Fabio Marinelli
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.1.0
>
> Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar
>
>
> I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
> Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-"
> You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1974) Package scanning cannot be used for
folders containing special characters
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1974:
-------------------------------
Priority: Minor (was: Major)
Fix Version/s: 2.1.0
> Package scanning cannot be used for folders containing special characters
> -------------------------------------------------------------------------
>
> Key: CAMEL-1974
> URL: https://issues.apache.org/activemq/browse/CAMEL-1974
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.0.0
> Environment: macbook pro, osx leopard
> Reporter: Fabio Marinelli
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.1.0
>
> Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar
>
>
> I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
> Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-"
> You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1974) Package scanning cannot be used for
folders containing special characters
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1974.
--------------------------------
Resolution: Fixed
trunk: 815810.
John can you test from your windows environment again with the latest commit I did?
> Package scanning cannot be used for folders containing special characters
> -------------------------------------------------------------------------
>
> Key: CAMEL-1974
> URL: https://issues.apache.org/activemq/browse/CAMEL-1974
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.0.0
> Environment: macbook pro, osx leopard
> Reporter: Fabio Marinelli
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.1.0
>
> Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar
>
>
> I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
> Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-"
> You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1974) Package scanning cannot be used for
folders containing special characters
Posted by "Fabio Marinelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53951#action_53951 ]
Fabio Marinelli commented on CAMEL-1974:
----------------------------------------
I found this interesting issue ( https://issues.apache.org/jira/browse/LAUNCHER-10 ) on another apache project.
They had the same problem and it seems that the solution comes with:
new URI(resource).getPath()
instead of
URLDecoder.decode(resource, "UTF-8")
at least for file protocol.
Bye
> Package scanning cannot be used for folders containing special characters
> -------------------------------------------------------------------------
>
> Key: CAMEL-1974
> URL: https://issues.apache.org/activemq/browse/CAMEL-1974
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.0.0
> Environment: macbook pro, osx leopard
> Reporter: Fabio Marinelli
> Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar
>
>
> I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
> Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-"
> You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1974) Package scanning cannot be used for
folders containing special characters
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-1974:
----------------------------------
Assignee: Claus Ibsen
> Package scanning cannot be used for folders containing special characters
> -------------------------------------------------------------------------
>
> Key: CAMEL-1974
> URL: https://issues.apache.org/activemq/browse/CAMEL-1974
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.0.0
> Environment: macbook pro, osx leopard
> Reporter: Fabio Marinelli
> Assignee: Claus Ibsen
> Fix For: 2.1.0
>
> Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar
>
>
> I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
> Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-"
> You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (CAMEL-1974) Package scanning cannot be used for
folders containing special characters
Posted by "John Taylor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Taylor reopened CAMEL-1974:
--------------------------------
Discussion at http://www.nabble.com/Fix-for-CAMEL-1974-seems-to-cause-problem-on-Windows-td25458041s22882.html
This fix causes a problem on windows with spaces in the path.
Trace:
{noformat}
classloader: java.net.URLClassLoader@189acb5
[pache.camel.spring.Main.main()] efaultPackageScanClassResolver TRACE URL from classloader: jar:file:/C:/Documents and Settings/TaylorJohn.
GS/.m2/repository/org/apache/camel/camel-core/2.1-SNAPSHOT/camel-core-2.1-SNAPSHOT.jar!/org/apache/camel/component/file/
[pache.camel.spring.Main.main()] efaultPackageScanClassResolver TRACE Decoded urlPath: file:/C:/Documents and Settings/TaylorJohn.SGS/.m2/r
pository/org/apache/camel/camel-core/2.1-SNAPSHOT/camel-core-2.1-SNAPSHOT.jar!/org/apache/camel/component/file/
[pache.camel.spring.Main.main()] efaultPackageScanClassResolver WARN Could not read entries in url: jar:file:/C:/Documents and Settings/Ta
lorJohn.SGS/.m2/repository/org/apache/camel/camel-core/2.1-SNAPSHOT/camel-core-2.1-SNAPSHOT.jar!/org/apache/camel/component/file/
java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/TaylorJohn.SGS/.m2/repository/org/apach
/camel/camel-core/2.1-SNAPSHOT/camel-core-2.1-SNAPSHOT.jar!/org/apache/camel/component/file/
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:222)
at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:180)
at org.apache.camel.impl.DefaultPackageScanClassResolver.findAnnotated(DefaultPackageScanClassResolver.java:100)
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:62)
at org.apache.camel.impl.converter.DefaultTypeConverter.checkLoaded(DefaultTypeConverter.java:359)
at org.apache.camel.impl.converter.DefaultTypeConverter.doConvertTo(DefaultTypeConverter.java:153)
{noformat}
> Package scanning cannot be used for folders containing special characters
> -------------------------------------------------------------------------
>
> Key: CAMEL-1974
> URL: https://issues.apache.org/activemq/browse/CAMEL-1974
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.0.0
> Environment: macbook pro, osx leopard
> Reporter: Fabio Marinelli
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.1.0
>
> Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar
>
>
> I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
> Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-"
> You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1974) Package scanning cannot be used for
folders containing special characters
Posted by "Fabio Marinelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabio Marinelli updated CAMEL-1974:
-----------------------------------
Attachment: DefaultPackageScanClassResolverTest.diff
package+scan+test.jar
Files needed to reproduce this bug
> Package scanning cannot be used for folders containing special characters
> -------------------------------------------------------------------------
>
> Key: CAMEL-1974
> URL: https://issues.apache.org/activemq/browse/CAMEL-1974
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.0.0
> Environment: macbook pro, osx leopard
> Reporter: Fabio Marinelli
> Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar
>
>
> I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
> Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-"
> You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.