You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Knut Wannheden (JIRA)" <ji...@apache.org> on 2014/02/19 16:52:22 UTC

[jira] [Created] (FELIX-4429) URISyntaxException when bundle contains file with spaces in name

Knut Wannheden created FELIX-4429:
-------------------------------------

             Summary: URISyntaxException when bundle contains file with spaces in name
                 Key: FELIX-4429
                 URL: https://issues.apache.org/jira/browse/FELIX-4429
             Project: Felix
          Issue Type: Bug
          Components: Framework
         Environment: Glassfish 4.0 b89
            Reporter: Knut Wannheden


(Initially I reported this issue against Glassfish because the stack trace made me believe it was a problem there. But I was told that the issue is actually in Felix. See https://java.net/jira/browse/GLASSFISH-20986.)

When deploying an OSGi bundle containing files with spaces in the name I get the following error logged. In this case the bundle was an Apache FOP bundle.

2014-02-14T09:56:00.357+0100|INFO: ERROR: Bundle org.glassfish.fighterfish.osgi-jpa [296] EventDispatcher: Error during dispatch. (java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 40: bundle://402.0:0/org/apache/fop/pdf/sRGB Color Space Profile.icm)
2014-02-14T09:56:00.358+0100|SEVERE: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 40: bundle://402.0:0/org/apache/fop/pdf/sRGB Color Space Profile.icm
at org.glassfish.osgijavaeebase.OSGiBundleArchive.getEntryURI(OSGiBundleArchive.java:320)
at org.glassfish.osgijavaeebase.OSGiBundleArchive$BundleResourceIterator.<init>(OSGiBundleArchive.java:718)
at org.glassfish.osgijavaeebase.OSGiBundleArchive$BundleResourceIterator.<init>(OSGiBundleArchive.java:681)
at org.glassfish.osgijavaeebase.OSGiBundleArchive.iterator(OSGiBundleArchive.java:329)
at org.glassfish.osgijpa.JPABundleProcessor.discoverPxmls(JPABundleProcessor.java:99)
at org.glassfish.osgijpa.JPABundleProcessor.isJPABundle(JPABundleProcessor.java:90)
at org.glassfish.osgijpa.JPAExtender.bundleChanged(JPAExtender.java:117)
at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4408)
at org.apache.felix.framework.Felix.installBundle(Felix.java:3048)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.installOrUpdateBundle(DirectoryWatcher.java:981)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:895)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:808)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:446)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)
Caused by: java.net.URISyntaxException: Illegal character in path at index 40: bundle://402.0:0/org/apache/fop/pdf/sRGB Color Space Profile.icm
at java.net.URI$Parser.fail(URI.java:2829)
at java.net.URI$Parser.checkChars(URI.java:3002)
at java.net.URI$Parser.parseHierarchical(URI.java:3086)
at java.net.URI$Parser.parse(URI.java:3034)
at java.net.URI.<init>(URI.java:595)
at java.net.URL.toURI(URL.java:938)
at org.glassfish.osgijavaeebase.OSGiBundleArchive.getEntryURI(OSGiBundleArchive.java:318)
... 17 more



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)