NPE trying to set up ESH development envirionment [message #1765062] |
Tue, 06 June 2017 10:20 |
Thomas Quarendon Messages: 4 Registered: January 2017 |
Junior Member |
|
|
I'm trying to set up a development environment, following the instructions here https://www.eclipse.org/smarthome/documentation/development/ide.html
I have tried this a number of times and each time I end up with many many errors in my workspace. I have run through all the way to step 9.
I suspect the issue might be related to null pointer exceptions it gets early on:
!ENTRY org.eclipse.core.jobs 4 2 2017-06-06 10:41:41.494
!MESSAGE An internal error occurred during: "Install download1".
!STACK 0
java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:666)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:591)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:723)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:319)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:288)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:223)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:153)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:707)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I get this for "download0", "download1", "download2" and "download3".
There is then:
!MESSAGE The current target platform contains errors, open Window > Preferences > Plug-in Development > Target Platform for details.
!STACK 1
org.eclipse.core.runtime.CoreException: Problems occurred while resolving the target contents
at org.eclipse.pde.internal.core.PluginModelManager.getExternalBundles(PluginModelManager.java:637)
at org.eclipse.pde.internal.core.PluginModelManager.initializeTable(PluginModelManager.java:543)
at org.eclipse.pde.internal.core.PluginModelManager.targetReloaded(PluginModelManager.java:471)
at org.eclipse.pde.core.target.LoadTargetDefinitionJob.resetPlatform(LoadTargetDefinitionJob.java:225)
at org.eclipse.pde.core.target.LoadTargetDefinitionJob.runInWorkspace(LoadTargetDefinitionJob.java:146)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
at org.eclipse.oomph.util.pde.TargetPlatformUtil.activateTargetDefinition(TargetPlatformUtil.java:158)
at org.eclipse.oomph.setup.pde.impl.TargetPlatformTaskImpl.perform(TargetPlatformTaskImpl.java:293)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3324)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.access$1(SetupTaskPerformer.java:3267)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil$1.run(SetupTaskPerformer.java:4494)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.performNeededSetupTasks(SetupTaskPerformer.java:4488)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.access$0(SetupTaskPerformer.java:4486)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3258)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3233)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3133)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:567)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:693)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
which I suspect is a knock on error. I get the same errors if I try and look at the target definition within the "targetplatform" project and try and reload that. IN the "Target Definition" editor I get a bunch of errors "Problems occurred while resolving the target contents", see the attached image. I', assuming that they are the result of the "install download" errors.
If I press on anyway I just get thousands of errors in my workspace. These don't go away if I do "Help->Perform Setup Tasks", and then clean the relevant projects, or "clean all" (the instructions say clean each project that has errors, but for me that's all of them).
I'm using Eclipse Neon, on Windows 10, it if makes a difference.
Any suggestions?
-
Attachment: Capture.PNG
(Size: 65.24KB, Downloaded 193 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03989 seconds