]
Andre Dietisheim commented on JBIDE-25916:
------------------------------------------
Looking into the error that I experience I see that the problem is in the launch config
detection that is erroneously found to be already running and thus, no new launch is
created. In the consequence the adapter fails to restart into debugging and the app and
debugging doesnt work.
Here's the code at work:
OpenShiftLaunchController#getLaunchConfigWorkingCopy returns *null* causing a
CoreException to be thrown in #attachRemoteDebugger
{code:title=OpenShiftLaunchController#attachRemoteDebugger}
...
ILaunchConfigurationWorkingCopy workingCopy = getLaunchConfigWorkingCopy(server,
launchConfigs,
debuggerLaunchConfig);
if (workingCopy == null) {
throw toCoreException(NLS.bind("Could not modify launch config for server
{0}", server.getName()));
}
...
{code}
#getLaunchConfigWorkingCopy return *null* because the existing launch config is found to
be running
{code:title=OpenShiftLaunchController#getLaunchConfigWorkingCopy}
...
} else {
if (launchConfigs.isRunning(debuggerLaunchConfig)) {
return null;
}
...
{code}
OpenShift Server Adapter: Error in Log after "Restart in
Debug"
---------------------------------------------------------------
Key: JBIDE-25916
URL:
https://issues.jboss.org/browse/JBIDE-25916
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.5.3.Final
Environment: F28 + Red Hat JBoss Developer Studio Build id:
GA-v20180410-1152-B2341
Reporter: Josef Kopriva
Assignee: Andre Dietisheim
Priority: Critical
Labels: debugging, server_adapter
Fix For: 4.6.0.AM1
Attachments: error-launching-server.png
An error occurs when restarting server adapter in debug:
{code:java}
eclipse.buildId=11.3.0.GA-v20180410-1152-B2341
java.version=1.8.0_162
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product com.jboss.devstudio.core.product
Command-line arguments: -data file:/home/jkopriva/devstudio_B2341/workspace/ -os linux
-ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
org.jboss.tools.openshift.core
Warning
Wed Apr 11 18:09:03 CEST 2018
Error while publishing server eap-app (Service) at OpenShift 3
(
api.engint.openshift.com). Could not sync all pods to folder
/home/jkopriva/devstudio_B2341/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/oc2@eap-app/deploy
org.eclipse.core.runtime.CoreException: Error while publishing server eap-app (Service)
at OpenShift 3 (
api.engint.openshift.com). Could not sync all pods to folder
/home/jkopriva/devstudio_B2341/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/oc2@eap-app/deploy
at
org.jboss.tools.openshift.core.server.behavior.OpenShiftPublishController.handleSyncDownFailure(OpenShiftPublishController.java:92)
at
org.jboss.tools.openshift.core.server.behavior.OpenShiftPublishController.publishStart(OpenShiftPublishController.java:61)
at
org.jboss.ide.eclipse.as.wtp.core.server.behavior.CachedPublisherProfileBehavior.publishStart(CachedPublisherProfileBehavior.java:47)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:942)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3182)
at org.eclipse.wst.server.core.internal.Server.publish(Server.java:1340)
at
org.jboss.tools.openshift.core.server.behavior.OpenShiftLaunchController$1.run(OpenShiftLaunchController.java:261)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Contains: Syncing
com.openshift.restclient.capability.resources.IRSyncable$PodPeer@e159132 to
com.openshift.restclient.capability.resources.IRSyncable$LocalPeer@e822802 failed: could
not make way for new regular file: ROOT.war
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at
main.c(1659) [generator=3.1.3]
error: exit status 23
{code}
{code:java}
eclipse.buildId=11.3.0.GA-v20180410-1152-B2341
java.version=1.8.0_162
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product com.jboss.devstudio.core.product
Command-line arguments: -data file:/home/jkopriva/devstudio_B2341/workspace/ -os linux
-ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
org.jboss.tools.openshift.core
Error
Wed Apr 11 18:09:03 CEST 2018
Error while publishing server eap-app (Service) at OpenShift 3
(
api.engint.openshift.com). Could not sync all pods to folder
/home/jkopriva/devstudio_B2341/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/oc2@eap-app/deploy
{code}
{code:java}
eclipse.buildId=11.3.0.GA-v20180410-1152-B2341
java.version=1.8.0_162
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product com.jboss.devstudio.core.product
Command-line arguments: -data file:/home/jkopriva/devstudio_B2341/workspace/ -os linux
-ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
org.jboss.tools.openshift.core
Error
Wed Apr 11 18:09:03 CEST 2018
Syncing com.openshift.restclient.capability.resources.IRSyncable$PodPeer@e159132 to
com.openshift.restclient.capability.resources.IRSyncable$LocalPeer@e822802 failed: could
not make way for new regular file: ROOT.war
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at
main.c(1659) [generator=3.1.3]
error: exit status 23
{code}