Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j:ERROR

 
sowjan kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using log4j in my application..I could log things properly but the PropertyConfigurator is throwing Exception...

The controllerServlet that this error points out is the PropertyConfigurator configuration....Pls help me out on this

The error that i got was

log4j:ERROR Category option "n" not a decimal integer.
java.lang.NumberFormatException: n
at java.lang.Integer.parseInt(Integer.java:423)
at java.lang.Integer.parseInt(Integer.java:472)
at org.apache.log4j.helpers.PatternParser.extractPrecisionOption(PatternParser.java:109)
at org.apache.log4j.helpers.PatternParser.finalizeConverter(PatternParser.java:234)
at org.apache.log4j.helpers.PatternParser.parse(PatternParser.java:179)
at org.apache.log4j.PatternLayout.setConversionPattern(PatternLayout.java:439)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:196)
at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:155)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:120)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:640)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:340)
at com.server.utils.ControllerServlet.init(ControllerServlet.java:56)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:193)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:325)
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1218)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
at com.ibm.servlet.engine.srt.WebGroup.reload(WebGroup.java:1091)
at com.ibm.servlet.engine.srt.ClassChangeWatcher.classChanged(ClassChangeWatcher.java:55)
at com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:360)
at com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:34)
at com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:412)
at java.util.TimerThread.mainLoop(Timer.java:445)
at java.util.TimerThread.run(Timer.java:395)
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The NumberFormatException here is probably the result of a String value that cannot be parsed into an integer. It seems likely this is a bug in your program code, not a service issue.

Moving this to...hm...well I'll figure it out in a sec.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic