[JBoss JIRA] (JBIDE-20290) Projects wizard: NPE when deleting a project
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20290?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-20290:
------------------------------------------
I detected the problem:
The OpenShiftExplorerContentProvider tries to refresh the inexistent ResourceGrouping for a project. Projects are not children of ResourceGroupings, this thus fails.
The lookup for the ResourceGrouping in the map for the given project returns null, causing #refreshGrouping to npe.
{code:title=OpenShiftExplorerContentProvider#handleConnectionChanged}
refreshGrouping(groupMap.get(resource.getProject()), resource.getKind())
{code}
> Projects wizard: NPE when deleting a project
> --------------------------------------------
>
> Key: JBIDE-20290
> URL: https://issues.jboss.org/browse/JBIDE-20290
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.0.Beta2
> Reporter: Andre Dietisheim
> Assignee: Jeff Cantrill
> Priority: Critical
> Fix For: 4.3.0.Beta2
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months
[JBoss JIRA] (JBIDE-20290) Projects wizard: NPE when deleting a project
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20290?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-20290:
-------------------------------------
Steps to Reproduce:
# ASSERT: make sure that you have a connection to a v3 OpenShift server
# ASSERT: make sure that you have at least 1 project in your v3 OpenShift server
# EXEC: in Explorer: pick "Manage Projects" in the context menu to your connection
# ASSERT: OpenShift projects wizard pops up listing your project(s)
# EXEC: select a project and hit "Remove..."
Result:
!npe-deleting-resource.png!
An error dialog pops up and reports an NPE. The projects is deleted though, you realise this once you refresh the connection in the explorer.
In Eclipse log one can see the following:
{code}
java.lang.NullPointerException
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.getResourceGrouping(OpenShiftExplorerContentProvider.java:126)
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.refreshGrouping(OpenShiftExplorerContentProvider.java:119)
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.handleConnectionChanged(OpenShiftExplorerContentProvider.java:65)
at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$ConnectionsRegistryListener.connectionChanged(BaseExplorerContentProvider.java:260)
at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:158)
at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:116)
at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:48)
at org.jboss.tools.openshift.internal.ui.wizard.project.ManageProjectsWizardPage$3$1.doRun(ManageProjectsWizardPage.java:177)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
{code}
was:
# ASSERT: make sure that you have a connection to a v3 OpenShift server
# ASSERT: make sure that you have at least 1 project in your v3 OpenShift server
# EXEC: in Explorer: pick "Manage Projects" in the context menu to your connection
# ASSERT: OpenShift projects wizard pops up listing your project(s)
# EXEC: select a project and hit "Remove..."
Result:
!npe-deleting-resource.png!
An error dialog pops up and reports an NPE.
In Eclipse log one can see the following:
{code}
java.lang.NullPointerException
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.getResourceGrouping(OpenShiftExplorerContentProvider.java:126)
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.refreshGrouping(OpenShiftExplorerContentProvider.java:119)
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.handleConnectionChanged(OpenShiftExplorerContentProvider.java:65)
at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$ConnectionsRegistryListener.connectionChanged(BaseExplorerContentProvider.java:260)
at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:158)
at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:116)
at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:48)
at org.jboss.tools.openshift.internal.ui.wizard.project.ManageProjectsWizardPage$3$1.doRun(ManageProjectsWizardPage.java:177)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
{code}
> Projects wizard: NPE when deleting a project
> --------------------------------------------
>
> Key: JBIDE-20290
> URL: https://issues.jboss.org/browse/JBIDE-20290
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.0.Beta2
> Reporter: Andre Dietisheim
> Assignee: Jeff Cantrill
> Priority: Critical
> Fix For: 4.3.0.Beta2
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months
[JBoss JIRA] (JBIDE-20290) Projects wizard: NPE when deleting a project
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20290?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-20290:
-------------------------------------
Steps to Reproduce:
# ASSERT: make sure that you have a connection to a v3 OpenShift server
# ASSERT: make sure that you have at least 1 project in your v3 OpenShift server
# EXEC: in Explorer: pick "Manage Projects" in the context menu to your connection
# ASSERT: OpenShift projects wizard pops up listing your project(s)
# EXEC: select a project and hit "Remove..."
Result:
!npe-deleting-resource.png!
An error dialog pops up and reports an NPE.
In Eclipse log one can see the following:
{code}
java.lang.NullPointerException
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.getResourceGrouping(OpenShiftExplorerContentProvider.java:126)
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.refreshGrouping(OpenShiftExplorerContentProvider.java:119)
at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.handleConnectionChanged(OpenShiftExplorerContentProvider.java:65)
at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$ConnectionsRegistryListener.connectionChanged(BaseExplorerContentProvider.java:260)
at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:158)
at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:116)
at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:48)
at org.jboss.tools.openshift.internal.ui.wizard.project.ManageProjectsWizardPage$3$1.doRun(ManageProjectsWizardPage.java:177)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
{code}
was:
# ASSERT: make sure that you have a connection to a v3 OpenShift server
# ASSERT: make sure that you have at least 1 project in your v3 OpenShift server
# EXEC: in Explorer: pick "Manage Projects" in the context menu to your connection
# ASSERT: OpenShift projects wizard pops up listing your project(s)
# EXEC: select a project and hit "Remove..."
Result:
!npe-deleting-resource.png!
An error dialog pops up and reports an NPE.
> Projects wizard: NPE when deleting a project
> --------------------------------------------
>
> Key: JBIDE-20290
> URL: https://issues.jboss.org/browse/JBIDE-20290
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.0.Beta2
> Reporter: Andre Dietisheim
> Assignee: Jeff Cantrill
> Priority: Critical
> Fix For: 4.3.0.Beta2
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months
[JBoss JIRA] (JBIDE-20291) Explorer: provide "Delete Projects" and "Manage Projects..." in context menu for projects
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20291?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-20291:
-------------------------------------
Description:
To delete projects we currently have to pick "Manage Projects..." in the context menu for connections. (In JBIDE-20172 we only implemented deleting projects from withing the "Manage Projects" wizard which is only reachable from the context menu of v3 connections).
We should allow users to directly delete projects via context menu and get into projects management in the context menu of projects.
was:To delete projects we currently have to pick "Manage Projects..." in the context menu for connections. We should allow users to directly delete projects via context menu and get into projects management in the context menu of projects.
> Explorer: provide "Delete Projects" and "Manage Projects..." in context menu for projects
> -----------------------------------------------------------------------------------------
>
> Key: JBIDE-20291
> URL: https://issues.jboss.org/browse/JBIDE-20291
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.0.Beta2
> Reporter: Andre Dietisheim
> Labels: explorer
> Fix For: 4.3.0.CR1
>
>
> To delete projects we currently have to pick "Manage Projects..." in the context menu for connections. (In JBIDE-20172 we only implemented deleting projects from withing the "Manage Projects" wizard which is only reachable from the context menu of v3 connections).
> We should allow users to directly delete projects via context menu and get into projects management in the context menu of projects.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months
[JBoss JIRA] (JBIDE-19329) Start Forge2 runtime when workbench starts
by Koen Aers (JIRA)
[ https://issues.jboss.org/browse/JBIDE-19329?page=com.atlassian.jira.plugi... ]
Koen Aers updated JBIDE-19329:
------------------------------
Fix Version/s: 4.3.0.CR1
(was: 4.3.0.Beta2)
> Start Forge2 runtime when workbench starts
> ------------------------------------------
>
> Key: JBIDE-19329
> URL: https://issues.jboss.org/browse/JBIDE-19329
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: forge
> Affects Versions: 4.3.0.Alpha1
> Reporter: Pavol Srna
> Assignee: Koen Aers
> Fix For: 4.3.0.CR1
>
>
> With removal of Forge1 some of the preferences related to Forge1 are gone. For example, Start Forge when workbench starts, or start in Debug mode.
> Some of them make sense and come handy also for Forge2.
> It would be good to bring back the start option for F2.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months
[JBoss JIRA] (JBIDE-20291) Explorer: provide "Delete Projects" and "Manage Projects..." in context menu for projects
by Andre Dietisheim (JIRA)
Andre Dietisheim created JBIDE-20291:
----------------------------------------
Summary: Explorer: provide "Delete Projects" and "Manage Projects..." in context menu for projects
Key: JBIDE-20291
URL: https://issues.jboss.org/browse/JBIDE-20291
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.3.0.Beta2
Reporter: Andre Dietisheim
To delete projects we currently have to pick "Manage Projects..." in the context menu for connections. We should allow users to directly delete projects via context menu and get into projects management in the context menu of projects.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months