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: patch-diff.githubusercontent.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:f29e16ce-31dc-0a54-9c8f-0cf8eaea6801 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A752:18334E:3F7B056:54C3F85:696DE357 |
| html-safe-nonce | a59a7044d5ab34406fc2ce03d0324559850ba56aff255688ffe316b714c3dcda |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzUyOjE4MzM0RTozRjdCMDU2OjU0QzNGODU6Njk2REUzNTciLCJ2aXNpdG9yX2lkIjoiODM3NDE2NTA1MzI0OTU0NTA0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3354e26251d129501d96d2151824567fc28eca36a0520010375f528b97eb67ab |
| 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 | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width