[jbosstools-issues] [JBoss JIRA] (JBIDE-26158) Server adapter: NPE when starting adapter into Debug
Andre Dietisheim (JIRA)
issues at jboss.org
Mon Jul 2 16:48:00 EDT 2018
[ https://issues.jboss.org/browse/JBIDE-26158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13599765#comment-13599765 ]
Andre Dietisheim commented on JBIDE-26158:
------------------------------------------
The NPE occurs at the following code in the eclipse platform:
{code:title=org.eclipse.core.internal.resources.CheckMissingNaturesListener#updateRange}
FileUtil.transferStreams(input, output, file.getLocation().toString(), new NullProgressMonitor());
{code}
The culprit is
{code}
file.getLocation()
{code}
The weird thing is that the file that's being used (L/nodejs-ex (1)/.project) is not matching the project that one sees in the project explorer (nodes-ex).
> Server adapter: NPE when starting adapter into Debug
> -----------------------------------------------------
>
> Key: JBIDE-26158
> URL: https://issues.jboss.org/browse/JBIDE-26158
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.6.0.AM3
> Reporter: Andre Dietisheim
> Attachments: image-2018-07-02-22-33-13-396.png
>
>
> steps:
> # EXEC: launch new application wizard, choose nodejs-mongo-persistent template and finish
> # EXEC: when asked import the app and create a server adapter
> # ASSERT: server adapter is created
> # EXEC: start the server adapter
> # ASSERT: server adapter is launched
> # EXEC: restart the server adapter into Debug
> Result:
> Debuggin works, but you get the following error dialog:
> !image-2018-07-02-22-33-13-396.png!
> In the Eclipse log you'll find the following:
> {code}
> java.lang.NullPointerException
> at org.eclipse.core.internal.resources.CheckMissingNaturesListener.updateRange(CheckMissingNaturesListener.java:209)
> at org.eclipse.core.internal.resources.CheckMissingNaturesListener$3.runInWorkspace(CheckMissingNaturesListener.java:179)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
> {code}
> ps. project context menu: Convert > Javascript Project doesn't help.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list