For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 9 replies, 3 voices, and was last updated 12 years, 10 months ago by
support-tony.
-
AuthorPosts
-
ottawajamesMember1) Can’t update for now.
2) Can’t share code as work in a secure environment.
3) Help?
4) This was not occurring a week ago – I have not changed any configurations as far as I can tell…Getting the following error whne attempting a build an EAR with a war and jar componenet:
Problems occurred when invoking code from plug-in: “org.eclipse.core.resources”.
Stack Trace:
java.lang.UnsupportedOperationException
at com.genuitec.eclipse.j2eedt.core.internal.project.WTPEarProject.hasValidState(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.earProjectBuildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.buildAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)October 10, 2013 at 2:22 pm #343249
ottawajamesMemberThis time in the war build as part of the EAR:
Errors running builder ‘DeploymentBuilder’ on project
java.lang.NullPointerException
at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.getOutputFolder(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.Ä‚(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.Ä‚(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.classChanged(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebClassesDeltaVisitor.visit(Unknown Source)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:69)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:56)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.webProjectBuildDelta(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.webProjectBuildDelta(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.buildDelta(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)October 11, 2013 at 2:35 am #343265
support-pradeepMemberottawajames,
Sorry that you are running in to this issue.
Can you answer some more questions for us to investigate further ?
1) Is the project developed in MyEclipse or imported from elsewhere ? If it is imported from any other IDE, did you enhance it to work with MyEclipse ?
2) Can you please switch to a new workspace, import your existing project into new workspace and check if you see the issue.
3) Can you send us the .project file and all the files in the .settings folder of this project – you can mail them to support@genuitec.com ATTN Pradeep with a link to this thread.
I suggest you download the MyEclipse 10.7.1 installer and install it to a different location alongside your existing MyEclipse 10.0 installation and check if you can replicate the issue in MyEclipse 10.7.1. Here is the download link for MyEclipse 10.7.1
October 11, 2013 at 8:17 am #343282
ottawajamesMember@support-pradeep wrote:
1) Is the project developed in MyEclipse or imported from elsewhere ? If it is imported from any other IDE, did you enhance it to work with MyEclipse ?
This was built from scratch in MyEclipse
@support-pradeep wrote:
2) Can you please switch to a new workspace, import your existing project into new workspace and check if you see the issue.
Just tried that; the instance the projects were loaded, the UnsupportedOperationException I quote above occurred.
@support-pradeep wrote:
3) Can you send us the .project file and all the files in the .settings folder of this project – you can mail them to support@genuitec.com ATTN Pradeep with a link to this thread.
I will send properties files, however, I work in a secure environment; I am not able to share any files that may have any identifying pieces of data in them. I see the com.bea.workshop.project files have a project GUID in them -would you need them?
@support-pradeep wrote:I suggest you download the MyEclipse 10.7.1 installer and install it to a different location alongside your existing MyEclipse 10.0 installation and check if you can replicate the issue in MyEclipse 10.7.1. Here is the download link for MyEclipse 10.7.1
I will try this as well.
October 14, 2013 at 12:46 am #343319
support-tonyKeymasterJames,
Please send all of the files you can in the .settings folder and all of the .* files in the project root folder, and we’ll see if we can figure it out from there.
Could you also please send the information from MyEclipse->Installation Summary->Installation Details?
Sorry for the inconvenience.
October 14, 2013 at 2:43 am #343322
support-tonyKeymasterJames,
I see that you have already send that information that was requested.
The org.eclipse.wst.common.component settings file looks odd, though I can’t see how that would cause the problems you see. I’m guessing that you’ve tried using the deployment assembly and then decided not to (since you have a particular setting in the com.genuitec.eclipse.j2eedt.core.prefs file that would not be there otherwise). As you aren’t using the deployment assembly, could you try deleting all dependent-module elements in the org.eclipse.wst.common.component file and seeing if that has any effect?
They can be added into the file again by selecting the “Use deployment assembly …” checkbox in the project’s MyEclipse/Deployment Assembly preferences and then adding the dependent projects, using the Add button.
Trying MyEclipse 10.7.1 or, better still MyEclipse 2013 SR2 (which always uses the deployment assembly) would be interesting, as there have been changes in the deployment area. If you still experience the problem with either of these, could you supply the .mymetadata files from the project’s root directory to help us track this down and also try to think of what changed from not seeing this issue, any small detail might be useful.
Sorry for the inconvenience.
October 16, 2013 at 12:48 pm #343416
ottawajamesMemberI deleted those files, tried again, still getting the same error.
Installed MyEclipse 10.71 and imported the projects. Still getting exactly the same error.
I can actually deploy even though I get these errors, but I am also having another issue; I wanted to troubleshoot this first before we got to it. It may be Eclipse related.
October 16, 2013 at 10:56 pm #343441
support-tonyKeymasterJames,
Can you supply the .mymetadata files, as I mentioned in my last post?
Just to confirm, are you now seeing the first exception (UnsupportedOperationException) or the second exception (NullPointerException)? And does it occur during deployment, a clean and build, an export or some other process? If you can still deploy and run the application, that suggests that perhaps the auto-build mechanism is building successfully and this failure occurs on a build that doesn’t need to do anything.
Some other things you could try are:
- If the projects aren’t too complex, create a new enterprise and web project (it can be in the same workspace with different project names) and recreate the structure by copying the source files from the existing projects. Does that fix the problem?
- There have been changes, between the 10.7.1 and 2013 SR2 releases, to the DeploymentBuilder class mentioned in the most recent stack trace. Is it possible for you to try the latest release to see if that solves the problem?
Obviously, if one of the above solves the issue and you’re happy with that, there is no need to send the .mymetadata files.
Please let us know how you get on.
October 17, 2013 at 2:13 pm #343472
ottawajamesMemberI actually don’t see any .mymedtadata files.
The error I persist in seeing is triggered after a clean all projects. It is set up to build automatically. It is the UnsupportedOperationException
The projects are not too complex, but I’m a bit rusty as I’m just coming back to development after a few years of other stuff… which of course can impact the issues I’m having now…! If time permits, I will try.
October 17, 2013 at 4:26 pm #343477
support-tonyKeymasterJames,
Although some projects don’t need .mymetadata (in the same folder as the .project file) files, it’s interesting that you don’t have any in any of your projects. That might be related to the problem, in some way.
When you can try those two suggestions I mentioned in my last post, that would be helpful. I’ll wait on that feedback.
-
AuthorPosts
