diagramly plugin - rendering error

Hi,

we upgraded our confluence from 5.4.3 to 5.8.4. If I insert the diagram makro, I get the error: "Error rendering macro 'diagramly' : Could not initialize class com.mxgraph.confluence.plugins.macro.DiagramlyMacroUtil" - we use the old version Diagramly Confluence Plugin 2.10.2 - just now I find out while my upgrade process, that this plugin is now called draw.io and cost some money - so I'm not able to update this plugin. Do you have any idea, whats the problem?

Some other errors from the log file:
logs/atlassian-confluence.log: -- referer: http://t1online2v:8090/plugins/servlet/upm | url: /rest/plugins/1.0/com.mxgraph.confluence.plugins.diagramly-key | userName: ykoch

logs/atlassian-confluence.log:2015-07-08 10:45:44,230 ERROR [http-nio-8090-exec-5] [xhtml.view.macro.ViewMacroMarshaller] marshalInternal Error rendering macro: diagramly

2 answers

This widget could not be displayed.

OK I solved the problem by deleting the folders bundled-plugins, plugins-cache, plugins-osgi-cache and plugins-temp in my confluence-home ... like on page: https://confluence.atlassian.com/display/CONFKB/How+to+clear+Confluence+plugins+cache

This widget could not be displayed.

I upgraded our Confluence server from 5.4.3 to 5.8.15 on Nov 8, 2015, and our 2.7.5 Diagramly plugin was still working great.  Since that point, our Confluence service was restarted twice - once on 11/11/15 and then on 12/9/15 as a result of OS patches requiring a server restart.  And I'm not aware of any other changes to our Confluence instance over that period.  The Nov 11th restart resulted in no problems I'm aware of, but after the Dec 9th, our diagramly plugin appeared to stop working.

This discussion thread was the only one I could find that seemed related.  I tried the fix that apparently worked for Yvonne (thanks so much for replying back to your own question with that information), but unfortunately it didn't fix it for me.

I tried upgrading from 2.7.5 to 2.10.2, since 2.10.2 seemed to be working for Yvonne against Confluence 5.8x.  But I still get the same error.

I may be seeing different errors than Yvonne, but I figured I would include excerpts here in case Yvonne or anyone else has any further ideas:

2015-12-09 11:36:51,396 ERROR [http-nio-8090-exec-10] [mxgraph.confluence.plugins.FileServlet] doGet There was an error loading graph.
 -- referer: https://wiki.nevo.com/pages/viewpage.action?spaceKey=IRCDACP&title=Requirements | url: /plugins/servlet/diagramly-fileServlet | userName: kledeen
java.lang.ExceptionInInitializerError
	at com.mxgraph.confluence.plugins.FileServlet.doGet(FileServlet.java:155)
...
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: Provider org.apache.xpath.jaxp.XPathFactoryImpl not found
	at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:102)
	at com.mxgraph.confluence.plugins.macro.DiagramlyMacroUtil.<clinit>(DiagramlyMacroUtil.java:75)
	... 219 more
2015-12-09 11:36:51,479 ERROR [http-nio-8090-exec-6] [mxgraph.confluence.plugins.FileServlet] doGet There was an error loading graph.
 -- referer: https://wiki.nevo.com/pages/viewpage.action?spaceKey=IRCDACP&title=Requirements | url: /plugins/servlet/diagramly-fileServlet | userName: kledeen
java.lang.NoClassDefFoundError: Could not initialize class com.mxgraph.confluence.plugins.macro.DiagramlyMacroUtil
	at com.mxgraph.confluence.plugins.FileServlet.doGet(FileServlet.java:155)

The only other post I could find that seemed related was https://java.net/jira/browse/GLASSFISH-21425 which indicates a potential issue between JDK 7 and JDK 8.

I'm trying to decide if the few thousand dollars licensing cost is worth it to jump to the latest version of diagramly/draw.io, which I assume would work (or at least I would have support to try to figure out why not...).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

475 views 6 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you