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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:95f85504-afbc-d73b-8b45-7443f8c9e5ec |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | CB96:166B1C:156F3F4:1DE9498:6970D2A1 |
| html-safe-nonce | 840e405297a6d11a8ea31eec3f9bf31d7eb22cc5a6b3d666c4f2bf48beb25114 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjk2OjE2NkIxQzoxNTZGM0Y0OjFERTk0OTg6Njk3MEQyQTEiLCJ2aXNpdG9yX2lkIjoiMzgxNTExMzAyNTgxMTE3NDA0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 54687829ee1352f51b956fb33dcd451f422df14508da7ea8ddee4d75cf2d7e31 |
| hovercard-subject-tag | pull_request:3129811829 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 034aaee9edccd455c18591b13122193c6e12dc773e8a203be73abe934f3e3a72 |
| turbo-cache-control | no-cache |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 52d1d534d0b88c64972e852deb460d09b433b8b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width