Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-18591

org.jboss.logmanager.handlers.PeriodicRotatingFileHandler fails to create file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 7.3.0.GA.CR3
    • Logging
    • None
    • Hide

      Logger configuration used by the Testsuite:

      handler.FILE-ERROR=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler
      handler.FILE-ERROR.level=ERROR
      handler.FILE-ERROR.formatter=PATTERN
      handler.FILE-ERROR.properties=autoFlush,append,fileName,suffix
      handler.FILE-ERROR.constructorProperties=fileName,append
      handler.FILE-ERROR.autoFlush=true
      handler.FILE-ERROR.append=false
      handler.FILE-ERROR.fileName=target/errors.log
      handler.FILE-ERROR.suffix=.yyyy-MM-dd

      Show
      Logger configuration used by the Testsuite: handler.FILE-ERROR=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler handler.FILE-ERROR.level=ERROR handler.FILE-ERROR.formatter=PATTERN handler.FILE-ERROR.properties=autoFlush,append,fileName,suffix handler.FILE-ERROR.constructorProperties=fileName,append handler.FILE-ERROR.autoFlush=true handler.FILE-ERROR.append=false handler.FILE-ERROR.fileName=target/errors.log handler.FILE-ERROR.suffix=.yyyy-MM-dd

      There is an issue reported by the vdx-wildfly-testsuite in the PeriodicRotatingFileHandler which fails to create a log file:

      java.nio.file.NoSuchFileException: target/errors.log
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
      	at java.nio.file.Files.newByteChannel(Files.java:361)
      	at java.nio.file.Files.newByteChannel(Files.java:407)
      	at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
      	at java.nio.file.Files.newInputStream(Files.java:152)
      	at java.nio.file.Files.newBufferedReader(Files.java:2784)
      	at java.nio.file.Files.readAllLines(Files.java:3202)
      	at org.wildfly.test.integration.vdx.utils.server.ServerBase.getErrorMessageFromServerStart(ServerBase.java:130)
      	at org.wildfly.test.integration.vdx.standalone.JBossWSTestCase.duplicateWsdlHostElement(JBossWSTestCase.java:139)
      

      The issue only happens when using the following environment:
      Oracle JDK 1.8
      RHEL6&&x86_64

      JenkinsCI log

            jperkins-rhn James Perkins
            fmarchio@redhat.com Francesco Marchioni (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: