[JBoss JIRA] (JBIDE-24881) Strange strings in cdk's PATH environmental variable
by Martin Malina (JIRA)
Martin Malina created JBIDE-24881:
-------------------------------------
Summary: Strange strings in cdk's PATH environmental variable
Key: JBIDE-24881
URL: https://issues.jboss.org/browse/JBIDE-24881
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdk
Affects Versions: 4.5.1.AM1
Reporter: Martin Malina
Assignee: Rob Stryker
Hardy was trying to test cdk in eclipse and got an error when starting cdk:
{code}
org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 67; Character reference "" 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 "" is an invalid XML character.
{code}
It turns out that his PATH env var for cdk is this (from JBIDE-24222):
{code}
]1337;RemoteHost=hardy@nineveh.lan]1337;CurrentDir=/Volumes/Gram/Hardy/tmp/devstudio/studio/devstudio.app/Contents/MacOS]1337;ShellIntegrationVersion=3;shell=bash/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@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@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
{code}
This was in devstudio nightly. So I checked too and I have a similar problem. In my case I have this in the PATH variable in launch config:
{code}
Restored session: Tue Aug 22 15:34:26 CEST 2017
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin/bin
Saving session...
...saving history...
...completed.:/Users/rasp/jbossqa/cdk/cdk-3.1.0
{code}
So something in the way you get the PATH is wrong.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 7 months
[JBoss JIRA] (JBIDE-24222) CDK3 Server adapter: fails to detect that cdk3 Beta3 was successfully started (on macos/xhyve?)
by Martin Malina (JIRA)
[ https://issues.jboss.org/browse/JBIDE-24222?page=com.atlassian.jira.plugi... ]
Martin Malina commented on JBIDE-24222:
---------------------------------------
This is really odd! I'd never seen this until now. I didn't even know such a xml file gets created. But now I looked at the launch config and I can see very odd things in PATH env var in my case:
{code}
Restored session: Tue Aug 22 15:34:26 CEST 2017
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin/bin
Saving session...
...saving history...
...completed.:/Users/rasp/jbossqa/cdk/cdk-3.1.0
{code}
WTF is that?
[~hardy.ferentschik], I guess in your case it will be what you have in that xml. In my case there are no illegal characters I guess.
To check this:
1. Open cdk server editor by double-clicking the CDK adapter in Servers view
2. In the server editor, click Open launch configuration (almost at the top)
3. In the launch config window, go to the Environment tab
[~hardy.ferentschik], this is definitely a bug and I will create a JIRA shortly. As a workaround, you can edit the env var manually in the launch config (simply use your normal $PATH string) and then start cdk again.
> 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)
8 years, 7 months
[JBoss JIRA] (JBIDE-24222) CDK3 Server adapter: fails to detect that cdk3 Beta3 was successfully started (on macos/xhyve?)
by Hardy Ferentschik (JIRA)
[ https://issues.jboss.org/browse/JBIDE-24222?page=com.atlassian.jira.plugi... ]
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 "" 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 "" 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(a)mailinator.com" />
<mapEntry key="PATH" value="]1337;RemoteHost=hardy@nineveh.lan]1337;CurrentDir=/Volumes/Gram/Hardy/tmp/devstudio/studio/devstudio.app/Contents/MacOS]1337;ShellIntegrationVersion=3;shell=bash/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@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@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)
8 years, 7 months
[JBoss JIRA] (JBIDE-22625) Remote server with FS operations: Unable to retrieve a list of remote deployment scanners
by Martin Malina (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22625?page=com.atlassian.jira.plugi... ]
Martin Malina commented on JBIDE-22625:
---------------------------------------
I tried this again now with devstudio 11.1 nightly.
I don't get the org.eclipse.rse.core error now.
I still get "Unable to retrieve a list of remote deployment scanners" but from Rob's previous comment it seems it's really expected (even though it's not really nice to have this error there "by default").
[~rob.stryker], can you confirm that we'll have to live with this? If so, you can close this issue.
> Remote server with FS operations: Unable to retrieve a list of remote deployment scanners
> -----------------------------------------------------------------------------------------
>
> Key: JBIDE-22625
> URL: https://issues.jboss.org/browse/JBIDE-22625
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.4.0.Final
> Reporter: Martin Malina
> Assignee: Rob Stryker
> Fix For: 4.5.x
>
>
> Previously I reported this as part of JBIDE-22605, but I think it deserves its own issue.
> When I setup a remote EAP 7 server with FS operations and then start it, I always get this in the error log:
> Unable to retrieve a list of remote deployment scanners for server Red Hat JBoss EAP 7.0
> Today, I also noticed this info message in the error view:
> org.eclipse.rse.core
> Saved passwords are not available for migration to secure storage. Deprecated authorization classes (org.eclipse.core.runtime.compatibility.auth) are not installed.
> I wonder if this is related? Do we require authentication to get the list of deployment scanners?
> BTW, org.eclipse.core.runtime.compatibility was removed in JBIDE-21382 and I suggested org.eclipse.core.runtime.compatibility.auth may be removed too - JBIDE-22602. But as of now it's still in the TP.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 7 months
[JBoss JIRA] (JBIDE-22625) Remote server with FS operations: Unable to retrieve a list of remote deployment scanners
by Martin Malina (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22625?page=com.atlassian.jira.plugi... ]
Martin Malina edited comment on JBIDE-22625 at 8/23/17 4:38 AM:
----------------------------------------------------------------
I tried this again now with devstudio 11.1 nightly.
I don't get the org.eclipse.rse.core error now.
I still get "Unable to retrieve a list of remote deployment scanners" but from Rob's previous comment it seems it's really expected because the management port is not exposed by default for FS mode (even though it's not really nice to have this error there "by default").
[~rob.stryker], can you confirm that we'll have to live with this? If so, you can close this issue.
was (Author: mmalina):
I tried this again now with devstudio 11.1 nightly.
I don't get the org.eclipse.rse.core error now.
I still get "Unable to retrieve a list of remote deployment scanners" but from Rob's previous comment it seems it's really expected (even though it's not really nice to have this error there "by default").
[~rob.stryker], can you confirm that we'll have to live with this? If so, you can close this issue.
> Remote server with FS operations: Unable to retrieve a list of remote deployment scanners
> -----------------------------------------------------------------------------------------
>
> Key: JBIDE-22625
> URL: https://issues.jboss.org/browse/JBIDE-22625
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.4.0.Final
> Reporter: Martin Malina
> Assignee: Rob Stryker
> Fix For: 4.5.x
>
>
> Previously I reported this as part of JBIDE-22605, but I think it deserves its own issue.
> When I setup a remote EAP 7 server with FS operations and then start it, I always get this in the error log:
> Unable to retrieve a list of remote deployment scanners for server Red Hat JBoss EAP 7.0
> Today, I also noticed this info message in the error view:
> org.eclipse.rse.core
> Saved passwords are not available for migration to secure storage. Deprecated authorization classes (org.eclipse.core.runtime.compatibility.auth) are not installed.
> I wonder if this is related? Do we require authentication to get the list of deployment scanners?
> BTW, org.eclipse.core.runtime.compatibility was removed in JBIDE-21382 and I suggested org.eclipse.core.runtime.compatibility.auth may be removed too - JBIDE-22602. But as of now it's still in the TP.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 7 months