Reproducer for the bug JMC-5767

Marcus Hirt marcus.hirt at oracle.com
Sun Jun 24 21:54:57 UTC 2018


Thank you Miro! I’ve closed JMC-5767 and opened https://bugs.openjdk.java.net/browse/JMC-6052.

/M

> On 24 Jun 2018, at 23:42, Miro Wengner <miro.wengner at gmail.com> wrote:
> 
> Hi All,
> 
> I’ve reproduced the bug JMC-5767 against the current jmc branch.
> steps I’ve done:
> 1. created the ExceptionThrowing Rule and I’ve printed out the report by using “JfrRulesReport" for both XML and JSON
> 2. run JMC with the ExceptionThrowing rule
> 
> improvement proposal: XML report generates also ruleID but JSON form doesn’t  contain such information . It would be helpful to add it also into the JSON report to have a  complete report.
> 
> Reproducer for the bug JMC-5767 can be found on my github account:  https://github.com/mirage22/jmc-rules <https://github.com/mirage22/jmc-rules>
> 
> I think that the ticket can be closed.
> 
> Kind Regards,
> Miro
> 
> brief report results:
> 
> XML: <rule>
> <id>jmc5767.ExceptionThrowingRule</id>
> <name>ExceptionThrowingRule</name>
> <error>java.util.concurrent.ExecutionException: java.lang.RuntimeException: Throwing Exception from the ExceptionThrowingRule
>    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>    at org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport.addReport(JfrRulesReport.java:274)
>    at org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport.printReport(JfrRulesReport.java:225)
>    at org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport.main(JfrRulesReport.java:172)
> Caused by: java.lang.RuntimeException: Throwing Exception from the ExceptionThrowingRule
>    at org.openjdk.jmc.flightrecorder.rules.jmc5767.ExceptionThrowingRule$1.call(ExceptionThrowingRule.java:59)
>    at org.openjdk.jmc.flightrecorder.rules.jmc5767.ExceptionThrowingRule$1.call(ExceptionThrowingRule.java:1)
>    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>    at org.openjdk.jmc.flightrecorder.rules.util.RulesToolkit$RuleEvaluator.run(RulesToolkit.java:1187)
>    at java.lang.Thread.run(Thread.java:748)
> </error>
> </rule>
> 
> JSON:
> {
>               "name": "ExceptionThrowingRule",
>               "error": "java.util.concurrent.ExecutionException: java.lang.RuntimeException: Throwing Exception from the ExceptionThrowingRule\n\tat java.util.concurrent.FutureTask.report(FutureTask.java:122)\n\tat java.util.concurrent.FutureTask.get(FutureTask.java:192)\n\tat org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport.addReport(JfrRulesReport.java:274)\n\tat org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport.printReport(JfrRulesReport.java:225)\n\tat org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport.main(JfrRulesReport.java:172)\nCaused by: java.lang.RuntimeException: Throwing Exception from the ExceptionThrowingRule\n\tat org.openjdk.jmc.flightrecorder.rules.jmc5767.ExceptionThrowingRule$1.call(ExceptionThrowingRule.java:59)\n\tat org.openjdk.jmc.flightrecorder.rules.jmc5767.ExceptionThrowingRule$1.call(ExceptionThrowingRule.java:1)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat org.openjdk.jmc.flightrecorder.rules.util.RulesToolkit$RuleEvaluator.run(RulesToolkit.java:1187)\n\tat java.lang.Thread.run(Thread.java:748)\n"
>              }


More information about the jmc-dev mailing list