Hello, I deployed a Spring Boot server in Koyeb a while ago.
I added Jacoco dependency to do static analysis but the build fails.
The error message that occurs is as follows.
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
Caused by: java.lang.InternalError: platform encoding not initialized
at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933)
at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1534)
at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)
at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1657)
at org.jacoco.agent.rt.internal_b6258fc.Agent.createSessionId(Agent.java:180)
at org.jacoco.agent.rt.internal_b6258fc.Agent.startup(Agent.java:125)
at org.jacoco.agent.rt.internal_b6258fc.Agent.getInstance(Agent.java:54)
at org.jacoco.agent.rt.internal_b6258fc.PreMain.premain(PreMain.java:50)
Verified that there are no issues with local builds.
What I suspect is that the build environment is different.
I wonder if you do a separate build without using gradlew.
The current jacoco dependency is removed and in use. If you want to see the situation where the problem occurred, you can look at the build status of e3b73cbf.
please answer about my question. thank you