percussion / percussioncms

Percussion CMS - Content Management System
https://percussioncmshelp.intsof.com/percussioncms
Apache License 2.0
11 stars 9 forks source link

Blog list fails to render with Invocation of method 'newInstance' error #1261

Closed ramdev1980 closed 4 months ago

ramdev1980 commented 4 months ago

Describe the bug

Blog list fails to render with Invocation of method 'newInstance' error image

To Reproduce

Steps to reproduce the behavior:

  1. Create a blog list page, with blog list widget
  2. add blogs to it.
  3. Try to open , blog list page, you can see the error

Expected behavior

Blog list should work fine.

Additional context

lines which contains newInstance in percBlogIndexPage.xml, if commented it works. It is related to java version.

natechadwick commented 4 months ago

This looks like a java security policy change in more recent JRE versions. We should replace the reflection in that velocity code with a Java extension method in the PSPageUtils class.