<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API call job failing as executable batch file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375279#M144322</link>
    <description>&lt;P&gt;Hello Scott,&lt;/P&gt; 
&lt;P&gt;There is a missing jar issue in your job. It could refer to axws-api-x.x.jar.&lt;/P&gt; 
&lt;P&gt;Did you install both jdk 1.6 and 1.8 on your computer?&lt;/P&gt; 
&lt;P&gt;Could you please set Java 1.8 bin path in path variable and modify .ini (for example: TOS_DI-win64-x86) file to force Talend to plug with Java 1.8?&lt;/P&gt; 
&lt;P&gt;Please add these lines in your .ini file :&lt;/P&gt; 
&lt;P&gt;-vm C:\Program Files\Java\jdk1.8.0_45\bin\javaw.exe&lt;BR /&gt;-vmargs&lt;BR /&gt;-Dosgi.requiredJavaVersion=1.8&lt;/P&gt; 
&lt;P&gt;Let us know if it is OK with you.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 09:56:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-05T09:56:01Z</dc:date>
    <item>
      <title>API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375271#M144314</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job that makes an API call using tRESTClient. It works perfectly fine when run from within TOS. However, when I run it as an executable batch file, it fails.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The first step of the job involves truncating a database table and that works fine when I run the executable. It seems to be the next phase of the job involving the API call which doesn't work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any suggestions appreciated?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375271#M144314</guid>
      <dc:creator>sleck75</dc:creator>
      <dc:date>2024-11-16T07:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375272#M144315</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error message" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzkf.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137187i919485E55824264F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzkf.jpg" alt="0683p000009Lzkf.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;error message&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LLYhAAO"&gt;@ssunday&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi,&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I have a job that makes an API call using tRESTClient. It works perfectly fine when run from within TOS. However, when I run it as an executable batch file, it fails.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;The first step of the job involves truncating a database table and that works fine when I run the executable. It seems to be the next phase of the job involving the API call which doesn't work.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Any suggestions appreciated?&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Thanks,&lt;/P&gt; 
 &lt;P&gt;Scott&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LLYhAAO"&gt;@ssunday&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi,&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I have a job that makes an API call using tRESTClient. It works perfectly fine when run from within TOS. However, when I run it as an executable batch file, it fails.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;The first step of the job involves truncating a database table and that works fine when I run the executable. It seems to be the next phase of the job involving the API call which doesn't work.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Any suggestions appreciated?&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Thanks,&lt;/P&gt; 
 &lt;P&gt;Scott&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtVK"&gt;Capture.JPG&lt;/A&gt;</description>
      <pubDate>Fri, 31 Aug 2018 16:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375272#M144315</guid>
      <dc:creator>sleck75</dc:creator>
      <dc:date>2018-08-31T16:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375273#M144316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Regarding this online document about:&lt;A title="TalendHelpCenter:Building Jobs" href="https://help.talend.com/reader/QrWkwPvKmKybs~JNLeBt3Q/qbnEwchhptoTZ38u6UCV~g" target="_self" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Building Jobs&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;If the data service Job includes the &lt;SPAN class="ph uicontrol"&gt;tRESTClient&lt;/SPAN&gt; or &lt;SPAN class="ph uicontrol"&gt;tESBConsumer&lt;/SPAN&gt; component, and none of the Service Registry, Service Locator or Service Activity Monitor is enabled in the component, the data service Job can be built as &lt;SPAN class="ph uicontrol"&gt;OSGI Bundle For ESB&lt;/SPAN&gt; or &lt;SPAN class="ph uicontrol"&gt;Standalone Job&lt;/SPAN&gt;. With the Service Registry, Service Locator or Service Activity Monitor enabled, the data service Job including the &lt;SPAN class="ph uicontrol"&gt;tRESTClient&lt;/SPAN&gt; or &lt;SPAN class="ph uicontrol"&gt;tESBConsumer&lt;/SPAN&gt; component can only be built as &lt;SPAN class="ph uicontrol"&gt;OSGI Bundle For ESB&lt;/SPAN&gt;.&lt;/P&gt; 
