Showing posts with label jBPM. Show all posts
Showing posts with label jBPM. Show all posts

2007-05-30

Another "internal error occured during: Initializing Java tooling"

In 2007-05-02 I've already post a blog entry called "An internal error occured during: Initializing Java tooling", now this notorious error comes again!

Today I wanted to help someone to install the jBPM Graphical Design plug-in for Eclipse. I used the same version Eclipse and the plug-in as those on my own computer. Everything is fine until I tried to import a project from a CVS server. Then comes the error "An internal error occured during: Initializing Java tooling". It really makes me frustrated after I tried again and again and made 100% sure that all the software version are the same.

So where is the problem?

The bad guy is the setting in Eclipse! After going to "Window"->"Preferences...", you can see the following dialog:


Click the option "JBoss jBPM", you will see your installation directory of jBPM library and the name of installation. If you give a new name, exactly saying, a different name from the original name which you gave in your previous Eclipse. BOOM, you got the error!

The reason: Eclipse saves every project settings in a file called .classpath. It's a xml file. You can find a line like this:
<classpathentry kind="con" path="JBPM/JBoss jBPM 3.1.2"></classpathentry>

See? The name which is used here is the convenient name! So if you change this name, Eclipse doesn't know where to find the library again.

Solution:
1. Keep using the same convenient name in the preferences settings.
2. Change the entry in the .classpath file to the name you used.

2007-05-02

An internal error occured during: Initializing Java tooling

Since I updated my jBPM plugin for eclipse, I get the error "An internal error occured during: Initializing Java tooling" everytime when I start eclipse. Sometimes it becomes even worse, I cannot commit changes to CVS server or do something else in eclipse.

The reason is that the new version has changed the file structures and didn't provide the coresponding convension tools. So here is endly the solution:

  1. Backup the whole workspace before upgrading;
  2. You can enable or disable a new version jBPM plugin under "help"->"software updates"->"manage configurations";
  3. After the new version is running, create a blank process project, then create a blank process definition;
  4. Close eclipse, find the folder where the new created process files are;
  5. Open gpd.xml and processdefiniton.xml of the new process and your old process in an editor;
  6. Just compare the difference between those files. Mostly the new version of jBPM changes the structure of gpd.xml;
  7. So change the xml structure manually and save them;
  8. Maybe the file .classpath should alse be compared and changed.
  9. Open it in eclipse. If you are lucky, you will never see the error message again.
Hope it helps.

2007-04-25

jBPM Process Designer Upgrade Problem

Today I've made so much struggle with the jBPM Eclipse plugin. It was really frustrated to know that the new version jbpm-jpdl-designer-3.1.0.alpha3 has changed the xml structure of the gdp.xml, which is used to describe the relationship between process image and process description.

After thousands of tries I've find this alpha version cannot convert the process files from old versions correctly. The result is, you will lost all transition lines on the process image. So just be careful to do the update!

The issue is here: http://jira.jboss.com/jira/browse/GPD-64