Petals ESB Container

The following error occurs dumping message content with log handler PetalsPayloadDumperFileHandler

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 4.2.3
  • Fix Version/s: 4.2.4, 5.0.0
  • Component/s: Logging
  • Security Level: Public
  • Description:
    Hide

    The following error occurs dumping message content with the log handler PetalsPayloadDumperFileHandler. The problem occurs only on Windows:

    sample-0 2014/09/03 21:29:37,012 GMT+0200 SEVERE [Petals.Container.Components.petals-se-eip] : Unexpected internal error near index 1
    \
     ^
    java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
    \
     ^
            at java.util.regex.Pattern.error(Pattern.java:1713)
            at java.util.regex.Pattern.compile(Pattern.java:1466)
            at java.util.regex.Pattern.<init>(Pattern.java:1133)
            at java.util.regex.Pattern.compile(Pattern.java:823)
            at java.lang.String.split(String.java:2292)
            at java.lang.String.split(String.java:2334)
            at com.ebmwebsourcing.easycommons.io.FileSystemHelper.getRelativePath(FileSystemHelper.java:359)
            at org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler.dumpMessageExchange(PetalsPayloadDumperFileHandler.java:139)
            at org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler.publish(PetalsPayloadDumperFileHandler.java:107)
            at java.util.logging.Logger.log(Logger.java:509)
            at java.util.logging.Logger.doLog(Logger.java:531)
            at java.util.logging.Logger.log(Logger.java:575)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:462)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:342)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:257)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
            at java.lang.Thread.run(Thread.java:662)
    Show
    The following error occurs dumping message content with the log handler PetalsPayloadDumperFileHandler. The problem occurs only on Windows:
    sample-0 2014/09/03 21:29:37,012 GMT+0200 SEVERE [Petals.Container.Components.petals-se-eip] : Unexpected internal error near index 1
    \
     ^
    java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
    \
     ^
            at java.util.regex.Pattern.error(Pattern.java:1713)
            at java.util.regex.Pattern.compile(Pattern.java:1466)
            at java.util.regex.Pattern.<init>(Pattern.java:1133)
            at java.util.regex.Pattern.compile(Pattern.java:823)
            at java.lang.String.split(String.java:2292)
            at java.lang.String.split(String.java:2334)
            at com.ebmwebsourcing.easycommons.io.FileSystemHelper.getRelativePath(FileSystemHelper.java:359)
            at org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler.dumpMessageExchange(PetalsPayloadDumperFileHandler.java:139)
            at org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler.publish(PetalsPayloadDumperFileHandler.java:107)
            at java.util.logging.Logger.log(Logger.java:509)
            at java.util.logging.Logger.doLog(Logger.java:531)
            at java.util.logging.Logger.log(Logger.java:575)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:462)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:342)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:257)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
            at java.lang.Thread.run(Thread.java:662)
  • Environment:
    Windows

Activity

Hide
Christophe DENEUX added a comment - Tue, 16 Sep 2014 - 14:37:13 +0200

Merged in trunk

Show
Christophe DENEUX added a comment - Tue, 16 Sep 2014 - 14:37:13 +0200 Merged in trunk
Hide
Christophe DENEUX added a comment - Fri, 12 Sep 2014 - 13:31:22 +0200

Reopened to be merged in trunk

Show
Christophe DENEUX added a comment - Fri, 12 Sep 2014 - 13:31:22 +0200 Reopened to be merged in trunk
Hide
Christophe DENEUX added a comment - Fri, 12 Sep 2014 - 13:31:08 +0200

Fix in branch petals-esb-enterprise-4.2.x

Show
Christophe DENEUX added a comment - Fri, 12 Sep 2014 - 13:31:08 +0200 Fix in branch petals-esb-enterprise-4.2.x
Hide
Christophe DENEUX added a comment - Wed, 3 Sep 2014 - 21:31:33 +0200

The problem is due to the file separator '\' that is the escape character of regexp. It should be escaped as mentionned here: http://stackoverflow.com/questions/10336293/splitting-filenames-using-system-file-separator-symbol

Show
Christophe DENEUX added a comment - Wed, 3 Sep 2014 - 21:31:33 +0200 The problem is due to the file separator '\' that is the escape character of regexp. It should be escaped as mentionned here: http://stackoverflow.com/questions/10336293/splitting-filenames-using-system-file-separator-symbol

People

Dates

  • Created:
    Wed, 3 Sep 2014 - 21:30:09 +0200
    Updated:
    Tue, 16 Sep 2014 - 14:37:14 +0200
    Resolved:
    Tue, 16 Sep 2014 - 14:37:13 +0200