&lt;P&gt;Are you able to successfully build your job as an OSGI Bundle For ESB?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 10:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375273#M144316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375274#M144317</link>
      <description>&lt;P&gt;Thanks Sabrina.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I was hoping to build as a standalone, if possible. In my tRestClient, both "Use Service Locator" and "Use Service Activity are Monitor" are disabled (can't see an option for "Service Registry?").&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there anything else I can try to get it to work as a standalone?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks again,&lt;BR /&gt;Scott&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 11:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375274#M144317</guid>
      <dc:creator>sleck75</dc:creator>
      <dc:date>2018-09-04T11:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375275#M144318</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Did you execute your job script batch file at the same server or different server with your studio?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 03:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375275#M144318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T03:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375276#M144319</link>
      <description>All on the same server, same database, etc. I've also tried with everything locally and experience the same issue on my laptop ie. runs fine in TOS, but not as an executable.
&lt;BR /&gt;
&lt;BR /&gt;I think it's something to do with my build, as a colleague can run identical jobs without issue. (albeit, they're using 6.5 and I'm using 7).
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Scott
&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Sep 2018 06:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375276#M144319</guid>
      <dc:creator>sleck75</dc:creator>
      <dc:date>2018-09-05T06:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375277#M144320</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt; 
&lt;P&gt;Did you follow up this online user guide about:&lt;A title="TalendHelpCenter:Building a Job as a standalone Job" href="https://help.talend.com/reader/QrWkwPvKmKybs~JNLeBt3Q/1oVtW93c3WYWATmboMyBFA" target="_self" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Building a Job as a standalone Job&lt;/A&gt; to build your job?&lt;/P&gt; 
&lt;P&gt;By default, when a Job is built, all the required jars are included in the.bat or .sh command.&lt;/P&gt; 
&lt;P&gt;For a complex Job that involves many Jars, the number of characters in the batch command may exceed the limitation of command length on certain operating systems.&lt;/P&gt; 
&lt;P&gt;To avoid failure of running the batch command due to this limitation, before building your Job, go to &lt;SPAN class="ph menucascade"&gt;&lt;SPAN class="ph uicontrol"&gt;Window&lt;/SPAN&gt; &amp;gt; &lt;SPAN class="ph uicontrol"&gt;Preferences&lt;/SPAN&gt; &amp;gt; &lt;SPAN class="ph uicontrol"&gt;Talend&lt;/SPAN&gt; &amp;gt; &lt;SPAN class="ph uicontrol"&gt;Import/Export&lt;/SPAN&gt;&lt;/SPAN&gt; and then select the &lt;SPAN class="ph uicontrol"&gt;Add classpath jar in exported jobs&lt;/SPAN&gt; check box to wrap the Jars in a classpath.jar file added to the built Job.&lt;/P&gt; 
&lt;P&gt;Additionally, are you using JDK 1.8?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 08:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375277#M144320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T08:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375278#M144321</link>
      <description>&lt;P&gt;Hi Sabrina,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yes, JDK 1.8.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried the change to the preferences you suggested, but getting this error:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceFeature&lt;BR /&gt;at java.base/java.lang.ClassLoader.defineClass1(Native Method)&lt;BR /&gt;at java.base/java.lang.ClassLoader.defineClass(Unknown Source)&lt;BR /&gt;at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)&lt;BR /&gt;at java.base/java.lang.ClassLoader.loadClass(Unknown Source)&lt;BR /&gt;at java.base/java.lang.ClassLoader.defineClass1(Native Method)&lt;BR /&gt;at java.base/java.lang.ClassLoader.defineClass(Unknown Source)&lt;BR /&gt;at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)&lt;BR /&gt;at java.base/java.lang.ClassLoader.loadClass(Unknown Source)&lt;BR /&gt;at float_api.stg_client_0_1.STG_CLIENT.tRESTClient_1Process(STG_CLIENT.java:1037)&lt;BR /&gt;at float_api.stg_client_0_1.STG_CLIENT.runJobInTOS(STG_CLIENT.java:2046)&lt;BR /&gt;at float_api.stg_client_0_1.STG_CLIENT.main(STG_CLIENT.java:1901)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: javax.xml.ws.WebServiceFeature&lt;BR /&gt;at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)&lt;BR /&gt;at java.base/java.lang.ClassLoader.loadClass(Unknown Source)&lt;BR /&gt;... 21 more&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also, the job is very simple: tRestClient ---&amp;gt; tExtractXMLField--&amp;gt; tLogRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks again,&lt;/P&gt; 
&lt;P&gt;Scott&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 09:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375278#M144321</guid>
      <dc:creator>sleck75</dc:creator>
      <dc:date>2018-09-05T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375279#M144322</link>
      <description>&lt;P&gt;Hello Scott,&lt;/P&gt; 
&lt;P&gt;There is a missing jar issue in your job. It could refer to axws-api-x.x.jar.&lt;/P&gt; 
&lt;P&gt;Did you install both jdk 1.6 and 1.8 on your computer?&lt;/P&gt; 
&lt;P&gt;Could you please set Java 1.8 bin path in path variable and modify .ini (for example: TOS_DI-win64-x86) file to force Talend to plug with Java 1.8?&lt;/P&gt; 
&lt;P&gt;Please add these lines in your .ini file :&lt;/P&gt; 
&lt;P&gt;-vm C:\Program Files\Java\jdk1.8.0_45\bin\javaw.exe&lt;BR /&gt;-vmargs&lt;BR /&gt;-Dosgi.requiredJavaVersion=1.8&lt;/P&gt; 
&lt;P&gt;Let us know if it is OK with you.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 09:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375279#M144322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T09:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: API call job failing as executable batch file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375280#M144323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im also getting same error when I tried to execute the batch in remote machine. Zulu 11 is the open jdk used in remote machine.&lt;/P&gt;
&lt;P&gt;When I tried to run the batch file from my local by setting JAVA_HOME to zulu 11 path, Im not getting any error. I need to test this from remote as the web service access is available only from remote.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 04:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-call-job-failing-as-executable-batch-file/m-p/2375280#M144323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-24T04:50:36Z</dc:date>
    </item>
  </channel>
</rss>

