Re: MapMessage conversion layout %K not working

2017-10-06 Thread Gary Gregory
Also, cross-posting between the dev and user ML is bad form ;-) Gary On Fri, Oct 6, 2017 at 8:49 AM, gaurav9...@gmail.com wrote: > Hi log4j2 users, > > I have created a MapMessage with a key-value pair > > e.g. userName="log4j" > > I have configured JDBCAppender with > > > > But, it gives null

MapMessage conversion layout %K not working

2017-10-06 Thread gaurav9...@gmail.com
Hi log4j2 users, I have created a MapMessage with a key-value pair e.g. userName="log4j" I have configured JDBCAppender with But, it gives null pointer error when tried to insert into database table using %K/%map/%MAP and works when you put normal message/literal string. Note: 'userName'