[ https://issues.apache.org/jira/browse/ARIES-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steinar Bang updated ARIES-2110: -------------------------------- Component/s: SPI Fly > Using aries to load TwelveMonkeys SPI plugins causes "No common superclass" > errors for unrelated classes > -------------------------------------------------------------------------------------------------------- > > Key: ARIES-2110 > URL: https://issues.apache.org/jira/browse/ARIES-2110 > Project: Aries > Issue Type: Bug > Components: SPI Fly > Reporter: Steinar Bang > Priority: Major > > 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|https://github.com/haraldk/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 > -- This message was sent by Atlassian Jira (v8.20.10#820010)