[jbosstools-issues] [JBoss JIRA] (JBIDE-10527) NullPointerException when creating OpenShift server manually

Rob Stryker (JIRA) jira-events at lists.jboss.org
Tue Mar 27 23:06:47 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-10527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679845#comment-12679845 ] 

Rob Stryker commented on JBIDE-10527:
-------------------------------------

1) Start with a clean workspace
2) File -> Import -> Existing Maven Application
3) Browse to /home/rob/git/app9, import it
4) Let eclipse import
5) Right-click project, share via git
6) Open express console
7) Add credentials to expres console view
8) Expand account, right-click app9, select "Create Server Adapter"
9) select openshift server, select next
10) Note hte page is filled out correctly, click finish
11) Open servers view
12) double-click new server
13) Note all fields are appropriately filled out 
14) right-click on the server, select "Switch Location" button
15) Note that a new project is in the workspace, named "Servers"
16) Expand project "Servers", right click the express server, open with -> Text Editor
17) Note the following preference keys exist:

org.jboss.tools.openshift.express.internal.core.behaviour.ApplicationId="769fbce4ec324292938a7aca2d7cbb69" 
org.jboss.tools.openshift.express.internal.core.behaviour.ApplicationName="app9" 
org.jboss.tools.openshift.express.internal.core.behaviour.Domain="yourDomainHere" 
org.jboss.tools.openshift.express.internal.core.behaviour.ExpressMode="publishSource" 
org.jboss.tools.openshift.express.internal.core.behaviour.Username="username at example.com" 
org.jboss.tools.openshift.express.internal.core.behaviour.binary.deployProject="app9" 

I am not able to replicate any failing here at all. My code is up to date. Everything seems to check out fine for me. Are you sure you're following all of the steps here? 
                
> NullPointerException when creating OpenShift server manually
> ------------------------------------------------------------
>
>                 Key: JBIDE-10527
>                 URL: https://issues.jboss.org/browse/JBIDE-10527
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 3.3.0.M5
>            Reporter: Lucia Jelinkova
>            Assignee: Rob Stryker
>            Priority: Critical
>             Fix For: 3.3.0.Beta2
>
>         Attachments: JBIDE-10527.patch, JBIDE-10527.reopened.patch
>
>
> When I try to create an OpenShift server manually, the server is created successfully but keeps throwing the following NullPointerException every time I click on it.
> java.lang.NullPointerException
> 	at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.getDelegate(DelegatingServerBehavior.java:58)
> 	at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.canChangeState(DelegatingServerBehavior.java:158)
> 	at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.canStop(DelegatingServerBehavior.java:150)
> 	at org.eclipse.wst.server.core.internal.Server.canStop(Server.java:1833)
> 	at org.eclipse.wst.server.ui.internal.view.servers.StopAction.accept(StopAction.java:50)
> 	at org.eclipse.wst.server.ui.internal.view.servers.AbstractServerAction.selectionChanged(AbstractServerAction.java:85)
> 	at org.eclipse.ui.actions.SelectionProviderAction.selectionChanged(SelectionProviderAction.java:143)
> 	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> 	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> 	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
> 	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
> 	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)
> 	at org.eclipse.ui.navigator.CommonViewer.handleSelect(CommonViewer.java:478)
> 	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
> 	at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
> 	at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
> 	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
> 	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list