1 2 3 4 Previous Next 55 Replies Latest reply on Nov 14, 2007 2:08 AM by sujithbabu Go to original post
      • 45. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
        koen.aers

        Hi guys,

        I mainly closed the issue because I was cleaning up and transferring all open issues regarding the designer to the GPD JIRA project. Additionally I thought this problem was resolved.

        If this is still a problem, please open a new issue in the GPD project.
        Make sure you describe very accurately:
        - What platform you are running on
        - What versions of the GPD and Eclipse that you are using. Make sure to use at least 3.0.12.
        - How you installed the GPD (Do you have other plugins running other than the GPD)
        - What is the process you try to edit? (Attach the processdefinition.xml and gpd.xml file)
        - What are the symptoms you see? (Attach the relevant part of your Eclipse log)

        Regards,
        Koen

        • 46. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
          alllle

          I think the freeze problem is still there. I am using the GPD 3.0.13 and the eclipse IDE freezes (with 100% CPU usage) every time I save the process definition xml file.

          I did a couple console thread dump after the saving and it seems that the problem is related to that the classes in the jbpm deployment package somehow get into infinite loops.

          Here are a couple of execution points that are related to the jbpm classes from the dumps :

           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecksForChildren(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecksForChildren(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecks(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.setCheckedElements(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.refreshIncludeClassesTreeViewer(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.access$12(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm$12.run(Unknown Source)
          
          



           at org.jbpm.ui.editor.form.deployment.IncludeClassesTreeContentProvider.getChildren(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeClassesTreeContentProvider.hasChildren(Unknown Source)
          



           at org.jbpm.ui.editor.form.deployment.DeploymentForm.refreshIncludeClassesTreeViewer(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.access$12(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm$12.run(Unknown Source)
          



           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecksForParents(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecks(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.setChecked(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecksForParents(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecks(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.setCheckedElements(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.refreshIncludeClassesTreeViewer(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.access$12(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm$12.run(Unknown Source)
          



           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecksForParents(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecks(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.setChecked(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecksForParents(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecks(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.setCheckedElements(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.refreshIncludeClassesTreeViewer(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.access$12(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm$12.run(Unknown Source)
          



           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecksForParents(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecks(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.setChecked(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecksForParents(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.updateChecks(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.IncludeInDeploymentTreeViewer.setCheckedElements(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.refreshIncludeClassesTreeViewer(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm.access$12(Unknown Source)
           at org.jbpm.ui.editor.form.deployment.DeploymentForm$12.run(Unknown Source)
          



          Note that I merely saved the changed process definition file. I didn't do any deployment.

          • 47. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
            cfrasci

            Happy to here that alllle

            I updated from 3.0.9 to 3.0.13 and have still the same problem. IDE freezes with 100% usage, except that with 3.0.9 the system was only freezed for about 20 to 30 seconds. Now it hangs for 2 to 3 minutes!

            Greez

            • 48. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
              koen.aers

              Guys,

              Did you use a *fresh* eclipse installation with the 3.0.13 plugin installed?
              Don't try to 'upgrade' as there is probably trash in your installation/workspace that produces the problem.

              Regards,
              Koen

              • 49. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
                alllle

                 

                "koen.aers@jboss.com" wrote:
                Guys,

                Did you use a *fresh* eclipse installation with the 3.0.13 plugin installed?
                Don't try to 'upgrade' as there is probably trash in your installation/workspace that produces the problem.

                Regards,
                Koen


                Mine is not an upgrade of GPD. I manually removed all GPD related packages from the plugin dir before expanding the new version. However, I do uses many other plugins. I will try an *clean* install after rushing my deadline and will post the result here.

                Meanwhile, however, I do think this requirement is not very valid. It assumes that we should not use other plugins but GPD. While in reality, as enterprise developers, we will be using many plugins together to get the job done.

                Frankly, if GPD and another plugin conflicts and results in the problem, it may or may not caused by GPD. The reason I, and other people, post it here is because the behavior is associated with saving a GPD design file, and my thread dump shows that the main thread is using 100% CPU while executing GPD classes during the freeze.

                I hope my thread dump can shed light on the cause of the problem, and will try to help as much as possible. It's a great product and I wish it becomes better and better.

                • 50. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
                  cfrasci

                  I just have to totally agree with alllle. We are also using GPD to develop productive applications based on jBPM. It cannot be that developers have to install a clean eclipse IDE with only the GPD plugin installed and for other purposes have another eclipse installation with all the other plugins they use...

                  • 51. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
                    kukeltje

                    Guys,

                    Koen is not saying this is the normal way. Just that there have been some issues which *could* require a new install. It certainly should be possible to do an upgrade. So no worries on that part.

                    • 52. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
                      cfrasci

                      ok, guys

                      this problem is really getting annoying me! I did a *clean* installation:
                      - Eclipse 3.2.2, running on JRE 1.5.0_11
                      - gpd 3.0.13
                      There no other plugins installed on my clean installation. I installed this gpd plugin as told in the readme.html file. Result: is still freezes!

                      Here is my processdefinition.xml which I try to save:

                      <?xml version="1.0" encoding="UTF-8"?>
                      <process-definition xmlns="http://jbpm.org/3/jpdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd" name="Default">
                       <start-state name="start">
                       <transition name="success" to="SendErrorMail"/>
                       </start-state>
                       <end-state name="end1"/>
                       <node name="SendErrorMail">
                       <action class="actor.server.jbpm.actions.util.SendMail" config-type="bean">
                       <from>sender@domain.com</from>
                       <recipientSystemProperty>actor.sendMail.recipient</recipientSystemProperty>
                       <subject>Error: Default workflow started</subject>
                       <text>A Default workflow was started. This is an error condition. Please check the logs.</text>
                       </action>
                       <transition name="success" to="end1"/>
                       </node>
                      </process-definition>


                      I tried every gpd version from 3.0.9 to 3.0.13 with the same freezing result. Something's just still wrong here and I don't understand why JIRA issue GPD-49 has been closed...

                      Best regards


                      • 53. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
                        ptuzla

                        (This post is a reply to a previous topic. I am opening a new topic because the old one doesn't allow me to post a reply)

                        Although a bit too late, this might come handy for those who are stuck on 3.0.X versions of the GPD. Here is the solution:

                        You'll have to modify a source file of the plugin, recompile and put in the ui.jar for this, unless of course JBoss guys won't be reluctant to solve this bug for previous versions.

                        The freezing occurs when an event happens triggering the refreshing of the included classes that are shown on a tree view on the deployment page (tab).
                        If you're not using the deployment tab you can simply comment out the relevant lines in the org.jbpm.ui.editor.DeploymentForm
                        so that the refreshhing never occurs.

                        Line number circa 350:

                        private Composite createIncludeClassesSection() {
                         Section includeClassesDetails = toolkit.createSection(form.getBody(), Section.TITLE_BAR | Section.DESCRIPTION);
                        
                         ...
                        
                         tree.getDisplay().asyncExec(new Runnable() {
                         public void run() {
                         /* Comment out below lines */
                         //includeClassesTreeViewer.setCheckedElements(getElementsToCheckFor(project).toArray());
                         //includeClassesTreeViewer.updateChecks();
                        
                         }
                         });
                        
                         return includeClassesFormClient;
                        }
                        
                        Line number circa 500:
                        public void refresh(final ArrayList objectsToRefresh) {
                         form.getDisplay().asyncExec(new Runnable() {
                         public void run() {
                         /* Comment out below lines */
                         //refreshIncludeClassesTreeViewer(objectsToRefresh);
                         //refreshIncludeFilesTreeViewer(objectsToRefresh);
                         }
                         });
                        }

                        If however you are using that tab, you can leave the createIncludeClassesSection method as it is, and comment out the lines in the refresh method only.
                        i.e:
                        Line number circa 500:
                        public void refresh(final ArrayList objectsToRefresh) {
                         form.getDisplay().asyncExec(new Runnable() {
                         public void run() {
                         /* Comment out below lines */
                         //refreshIncludeClassesTreeViewer(objectsToRefresh);
                         //refreshIncludeFilesTreeViewer(objectsToRefresh);
                         }
                         });
                        }

                        In this case, refreshing doesn't occur when you change and save the diagram or add new jars to the project classpath etc.
                        But it works as normal (and freezes as well) when you first open the project. So you have to close and reopen the project everytime you add new jars to the classpath in order to use the deployment tab properly.

                        Regards,

                        Polat Tuzla





                        • 54. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
                          cfrasci

                          hi ptuzla

                          this resolution of the problem would help me very much if I could donwload the sources of the GPD 3.0.9 from somewhere. Can you post me a link from where I can download the sources? Thanks in advance.

                          regards
                          cfrasci

                          • 55. Re: GPD 3.0.9 Freezes Upon Opening Sample Process
                            sujithbabu

                            I faced a similar issue last week. I used Eclipse 3.1.2 (fresh installation) with GPD jbpm-gpd-site-3.0.9.2 to solve this.

                            Yo can download these at this location
                            http://sourceforge.net/project/showfiles.php?group_id=70542&package_id=116692

                            This is what the doumentation says
                            ********************************************
                            Eclipse Update Site (jbpm-gpd-site-.zip): If you want to be absolutely sure that the designer installation goes smoothly, we recommend to use the update site mechanism together with a new Eclipse installation. Of cource the Eclipse version should match the downloaded update site archive. To get started with the designer plugin, follow the instructions in the 'readme.html' file included in the archives root folder to succesfully install the GPD.

                            Eclipse Feature (jbpm-gpd-feature-.zip): If you are tired of each time having to do a fresh Eclipse installation and you are willing to cope with some possible issues, you can try the feature download. In this case installation is as easy as extracting the archive into your Eclipse installation (make sure the included 'plugins' and 'features' folders end up in the same location of your Eclipse installation) overwriting the files and folders with the same name that are possibly already present. This installation is very easy, but you could run into incompatibility issues when you overwrite plugins already present in your installation because of other features that you did install. Though they have the same name it could happen that the versions of these colliding plugins are not equal, hence the possible incompatibilities. The installation instructions are repeated in the 'readme.html' file.
                            ********************************************

                            Key is fresh installtion of Eclipse 3.1.X (3.1.2 worked for me) with jbpm-gpd-site-3.0.9.2. Hope this helps

                            1 2 3 4 Previous Next