Title: getJAI() fails with exception causing the application to crash · Issue #41 · OpenMap-java/openmap · GitHub
Open Graph Title: getJAI() fails with exception causing the application to crash · Issue #41 · OpenMap-java/openmap
X Title: getJAI() fails with exception causing the application to crash · Issue #41 · OpenMap-java/openmap
Description: Hi, I just stumbled over an exception inside the BufferedImageHelper, that causes my application to crash. I'm running in an plugin environment and are not able to load the JAI object, using the ComponentFactory (as indicated by the comm...
Open Graph Description: Hi, I just stumbled over an exception inside the BufferedImageHelper, that causes my application to crash. I'm running in an plugin environment and are not able to load the JAI object, using the Co...
X Description: Hi, I just stumbled over an exception inside the BufferedImageHelper, that causes my application to crash. I'm running in an plugin environment and are not able to load the JAI object, using th...
Opengraph URL: https://github.com/OpenMap-java/openmap/issues/41
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"getJAI() fails with exception causing the application to crash","articleBody":"Hi, \r\n\r\nI just stumbled over an exception inside the BufferedImageHelper, that causes my application to crash. \r\nI'm running in an plugin environment and are not able to load the JAI object, using the ComponentFactory (as indicated by the comments inside the ComponentFactory.create method). \r\nHowever switching the order of statements inside the BufferedImageHelper.getJAI() method solves the issue for me. \r\nNow I'm just getting one exception at the beginning and can use the fallback method you provided. \r\n\r\nIn my solution the BufferedImageHelper.getJAI() method looks like: \r\n\r\n protected static Object getJAI() {\r\n if (!checkedForJAI) {\r\n \tcheckedForJAI = true; //mark as checked before the exception occurs to not check again\r\n jaiObj = ComponentFactory.create(\"javax.media.jai.JAI\");\r\n }\r\n return jaiObj;\r\n }","author":{"url":"https://github.com/Scholvac","@type":"Person","name":"Scholvac"},"datePublished":"2017-08-19T17:18:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/41/openmap/issues/41"}
| 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:9365b6bf-109c-7f95-d948-0e89b726d3c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAA6:119537:4ACE75:691CFF:6980DB9F |
| html-safe-nonce | 65a813b7dd9115ea043e3c93d7d5e419892f3c8145bb66bb1b87699db13daf34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUE2OjExOTUzNzo0QUNFNzU6NjkxQ0ZGOjY5ODBEQjlGIiwidmlzaXRvcl9pZCI6Ijc3NDYzMjM5NTUwNzc2Njc3NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ff6d300606d0fea9b8c4d6ac1cc4c6378ca9c8a9f717f6c06d4c8c39386810a2 |
| hovercard-subject-tag | issue:251438158 |
| 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/OpenMap-java/openmap/41/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e9865e16db080c8bdcf8d9e14e51184b812409826ee951e3a1f95baea053ef21/OpenMap-java/openmap/issues/41 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e9865e16db080c8bdcf8d9e14e51184b812409826ee951e3a1f95baea053ef21/OpenMap-java/openmap/issues/41 |
| og:image:alt | Hi, I just stumbled over an exception inside the BufferedImageHelper, that causes my application to crash. I'm running in an plugin environment and are not able to load the JAI object, using the Co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Scholvac |
| hostname | github.com |
| expected-hostname | github.com |
| None | 17bc0924c8593587ed4a8ae12c6076d0895c5516aaa44daccbb68ede54878b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/OpenMap-java/openmap git https://github.com/OpenMap-java/openmap.git |
| octolytics-dimension-user_id | 13439710 |
| octolytics-dimension-user_login | OpenMap-java |
| octolytics-dimension-repository_id | 40129738 |
| octolytics-dimension-repository_nwo | OpenMap-java/openmap |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40129738 |
| octolytics-dimension-repository_network_root_nwo | OpenMap-java/openmap |
| 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 | 602fb6e6fec65cf4baabc1305db1830bc609c154 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width