Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » BundleException: Error reading bundle content
BundleException: Error reading bundle content [message #1736890] Mon, 04 July 2016 08:52 Go to next message
Kenneth StyrbergFriend
Messages: 3
Registered: May 2015
Junior Member
I posted in Eclipse Platform, but posting here instead.

In our RCP application we use EquinoxBundle.update() method to refresh loaded bundles. But in Eclipse 4.6 we get a MalformedURLException "no protocol: initial@reference:file:<path to bundle>

This is not seen in Eclipse 4.5.2.

The exception occur in the Storage.class where a check "path.startsWith("reference") is made and then makes a call to new URL(null, path, URLStreamHandler), if the check fails as in my case since my path starts with "initial@reference...", it calls new URL(path) directly and triggers the above exception.

Anyone have any ideas?

Best regards,
Kenneth
Re: BundleException: Error reading bundle content [message #1737241 is a reply to message #1736890] Wed, 06 July 2016 14:15 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 482
Registered: July 2009
Senior Member
It seems bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=268563 was re-introduced in the Luna release. Seems we need the special logic in org.eclipse.osgi.storage.Storage.createURL(String) to handle "intiial@" locations. Could you open a bug against Equinox-Framework to get this fixed? https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox
Re: BundleException: Error reading bundle content [message #1737254 is a reply to message #1737241] Wed, 06 July 2016 15:47 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 482
Registered: July 2009
Senior Member
I opened bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=497407 to fix this.
Previous Topic:Why cannot run IN-CSE and MN-CSE in defferent PC
Next Topic:Missing code signer information for third party JAR
Goto Forum:
  


Current Time: Sun Jun 24 11:25:27 GMT 2018

Powered by FUDForum. Page generated in 0.01459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top