Title: unable to work with objects created using net.imglib2.loops.ClassCopyProvider · Issue #72 · scijava/scyjava · GitHub
Open Graph Title: unable to work with objects created using net.imglib2.loops.ClassCopyProvider · Issue #72 · scijava/scyjava
X Title: unable to work with objects created using net.imglib2.loops.ClassCopyProvider · Issue #72 · scijava/scyjava
Description: Hi! while working on this BIOP/ijp-atlas#7 (comment), I got stuck when i tried to get a java.net.imglib2.display.RealARGBColorConverter object built with net.imglib2.display.RealARGBColorConverterFactory. The factory uses net.imglib2.loo...
Open Graph Description: Hi! while working on this BIOP/ijp-atlas#7 (comment), I got stuck when i tried to get a java.net.imglib2.display.RealARGBColorConverter object built with net.imglib2.display.RealARGBColorConverterF...
X Description: Hi! while working on this BIOP/ijp-atlas#7 (comment), I got stuck when i tried to get a java.net.imglib2.display.RealARGBColorConverter object built with net.imglib2.display.RealARGBColorConverterF...
Opengraph URL: https://github.com/scijava/scyjava/issues/72
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"unable to work with objects created using net.imglib2.loops.ClassCopyProvider","articleBody":"Hi!\n\nwhile working on this https://github.com/BIOP/ijp-atlas/issues/7#issuecomment-2619511900, I got stuck when i tried to get a [`java.net.imglib2.display.RealARGBColorConverter`](https://github.com/imglib/imglib2/blob/176c0f26dc7527d79c5b44e29071b8967fbcb84b/src/main/java/net/imglib2/display/RealARGBColorConverter.java) object built with [`net.imglib2.display.RealARGBColorConverterFactory`](https://github.com/imglib/imglib2/blob/176c0f26dc7527d79c5b44e29071b8967fbcb84b/src/main/java/net/imglib2/display/RealARGBColorConverterFactory.java#L53). The factory uses [`net.imglib2.loops.ClassCopyProvider`](https://javadoc.scijava.org/ImgLib2/net/imglib2/loops/ClassCopyProvider.html), which internally instantiate the objects with [`net.imglib2.loops.ClassCopyLoader`](https://github.com/imglib/imglib2/blob/176c0f26dc7527d79c5b44e29071b8967fbcb84b/src/main/java/net/imglib2/loops/ClassCopier.java#L90), _a different classloader from the one used by scyjava_.\n\nIn the end, jpype crashes with:\n\n```\nTraceback (most recent call last):\n File \"org.jpype.manager.TypeManager.java\", line 0, in org.jpype.manager.TypeManager.findClassForObject\nException: Java Exception\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n [...]\njava.lang.java.lang.IllegalAccessError: java.lang.IllegalAccessError:\n failed to access class net.imglib2.display.RealARGBColorConverterFactory from class net.imglib2.display.RealARGBColorConverterFactory$Imp\n (\n net.imglib2.display.RealARGBColorConverterFactory is in unnamed module of loader 'app';\n net.imglib2.display.RealARGBColorConverterFactory$Imp is in unnamed module of loader net.imglib2.loops.ClassCopier$ClassCopyLoader @25464154\n )\n\n```\n\nCan you please help me? Do you think there is an ~easy workaround (perhaps telling jpype to avoid trying to find the class for that object?)","author":{"url":"https://github.com/carlocastoldi","@type":"Person","name":"carlocastoldi"},"datePublished":"2025-01-29T15:57:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/72/scyjava/issues/72"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:468aa6e7-ef42-a385-e9c4-45b8abeed02e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 934C:B7306:173BF23:204C890:696A9C16 |
| html-safe-nonce | b75ab3828406a756be8ed4313d2372400b84f3b09daae366c6bb5da0320c7043 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzRDOkI3MzA2OjE3M0JGMjM6MjA0Qzg5MDo2OTZBOUMxNiIsInZpc2l0b3JfaWQiOiI3ODE5MTg4NzI4MDg3ODc4Njc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9564f77ea12e19d477c896476e9f67126851683f4df3004e330bb193582962a6 |
| hovercard-subject-tag | issue:2818616195 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scyjava/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8c6cd58b9fed565d28a9fcc101496a3c09302de165e4bd4aaef15e8034d98df/scijava/scyjava/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8c6cd58b9fed565d28a9fcc101496a3c09302de165e4bd4aaef15e8034d98df/scijava/scyjava/issues/72 |
| og:image:alt | Hi! while working on this BIOP/ijp-atlas#7 (comment), I got stuck when i tried to get a java.net.imglib2.display.RealARGBColorConverter object built with net.imglib2.display.RealARGBColorConverterF... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | carlocastoldi |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scyjava git https://github.com/scijava/scyjava.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 113442144 |
| octolytics-dimension-repository_nwo | scijava/scyjava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113442144 |
| octolytics-dimension-repository_network_root_nwo | scijava/scyjava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 99aab454e5ddc8df30805fb76c114c3008a15842 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width