One Star

[resolved] Command line can not start

Hi,
I just tried to generate one of my job but it doesn't work "Unexpected error, contact your administrator".
Ok so i go to the CommandLine and it says :
Fail to list commands
Unexpected listCommand while processing stopServer|qu

So i figured the command line wasn't started.
So i go and launch it /talend_directory/cmdline/start_cmdline.sh
And ... nothing happens. It stays the same.
EDIT : Just found that i don't have any cmdline in the running process. But how can i launch it ?
EDIT2: I found that start_cmdline.sh launch a Java command. So i tried to launch the command directly in the shell and i have an answer from the system but i don't know what that means.
 15542

EDIT3 : Found the log
2011-08-10 12:20:41 ERROR CommandLineBean  - Fail to list command
org.talend.commandline.client.CommandLineJavaServerException: Unexpected listCommand while processing stopServer|quit|listItem|putFile|getFile|initLocal|initRemote|logoffProject|logonProject|executeAllJob|exportAllJob|executeJob|exportJob|deleteItems|changeVersion|changeStatus|importDatabaseMetadata|importDelimitedMetadata|showVersion|createJob
at org.talend.commandline.client.util.ResponseInterpreter.parse(Unknown Source)
at org.talend.commandline.client.util.ResponseInterpreter.parse(Unknown Source)
at org.talend.commandline.client.CommandLineJavaClient.sendCommandAndParse(Unknown Source)
at org.talend.commandline.client.CommandLineJavaClient.listCommands(Unknown Source)
at org.talend.administrator.commandline.CommandLineBean.getCommands(CommandLineBean.java:85)
at org.talend.gwtadministrator.server.dashboard.services.CommandLineServiceImpl.getCommands(CommandLineServiceImpl.java:37)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
at org.talend.gwttoolkit.server.TalendRemoteServiceServlet.processCall(TalendRemoteServiceServlet.java:79)
at org.talend.gwtadministrator.server.LoggedAndLicenseCheckRemoteServiceServlet.processCall(LoggedAndLicenseCheckRemoteServiceServlet.java:36)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)

EDIT4 : Found the log about the launching issue
!SESSION 2011-08-10 12:27:10.503 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application org.talend.commandline.CommandLine startServer -p 8002
Command-line arguments: -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace startServer -p 8002
!ENTRY org.talend.configurator 4 0 2011-08-10 12:27:11.954
!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: Please setup a license first.
at org.talend.configurator.config.TalendConfiguratorImpl.applyConfiguration(Unknown Source)
at org.talend.configurator.Activator.start(Unknown Source)
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: Please setup a license first.
at org.talend.configurator.config.TalendConfiguratorImpl.applyConfiguration(Unknown Source)
at org.talend.configurator.Activator.start(Unknown Source)
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)

Then a bunch of thoses (like 1500lines)
!ENTRY org.eclipse.osgi 2 0 2011-08-10 12:27:13.137
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-08-10 12:27:13.138
!MESSAGE Bundle reference:file:plugins/org.eclipse.equinox.launcher.gtk.linux.ppc64.nl_ja_3.6.0.v20100814043401.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.launcher.gtk.linux.ppc64.nl_ja 2 0 2011-08-10 12:27:13.138
!MESSAGE Missing host org.eclipse.equinox.launcher.gtk.linux.ppc64_0.0.0.

And at the end
!ENTRY org.eclipse.osgi 4 0 2011-08-10 12:27:13.243
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.talend.commandline.CommandLine" could not be found in the registry. The applications available are: org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.equinox.app.error, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.jdt.core.JavaCodeFormatter, org.talend.rcp.branding.tisprof.application, org.talend.componentdesigner.rcp.application, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.talend.repository.CreateAutomaticConnectionApplication, org.talend.repository.TalendMigration, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.talend.dbrepocleaner.TalendDBRepoCleaner, org.talend.designer.codegen.CodeGenInit, org.eclipse.ant.core.antRunner, org.eclipse.ui.ide.workbench.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] Command line can not start

