CommandLine failed to re-start

Overview

The CommandLine used to work, but after stopping it, it fails to restart. This behavior can occur in versions 5.3 and 5.4.


Symptoms/Description

The CommandLine was running just fine. After a stop it fails to restart.

In a log file generated in the CommandlineInstallationDir/configuration/ directory, you can see similar lines:


!SESSION 2014-03-14 14:59:37.395 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_10
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR
Framework arguments:  -application org.talend.commandline.CommandLine startServer -p 8002
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace startServer -p 8002

!ENTRY org.talend.configurator 4 0 2014-03-14 14:59:48.851
!MESSAGE 
!STACK 0
org.osgi.framework.BundleException: Exception in org.talend.configurator.Activator.start() of bundle org.talend.configurator.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
Caused by: java.lang.Error: Unable to access to url : 
    at org.talend.configurator.config.TalendConfiguratorImpl.getLicenseFromTAC(TalendConfiguratorImpl.java:167)
    at org.talend.configurator.config.TalendConfiguratorImpl.applyConfiguration(TalendConfiguratorImpl.java:113)
    at org.talend.configurator.Activator.start(Activator.java:73)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
    ... 11 more
Root exception:
java.lang.Error: Unable to access to url : 
    at org.talend.configurator.config.TalendConfiguratorImpl.getLicenseFromTAC(TalendConfiguratorImpl.java:167)
    at org.talend.configurator.config.TalendConfiguratorImpl.applyConfiguration(TalendConfiguratorImpl.java:113)
    at org.talend.configurator.Activator.start(Activator.java:73)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)

Resolution

You should see this window:

commandline.png

 

In some cases, if this window is not visible or not answered with valid parameter values, the CommandLine will not start.

To resolve it: you can copy a valid license key file at the root of the CommandLine Installation folder, then restart the CommandLine.


!SESSION 2014-03-14 14:59:37.395 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_10
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR
Framework arguments:  -application org.talend.commandline.CommandLine startServer -p 8002
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace startServer -p 8002

!ENTRY org.talend.configurator 4 0 2014-03-14 14:59:48.851
!MESSAGE 
!STACK 0
org.osgi.framework.BundleException: Exception in org.talend.configurator.Activator.start() of bundle org.talend.configurator.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
Caused by: java.lang.Error: Unable to access to url : 
    at org.talend.configurator.config.TalendConfiguratorImpl.getLicenseFromTAC(TalendConfiguratorImpl.java:167)
    at org.talend.configurator.config.TalendConfiguratorImpl.applyConfiguration(TalendConfiguratorImpl.java:113)
    at org.talend.configurator.Activator.start(Activator.java:73)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
    ... 11 more
Root exception:
java.lang.Error: Unable to access to url : 
    at org.talend.configurator.config.TalendConfiguratorImpl.getLicenseFromTAC(TalendConfiguratorImpl.java:167)
    at org.talend.configurator.config.TalendConfiguratorImpl.applyConfiguration(TalendConfiguratorImpl.java:113)
    at org.talend.configurator.Activator.start(Activator.java:73)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)

Version history
Revision #:
3 of 3
Last update:
‎06-19-2017 05:14 PM
Updated by:
 
Labels (1)