<?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 tWebService and temporary folders in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323502#M93324</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt; 
&lt;P&gt;I have several jobs running in Talend Runtime (invoked by route/cTimer or service). In most cases everything work perfect, but sometimes I have exception:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Exception in component tWebService_2
java.lang.SecurityException: Unable to create temporary directory,C:\Users\*******\AppData\Local\Temp\wsdl149493219078118022
	at org.talend.webservice.helper.ServiceDiscoveryHelper.createTempWsdlDir(ServiceDiscoveryHelper.java:101)
	at org.talend.webservice.helper.ServiceDiscoveryHelper.&amp;lt;init&amp;gt;(ServiceDiscoveryHelper.java:89)
	at org.talend.webservice.helper.ServiceDiscoveryHelper.&amp;lt;init&amp;gt;(ServiceDiscoveryHelper.java:77)
	at local_project.sendcustomer_0_1.SendCustomer.tHashInput_2Process(SendCustomer.java:8915)
	at local_project.sendcustomer_0_1.SendCustomer.tHashInput_1Process(SendCustomer.java:6978)
	at local_project.sendcustomer_0_1.SendCustomer.tMSSqlInput_1Process(SendCustomer.java:3554)&lt;/PRE&gt; 
&lt;P&gt;I guess it is related to parallel jobs execution. There is similar topic &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpWfCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Unable-to-create-temporary-directory/td-p/102668&lt;/A&gt;, but no solution.&lt;/P&gt; 
&lt;P&gt;I also noticed that tWebService is not deleting temporary files, there are a lot of wsdlxxxxxxxxxxxxxxx folders in Temp.&lt;/P&gt; 
&lt;P&gt;It happens even if I specify temp folder in advanced properties.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Talend Open Studio 6.3.1&lt;/P&gt; 
&lt;P&gt;Windows Server 2012&lt;/P&gt; 
&lt;P&gt;JDK 1.8&lt;/P&gt; 
&lt;P&gt;Runtime is running as windows service&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any advice how to deal with this issues (both exception and not removed temp files)?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advance!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:46:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:46:23Z</dc:date>
    <item>
      <title>tWebService and temporary folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323502#M93324</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt; 
&lt;P&gt;I have several jobs running in Talend Runtime (invoked by route/cTimer or service). In most cases everything work perfect, but sometimes I have exception:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Exception in component tWebService_2
java.lang.SecurityException: Unable to create temporary directory,C:\Users\*******\AppData\Local\Temp\wsdl149493219078118022
	at org.talend.webservice.helper.ServiceDiscoveryHelper.createTempWsdlDir(ServiceDiscoveryHelper.java:101)
	at org.talend.webservice.helper.ServiceDiscoveryHelper.&amp;lt;init&amp;gt;(ServiceDiscoveryHelper.java:89)
	at org.talend.webservice.helper.ServiceDiscoveryHelper.&amp;lt;init&amp;gt;(ServiceDiscoveryHelper.java:77)
	at local_project.sendcustomer_0_1.SendCustomer.tHashInput_2Process(SendCustomer.java:8915)
	at local_project.sendcustomer_0_1.SendCustomer.tHashInput_1Process(SendCustomer.java:6978)
	at local_project.sendcustomer_0_1.SendCustomer.tMSSqlInput_1Process(SendCustomer.java:3554)&lt;/PRE&gt; 
&lt;P&gt;I guess it is related to parallel jobs execution. There is similar topic &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpWfCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Unable-to-create-temporary-directory/td-p/102668&lt;/A&gt;, but no solution.&lt;/P&gt; 
&lt;P&gt;I also noticed that tWebService is not deleting temporary files, there are a lot of wsdlxxxxxxxxxxxxxxx folders in Temp.&lt;/P&gt; 
&lt;P&gt;It happens even if I specify temp folder in advanced properties.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Talend Open Studio 6.3.1&lt;/P&gt; 
&lt;P&gt;Windows Server 2012&lt;/P&gt; 
&lt;P&gt;JDK 1.8&lt;/P&gt; 
&lt;P&gt;Runtime is running as windows service&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any advice how to deal with this issues (both exception and not removed temp files)?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advance!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323502#M93324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: tWebService and temporary folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323503#M93325</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;The exception is random?&lt;/P&gt; 
&lt;P&gt;Are you excecuting in parallel multi instances of twebservice? This issue is probably caused by calling a webservice in parallel.&lt;/P&gt; 
&lt;P&gt;Have you tried to disable the parallel call and use just one thread to see if it works?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 08:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323503#M93325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: tWebService and temporary folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323504#M93326</link>
      <description>Hi Sabrina,&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;The exception is random, right. I do not know what you mean with parallel call.&lt;BR /&gt;&lt;BR /&gt;Scenario, transfer data from database to webservice call:&lt;BR /&gt;&lt;BR /&gt;1. Load data from database (example: students), for each row invoke web service call.&lt;BR /&gt;2. OnSubJobOK triggers load other data (example: exams for those students) and for each row invoke web service call.&lt;BR /&gt;&lt;BR /&gt;So I have tWebService1 on 1st part and tWebService2 on second.</description>
      <pubDate>Mon, 22 May 2017 12:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323504#M93326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T12:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: tWebService and temporary folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323505#M93327</link>
      <description>Additional info here, it might happen that other Jobs with tWebService component are running in parallel. Jobs are started from Service and service is responding on external requests.</description>
      <pubDate>Mon, 22 May 2017 13:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323505#M93327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: tWebService and temporary folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323506#M93328</link>
      <description>&lt;P&gt;I managed to solve both issues, so just to share solution if someone find it useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, exception was caused by parallel execution. I wasn't able to avoid parallel execution, but I was able to specify UNIQUE temp folder for each tWebService component as:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"/tmp/" + pid+ "/" + currentComponent&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second issue with too many temp folders was caused by standard behavior of java temp files. Folders was deleted once I stop runtime. I don't plan to restart my runtime at all, so in PreJob I create temp folder "/tmp/" + pid&amp;nbsp;and delete it in PostJob.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone will find this useful.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 13:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWebService-and-temporary-folders/m-p/2323506#M93328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-04T13:22:07Z</dc:date>
    </item>
  </channel>
</rss>

