Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Variable Logger

Avatar

Level 5
Hi,



It's me again. I have some problems with the variablelogger service.



I use two of them in a process after setValues.

For the first no problem, but for the second I always have the nullpointerexception error.



The configuration of the two VL :



1) Directory logging

- log to a directory checked

- Directory path : C:\

- File name prefix : test2

- logging mode : create new



2) Directory logging

- log to a directory checked

- Directory path : C:\

- File name prefix : test2log4

- logging mode : create new



What is the problem ?



I restart the server but the same problem appends.



Thank you.
2 Replies

Avatar

Level 5
Ok,



It seems the problem cames from the setValues before the second variableLogger because when I delete it the variable logger works fine.

Avatar

Not applicable
There is a bug in the variable logger service. We got a work around from adobe technical support to also log to system.out. This means that the log information also appears in your app server log (probably) but does at least mean that the variable logger will stop crashing.