You may have seem there is a problem with Fuseki fulljar - the log4j2 setup is broken by shading.

The jena-fuseki-server jar works - but that is beginning to look like it is due to chance.

Recorded as https://issues.apache.org/jira/browse/JENA-1900

Details:

https://lists.apache.org/thread.html/r794a7cc390a275f5db85541cbedf58666802fa987ae5b09aed49e61d%40%3Cusers.jena.apache.org%3E

I haven't found a workaround that will fix the released system - I was hoping that a suitable log4j2.properties would at least mitigate the problem but it is now looking to be more fundamental than that. A last hope is to fix the jar file with a script.

The shade transformer solution does work but that's a rebuild.

    Andy

-------- Forwarded Message --------
Subject: Fuseki 3.15.0 logging problems
Date: Tue, 19 May 2020 16:37:25 +0000
From: Franco Venturi <franco.vent...@availity.com.INVALID>
Reply-To: us...@jena.apache.org
To: us...@jena.apache.org <us...@jena.apache.org>

I just downloaded and started Fuseki 3.15.0, and I am now receiving several error messages related to the logging subsystem when it starts up (timestamps are in UTC):


2020-05-19 15:05:43,040 main ERROR Unrecognized format specifier [d]

2020-05-19 15:05:43,116 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.

2020-05-19 15:05:43,120 main ERROR Unrecognized format specifier [thread]

2020-05-19 15:05:43,121 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.

2020-05-19 15:05:43,125 main ERROR Unrecognized format specifier [level]

2020-05-19 15:05:43,126 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.

2020-05-19 15:05:43,126 main ERROR Unrecognized format specifier [logger]

2020-05-19 15:05:43,127 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.

2020-05-19 15:05:43,127 main ERROR Unrecognized format specifier [msg]

2020-05-19 15:05:43,127 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.

2020-05-19 15:05:43,128 main ERROR Unrecognized format specifier [n]

2020-05-19 15:05:43,128 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.

2020-05-19 15:05:43,157 main ERROR Unrecognized format specifier [d]

2020-05-19 15:05:43,161 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.

2020-05-19 15:05:43,162 main ERROR Unrecognized format specifier [thread]

2020-05-19 15:05:43,163 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.

2020-05-19 15:05:43,164 main ERROR Unrecognized format specifier [level]

2020-05-19 15:05:43,165 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.

2020-05-19 15:05:43,165 main ERROR Unrecognized format specifier [logger]

2020-05-19 15:05:43,165 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.

2020-05-19 15:05:43,166 main ERROR Unrecognized format specifier [msg]

2020-05-19 15:05:43,167 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.

2020-05-19 15:05:43,168 main ERROR Unrecognized format specifier [n]

2020-05-19 15:05:43,168 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.

2020-05-19 15:05:43,547 main ERROR Unable to locate plugin type for Loggers

2020-05-19 15:05:43,547 main ERROR Unable to locate plugin type for Appenders

2020-05-19 15:05:43,548 main ERROR Unable to locate plugin type for ThresholdFilter

2020-05-19 15:05:43,568 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,569 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,577 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,578 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,578 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,579 main ERROR Unable to locate plugin for AppenderRef

2020-05-19 15:05:43,580 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,580 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,580 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,581 main ERROR Unable to locate plugin for Logger

2020-05-19 15:05:43,581 main ERROR Unable to locate plugin for AppenderRef

2020-05-19 15:05:43,582 main ERROR Unable to locate plugin for Root

2020-05-19 15:05:43,582 main ERROR Unable to locate plugin for Loggers

2020-05-19 15:05:43,583 main ERROR Unable to locate plugin for PatternLayout

2020-05-19 15:05:43,583 main ERROR Unable to locate plugin for Console

2020-05-19 15:05:43,584 main ERROR Unable to locate plugin for PatternLayout

2020-05-19 15:05:43,584 main ERROR Unable to locate plugin for Console

2020-05-19 15:05:43,585 main ERROR Unable to locate plugin for Appenders

2020-05-19 15:05:43,585 main ERROR Unable to locate plugin for ThresholdFilter

2020-05-19 15:05:43,586 main ERROR Unrecognized format specifier [d]

2020-05-19 15:05:43,586 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.

2020-05-19 15:05:43,587 main ERROR Unrecognized format specifier [thread]

2020-05-19 15:05:43,587 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.

2020-05-19 15:05:43,588 main ERROR Unrecognized format specifier [level]

2020-05-19 15:05:43,588 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.

2020-05-19 15:05:43,589 main ERROR Unrecognized format specifier [logger]

2020-05-19 15:05:43,589 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.

2020-05-19 15:05:43,590 main ERROR Unrecognized format specifier [msg]

2020-05-19 15:05:43,590 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.

2020-05-19 15:05:43,590 main ERROR Unrecognized format specifier [n]

2020-05-19 15:05:43,591 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.

Since I don’t have any custom log4j/log4j2 property files, I suspect this issue could be due to JENA-1005 (https://issues.apache.org/jira/browse/JENA-1005 - Move off Log4j v1.), which was releasedd in Fuseki 3.15.0.

I am running Fuseki as system service, i.e. with just the ‘fuseki-server.jar’ in the classpath (java -cp /opt/fuseki/fuseki-server.jar org.apache.jena.fuseki.cmd.FusekiCmd).

Also I did some additional research, and I found that someone else was having a possibly similar issue here: https://www.arctype.co/blog/resolve-log4j2-conflicts-in-uberjars; if this is the case, it is due to log4j2 bug LOG4J2-673 (https://issues.apache.org/jira/browse/LOG4J2-673), which apparently won’t be resolved until log4j2 3.0.0. That blog post also mentions of a couple of possible workarounds (https://github.com/edwgiz/maven-shaded-log4j-transformer and https://github.com/arctype-co/log4j2-plugins-cache).

Regards,
Franco Venturi

----------------------------------------------------------------------
The information contained in this e-mail may be privileged and confidential under applicable law. It is intended solely for the use of the person or firm named above. If the reader of this e-mail is not the intended recipient, please notify us immediately by returning the e-mail to the originating e-mail address. Availity, LLC is not responsible for errors or omissions in this e-mail message. Any personal comments made in this e-mail do not reflect the views of Availity, LLC.

Reply via email to