NullPointerException in SetupUIPlugin.performStartup() - nullpointerexception

I developed a plug-in project using elipse and it was working fine as expected. I then exported this project as an archive file and imported it to a new workspace. On executing the project is the new workspace I get the below null-pointer exception. There have been few posts on such kind of errors in eclipse forums, but I could not find anything concrete. Please let me know if you have faced such an issue before.
!ENTRY org.eclipse.oomph.setup.ui 2 0 2017-04-10 22:11:10.525
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:443)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$5(SetupUIPlugin.java:414)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:253)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Two potential fixes reported here: java.lang.NullPointerException when launching Eclipse would be to:
clean your .metadata folder and re-import the projects.
or
Right click on project > Select Run As > Run Configurations Click on Select Other link next to Using VisualVM Launcher Select Eclipse EDT launcher Click ok

Related

"sbt launcher does not exist" when attempting to open sbt project in Intellij

Here is an attempt to open an sbt project in Intellij 2016.3 ultimate:
We are greeted with the following friendly notification:
Afa sbt details: I have installed sbt via homebrew and
That path truly does not exist. So I went to Preferences | Build Execution Deployment | SBT to fix the path:
$ll /usr/local/Cellar/sbt/0.13.13/libexec/sbt-launch.jar
-rwxr-xr-x 1 boescst USWIN\Domain Users 1210231 Oct 28 10:46 /usr/local/Cellar/sbt/0.13.13/libexec/sbt-launch.jar
Let' update the path:
However the same error message still occurs. Is there some other place in Intellij that needs to be updated?
The following happened when trying to import an sbt project:
The following dialog has a Show Logs link but clicking on it does nothing ..
Another update I opened the idea.log manually. It shows basically same information:
2017-01-04 18:07:21,280 [ 34384] WARN -
nal.AbstractExternalSystemTask - SBT launcher does not exist:
/usr/local/Cellar/sbt/0.13.9/libexec/sbt-launch.jar
com.intellij.openapi.externalSystem.model.ExternalSystemException: SBT
launcher does not exist:
/usr/local/Cellar/sbt/0.13.9/libexec/sbt-launch.jar at
org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtProjectResolver.scala:61)
at
org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtProjectResolver.scala:28)
at
com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.a(RemoteExternalSystemProjectResolverImpl.java:37)
at
com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
at
com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
at
com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49)
at
com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:51)
at
com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:139)
at
com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:125)
at
com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:414)
at
com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4.run(ExternalSystemUtil.java:486)
at
com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:710)
at
com.intellij.openapi.progress.impl.CoreProgressManager$11.run(CoreProgressManager.java:423)
at
com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
at
com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
at
com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at
com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
at
com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:569)
at
com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.io.FileNotFoundException: SBT launcher does not exist:
/usr/local/Cellar/sbt/0.13.9/libexec/sbt-launch.ja
I have repeatedly tried changing the sbt launch settings. The error still occurs. Intellij is caching that information somewhere. I've even deleted the .idea and .iml files. Same result. Now I have reinstalled Intellij . Still same issue! What the heck !!!???
For Launcher, in preference window, pick "Bundled" option instead of custom.

Eclipse Null Pointer when adding HTML under skin folder

I have a simple hybrid App for Android phones. I have a skin folder created for Android tablets. I create an HTML file under the android.tablet but if this HTML file name match the same name of the HTML file under common folder then Eclipse shows a pop up error message that says:
'Building Workspace' has encountered a problem
Errors occurred during the build.
Java.Lang.NullPointerException
I have Eclipse Kepler SR1 64bits on OS X I get same error in Eclipse Juno on Win7.
This is the exception:
Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
org.eclipse.core.runtime.CoreException: java.lang.NullPointerException
at com.worklight.studio.plugin.utils.PluginUtils.toCoreException(PluginUtils.java:138)
at com.worklight.studio.plugin.builders.PreviewResourceDeltaVisitor.visit(PreviewResourceDeltaVisitor.java:112)
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:49)
at com.worklight.studio.plugin.builders.WorklightProjectBuilder.incrementalBuild(WorklightProjectBuilder.java:73)
at com.worklight.studio.plugin.builders.WorklightProjectBuilder.build(WorklightProjectBuilder.java:61)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
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:53)
Caused by: java.lang.NullPointerException
at com.worklight.studio.plugin.builders.PreviewResourceDeltaVisitor.visit(PreviewResourceDeltaVisitor.java:78)
... 19 more
I cannot confirm this using Worklight 6.1.0:
Created new project and application, "test"
Added the Android environment
Add a skin to the Android environment, "android.skin"
Copied common\index.html to android.skin\
No pop-up
Changed the HTML a bit
Run As > Run on Worklight Server
No pop-up
Suggestions:
Try with a new workspace
Close Eclipse and follow these instructions to delete the wlBuildResources folder

Could not resolve module: org.eclipse.cdt.launch.remote

