Fail to Run OSGi, bndtools cache problem?

26 views
Skip to first unread message

Christer Larsson

unread,
Nov 17, 2016, 5:30:23 AM11/17/16
to bndtools-users
Hi,

I've been successfully running Knopflerfish inside bndtools, but all of a sudden it stopped working and I get the error below.

I've cleared the cache, restarted eclipse, but the error remains:

! Failed to uninstall bundle /Users/cl/.bnd/cache/https%3A%2F%2Fdl.bintray.com%2Fknopflerfish%2Fkf_r6-snapshot%2Fdistrib_6.0.0.beta-1608231520-kf_r6%2Fosgi%2Fjars%2Fcm/cm_all-5.0.1.1608231520-kf_r6.jar, exception Failed to install bundle: java.io.FileNotFoundException: /Users/cl/.bnd/cache/https%253A%252F%252Fdl.bintray.com%252Fknopflerfish%252Fkf_r6-snapshot%252Fdistrib_6.0.0.beta-1608231520-kf_r6%252Fosgi%252Fjars%252Fcm/cm_all-5.0.1.1608231520-kf_r6.jar (No such file or directory)

The problem, I guess, is that it's referring to %253A instead of %3A ?

Regards,
Christer

Peter Kriens

unread,
Nov 17, 2016, 5:43:22 AM11/17/16
to bndtool...@googlegroups.com
Looks like there is a double encoding going on (%=25). 

What is your repository setup?

Kind regards,

Peter Kriens

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christer Larsson

unread,
Nov 17, 2016, 5:49:55 AM11/17/16
to bndtools-users
-plugin.org.knopflerfish.kf6: \
    aQute.bnd.deployer.repository.FixedIndexedRepo; \
        locations=https://dl.bintray.com/knopflerfish/kf_r6-snapshot/distrib_6.0.0.beta-1608231520-kf_r6/osgi/jars/index.xml; \
        name=kf6

Peter Kriens

unread,
Nov 17, 2016, 5:53:46 AM11/17/16
to bndtool...@googlegroups.com
Change to:


-plugin.org.knopflerfish.kf6: \
aQute.bnd.repository.osgi.OSGiRepository; \
locations= \
https://dl.bintray.com/knopflerfish/kf_r6-snapshot/distrib_6.0.0.beta-1608231520-kf_r6/osgi/jars/index.xml; \
name=kf60n

This is a newer version of aQute.bnd.deployer.repository.FixedIndexedRepo repo that has a very different caching strategy. This is the one we use in bnd nowadays.

Kind regards,

Peter Kriens

Christer Larsson

unread,
Nov 17, 2016, 6:02:17 AM11/17/16
to bndtools-users

Not working at all. The plugin does not exist. In which version of bndtools was that plugin introduced? I'm still on 3.2

Regards,
Christer

Peter Kriens

unread,
Nov 17, 2016, 6:05:49 AM11/17/16
to bndtool...@googlegroups.com
I don’t recall but it might be 3.3 … try it? :-)

Kind regards,

Peter Kriens

Christer Larsson

unread,
Nov 18, 2016, 5:51:27 AM11/18/16
to bndtool...@googlegroups.com
Thanks, working much better!

It would be nice to see this plugin listed and explained here:

Regards,
Christer

--
Christer Larsson
Makewave, http://www.makewave.com
VP EMEA OSGi Alliance, http://www.osgi.org
Knopflerfish OSGi, http://www.knopflerfish.org

You received this message because you are subscribed to a topic in the Google Groups "bndtools-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bndtools-users/vXjJ0AeU25Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bndtools-user...@googlegroups.com.

Peter Kriens

unread,
Nov 18, 2016, 6:55:59 AM11/18/16
to bndtool...@googlegroups.com
Me too! Fortunately it is open source! :-)

Kind regards,

Peter Kriens
Reply all
Reply to author
Forward
0 new messages