This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Could not configure  RSS feed

dahood shaikh
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I added the to my project and log4j.jar to the lib folder. And deployed the app on jboss 7. My application is deployed successfully ,but when i run the app i get the NullPointer Exception.
Below is the error that i see on my console.

01:07:42,112 ERROR [stderr] (http-localhost- Could not configure

01:07:42,112 ERROR [stderr] (http-localhost- java.lang.NullPointerException

01:07:42,112 ERROR [stderr] (http-localhost- at org.apache.log4j.PropertyConfigurator.doConfigure(

01:07:42,112 ERROR [stderr] (http-localhost- at org.apache.log4j.PropertyConfigurator.configure(
# Set root category priority to DEBUG and its only appender to SVAppenderFile.
log4j.rootCategory=DEBUG, SVAppenderFile

# SVAppenderFile is set to be a ConsoleAppender.
# log4j.appender.SVAppenderFile=org.apache.log4j.ConsoleAppender
# different appenders

# Keep one backup file

# SVAppenderFile uses PatternLayout.
log4j.appender.SVAppenderFile.layout.ConversionPattern=[%p][date] %d{dd MMM yyyy HH:mm:ss,SSS} [class]%c %m%n

Can anyone please help me out why i get the above error?
Is there any thing thats missing in file?

Paul Clapham
Posts: 22471
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first thing to do is to follow the stack trace a bit farther and see if any of your code appears in it. I think it's unlikely that log4j would be throwing NPEs just for configuration errors at this point.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!