Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
I am trying to use Apache Aries to load an OSGi-fied version of the TwelveMonkeys library (I am creating a PR to turn TwelveMonkeys into OSGi bundles with ProvideCapability headers for the ImageIO SPI plugins.
However, when I try to use the OSGi-fied TwelveMonkeys library from this bundle:
https://github.com/steinarb/oldalbum
I get a strange error when attempting to load the bundle in apache karaf: https://gist.github.com/steinarb/4fc4b86c49cbdb151d8b9e626366ff07#file-karaf-log-L790
"java.lang.RuntimeException: No Common Superclass:no/priv/bang/oldalbum/services/bean/AlbumEntry java/sql/ResultSet"
There is nothing in my code that tries to unify AlbumEntry or ResultSet.
But there is a method that unpacks a row in a ResultSet into an albumentry:
https://github.com/steinarb/oldalbum/blob/master/oldalbum.backend/src/main/java/no/priv/bang/oldalbum/backend/OldAlbumServiceProvider.java#L819
Is that method the cause of the misunderstanding?
Is there a way to avoid this error?
My platform build and run, is:
- debian 12.1 "bookworm", amd64
- java 17
- maven 3.8.7
- maven-bundle-plugin 5.1.9
- apache karaf 4.4.3