Four Stars

tWebService and temporary folders

Hello Community,

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:


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(
	at org.talend.webservice.helper.ServiceDiscoveryHelper.<init>(
	at org.talend.webservice.helper.ServiceDiscoveryHelper.<init>(
	at local_project.sendcustomer_0_1.SendCustomer.tHashInput_2Process(
	at local_project.sendcustomer_0_1.SendCustomer.tHashInput_1Process(
	at local_project.sendcustomer_0_1.SendCustomer.tMSSqlInput_1Process(

I guess it is related to parallel jobs execution. There is similar topic here, but no solution.

I also noticed that tWebService is not deleting temporary files, there are a lot of wsdlxxxxxxxxxxxxxxx folders in Temp.

It happens even if I specify temp folder in advanced properties.


Talend Open Studio 6.3.1

Windows Server 2012

JDK 1.8

Runtime is running as windows service


Any advice how to deal with this issues (both exception and not removed temp files)?


Thank you in advance!


  • Data Integration
  • ESB

Re: tWebService and temporary folders


The exception is random?

Are you excecuting in parallel multi instances of twebservice? This issue is probably caused by calling a webservice in parallel.

Have you tried to disable the parallel call and use just one thread to see if it works?

Best regards


Four Stars

Re: tWebService and temporary folders

Hi Sabrina,
Thank you for your reply.

The exception is random, right. I do not know what you mean with parallel call.

Scenario, transfer data from database to webservice call:

1. Load data from database (example: students), for each row invoke web service call.
2. OnSubJobOK triggers load other data (example: exams for those students) and for each row invoke web service call.

So I have tWebService1 on 1st part and tWebService2 on second.
Four Stars

Re: tWebService and temporary folders

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.