javamelody / jira-confluence-javamelody

JavaMelody plugin for JIRA, Confluence or Bamboo
Apache License 2.0
14 stars 6 forks source link

Confluence plugin Error opening URI [hazelcast] #33

Closed dfresh4130 closed 10 months ago

dfresh4130 commented 10 months ago

We just upgraded to Confluence 8.6.2 from 7.20.3 (data center edition). The javamelody plugin was updated to the latest version available of 1.95.0. When trying to access the /monitoring URI on confluence like normal we get a 500 error. The Confluence logs show the below error. This appears to be similar to this issue for bitbucket.

2024-01-08 09:32:51,795 ERROR [http-nio-8080-exec-12 url: /500page.jsp; user: XXXXXX] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception b6ab5f18-a4d8-42f8-940d-b35304efe35e: Error opening URI [hazelcast]
 -- traceId: 7f65c2a08ae73f08
javax.cache.CacheException: Error opening URI [hazelcast]

Caused by: java.lang.IllegalArgumentException: Not supported: http://javax.xml.XMLConstants/property/accessExternalDTD
evernat commented 10 months ago

I will transfer this issue in the jira-confluence-javamelody repository

evernat commented 10 months ago

This issue is caused by the presence of hazelcast 3.12.13 and of xalan 2.7.3 in Confluence 8.6.2 and by the fix for the hazelcast issue https://github.com/hazelcast/hazelcast/issues/20928. I have added a catch to log a warning instead of throwing an exception.

If you don't want a warning each time the monitoring page is displayed, you can set a system property -Dhazelcast.ignoreXxeProtectionFailures=true or you can complain to Hazelcast or Atlassian about Xalan 2.7.3.