question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

5.3 not working with JDK9+

See original GitHub issue

Hello 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
joschicommented, May 20, 2019

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/

0reactions
mmaellercommented, Feb 8, 2019

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 ¯_(ツ)_/¯

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found