13 Replies Latest reply on Jan 13, 2006 5:52 PM by 1krc2

    Exception in log when running XDoclet 1.4.0

    ericeberry

      I have been getting this exception when trying to Run XDoclet with JBoss-IDE 1.4.0 and Eclipse 3.0.1. Is this a config problem or is there something wrong with the JBoss-IDE 1.4.0 plugin?

      !ENTRY org.eclipse.core.runtime 4 2 Nov 08, 2004 09:07:29.742
      !MESSAGE An internal error occurred during: "XDoclet Generation".
      !STACK 0
      java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/bnc1.5
      at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:58)
      at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:106)
      at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:200)
      at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:80)
      at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:170)
      at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:95)
      at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
      at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1224)
      at org.jboss.ide.eclipse.xdoclet.run.ui.actions.XDocletRunAction$1.run(XDocletRunAction.java:191)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

        • 1. Re: Exception in log when running XDoclet 1.4.0
          gschmidt

          We have this problem too.

          When I remove version control from the project it starts working again.

          • 2. Re: Exception in log when running XDoclet 1.4.0
            ericeberry

            That was the problem. We are running the Rational ClearCase SCM Adapter 6.0.24. Becuase this plugin is "always on", we can't turn the plugin off. We have to disable the plugin to turn it off.

            I disabled the plugin and I was able to run xdoclet every time. As soon as I re-enabled the plugin. Run XDoclet stopped working.

            So does anyone from the JBoss IDE development read this forum? How do I submit a bug against the plugin?

            • 3. Re: Exception in log when running XDoclet 1.4.0
              tomschmidt

              We are having this same exception, but it occurs when running packaging on a Java project. Has anyone made any progress on this? I can disable source control or disable the JBoss-IDE plugin and everything works. Seems to be an interaction problem between the two plugins on Eclipse 3.0.1. Any suggestions on how to make them play nicely togther? I am running Eclipse 3.0.1, JBoss-IDE 1.4.0, and ClearCase 6.0.25. Does anyone know if the problem is with Eclipse, JBoss-IDE, or ClearCase? The stack trace on the client is:

              !ENTRY org.eclipse.core.runtime 4 2 Jan 07, 2005 11:14:09.154
              !MESSAGE An internal error occurred during: "Packaging Generation".
              !STACK 0
              java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/hec_9.1.75
              at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:58)
              at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:106)
              at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:200)
              at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:80)
              at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:170)
              at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:95)
              at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
              at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1224)
              at org.jboss.ide.eclipse.packaging.ui.actions.PackagingRunAction$1.run(PackagingRunAction.java:234)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

              • 4. Re: Exception in log when running XDoclet 1.4.0
                sengsational

                Same problem with the VSS plug-in; if the project is connected to VSS, the "run packaging" fails, if the project is disconnected from VSS, the "run packaging" works.

                An internal error occurred during: "Packaging Generation".
                java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/TestJsp
                org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:58)
                org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:106)
                org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:200)
                org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:80)
                org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:170)
                org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:95)
                org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
                org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1224)
                org.jboss.ide.eclipse.packaging.ui.actions.PackagingRunAction$1.run(PackagingRunAction.java:195)
                org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

                • 5. Re: Exception in log when running XDoclet 1.4.0
                  1krc2

                  This problem still occurs in Eclipse3.2M3 / JBoss IDE 1.5.0 RC1 / Rational Clearcase SCM Adaptor 6.0.48 immediately when trying to Run Packaging. Turning off the SCM adaptor alleviates the problem as others have reported. Has there been ANY updates on this problem?

                  !ENTRY org.eclipse.core.runtime 4 2 2006-01-04 17:55:57.828
                  !MESSAGE An internal error occurred during: "Packaging Generation".
                  !STACK 0
                  java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/product-build
                   at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:58)
                   at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:117)
                   at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:226)
                   at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:81)
                   at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:190)
                   at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:96)
                   at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1660)
                   at org.eclipse.core.internal.resources.File.setContents(File.java:361)
                   at org.eclipse.core.internal.resources.File.setContents(File.java:465)
                   at org.jboss.ide.eclipse.packaging.ui.PackagingUIPlugin.createBuildFile(PackagingUIPlugin.java:131)
                   at org.jboss.ide.eclipse.packaging.ui.actions.PackagingRunAction$1.run(PackagingRunAction.java:160)
                   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
                  


                  • 6. Re: Exception in log when running XDoclet 1.4.0

                    We have attempted issuing a temporary workaround in 1.5RC2 and above (try 1.5 final) that uses java.io instead of Eclipse's Resource API, but I've only heard of one other person with the Rational Adapter, so your results may vary. Please try the latest release (1.5 final).. details for the release can be found on both the user and development forums.

                    • 7. Re: Exception in log when running XDoclet 1.4.0
                      1krc2

                      Started fresh with Eclipse 3.2M4 / JBossIDE 1.5 Final / Rational Clearcase SCM Adaptor 6.0.48 and it looks as though I'm getting the same results. Disabling the SCM adaptor again allows the package generator to run without error.


                      !ENTRY org.eclipse.core.jobs 4 2 2006-01-05 16:19:04.531
                      !MESSAGE An internal error occurred during: "Packaging Generation".
                      !STACK 0
                      java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/product-build
                       at org.eclipse.core.runtime.Assert.isLegal(Assert.java:58)
                       at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:116)
                       at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:225)
                       at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:80)
                       at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:213)
                       at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:96)
                       at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1669)
                       at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1273)
                       at org.eclipse.core.internal.resources.File.refreshLocal(File.java:334)
                       at org.jboss.ide.eclipse.packaging.core.PackagingCorePlugin.createBuildFile(PackagingCorePlugin.java:209)
                       at org.jboss.ide.eclipse.packaging.ui.actions.PackagingRunAction$1.run(PackagingRunAction.java:161)
                       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
                      


                      • 8. Re: Exception in log when running XDoclet 1.4.0
                        1krc2

                        I should also point out that the only version of the JBossIDE that I've seen all the plugins work together without needing to disable the clearcase adaptor is JBossIDE 1.3.30. That version of the JBossIDE worked with 6.0.24, 6.0.43 & 6.0.48 of the clearcase plugin.

                        • 9. Re: Exception in log when running XDoclet 1.4.0

                          It looks like the rational plugin is affecting eclipse's resource API in more ways than was originally thought..

                          Not only has file creation through the Resource API caused this problem, but so is just a basic resource "refresh" operation..

                          The bug here is actually not JBossIDE related, but being triggered by the weird idiosynchrocies of Rational's version control integrated with Eclipse projects. Luckily enough it's "easy" to work around by just catching the IllegalArgumentException, but the problem is that for users with the SCM adapter, they will need to manually refresh their Eclipse projects (using F5) after they run packaging / xdoclet.

                          At any rate, I've attempted fixing the bug, and committed it to CVS. Would you mind testing the next nightly build for me?

                          http://download.jboss.org/jbosside/builds/nightly

                          • 10. Re: Exception in log when running XDoclet 1.4.0
                            1krc2

                            Still giving the same error. Used Eclipse3.2M4 / JBossIDE 1.5.0.N200601070925 / Rational Clearcase SCM Adaptor 6.0.48. Again, disabling the SCM adaptor enables package generation.


                            !ENTRY org.eclipse.core.jobs 4 2 2006-01-07 15:33:54.531
                            !MESSAGE An internal error occurred during: "Packaging Generation".
                            !STACK 0
                            java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/product-build
                             at org.eclipse.core.runtime.Assert.isLegal(Assert.java:58)
                             at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:116)
                             at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:225)
                             at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:80)
                             at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:213)
                             at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:96)
                             at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1669)
                             at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1273)
                             at org.eclipse.core.internal.resources.File.refreshLocal(File.java:334)
                             at org.jboss.ide.eclipse.packaging.core.PackagingCorePlugin.createBuildFile(PackagingCorePlugin.java:209)
                             at org.jboss.ide.eclipse.packaging.ui.actions.PackagingRunAction$1.run(PackagingRunAction.java:161)
                             at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
                            


                            • 11. Re: Exception in log when running XDoclet 1.4.0
                              1krc2

                              Still giving the same error. Used Eclipse3.2M4 / JBossIDE 1.5.0.N200601070925 / Rational Clearcase SCM Adaptor 6.0.48. Again, disabling the SCM adaptor enables package generation.


                              !ENTRY org.eclipse.core.jobs 4 2 2006-01-07 15:33:54.531
                              !MESSAGE An internal error occurred during: "Packaging Generation".
                              !STACK 0
                              java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/product-build
                               at org.eclipse.core.runtime.Assert.isLegal(Assert.java:58)
                               at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:116)
                               at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:225)
                               at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:80)
                               at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:213)
                               at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:96)
                               at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1669)
                               at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1273)
                               at org.eclipse.core.internal.resources.File.refreshLocal(File.java:334)
                               at org.jboss.ide.eclipse.packaging.core.PackagingCorePlugin.createBuildFile(PackagingCorePlugin.java:209)
                               at org.jboss.ide.eclipse.packaging.ui.actions.PackagingRunAction$1.run(PackagingRunAction.java:161)
                               at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
                              


                              • 12. Re: Exception in log when running XDoclet 1.4.0

                                Hey... it took me a little extra time to get the code into CVS than i thought it would... it should be in the next nightly build.

                                If you want you can try getting the latest source from CVS and playing with it, but no guarantees that will be very easy =).

                                • 13. Re: Exception in log when running XDoclet 1.4.0
                                  1krc2

                                  JBossIDE build 1.5.0.N200601130806 works now. I'm able to generate with the SCM adaptor on.

                                  Fiddling with the packaging-build.xml (hijacking in clearcase then attempting to remove the file in eclipse causes an inconsistent file system state, which is normal) produces this error however:

                                  !ENTRY org.eclipse.core.jobs 4 2 2006-01-13 10:14:18.812
                                  !MESSAGE An internal error occurred during: "Packaging Generation".
                                  !STACK 0
                                  java.lang.NullPointerException
                                   at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchShortcut.reportError(AntLaunchShortcut.java:533)
                                   at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchShortcut.findExistingLaunchConfigurations(AntLaunchShortcut.java:458)
                                   at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchShortcut.findExistingLaunchConfigurations(AntLaunchShortcut.java:440)
                                   at org.jboss.ide.eclipse.packaging.ui.actions.PackagingRunAction$1.run(PackagingRunAction.java:170)
                                   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
                                  


                                  Minor since it's related to an inconsistent state between the file system and what Eclipse knows, but I thought I'd point it out.