Title: fix exception while loading message cache on startup by danthe1st · Pull Request #526 · Java-Discord/JavaBot · GitHub
Open Graph Title: fix exception while loading message cache on startup by danthe1st · Pull Request #526 · Java-Discord/JavaBot
X Title: fix exception while loading message cache on startup by danthe1st · Pull Request #526 · Java-Discord/JavaBot
Description: The current master branch has an issue where the bot can't start due to an issue from #525.
Loading the message cache fails in MessageCacheRepository#getAll because CachedMessage#getAttachments returns an immutable list.
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: Caused by: java.lang.UnsupportedOperationException
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at java.base@25.0.1/java.util.ImmutableCollections.uoe(ImmutableCollections.java:159)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at java.base@25.0.1/java.util.ImmutableCollections$AbstractImmutableCollection.addAll(ImmutableCollections.java:165)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at net.discordjug.javabot.data.h2db.message_cache.dao.MessageCacheRepository.getAll(MessageCacheRepository.java:90)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at java.base@25.0.1/java.lang.reflect.Method.invoke(Method.java:565)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:359)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.jav
a:138)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728)
Dec 25 09:26:45 instance-20240715-2322 bash[3890345]: at net.discordjug.javabot.data.h2db.message_cache.dao.MessageCacheRepository$$SpringCGLIB$$0.getAll(
Open Graph Description: The current master branch has an issue where the bot can't start due to an issue from #525. Loading the message cache fails in MessageCacheRepository#getAll because CachedMessage#getAttachments...
X Description: The current master branch has an issue where the bot can't start due to an issue from #525. Loading the message cache fails in MessageCacheRepository#getAll because CachedMessage#getAttachm...
Opengraph URL: https://github.com/Java-Discord/JavaBot/pull/526
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f5bab97c-c265-1828-df64-2575c824f655 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94EA:16019F:FC30B4:1638AD5:6970B8AD |
| html-safe-nonce | a57f6fb89a4178169ff8a8b7a267f955b7ad9c9a4c367cabe47485e964b27eef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEVBOjE2MDE5RjpGQzMwQjQ6MTYzOEFENTo2OTcwQjhBRCIsInZpc2l0b3JfaWQiOiI4NTczMTk5NzM0NzM2NDY4MTQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 65e350fb36c157ca0656d9f66e34c69e73331848014604cba3489de9a739a505 |
| hovercard-subject-tag | pull_request:3129811829 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/Java-Discord/JavaBot/pull/526/files |
| twitter:image | https://avatars.githubusercontent.com/u/34687786?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/34687786?s=400&v=4 |
| og:image:alt | The current master branch has an issue where the bot can't start due to an issue from #525. Loading the message cache fails in MessageCacheRepository#getAll because CachedMessage#getAttachments... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/Java-Discord/JavaBot git https://github.com/Java-Discord/JavaBot.git |
| octolytics-dimension-user_id | 77415047 |
| octolytics-dimension-user_login | Java-Discord |
| octolytics-dimension-repository_id | 371822717 |
| octolytics-dimension-repository_nwo | Java-Discord/JavaBot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 371822717 |
| octolytics-dimension-repository_network_root_nwo | Java-Discord/JavaBot |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width