cancel
Showing results for 
Search instead for 
Did you mean: 

Process Diagram Error

pseymour75
Champ in-the-making
Champ in-the-making
Hi All

I'm receiving the following error message when I select a running process, select the task and the process diagram is not displayed.

Instead I get  'Could not initialize class sun.awt.X11GraphicsEnvironment'

I am running a SuSE Linux server and accessing Activiti Explorer on a windows7 PC using IE9

Thanks in advance for any help.

Paul
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
You're server is running on a headless machine (or JDK is started headless), with our X11 available. Our diagram-generation needs AWT, which needs a valid graphical environment.

If you want to avoid these warning, you can disable the diagram-generation in the engine, prgramatically on the ProcessEngineConfiguration:

setCreateDiagramOnDeploy(boolean createDiagramOnDeploy) {
or in the config XML:

<bean id="processEngineConfiguration"
    class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">

    <property name="createDiagramOnDeploy" value="false" />
    …

The javascript-preview of the diagrams will work, though…