You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2022/01/13 16:28:00 UTC
[jira] [Assigned] (PDFBOX-5242) LoggerBridge loading under the wrong class loader
[ https://issues.apache.org/jira/browse/PDFBOX-5242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler reassigned PDFBOX-5242:
------------------------------------------
Assignee: Andreas Lehmkühler
> LoggerBridge loading under the wrong class loader
> -------------------------------------------------
>
> Key: PDFBOX-5242
> URL: https://issues.apache.org/jira/browse/PDFBOX-5242
> Project: PDFBox
> Issue Type: Bug
> Components: JBIG2
> Affects Versions: 3.0.0 JBIG2, 3.0.1 JBIG2, 3.0.2 JBIG2, 3.0.3 JBIG2
> Environment: Java 16
> Reporter: Clifford Dann
> Assignee: Andreas Lehmkühler
> Priority: Major
>
> When used in a Tomcat servelet LoggerBridge has a different class loader to JDKLoggerBridge so when it dose {color:#1d1c1d}if (service.isAssignableFrom(clazz)) {{color} in java.util.ServiceLoader it fails.
> took the source to 3.0.3 and replaced all.
> private static final Logger log
> with
> private final Logger log
> and also added , Thread.currentThread().getContextClassLoader() as a parameter to LoggerFactory.getLogger .
>
> This fixed the problem for me, not too sure if Thread.currentThread().getContextClassLoader() is over kill as I think it is the static that is causing the problem.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org