1 Reply Latest reply on Sep 2, 2007 6:07 AM by SR

    IllegalStateException after idle

    James Clinton Clinton Newbie

      Hi

      Currently we have a spring app deployed in jboss 4.0.2 (backend hibernate/oracle).

      All is well until the system is left idle for sometime, after which requesting a page doesn't work and the following exception is thrown in the log.

      00:01:43,359 WARN [IdleRemover] run: IdleRemover ignored unexpected runtime exception
      java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
       at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:941)
       at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:537)
       at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:358)
       at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:414)
       at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
       at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
       at java.io.FilterWriter.close(FilterWriter.java:92)
       at org.apache.log4j.FileAppender.closeFile(FileAppender.java:171)
       at org.apache.log4j.FileAppender.reset(FileAppender.java:302)
       at org.apache.log4j.FileAppender.setFile(FileAppender.java:271)
       at org.apache.log4j.DailyRollingFileAppender.rollOver(DailyRollingFileAppender.java:321)
       at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:343)
       at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
       at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
       at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
       at org.apache.log4j.Category.callAppenders(Category.java:187)
       at org.apache.log4j.Category.forcedLog(Category.java:372)
       at org.apache.log4j.Category.log(Category.java:864)
       at org.jboss.logging.Log4jLoggerPlugin.debug(Log4jLoggerPlugin.java:128)
       at org.jboss.logging.Logger.debug(Logger.java:144)
       at org.jboss.resource.connectionmanager.IdleRemover$1.run(IdleRemover.java:67)
       at java.lang.Thread.run(Thread.java:595)
      00:01:43,481 INFO [STDOUT] Exception in thread "IdleRemover"
      


      Any comments or thoughts on where to look to solve this would be appreciated.

      Thank you.