Generate Report Failed

1,249 views
Skip to first unread message

Diane Smith

unread,
Jan 14, 2022, 6:01:07 PM1/14/22
to OWASP ZAP User Group
Hi all,

I am new to zap. I searched the posts here and I did not find
the same exact issue that I am currently facing.

Note: I was not having this issue when I had zap 2.10 running.

I am using zap 2.11.1
Windows 10
java version 17.0.1

When I generate reports, I get a warning
Failed to generate report: Exception evaluating OGNL expression:

I am attaching picture below of the error.

Also, here is an except of my log file:

Any help is greatly appreciated.

zap2.log
error2.png

kingthorin+owaspzap

unread,
Jan 15, 2022, 8:21:51 AM1/15/22
to OWASP ZAP User Group
Where there any alerts when you tried to generate the report?
Was an Active Scan underway while you generated the report?

thc...@gmail.com

unread,
Jan 15, 2022, 11:01:33 AM1/15/22
to zaprox...@googlegroups.com
An issue with the Reports add-on when using Java 17, issue raised:
https://github.com/zaproxy/zaproxy/issues/7026

Best regards.

On 15/01/2022 13:21, kingthorin+owaspzap wrote:
> Where there any alerts when you tried to generate the report?
> Was an Active Scan underway while you generated the report?
>
> On Friday, January 14, 2022 at 6:01:07 PM UTC-5 sanr...@gmail.com wrote:
>
>> Hi all,
>>
>> I am new to zap. I searched the posts here and I did not find
>> the same exact issue that I am currently facing.
>>
>> *Note*: I was *not* having this issue when I had zap 2.10 running.

Diane Smith

unread,
Jan 17, 2022, 8:25:09 PM1/17/22
to OWASP ZAP User Group
Hi,

Thank you very much for letting me know that Java 17 has an issue
with zap. I will install a different version and try again.

Diane Smith

unread,
Jan 18, 2022, 1:36:02 PM1/18/22
to OWASP ZAP User Group
Hi all,

After the tip from above (thc202), I downloaded java 16 and
reinstalled zap 2.11.1

I got the same warning on Failing to generate report:
OGNL expression: alertTree.children.hasMoreElements..

Then, I erased java16 and downloaded java 8,
and reinstalled zap 2.11.1.
Same warning


Please advise.

Thanks,

thc...@gmail.com

unread,
Jan 18, 2022, 1:50:30 PM1/18/22
to zaprox...@googlegroups.com
Hi.

Could you provide the excerpt of the log again?

Best regards.

Diane Smith

unread,
Jan 18, 2022, 2:43:51 PM1/18/22
to OWASP ZAP User Group
I am attaching part of log file.

Thanks,
zap_log20210118.log

thc...@gmail.com

unread,
Jan 18, 2022, 3:32:48 PM1/18/22
to zaprox...@googlegroups.com
Are you sure it's using an older Java version? Based on the error
message it seems to still be using a newer one.

Could you check in Help > Support Info which Java version does it have?

Thank you.
Best regards.

Diane Smith

unread,
Jan 18, 2022, 3:46:50 PM1/18/22
to OWASP ZAP User Group
Hi,

You are right. It was still using java 16
Once I made sure it uses java 1.8, generate report worked.

Thanks for your help.
Reply all
Reply to author
Forward
0 new messages