Code Monkey home page Code Monkey logo

cqengine-stream-support's People

Contributors

npgall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cqengine-stream-support's Issues

Overlapping packages

I am trying to use StreamFactory in my code but I get this exception:

Caused by: java.lang.ClassNotFoundException: com.googlecode.cqengine.query.StreamFactory not found by cqengine [90]
    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:]
    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:]
    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_25]
    at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1415)[org.apache.felix.framework-5.4.0.jar:]
    at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1595)[org.apache.felix.framework-5.4.0.jar:]
    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1525)[org.apache.felix.framework-5.4.0.jar:]
    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:]
    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_25]
    ... 38 more

I know it is a separate package, and therefore it is included into my features file:

    <bundle>mvn:com.googlecode.cqengine/cqengine-stream-support/1.0.0</bundle>

And it shows up in the container:

> headers 91

CQEngine Stream Support (91)
----------------------------
Archiver-Version = Plexus Archiver
Bnd-LastModified = 1473813377955
Build-Jdk = 1.8.0_73
Built-By = npgall
Created-By = 1.8.0_73 (Oracle Corporation)
Manifest-Version = 1.0
Tool = Bnd-3.2.0.201605172007

Bundle-ManifestVersion = 2
Bundle-Name = CQEngine Stream Support
Bundle-SymbolicName = cqengine-stream-support
Bundle-Version = 1.0.0

Require-Capability =
    osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.8))

Export-Package =
    com.googlecode.cqengine.query;version=1.0.0

And in my own bundle, the respective package is imported:

Import-Package =
        ...
    com.googlecode.cqengine.query;version="[1.0,2)",

What is interesting here is, if you look into the stack trace, it says it is the cqengine bundle that can't find this class.

Upon further investigation, I can see that both main bundle and this one define the same package of com.googlecode.cqengine.query.

Main:

   com.googlecode.cqengine.query;
        uses:="com.googlecode.cqengine,
            com.googlecode.cqengine.attribute,
            com.googlecode.cqengine.attribute.support,
            com.googlecode.cqengine.query.logical,
            com.googlecode.cqengine.query.option,
            com.googlecode.cqengine.query.simple";
        version=1.0.0,

This is a no go in OSGi. Packages can not overlap. My suggestion is to change a package for this library. Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.