Comments (9)
@mgocd The issue is unrelated to JIGSAW modularization but accessing a package private inner class via reflection. The IllegalAccessException
issue has been fixed in logback 1.5.0.
from logback.
See commits 9a1fc44 and f6d690d
from logback.
hi @ceki, How can I enable this virtual thread feature? Are there some documents?
from logback.
@johncurrier Indeed, the switch is automatic when running under Java 21.
The System.out.println() issue existed in 1.3.12/14.12 released on 2023-12-27 and was fixed a in version 1.3.13/1.4.13 released a day later. Are you observing otherwise?
from logback.
@wupei93 it looks like it switches automatically when running under Java 21. The code by @ceki, however, seems to still contain System.out.println()
s, so I'm guessing it's not quite ready.
from logback.
I'm using logback 1.3.11 in my scala code (which is compiled by java 8) and just upgraded to logback 1.3.12. sbt compile failed with bad constant pool index
error and failed. compiler version is 2.13.10
Is there any dependency updates in 1.3.12 that could cause this?
from logback.
In JDK 21.0.1 and 21.0.2 (tested on Eclipse Temurin distribution, without any -add-opens
flags) the code added in 9a1fc44 (ExecutorServiceUtil#makeThreadFactory
) fails with the following error:
java.lang.IllegalAccessException: class ch.qos.logback.core.util.ExecutorServiceUtil$1
cannot access a member of class java.lang.ThreadBuilders$VirtualThreadBuilder (in module java.base)
with modifiers "public"
and the DefaultThreadFactory
is used.
from logback.
@mgocd In a JIGSAW modular application the IllegalAccessException
is thrown but caught and Executors.defaultThreadFactory()
is used. Would you concur?
from logback.
@ceki Yes it's thrown, caught and Executors.defaultThreadFactory()
is used, but I observed it in a standard non-modularized Spring Boot app, please see a minimal reproduction here: https://github.com/mgocd/logback-virtualthreads
from logback.
Related Issues (20)
- Logback 1.5.5 and 1.5.6 incompatible with springProfile HOT 6
- ExecutorServiceUtil throws java.lang.SecurityException from 1.5.0 onwards with jdk21 HOT 13
- Class 'org.productivity.java.syslog4j.impl.net.tcp.TCPNetSyslogConfig' contains multiple setters for the same property 'facility'.
- Exception in thread "main" java.lang.NoSuchMethodError: HOT 4
- Randomly occuring NPE when logging HOT 2
- BlockingQueue<E> blockingQueue;
- License update?
- Mask or remove specific words from log line HOT 4
- Conditional expressions evaluated in a weird order causing configuration discrepancies HOT 3
- Stack Overflow in ThrowableProxy
- Using non-existent appender in root - no logging in other files HOT 1
- Archiving is triggered only when log is being written.
- SpringBoot3,JDK17 使用logback配置了<configuration debug="false">依然会打印logback内部日志 HOT 2
- How to print virtual thread name in logback HOT 1
- pattern cannot be displayed properly
- String values with an unmatched right curly brace } drop the brace and subsequent characters
- Properties in a log statement are shoved in to message in JsonEncoder
- logback 1.5.6 using in undowtow working not properly. HOT 1
- logback-classic 1.5.5 breaks springProperty handle from included xml in a spring boot app, openjdk 17 HOT 1
- LogbackValue does not implement Context correctly (1.5.7) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logback.