Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
CCaprano1678813540
Contributor
Contributor

Talend mvn package returns "Unable to acquire application service."

Hello,

I am currently trying to create the jars for our Talend (Data integration) jobs using the command line. For that, I already built the following bash command:

mvn org.talend.ci:builder-maven-plugin:7.3.1:generate -f "$(pwd)/TALENDJOBS/poms/pom.xml" -pl "jobs/process/BusinessWorkflow/ourjob_0.1" -am -Dgeneration.type=local  -s "$(pwd)/maven_settings.xml"  -Dlicense.path="$(pwd)/license" -Dtalend.studio.p2.base="$HOME/Downloads/Talend_Full_Studio_p2_repository-20200219_1130-V7.3.1"  -Dproduct.path="$HOME/Downloads/Talend_Full_Studio_p2_repository-20200219_1130-V7.3.1"

It looks in the first place pretty good, because it can find the job but when executing it exits with the following error:

❯ cat ~/Downloads/Talend_Full_Studio_p2_repository-20200219_1130-V7.3.1/configuration/1679980149235.log

!SESSION 2023-03-28 07:09:08.923 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.8.0_292

java.vendor=AdoptOpenJDK

BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE

Framework arguments: -application org.talend.commandline.CommandLine scriptFile script_command_1242713832750752701.txt

Command-line arguments: -application org.talend.commandline.CommandLine -data /Users/myuser/myfolder scriptFile script_command_1242713832750752701.txt

!ENTRY org.eclipse.osgi 4 0 2023-03-28 07:09:09.619

!MESSAGE Application error

!STACK 1

java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:81)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1501)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1474)

    at org.eclipse.core.launcher.Main.main(Main.java:37)

Could you support me what I need to do here in addition? Googling does not help anymore 😕

Thanks 🙂

PS: I am running the command on a M1 MAC and additionally also ARM Ubuntu Server

Labels (2)
3 Replies
Anonymous
Not applicable

Hello @Christoph Caprano​ ,

The cmdline cache may cause the issue, the possible solution is:

  1. delete all the org.eclipse.* folders under $HOME/Downloads/Talend_Full_Studio_p2_repository-20200219_1130-V7.3.1/configuration
  2. re-try the cmdline command

Thanks​

CCaprano1678813540
Contributor
Contributor
Author

Hi @Aiming Chen​ ,

thanks for the hint, unfortunately this did not work 😕

I executed

rm -Rf ~/Downloads/Talend_Full_Studio_p2_repository-20200219_1130-V7.3.1/configuration/org.eclipse.*

 

Would you have another hint?

 

Thanks 🙂

Anonymous
Not applicable

Hello @Christoph Caprano​ ,

As a test, could you please try if you can run the studio under the folder ~/Downloads/Talend_Full_Studio_p2_repository-20200219_1130-V7.3.1 directly?

also check if you have already setup a license file under the folder ~/Downloads/Talend_Full_Studio_p2_repository-20200219_1130-V7.3.1?