New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexOutOfBoundsException in LogFactory #288
Comments
Did you include |
Can you also check that the corresponding Nevertheless, it's strange because it should always have the Are you using OpenJDK 9+? |
And when it was still working, were you already using OpenJDK 9+? I'm trying to determine if it's related with changes introduced in JDK 9+, like modules. |
We use Oracle JDK 10 in production, where togglz still works |
Not sure why the
JDK10 should't really be an issue. Togglz doesn't contain a module descriptor yet. |
Any chance that you could debug which |
Are you running from a fat jar? In this case, yes, this could be an issue. Could you check if there is a file called |
The service directory is located in the inner jar, eg However, the same goes for our working builds as well. |
Could you perhaps post the full stacktrace? Including all the |
And it would also be interesting to know what you changed as part of your refactoring. Maybe any key things? Spring Boot updates? Other JVM or container updates? |
One of my collaborators figured we were missing a dependency. This should fix it: Frederikam/Fredboat@e0db37b Thanks for helping us fix this 😄 I still wonder what caused it to break when it was working before Edit: For the record, it seems that it had to do with Togglz using the default classloader, instead of the one provided by Spring Boot |
Thanks for letting us know what the problem was. Although I'm also not sure why this error occurred just because of the missing Spring Boot module. |
We've been using Togglz in our open source project for well over a year, and we have recently done a lot of work to refactor our code. After over 250 commits we have started testing in a staging environment in which Togglz fails with this exception:
This exception only occurs after we build our project using Gradle. This means that it doesn't affect our automated testing, and we have no idea what particular commit in our project broke Togglz.
We use SLF4J as our logging facade. The only significant change to our Gradle build configs seems to only be the addition of Kotlin, and I don't believe we have changed how we interact with Togglz.
Any ideas as to why this is happening?
The text was updated successfully, but these errors were encountered: