[ 
https://issues.apache.org/jira/browse/ARIES-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17754239#comment-17754239
 ] 

Steinar Bang commented on ARIES-2110:
-------------------------------------

The rebundling of TwelveMonkey is in this branch in my fork of TwelveMonkeys: 
https://github.com/steinarb/TwelveMonkeys/tree/make-jar-files-be-osgi-bundles

The application where I'm trying to use the rebundled TwelveMonkeys is this 
karaf application: https://github.com/steinarb/oldalbum

The branch of oldalbum where I'm trying to use the rebundled TwelveMonkeys is 
in a branch in my scratch buffer: 
https://github.com/steinarb/scratch/tree/oldalbum/use-twelvemonkeys-to-read-jpeg-comment-when-importing-image

> 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
>            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)

Reply via email to