<?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: Context variables when deploying OSGI bundle for tRESTrequest component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-variables-when-deploying-OSGI-bundle-for-tRESTrequest/m-p/2312921#M143489</link>
    <description>&lt;P&gt;From the docu...&lt;/P&gt;&lt;P&gt;https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/X3E76BTSITWdHqP_IJ1UxQ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was not a context variable what I was using but a configuration variable... nevertheless, if the behaviour is that this cfg variables override the context ones... obviously is not going to work in runtime. A pity because it's quite anoying to have to hardcode endpoints.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 09:27:54 GMT</pubDate>
    <dc:creator>MBroto</dc:creator>
    <dc:date>2020-11-03T09:27:54Z</dc:date>
    <item>
      <title>Context variables when deploying OSGI bundle for tRESTrequest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables-when-deploying-OSGI-bundle-for-tRESTrequest/m-p/2312920#M143488</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I created this very simple job which basically imports a ssh certificate, performs a connection to an endpoint and returns this response. Running from local dev env works fine but when deploying to ESB runtime, gives me this exception (just at launch time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: request is not provided&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at aytohuesca.test_0_1.test.tRESTRequest_1_LoopProcess(test.java:1697)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at aytohuesca.test_0_1.test.tSetKeystore_1Process(test.java:1007)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at aytohuesca.test_0_1.test.runJobInTOS(test.java:2989)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.talend.esb.job.controller.internal.SimpleJobTask$JobRunner.run(SimpleJobTask.java:81)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.talend.esb.job.controller.internal.SimpleJobTask.run(SimpleJobTask.java:63)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Thread.run(Thread.java:834)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my job like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AFzJLAA1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128526iBBD60124DD7BE3A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AFzJLAA1.png" alt="0693p00000AFzJLAA1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi have a host+port in context.endpoint but nevertheless I overrode it in /etc/test.cfg and works fine (the override), because at start, message component shows it properly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AFzJVAA1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138083i35FE0493747EB24D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AFzJVAA1.png" alt="0693p00000AFzJVAA1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, I cannot navigate to the resource &lt;A href="http://localhost:8040/rss" target="_blank"&gt;http://localhost:8040/rss&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AFzJaAAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139986i08BF565C6E407E32/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AFzJaAAL.png" alt="0693p00000AFzJaAAL.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried specifying in cfg file host, port... but didn't work neither (&lt;A href="http://localhost:8040/rss" target="_blank"&gt;http://localhost:8040/rss&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:8088" target="_blank"&gt;http://localhost:8088&lt;/A&gt;...&lt;/P&gt;)&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run it from Studio, it deploys properly in the desired url (set from context), but I have been completely unable to deploy it from karaf and furthermore, I have this exception that I suspect has to do with the probem of karaf not setting up the endpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone that could help, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables-when-deploying-OSGI-bundle-for-tRESTrequest/m-p/2312920#M143488</guid>
      <dc:creator>MBroto</dc:creator>
      <dc:date>2024-11-16T01:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables when deploying OSGI bundle for tRESTrequest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables-when-deploying-OSGI-bundle-for-tRESTrequest/m-p/2312921#M143489</link>
      <description>&lt;P&gt;From the docu...&lt;/P&gt;&lt;P&gt;https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/X3E76BTSITWdHqP_IJ1UxQ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was not a context variable what I was using but a configuration variable... nevertheless, if the behaviour is that this cfg variables override the context ones... obviously is not going to work in runtime. A pity because it's quite anoying to have to hardcode endpoints.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 09:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables-when-deploying-OSGI-bundle-for-tRESTrequest/m-p/2312921#M143489</guid>
      <dc:creator>MBroto</dc:creator>
      <dc:date>2020-11-03T09:27:54Z</dc:date>
    </item>
  </channel>
</rss>

