Are you getting any other test failures besides the GelfLayoutTest one?

On Mon, Sep 12, 2022 at 11:24 AM Gary Gregory <garydgreg...@gmail.com> wrote:
>
> Check, I am using Java 8 (with a Maven toolchain obviously).
>
> Gary
>
> On Mon, Sep 12, 2022, 08:45 Ralph Goers <ralph.go...@dslextreme.com> wrote:
>
> > I believe Matt is referring to the errors Ron saw when trying to only use
> > Java 11.
> > The errors you saw Gary would be an entirely different matter.
> >
> > Ralph
> >
> > > On Sep 12, 2022, at 8:41 AM, Matt Sicker <boa...@gmail.com> wrote:
> > >
> > > The sun.reflect test error is due to running Maven using Java 11.
> > > You'll need to run Maven using Java 8 (so that it's used as the
> > > default compiler for all the modules that don't override the toolchain
> > > to use) with Java 11 as a toolchain entry to compile the Java 9 and
> > > Java 11 modules.
> > >
> > > On Mon, Sep 12, 2022 at 9:05 AM Gary Gregory <garydgreg...@gmail.com>
> > wrote:
> > >>
> > >> I'm not sure I understand, but the bottom line is I can't build the
> > release
> > >> from sources. Surely we can't say that disabling tests to validate or
> > build
> > >> a release is ok?
> > >>
> > >> Gary
> > >>
> > >> On Sun, Sep 11, 2022, 16:46 Matt Sicker <boa...@gmail.com> wrote:
> > >>
> > >>> I get the same error when running on java 11, too, but that’s to be
> > >>> expected. I wrote that test originally to explicitly detect the point
> > at
> > >>> which we’d have to do something about it, and we already addressed the
> > >>> original issue long ago. In the 2.x branch, this is handled by using
> > Maven
> > >>> toolchains for switching from java 8. In the 3.x branch, this test was
> > >>> updated to avoid referencing outdated internal APIs due to the base
> > java
> > >>> version requirements there.
> > >>>
> > >>> —
> > >>> Matt Sicker
> > >>>
> > >>>> On Sep 11, 2022, at 16:01, Ron Grabowski <rgrabow...@apache.org>
> > wrote:
> > >>>>
> > >>>> I saw the same errors with JDK8 on Windows:
> > >>>>
> > >>>> openjdk version "1.8.0_342"
> > >>>> OpenJDK Runtime Environment Corretto-8.342.07.3 (build 1.8.0_342-b07)
> > >>>> OpenJDK 64-Bit Server VM Corretto-8.342.07.3 (build 25.342-b07, mixed
> > >>> mode)
> > >>>>
> > >>>> [ERROR] Errors:
> > >>>> [ERROR]
> > >>>
> > GelfLayoutTest.testLayoutNewLineDelimiter:286->testCompressedLayout:189 ▒
> > >>> IndexOutOfBounds Index: 2, Size: 2
> > >>>> [ERROR]
> > >>> GelfLayoutTest.testLayoutNoCompression:256->testCompressedLayout:189 ▒
> > >>> IndexOutOfBounds Index: 2, Size: 2
> > >>>> [ERROR]
> >  GelfLayoutTest.testLayoutNoHost:276->testCompressedLayout:189
> > >>> ▒ IndexOutOfBounds Index: 2, Size: 2
> > >>>> [ERROR]
> > >>> GelfLayoutTest.testLayoutNoThreadContext:271->testCompressedLayout:189
> > ▒
> > >>> IndexOutOfBounds Index: 2, Size: 2
> > >>>> [INFO]
> > >>>> [ERROR] Tests run: 2405, Failures: 0, Errors: 4, Skipped: 13
> > >>>>
> > >>>> Different error with JDK11 on Windows:
> > >>>>
> > >>>> openjdk version "11.0.16.1" 2022-08-12 LTS
> > >>>> OpenJDK Runtime Environment Corretto-11.0.16.9.1 (build
> > 11.0.16.1+9-LTS)
> > >>>> OpenJDK 64-Bit Server VM Corretto-11.0.16.9.1 (build 11.0.16.1+9-LTS,
> > >>> mixed mode)
> > >>>>
> > >>>> [ERROR]
> > >>>
> > log4j-2.19.0-rc1\log4j-api\src\test\java\org\apache\logging\log4j\util\StackLocatorUtilTest.java:[31,18]
> > >>> error: cannot find symbol
> > >>>> [ERROR]   symbol:   class Reflection
> > >>>> [ERROR]   location: package sun.reflect
> > >>>>
> > >>>>> On 2022/09/11 16:12:51 Gary Gregory wrote:
> > >>>>> I am away from home and my mac, so I am testing on Windows where I
> > >>> always
> > >>>>> get these failures:
> > >>>>>
> > >>>>>
> > >>>>> [INFO]
> > >>>>> [INFO] -------------------------------------------------------
> > >>>>> [INFO]  T E S T S
> > >>>>> [INFO] -------------------------------------------------------
> > >>>>> [INFO] Running org.apache.logging.log4j.core.layout.GelfLayoutTest
> > >>>>> ERROR StatusLogger Recovering from
> > >>>>>
> > >>>
> > StringBuilderEncoder.encode('{"version":"1.1","host":"US-L-GG02","timestamp":1662912585.090,"level":3,"_thread":"main","_logger":"","_Key1":"Value1","_Key2":"OpenJDK
> > >>>>> Runtime Environment (build 1.8.0_342-b07) from
> > >>>>>
> > >>>
> > Temurin","_MdcKey1":"MdcValue1","_MdcKey2":"MdcValue2","full_message":"java.lang.RuntimeException:
> > >>>>> some error\r\n\tat
> > >>>>>
> > >>>
> > org.apache.logging.log4j.core.layout.GelfLayoutTest.testCompressedLayout(GelfLayoutTest.java:135)\r\n\tat
> > >>>>>
> > >>>
> > org.apache.logging.log4j.core.layout.GelfLayoutTest.testLayoutNoHost(GelfLayoutTest.java:276)\r\n\tat
> > >>>>
> > >>>> [snip]
> > >>>>
> > >>>>>
> > >>>>> [INFO]
> > >>>>> [INFO] Results:
> > >>>>> [INFO]
> > >>>>> [ERROR] Errors:
> > >>>>> [ERROR]
> > >>>>>
> > GelfLayoutTest.testLayoutNewLineDelimiter:286->testCompressedLayout:189
> > >>> »
> > >>>>> IndexOutOfBounds Index: 2, Size: 2
> > >>>>> [ERROR]
> > >>>>> GelfLayoutTest.testLayoutNoCompression:256->testCompressedLayout:189
> > »
> > >>>>> IndexOutOfBounds Index: 2, Size: 2
> > >>>>> [ERROR]
> >  GelfLayoutTest.testLayoutNoHost:276->testCompressedLayout:189
> > >>> »
> > >>>>> IndexOutOfBounds Index: 2, Size: 2
> > >>>>> [ERROR]
> > >>>>>
> > GelfLayoutTest.testLayoutNoThreadContext:271->testCompressedLayout:189 »
> > >>>>> IndexOutOfBounds Index: 2, Size: 2
> > >>>>> [INFO]
> > >>>>> [ERROR] Tests run: 12, Failures: 0, Errors: 4, Skipped: 0
> > >>>>> [INFO]
> > >>>>> [INFO]
> > >>>>>
> > ------------------------------------------------------------------------
> > >>>>> [INFO] BUILD FAILURE
> > >>>>> [INFO]
> > >>>>>
> > ------------------------------------------------------------------------
> > >>>>> [INFO] Total time:  16.182 s
> > >>>>> [INFO] Finished at: 2022-09-11T09:09:46-07:00
> > >>>>> [INFO]
> > >>>>>
> > ------------------------------------------------------------------------
> > >>>>> [ERROR] Failed to execute goal
> > >>>>> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M6:test
> > >>> (default-test)
> > >>>>> on project log4j-core:
> > >>>>> [ERROR]
> > >>>>> [ERROR] Please refer to
> > >>>>> C:\temp\apache-log4j-2.19.0-src\log4j-core\target\surefire-reports
> > for
> > >>> the
> > >>>>> individual test results.
> > >>>>> [ERROR] Please refer to dump files (if any exist) [date].dump,
> > >>>>> [date]-jvmRun[N].dump and [date].dumpstream.
> > >>>>> [ERROR] -> [Help 1]
> > >>>>> [ERROR]
> > >>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with
> > >>> the -e
> > >>>>> switch.
> > >>>>> [ERROR] Re-run Maven using the -X switch to enable full debug
> > logging.
> > >>>>> [ERROR]
> > >>>>> [ERROR] For more information about the errors and possible solutions,
> > >>>>> please read the following articles:
> > >>>>> [ERROR] [Help 1]
> > >>>>>
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >>>>>
> > >>>>> Thoughts?
> > >>>>>
> > >>>>> Gary
> > >>>>>
> > >>>>>> On Fri, Sep 9, 2022, 15:56 Ralph Goers <ralph.go...@dslextreme.com>
> > >>> wrote:
> > >>>>>>
> > >>>>>> This is a vote to release Log4j 2.19.0, the next version of the
> > Log4j 2
> > >>>>>> project.
> > >>>>>>
> > >>>>>> Note that the security page on the web site was updated to better
> > >>> describe
> > >>>>>> CVE-2021-44228 and CVE-2021-45046. Please review those changes.
> > >>>>>>
> > >>>>>> Please download, test, and cast your votes on the log4j developers
> > >>> list.
> > >>>>>> [] +1, release the artifacts
> > >>>>>> [] -1, don't release because...
> > >>>>>>
> > >>>>>> The vote will remain open for 72 hours. All votes are welcome and we
> > >>>>>> encourage everyone to test the release, but only Logging PMC votes
> > are
> > >>>>>> “officially” counted. As always, at least 3 +1 votes and more
> > positive
> > >>> than
> > >>>>>> negative votes are required.
> > >>>>>>
> > >>>>>> Changes in this version include:
> > >>>>>>
> > >>>>>> New Features
> > >>>>>>       • LOG4J2-3583: Add support for SLF4J2 stack-valued MDC. Thanks
> > >>> to
> > >>>>>> Pierrick Terrettaz.
> > >>>>>>       • LOG4J2-2975: Add implementation of SLF4J2 fluent API. Thanks
> > >>> to
> > >>>>>> Daniel Gray.
> > >>>>>> Fixed Bugs
> > >>>>>>       • LOG4J2-3578: Generate new SSL certs for testing.
> > >>>>>>       • LOG4J2-3556: Make JsonTemplateLayout stack trace truncation
> > >>>>>> operate for each label block. Thanks to Arthur Gavlyukovskiy.
> > >>>>>>       • LOG4J2-3550: SystemPropertyArbiter was assigning the value
> > as
> > >>>>>> the name. Thanks to DongjianPeng.
> > >>>>>>       • LOG4J2-3560: Logger$PrivateConfig.filter(Level, Marker,
> > >>> String)
> > >>>>>> was allocating empty varargs array. Thanks to David Schlosnagle.
> > >>>>>>       • LOG4J2-3561: Allows a space separated list of style
> > specifiers
> > >>>>>> in the %style pattern for consistency with %highlight. Thanks to
> > Robert
> > >>>>>> Papp.
> > >>>>>>       • LOG4J2-3564: Fix NPE in log4j-to-jul in the case the root
> > >>> logger
> > >>>>>> level is null.
> > >>>>>>       • LOG4J2-3545: Add correct manifest entries for OSGi to
> > >>> log4j-jcl
> > >>>>>> Thanks to Johan Compagner.
> > >>>>>>       • LOG4J2-3565: Fix RollingRandomAccessFileAppender with
> > >>>>>> DirectWriteRolloverStrategy can't create the first log file of
> > >>> different
> > >>>>>> directory.
> > >>>>>>       • LOG4J2-3579: Fix ServiceLoaderUtil behavior in the presence
> > >>> of a
> > >>>>>> SecurityManager. Thanks to Boris Unckel.
> > >>>>>>       • LOG4J2-3559: Fix resolution of properties not starting with
> > >>>>>> log4j2.. Thanks to Gary Gregory.
> > >>>>>>       • LOG4J2-3557: Fix recursion between Log4j 1.2 LogManager and
> > >>>>>> Category. Thanks to Andreas Leitgeb.
> > >>>>>>       • LOG4J2-3587: Fix regression in Rfc5424Layout default values.
> > >>>>>> Thanks to Tomas Micko.
> > >>>>>>       • LOG4J2-3548: Improve support for passwordless keystores.
> > >>> Thanks
> > >>>>>> to Kristof Farkas-Pall.
> > >>>>>> Changes
> > >>>>>>       • LOG4J2-3572: Add getExlicitLevel method to LoggerConfig.
> > >>>>>>       • LOG4J2-3589: Allow Plugins to be injected with the
> > >>> LoggerContext
> > >>>>>> reference.
> > >>>>>>       • LOG4J2-3588: Allow PropertySources to be added.
> > >>>>>> Removed
> > >>>>>>       • LOG4J2-3573: Removed build page in favor of a single build
> > >>>>>> instructions file. Thanks to Wolff Bock von Wuelfingen.
> > >>>>>>       • LOG4J2-3590: Remove SLF4J 1.8.x binding.
> > >>>>>>
> > >>>>>> Tag:
> > >>>>>> a)  for a new copy do "git clone
> > >>>>>> https://github.com/apache/logging-log4j2.git and then "git checkout
> > >>>>>> tags/log4j-2.19.0-rc1”  or just "git clone -b log4j-2.19.0-rc1
> > >>>>>> https://github.com/apache/logging-log4j2.git";
> > >>>>>> b) for an existing working copy to “git pull” and then “git checkout
> > >>>>>> tags/log4j-2.19.0-rc1”
> > >>>>>>
> > >>>>>> Web Site:  https://logging.staged.apache.org/log4j/2.x/index.html.
> > >>>>>>
> > >>>>>> Maven Artifacts:
> > >>>>>>
> > >>>
> > https://repository.apache.org/content/repositories/orgapachelogging-1088/
> > >>>>>>
> > >>>>>> Distribution archives:
> > >>>>>> https://dist.apache.org/repos/dist/dev/logging/log4j/
> > >>>>>>
> > >>>>>> You may download all the Maven artifacts by executing:
> > >>>>>> wget -e robots=off --cut-dirs=7 -nH -r -p -np --no-check-certificate
> > >>>>>>
> > >>>
> > https://repository.apache.org/content/repositories/orgapachelogging-1088/org/apache/logging/log4j/
> > >>>>>>
> > >>>>>> Ralph
> > >>>>>
> > >>>
> >
> >

Reply via email to