Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4429

URISyntaxException when bundle contains file with spaces in name

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Framework
    • None
    • Glassfish 4.0 b89

    Description

      (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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            d96knut Knut Wannheden

            Dates

              Created:
              Updated:

              Slack

                Issue deployment