[jbosstools-issues] [JBoss JIRA] (JBIDE-24222) CDK3 Server adapter: fails to detect that cdk3 Beta3 was successfully started (on macos/xhyve?)

Hardy Ferentschik (JIRA) issues at jboss.org
Wed Aug 23 04:54:00 EDT 2017


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

Hardy Ferentschik commented on JBIDE-24222:
-------------------------------------------

I am trying to re-produce this, but don't even get to the point of starting the server adapter (might need to open another issue). I installed devstudio-11.1.0.AM1-v20170822-1603-B849-installer-standalone.jar and opened Eclipse. Then I try to configure a 'Container Development Environment 3' server. I fill out all the required details and then try to start, but keep getting:

{noformat}
org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 67; Character reference "&#7" is an invalid XML character. occurred while reading launch configuration file: /Volumes/Gram/Hardy/tmp/workspace/.metadata/.plugins/org.eclipse.debug.core/.launches/Container Development Environment 3.launch.
Character reference "&#7" is an invalid XML character.
{noformat}

 [^server-adapter-error.tiff] 

Looking at the launch file I see:

{code}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.jboss.tools.openshift.cdk.server.core.internal.behaviour.launchType">
    <mapAttribute key="org.eclipse.debug.core.environmentVariables">
        <mapEntry key="MINISHIFT_USERNAME" value="service-manager at mailinator.com" />
        <mapEntry key="PATH" value="]1337;RemoteHost=hardy at nineveh.lan&#x7;&#x1B;]1337;CurrentDir=/Volumes/Gram/Hardy/tmp/devstudio/studio/devstudio.app/Contents/MacOS&#x7;&#x1B;]1337;ShellIntegrationVersion=3;shell=bash&#x7;/opt/local/bin:/opt/local/sbin:/Users/hardy/.rvm/gems/ruby-2.0.0-p648/bin:/Users/hardy/.rvm/gems/ruby-2.0.0-p648 at global/bin:/Users/hardy/.rvm/rubies/ruby-2.0.0-p648/bin:/opt/local/bin:/opt/local/sbin:/Users/hardy/work/developer-platform/openshift/oc/1.3.1:/opt/java/wildfly/bin:/opt/java/tomcat/bin:/opt/java/ant/bin:/opt/java/maven/bin:/opt/java/scala/bin:/opt/java/gradle/bin:/bin:/Applications/Development/Vagrant/bin:/Users/hardy/work/developer-platform/cdk-3/go/bin:/opt/local/bin:/opt/local/sbin:/Users/hardy/bin:/opt/openshift:/opt/local/lib/mariadb/bin:/Applications/Internet/Firefox.app/Contents/MacOS:/Applications/Dev/Editor/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Applications/Wireshark.app/Contents/MacOS:/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/:/opt/local/bin:/opt/local/sbin:/Users/hardy/.rvm/gems/ruby-2.0.0-p648/bin:/Users/hardy/.rvm/gems/ruby-2.0.0-p648 at global/bin:/Users/hardy/.rvm/rubies/ruby-2.0.0-p648/bin:/Users/hardy/work/developer-platform/openshift/oc/1.3.1:/opt/java/wildfly/bin:/opt/java/tomcat/bin:/opt/java/ant/bin:/opt/java/maven/bin:/opt/java/scala/bin:/opt/java/gradle/bin:/Applications/Development/Vagrant/bin:/Users/hardy/work/developer-platform/cdk-3/go/bin:/Users/hardy/bin:/opt/openshift:/opt/local/lib/mariadb/bin:/Applications/Internet/Firefox.app/Contents/MacOS:/Applications/Dev/Editor/Sublime Text.app/Contents/SharedSupport/bin:/Users/hardy/.rvm/bin:/Users/hardy/.rvm/bin" />
    </mapAttribute>
    <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/Users/hardy/work/developer-platform/cdk-3/go/bin/minishift" />
    <stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="start --vm-driver=xhyve " />
    <stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="/Volumes/Gram/Hardy/tmp/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/Container_Development_Environment_3" />
    <booleanAttribute key="org.jboss.tools.openshift.cdk.server.core.internal.adapter.controllers.launch.isInitialized" value="true" />
    <stringAttribute key="server-id" value="Container Development Environment 3" />
</launchConfiguration>
{code}

I can see that there is invalid content as part of 'mapEntry key="PATH" '. So I manually edit the XML and safe. However, when I then start the server adapter again, the same things I just removed get added again. Not sure where this is coming from? The code might be opening a shell to read the PATH? 

> CDK3 Server adapter: fails to detect that cdk3 Beta3 was successfully started (on macos/xhyve?)
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-24222
>                 URL: https://issues.jboss.org/browse/JBIDE-24222
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdk
>    Affects Versions: 4.4.4.AM2
>         Environment: macos
> xhyve supervisor
> cdk3 beta3
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>            Priority: Critical
>              Labels: help_wanted
>             Fix For: 4.5.x
>
>         Attachments: Screenshot 2017-04-18 16.37.44.png, image-2017-04-04-15-48-59-677.png, server-adapter-error.tiff
>
>




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list