Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Exception in component talendStats_FILE

hi all,
I've created a job on a local machine and exported script on a different one.
Path (absolute) are not the same on both and when i've launched .sh I've encountered this exception :
./prod_integration303_run.sh
Exception in component talendStats_FILE
java.io.FileNotFoundException: /home/raulier/Bureau/r303/stats_file.txt (No such file or directory)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at qfth90_prod.deletefilewherenotdatetoday_0_1.deleteFileWhereNotDateToday.talendStats_STATSProcess(deleteFileWhereNotDateToday.java:2719)
.. etc

Ok ... but where does "component talendStats_FILE" come from ? 0683p000009MACn.png
If i have a look in job's code :
public void talendLogs_LOGSProcess {
....
String fileName_talendLogs_FILE = (new java.io.File(
"/home/raulier/Bureau/r303" + "/" + "logs_file.txt"))
.getAbsolutePath().replace("\\", "/");

But in my Pro environment it's not same path ....
so it seems that when i've imported item from my Dev env to My prod env , I've also have imported this part of code!
Is it a bug ?
In which source file can I modify directly the code (.item or .properties) if I can ?
Perhaps i 've checked a Stats log option in one of my dev job but I've got a lot in that application ... 0683p000009MACn.png
thanks for your help !
regards
laurent
"Talend Open Studio"
Version: 3.1.4
Build id: r29781-20090916-0502
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

ok , it's my fault
I had checked 'use project setting' in my dev environment and ... forget it 0683p000009MACn.png
When i've imported item from dev to prod I've also imported those parameters !
laurent
++

View solution in original post

1 Reply
Anonymous
Not applicable
Author

ok , it's my fault
I had checked 'use project setting' in my dev environment and ... forget it 0683p000009MACn.png
When i've imported item from dev to prod I've also imported those parameters !
laurent
++