[
https://issues.jboss.org/browse/JBIDE-25674?page=com.atlassian.jira.plugi...
]
Aurélien Pupier edited comment on JBIDE-25674 at 2/1/18 3:59 AM:
-----------------------------------------------------------------
I reproduced with
open.paas.redhat.com and CDK 3.3.0-1.
I'm on Windows 10.
Red Hat JBoss Developer Studio
Version: 11.2.0.GA
Build id: GA-v20180122-2025-B1884
Build date: 20180122-2025
- start Fuse Tooling 10.2.0 (Dev Studio 11.2.0)
- start the CDK (or whatever OpenShift instance on which you want to deploy to)
- create a namespace "test-fis" for instance
- create a Fuse Integration project OpenShift-based (video here)
-- File --> new -->Fuse Integration Project
-- provide a name and then click next
-- use 2.20.1 for Camel Version, click Next
-- Use a predefined template
-- Fuse on OpenShift -> SpringBoot on OpenShift then click Finish
- add SpringBoot dev dependencies as explained here in step 1 and 2
https://github.com/fabric8io-images/s2i/blob/master/java/images/jboss/REA...
(the step 3 is done automatically by Eclipse OpenShift Tooling)
- right-click on project Run as...
- select the maven build named "Deploy <projectName> on OpenShift
-- go to JRE tab
-- change VM arguments:
--- provide correct kubernetes.master URL
--- provide namespace to the value you gave, "test-fis" if followed what i
suggested
--- (Until Fuse Tech Preview 3 is available publicly) change fabric8.generator.from value
from
registry.access.redhat.com/jboss-fuse-7/fuse-java-openshift to fabric8/s2i-java
- Start the launch configuration
you can check when it has finished to deploy in the pod log that a message is written
every seconds
- in OpenShift explorer view, right-click to the deployed app and choose "Server
adapter..."
- select the project that you created and click finish
- (due to
https://issues.jboss.org/browse/JBIDE-25288 you might need to delete the server
adapter and recreate it)
- double-click on JMX node of the OpenShift Server Adapter created (in JMX view or Servers
view, reproduce on both)
was (Author: aurelien.pupier):
I reproduced with
open.paas.redhat.com and CDK 3.3.0-1
- start Fuse Tooling 10.2.0
- start the CDK (or whatever OpenShift instance on which you want to deploy to)
- create a namespace "test-fis" for instance
- create a Fuse Integration project OpenShift-based (video here)
-- File --> new -->Fuse Integration Project
-- provide a name and then click next
-- use 2.20.1 for Camel Version, click Next
-- Use a predefined template
-- Fuse on OpenShift -> SpringBoot on OpenShift then click Finish
- add SpringBoot dev dependencies as explained here in step 1 and 2
https://github.com/fabric8io-images/s2i/blob/master/java/images/jboss/REA...
(the step 3 is done automatically by Eclipse OpenShift Tooling)
- right-click on project Run as...
- select the maven build named "Deploy <projectName> on OpenShift
-- go to JRE tab
-- change VM arguments:
--- provide correct kubernetes.master URL
--- provide namespace to the value you gave, "test-fis" if followed what i
suggested
--- (Until Fuse Tech Preview 3 is available publicly) change fabric8.generator.from value
from
registry.access.redhat.com/jboss-fuse-7/fuse-java-openshift to fabric8/s2i-java
- Start the launch configuration
you can check when it has finished to deploy in the pod log that a message is written
every seconds
- in OpenShift explorer view, right-click to the deployed app and choose "Server
adapter..."
- select the project that you created and click finish
- (due to
https://issues.jboss.org/browse/JBIDE-25288 you might need to delete the server
adapter and recreate it)
- double-click on JMX node of the OpenShift Server Adapter created (in JMX view or Servers
view, reproduce on both)
NPE in JolokiaConnectionWrapper.extractStatus
---------------------------------------------
Key: JBIDE-25674
URL:
https://issues.jboss.org/browse/JBIDE-25674
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jmx
Reporter: Aurélien Pupier
Assignee: Rob Stryker
Fix For: 4.5.3.AM2
{noformat}
!ENTRY org.eclipse.core.jobs 4 2 2018-01-29 15:56:34.020
!MESSAGE An internal error occurred during: "Connect Job".
!STACK 0
java.lang.NullPointerException
at
org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.extractStatus(JolokiaConnectionWrapper.java:340)
at
org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.verifyServerReachable(JolokiaConnectionWrapper.java:324)
at
org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.connect(JolokiaConnectionWrapper.java:113)
at org.jboss.tools.jmx.core.ConnectJob.run(ConnectJob.java:29)
at
org.jboss.tools.jmx.ui.internal.actions.DoubleClickAction$1.run(DoubleClickAction.java:71)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
{noformat}
I put a breakpoint in
org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.verifyServerReachable() to see which
exception it was and it is a "503 Service Unavailable"
in this case the "response" is null
2 possibilities:
- it is normal that it is null in this case Jboss Tools need to handle this case
- it is not normal that it is null and in this case, it needs to be reported upstream
(even if a null check might nice as a workaround for now)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)