I am trying to use eclipse's CDT for generating an AST for some cpp files. I am following the instructions given here: http://wiki.eclipse.org/images/c/c7/CDT_APIs_for_code_introspection.pdf
However, I ran into an error saying:
Exception in thread "main" java.lang.IllegalStateException: Workspace is closed.
at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:399)
at etl.CppParser.Parser(CppParser.java:23)**
After googling about it for a while, I understood that in order to access a project in the workspace (using ResourcesPlugin.getWorkspace().getRoot().getFile(path);), the project should be a plugin project, but my project was a simple Java project.
Therefore, I started to developed a plugin project in eclipse. I created a target platform to which I added all the required plugin dependencies required for my project. But I still have a problem when I run the plugin project as an Eclipse application. Here is the exact error:
!ENTRY org.eclipse.cdt.launch.remote 4 0 2013-11-30 01:43:27.379
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.cdt.launch.remote [300]
Unresolved requirement: osgi.wiring.bundle; filter:="(&(osgi.wiring.bundle=org.eclipse.rse.ui)(&(bundle-version>=3.0.0)(!(bundle-version>=4.0.0))))"
at org.eclipse.osgi.container.Module.start(Module.java:424)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1530)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1509)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1481)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1424)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: org.osgi.service.resolver.ResolutionException: Unable to resolve osgi.identity; osgi.identity="org.eclipse.cdt.launch.remote"; type="osgi.bundle"; version:Version="2.4.0.201309180223"; singleton:="true": missing requirement osgi.wiring.bundle; filter:="(&(osgi.wiring.bundle=org.eclipse.rse.ui)(&(bundle-version>=3.0.0)(!(bundle-version>=4.0.0))))"
at org.apache.felix.resolver.Candidates.populateResource(Candidates.java:285)
at org.apache.felix.resolver.Candidates.populate(Candidates.java:153)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:147)
at org.eclipse.osgi.container.ModuleResolver$ResolveProcess.resolve(ModuleResolver.java:652)
at org.eclipse.osgi.container.ModuleResolver.resolveDelta(ModuleResolver.java:75)
at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:454)
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:412)
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:402)
at org.eclipse.osgi.container.Module.start(Module.java:406)
... 7 more
Root exception:
org.osgi.service.resolver.ResolutionException: Unable to resolve osgi.identity; osgi.identity="org.eclipse.cdt.launch.remote"; type="osgi.bundle"; version:Version="2.4.0.201309180223"; singleton:="true": missing requirement osgi.wiring.bundle; filter:="(&(osgi.wiring.bundle=org.eclipse.rse.ui)(&(bundle-version>=3.0.0)(!(bundle-version>=4.0.0))))"
at org.apache.felix.resolver.Candidates.populateResource(Candidates.java:285)
at org.apache.felix.resolver.Candidates.populate(Candidates.java:153)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:147)
at org.eclipse.osgi.container.ModuleResolver$ResolveProcess.resolve(ModuleResolver.java:652)
at org.eclipse.osgi.container.ModuleResolver.resolveDelta(ModuleResolver.java:75)
at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:454)
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:412)
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:402)
at org.eclipse.osgi.container.Module.start(Module.java:406)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1530)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1509)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1481)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1424)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Could someone please tell me what I could do to get rid of this problem... I am not able to understand what the problem is at this point.
Thank you very much for any help.
Okay, I have solved the problem myself. What I did is as follows: I found this link for Target Management related Downloads and I downloaded the RSE runtime 3.2.2 (it is >=3 and <4)
http://download.eclipse.org/tm/downloads/
Then I went to Eclipse Windows->Preferences->Plugin Development->Target Platform , then selected my Target Platform->Edit-> Add->Directory and add the directory obtained by extracting the downloaded RSE runtime 3.2.2.zip.
After this, when I ran my plug in project as an Eclipse Application, I had no errors anymore because now, the plugins used by my plugin project do not have any unresolved dependencies.
I hope this helps someone.
The error says that bundle org.eclipse.cdt.launch.remote has a Require-Bundle (osgi.wiring.bundle) statement which lists bundle org.eclipse.rse.ui and the bundle version range [3.0,4.0). So org.eclipse.cdt.launch.remote cannot resolve because it is dependent on bundle org.eclipse.rse.ui having bundle version >=3 and < 4.

Unable to open deployment assembly option in Rational Application Developer 8.0.4

I'm using RAD 8.0.4 version. After installing plugins like SVN, Maven and PMD, when I try to open 'Deployment Assembly' option for any EAR project(right click->properties->deployment assembly) its showing that "The currently displayed page contains invalid values".
Can anyone help me out to solve this..??
I met the same issue, and the log in .metadata/log like this:
!ENTRY org.eclipse.jface 4 2 2012-11-23 11:37:45.031
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoSuchMethodError: org/eclipse/jst/j2ee/componentcore/J2EEModuleVirtualComponent.getDefaultDeploymentDescriptorFolder(Lorg/eclipse/wst/common/componentcore/resources/IVirtualFolder;)Lorg/eclipse/core/runtime/IPath;
I had this same issue. It was because I didn't have all projects being referenced, in my workspace. To fix the issue, I had to remove the references. To do that, I had to open the referenced projects first, then open the deployment assembly, and remove the reference.

wsdl2java codegen eclipse plugin- java.lang.reflect.invocationtargetexception

I had added the Axis2_Codegen_Wizard_1.3.0,Axis2_Service_Archiver_1.3.0 to eclipse plugin. On clicking finish button, after I go through all the steps which include specifying wsdl file path and output path, I a pop up with following error.
An error occurred while completing the process
java.lang.reflect.invocationtargetexception
Any idea ?
Thanks
-Aj
Well, the problem was solved on upgrading to Eclipse IDE 3.6.