diff --git a/lib/fluent/plugin/exception_detector.rb b/lib/fluent/plugin/exception_detector.rb index d7c78b4..b93e62d 100644 --- a/lib/fluent/plugin/exception_detector.rb +++ b/lib/fluent/plugin/exception_detector.rb @@ -59,6 +59,8 @@ def self.supported :java_start_exception), rule(:java_after_exception, /^[\r\n]*$/, :java_after_exception), rule([:java_after_exception, :java], /^[\t ]+(?:eval )?at /, :java), + rule([:java_after_exception, :java], /^[\t ]+(?:eval )?|_ checkpoint /, + :java), rule([:java_after_exception, :java], # C# nested exception. @@ -73,6 +75,10 @@ def self.supported rule([:java_after_exception, :java], /^[\t ]*(?:Caused by|Suppressed):/, :java_after_exception), + rule([:java_after_exception, :java], + /^(?:Error has been observed at the following site\(s\)):/, + :java), + rule([:java_after_exception, :java], /^(?:Stack trace):/, :java), rule([:java_after_exception, :java], /^[\t ]*... \d+ (?:more|common frames omitted)/, :java) ].freeze diff --git a/test/plugin/test_exception_detector.rb b/test/plugin/test_exception_detector.rb index f001d0e..fa3d0c9 100644 --- a/test/plugin/test_exception_detector.rb +++ b/test/plugin/test_exception_detector.rb @@ -90,6 +90,28 @@ class ExceptionDetectorTest < Test::Unit::TestCase Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <[REDACTED_EMAIL_ADDRESS]>... Relaying denied END + REACTOR_JAVA_EXC = <