Ok So i have the answer for curious people.
When you update the licence in TAC in DOES NOT update the licence in the command line.
So i just had to upload the licence file in the /Talend/cmdline/studio/licence
I suggested that the update in TAC upload the cmdline licence.
12 REPLIES
Community Manager

Re: [resolved] Command line can not start

Hi
The OS is a 64bit system, can you show me the content of script start_cmdline.sh you are using to launch commandline?
By default, the content looks like as below:
./Talend-linux-gtk-x86 -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace startServer -p 8002
For 64bit, change it to
./Talend-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace startServer -p 8002
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Command line can not start

cd "/Talend/cmdline/studio"
java -Xms64m -Xmx1024m -XX:MaxPermSize=256m -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace startServer -p 8002 > /dev/null 2>&1 < /dev/null &

EDIT : It was working before and no one touched the scripts. But the server has been rebooted
EDIT 2 : that's what i have in the start_commandline.sh i don't have what your are talking about.
One Star

Re: [resolved] Command line can not start

*bump*
Community Manager

Re: [resolved] Command line can not start

Hi
1. Do you see a folder called commandline-workspace under /Talend/cmdline/studio/? Delete it and restart commandline.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Command line can not start

Ok i deleted the /Talend/cmdline/studio/commandline-workspace.
Then i did /Talend/cmdline/studio/start_commandline.sh
And .... it's the same. Nothing changed.
Community Manager

Re: [resolved] Command line can not start

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
... 11 more
Root exception:
java.lang.Error: Please setup a license first.

Maybe you need to setup or upgrade the license?
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Command line can not start

I did 2days ago.
EDIT : 1 reupload the licence and generate the validation token. It stills saying "Please setup a licence".

EDIT 2 : I'm going to contact the support. So i'll be posting the result when i have it.
Thank you.
One Star

Re: [resolved] Command line can not start

Ok So i have the answer for curious people.
When you update the licence in TAC in DOES NOT update the licence in the command line.
So i just had to upload the licence file in the /Talend/cmdline/studio/licence
I suggested that the update in TAC upload the cmdline licence.
Community Manager

Re: [resolved] Command line can not start

Ok So i have the answer for curious people.
When you update the licence in TAC in DOES NOT update the licence in the command line.
So i just had to upload the licence file in the /Talend/cmdline/studio/licence
I suggested that the update in TAC upload the cmdline licence.

ah,
yes, you are right, you have to update the license both in TAC and commandline.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Command line can not start

HI,
I currently faced this issue. After reading this thread we just copied the file "license" into ../$commandline$/ directory (not ../$commandline$/studio/license bacause this directory does not exist) and restarted the commandline process. And now the commandline runs...
Why is this not documented ?!? OR even better: why can't the TAC provide the new key to commandline process...
Michael
One Star

Re: [resolved] Command line can not start

Spent some time trying to fix this one.  Not sure WHERE the license finally got read, but wanted to make another comment.
Our Talend installation is loaded with links that confuse things when trying to get stuff working.  By habit I go to "/opt/talend" as my directory, but secretly that is just a link to /opt/Talend-6.2.1.  I tried putting the license in the /opt/talend/cmdline folder and failed though /opt/talend/command_line was the right place in our 5.5.1 Talend server.  I put another copy in /opt/talend/cmdline/studio and it seemed to work.
I have dealt with Talend issues before, so I was not a completly blindsided by this problem, but seriously,  why can't the error message say something helpful like "Your license file is invalid, you fool!" instead of the cryptic crap it spits out?  And it would be nice for TAC to automatically install the license on the commandline servers.  Or at LEAST grunt out a message warning people that uploading the file to TAC is not enough.
One Star

Re: [resolved] Command line can not start

So, this problem arose in 2011. We are in 2017, and the Administrator DOES NOT update the licence on command line...