5.3 not working with JDK9+
See original GitHub issueHello folks,
When we want to upgrade from 5.2 to 5.3 none of our Spring Boot applications is able to start. We use Spring Boot 2.0.x with JDK10 respectively Spring Boot 2.1.2 with JDK11. With JDK8 it’s working.
Our configuration is placed in a logback-spring.xml simply looking like this:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<springProperty scope="context" name="profiles" source="spring.profiles.active"
defaultValue="none"/>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>utf8</charset>
</encoder>
</appender>
<appender name="consoleJson" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder"/>
</appender>
<logger name="com" level="ERROR" />
<logger name="io" level="ERROR" />
<logger name="org" level="ERROR" />
<logger name="springfox" level="ERROR" />
<logger name="feign.Logger" level="INFO" />
<logger name="our.package.names" level="INFO" />
<root level="INFO">
<if condition='isDefined("KUBERNETES_PORT")' >
<then>
<appender-ref ref="consoleJson"/>
</then>
<else>
<appender-ref ref="CONSOLE"/>
</else>
</if>
</root>
</configuration>
Any clue why this is happening?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Application built against Spring Framework 5.3 breaks ...
I originally logged this against Spring Boot (spring-projects/spring-boot#24686), but it seems that #25852 breaks deployment of a war file ...
Read more >Android builds fail with Java 9 JDK and Unable to list target ...
In my case, downgrading to JDK 8 fixed the problem. Reproduced with: 2017.3.0b4, 2017.2.0f3, 2017.1.2f1, 5.6.3p4, 5.5.5f1.
Read more >Java 9 (JDK 9) support by Unity Android - Unity Forum
On the scratch system macos high sierra 10.13 I've installed JDK 9 on by homebrew and Unity 2017.2.0f2 didn't work with it.
Read more >New Features in Java 9 - Baeldung
A quick and practical guide to the most interesting features coming to Java 9.
Read more >Illegal reflective access by org.springframework.cglib.core ...
In JDK 9+, add the following option to the JVM to disable the ... After these warnings, if your app is still not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since I ran into the same problem, here’s a blog article explaining the background: https://jesperdj.com/2018/09/30/jaxb-on-java-9-10-11-and-beyond/
Those JDK9+ pitfalls -.- I’ve been confused since the class is available, but you have to activate the module on purpose for JDK9/10. Sorry guys, time for weekend ¯_(ツ)_/¯