Uploaded image for project: 'Spring Batch'
  1. Spring Batch
  2. BATCH-1599

log4j:ERROR Failed to write, SimpleJobLauncher java.io.IOException: Stream closed

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Websphere 6.1 on AIX

      Description

      In my application I define a Job with a step, during the start of job occurs this exception:

      [7/19/10 20:00:02:849 CEST] 000000bc SystemErr R log4j:ERROR Failed to write [[2010-07-19 20:00:02,848], INFO,org.springframework.batch.core.launch.support.SimpleJobLauncher,user[],sessionid[], Job: [FlowJob: [name=racoBalanceJob]] failed unexpectedly and fatally with the following parameters: [

      {message=racoBalanceJob, currTime=1279562402820}

      ]
      ].
      [7/19/10 20:00:02:857 CEST] 000000bc SystemErr R java.io.IOException: Stream closed
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at sun.nio.cs.StreamEncoder.ensureOpen(StreamEncoder.java:66)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:179)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:196)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at java.io.OutputStreamWriter.write(OutputStreamWriter.java:227)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at java.io.Writer.write(Writer.java:147)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at org.apache.log4j.helpers.QuietWriter.write(QuietWriter.java:39)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:297)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:343)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
      [7/19/10 20:00:02:858 CEST] 000000bc SystemErr R at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:222)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.apache.log4j.Category.callAppenders(Category.java:190)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.apache.log4j.Category.forcedLog(Category.java:375)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.apache.log4j.Category.log(Category.java:868)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:160)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:115)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:105)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at it.vtfinance.vtpie.commons.scheduledJobs.JobStarter.start(JobStarter.java:56)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at it.vtfinance.vtpie.go.jms.GONotificaEventiListener.execBatch(GONotificaEventiListener.java:196)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at it.vtfinance.vtpie.go.jms.GONotificaEventiListener.onMessage(GONotificaEventiListener.java:139)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:543)
      [7/19/10 20:00:02:859 CEST] 000000bc SystemErr R at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:482)
      [7/19/10 20:00:02:860 CEST] 000000bc SystemErr R at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:451)
      [7/19/10 20:00:02:860 CEST] 000000bc SystemErr R at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
      [7/19/10 20:00:02:860 CEST] 000000bc SystemErr R at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261)
      [7/19/10 20:00:02:860 CEST] 000000bc SystemErr R at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:982)
      [7/19/10 20:00:02:860 CEST] 000000bc SystemErr R at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:974)
      [7/19/10 20:00:02:860 CEST] 000000bc SystemErr R at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:876)

        Activity

        Hide
        carned Davide added a comment -

        The problems occours sometimes, not always.

        Show
        carned Davide added a comment - The problems occours sometimes, not always.
        Hide
        david_syer Dave Syer added a comment - - edited

        I doubt very much if we can do anything about a bug in WAS/log4j. Have you tried using a different logger, or playing the usual games with WAS class loaders? Or if you think the problem is in Batch, can you create a test case that demonstrates it?

        Show
        david_syer Dave Syer added a comment - - edited I doubt very much if we can do anything about a bug in WAS/log4j. Have you tried using a different logger, or playing the usual games with WAS class loaders? Or if you think the problem is in Batch, can you create a test case that demonstrates it?
        Hide
        david_syer Dave Syer added a comment -

        Downgraded to "Minor" because there is no response, so it can't be very urgent.

        Show
        david_syer Dave Syer added a comment - Downgraded to "Minor" because there is no response, so it can't be very urgent.

          People

          • Assignee:
            Unassigned
            Reporter:
            carned Davide
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: