Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Atul Pendse
Some additional info. Allowing the port only resolved issue with tests related to creating UDP socket. HtmlLayoutTest was failing due to the timezone I am in. I am in GMT+0530 timezone, and test always fails. It just appears to ignore the ‘minutes’ part of timezone. The test works fine when I s

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Atul Pendse
Thanks Matt for the pointer. It indeed was antivirus (eset endpoint), that was blocking creation of socket. I allowed port 8199, and it works fine now. Thanks all for your time to help with different suggestions. Thanks, Atul From: Matt Sicker Date: Thursday, 3 March 2022 at 2:28 AM To: dev@log

Re: WAR class loader policy issue with Log4j2 migration

2022-03-02 Thread Ralph Goers
I am really not all that clear on what your setup is. A typical Tomcat setup would have a ClassLoader for Tomcat and a ClassLoader for each web application. These web applications each have multiple jars & packages and work fine. I am not clear what the “main package” is. When you say “single c

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Atul Pendse
It also fails when I run it individually from eclipse, with the same log. I will have a look at my firewall settings like Matt suggested in another email. Thanks, Atul From: Ralph Goers Date: Thursday, 3 March 2022 at 3:31 AM To: dev@logging.apache.org Subject: Re: MacOS: Unit tests failing on

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Ralph Goers
I have never seen the errors you are getting. I work on a MacBook Pro that is Intel-based. Others have had issues with newer MacBooks that are using Apples M1 chip, but I don’t think they have seen it fail this way. It is clear the SocketAppenderTest is failing due to the port already being in u

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Matt Sicker
Maybe you have a firewall rule blocking java from making the connection? I recall having to grant permissions to java before for this type of thing on macOS. — Matt Sicker > On Mar 2, 2022, at 07:21, Atul Pendse wrote: > > Hi Volkan, > > I ran `./mvnw clean verify -Dsurefire.rerunFailingTests

WAR class loader policy issue with Log4j2 migration

2022-03-02 Thread Markos, Alazar A
When working with applications which have multiple jars/packages, logging stops after upgrading to Log4j 2.17.1. Only the main package where the app is initialized is logging. It seems to be a class loader issue. To resolve this, we had to go into the deployed jar in websphere and change WAR cl

WAR class loader policy affecting Log4j2 migration

2022-03-02 Thread Markos, Alazar A
When working with an application which has multiple jars/packages, logging stops after upgrading to Log4j 2.17.1. Only the main package where the app is initialized is logging. To resolve this, we had to go into the deployed jar in websphere and change WAR class loader policy to single class loa

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Atul Pendse
Hi Volkan, I ran `./mvnw clean verify -Dsurefire.rerunFailingTestsCount=2` as you suggested. The tests failed during each retry. [ERROR] Failures: [ERROR] SocketAppenderTest.testUdpAppender:211 No event retrieved [ERROR] org.apache.logging.log4j.core.appender.SyslogAppenderCustomLayoutTest

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Atul Pendse
Hi Gary, Setting locale to US didn't help. The tests failed with same error. Thanks, Atul From: Atul Pendse Sent: Wednesday, March 2, 2022 5:55 PM To: Apache Logging Developers List Subject: Re: MacOS: Unit tests failing on release-2.x branch This has been fail

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Atul Pendse
This has been failing consistently. Thanks for the suggestion. I will try and get back with results. From: Gary Gregory Sent: Wednesday, March 2, 2022 5:54 PM To: Apache Logging Developers List Subject: Re: MacOS: Unit tests failing on release-2.x branch Hi Atul

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Gary Gregory
Hi Atul, Is this random or consistently repeatable? I wonder if this could be a locale issue. Could you try building with the default locale set to US, something like this: -Duser.language=en -Duser.region=US Gary On Wed, Mar 2, 2022, 03:30 Atul Pendse wrote: > Hi, > > > > I have checked out

Re: MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Volkan Yazıcı
Unstable HtmlLayoutTest is a known issue, see LOG4J2-3019 . For others, I don't have an idea. Though I would advise using the following command instead: `./mvnw clean verify -Dsurefire.rerunFailingTestsCount=2`. `./mvnw` will align the used Maven v

MacOS: Unit tests failing on release-2.x branch

2022-03-02 Thread Atul Pendse
Hi, I have checked out latest code from log4j release-2.x branch. While trying to run ‘mvn clean install’, few unit tests in log4j-core are failing with below error [INFO] Results: [INFO] [ERROR] Failures: [ERROR] SocketAppenderTest.testUdpAppender:211 No event retrieved [ERROR] Syslog