The moose likes Beginning Java and the fly likes Problem in Log4j ...log4j:ERROR Error occured while converting date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem in Log4j ...log4j:ERROR Error occured while converting date" Watch "Problem in Log4j ...log4j:ERROR Error occured while converting date" New topic

Problem in Log4j ...log4j:ERROR Error occured while converting date

Nagendra Batchu
Ranch Hand

Joined: Jan 23, 2008
Posts: 32
Hi All,

When i am updating some records(say 3000) through java code, then after all the transaction gets comitted, i am get the follows exception and system getting stopped.

The Exception error is as follows:

log4j:ERROR Error occured while converting date.
at java.lang.System.arraycopy(Native Method)
at java.lang.AbstractStringBuilder.getChars(Unknown Source)
at java.lang.StringBuffer.getChars(Unknown Source)
at org.apache.log4j.helpers.ISO8601DateFormat.format(
at java.text.DateFormat.format(Unknown Source)
at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(
at org.apache.log4j.helpers.PatternConverter.format(
at org.apache.log4j.PatternLayout.format(
at org.apache.log4j.WriterAppender.subAppend(
at org.apache.log4j.RollingFileAppender.subAppend(
at org.apache.log4j.WriterAppender.append(
at org.apache.log4j.AppenderSkeleton.doAppend(
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(
at org.apache.log4j.Category.callAppenders(
at org.apache.log4j.Category.forcedLog(
at org.apache.log4j.Category.log(
at org.apache.commons.logging.impl.Log4JLogger.error(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$
at Source)
Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

Wrong forum.

at java.lang.System.arraycopy(Native Method)

It also appears the problem has nothing to do with JDBC, since it is a NullPointerException with the arraycopy method.

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45255
Deepak Bala wrote:Wrong forum. . . .
Still wrong forum. Moving somewhere more appropriate
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45255
You will need to look carefully at the code where that Exception happened.
I agree. Here's the link:
subject: Problem in Log4j ...log4j:ERROR Error occured while converting date
It's not a secret anymore!