cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Open Editor: An exception was thrown ...

uandme
Champ in-the-making
Champ in-the-making
Hi All, can someone give me some guidance as to what is causing my problem with the examples.  I can create and deploy my own processes without and issue, but when I attempt to import the examples, I get the error in the screen shot below.  The actual error generated is:


Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/activiti-engine-examples/src/main/process/org/activiti/examples/adhoc/Expense_process.activiti' does not exist.
7 REPLIES 7

frederikherema1
Star Contributor
Star Contributor
Hi,

You should explicitly do an import by right-clicking on your Activiti Project in eclipse and selecting 'Import BPMN2.0 diagram'. This will create the missing .activiti file.

Cheers

uandme
Champ in-the-making
Champ in-the-making
Thanks very much.  That worked  Smiley Very Happy

trademak
Star Contributor
Star Contributor
Hi,

It's actually also supported to import a *.bpmn20.xml file in your project and just open this file to create a diagram from it.
Are you using version 0.8.0 of the Activiti Designer?
If so, could you attach your bpmn20.xml file?

Best regards,

mlisiewicz
Champ in-the-making
Champ in-the-making
I am facing similar problem. I have just imported into Eclipse(3.6.2) example projects provided in zip. When i try to open *.bpmn20.xml file I receive given error. I can see that activiti files were created but not in src/main/process but in src/main/resources/diagrams, therefore are not visible to editor. Moving activiti files to src/main/process helps, still it seems to be an issue.

mlisiewicz
Champ in-the-making
Champ in-the-making
One more update:
—————————–
On Eclipse 3.6.1 + AD0.8
moving *.activiti file to same directory with *.bpmn20.xml throws new exceptions:

Could not open the editor: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'implementationType' not found. (platform:/resource/activiti-spring-examples/src/main/process/org/activiti/spring/test/jpa/JPASpringTest.activiti, 458, 214)

—————————–
On Eclipse 3.6.2 + AD0.8
moving *.activiti file to same directory with *.bpmn20.xml works like a charm(I can view graph)
Small issue is 'Property view' which refreshes, or not currently selected object.

trademak
Star Contributor
Star Contributor
Hi,

I tried to reproduce this, but if I copy the adhoc expense process to the src/main/resources/diagrams folder and open it I get a nice diagram without any errors.
Make sure you open the bpmn20.xml file from the src/main/resources/diagrams folder.

Best regards,

prad
Champ in-the-making
Champ in-the-making
I had similar issues the very first time when I installed the v0.8 plugin to eclipse 3.6.0. I guess what you see in the designer is the file ending with .activiti. This file is located under
src\main\resources\diagrams. When you click open the corresponding .activity file, the diagram is rendered in the viewer. To produce the .bpmn20.xml file, you need to do an export action by right clicking on the diagram and exporting as bpmn20.xml. Then onwards the file is available to open in the viewer