Skip to content

SLF4M busted under R2022a or R2021b - log4j upgrade #7

@HenningBraess

Description

@HenningBraess

Hi,

I installed SLF4m on Matlab R2022a (Windows 10). When I called the attached helloWorld program I got the following exception code:


Error using logger.Log4jConfigurator.configureBasicConsoleLogging
Invalid default value for property 'initializer' in class 'logger.Logger':
Java exception occurred:
java.util.NoSuchElementException

at org.apache.log4j.helpers.NullEnumeration.nextElement(NullEnumeration.java:45)

Error in logger.internal.Slf4mInitializer.initSLF4M (line 59)
logger.Log4jConfigurator.configureBasicConsoleLogging()

Error in logger.internal.Slf4mInitializer (line 12)
logger.internal.Slf4mInitializer.initSLF4M;

Error in loggerCallImpl (line 42)
loggerObj = logger.Logger.getLogger(callerId);

Error in logger.debug (line 14)
loggerCallImpl('debug', msg, varargin);

Error in helloWorld (line 6)
logger.debug('Got empty x input; defaulted to %f', x);


Is there anything that I need but did not install?

Any help is appreciated.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions