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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem of file integration in a project

Hi,
I use Talend Open Studio SpatialBeta version 4.0.1 and i imported a Talend project. This project went with a zip file which contains two folders: "lib" and "main". The folder "main" contains some other forder ("a_modifier", "src", "items") and the .bat file which contains:

%~d0
cd %~dp0
java -Xms256M -Xmx1024M -cp classpath.jar; fmprojet.main_0_1.main --context=Default %*


I modify Default.properties which is in the folder "a_modifier\main_0_1\contexts":

#
#Tue Mar 20 10:08:01 CET 2012
zip_dir="C:\grace\zip"
process_dir="C:\grace\archives"
#zip_dir= chemin vers le zip à intégrer
#process_dir= nom du dossier dans lequel est installé le process


When i execute the .bat file, this errors display:

Could NOT find the context DEFAULT
Exception IN component tFileList_1
java.lang.NullPointerException
at java.io.File.<277>
at fmprojet.main_0.1.main. ...


I don't know what is the problem. Could you help me?
Thank you,
Louberlu.

Labels (3)
11 Replies
Anonymous
Not applicable
Author

Error says that Default context is not available...
What is the reason for modifying original property file, what you want to achieve in this?
What are the contents of original Default.properties file - This file contains variables and its values which are defined and used by your job during execution. You can't modify this file, but can just change the values of variables inside it.
vaibhav
Anonymous
Not applicable
Author

I changed the variable zip_dir and process_dir.
The original Default.properties file contains:
#
#Tue Mar 20 10:08:01 CET 2012
zip_dir=/home/sbe/data/grace/a_modifier/zip/
process_dir=/home/sbe/data/grace/a_modifier/process
#zip_dir= chemin vers le zip à intégrer
#process_dir= nom du dossier dans lequel est installé le process

Regards,
Louberlu.
Anonymous
Not applicable
Author

Remove last slash (/) in zip_dir and try executing again
error is null pointer exception in the path provided. Your tFileInput component is not able to get the file from this directory path.
Vaibhav
Anonymous
Not applicable
Author

The same errors display.
Regards,
Louberlu.
Anonymous
Not applicable
Author

Hi,
Do someone knowwhy it doesn't work?
Regards,
Louberlu.
Anonymous
Not applicable
Author

Hi,
Whether the issue is resolved or still you are facing the issue...
Can you post a job screenshot and describer what you are trying to achieve through the job?
Vaibhav
Anonymous
Not applicable
Author

Hi,
I think maybe, it doesn't work because i didn't understand the usefulness. There is a job screenshot. This is a project which exists and i have to implement it. In the instruction, it says how i can use this zip but i don't know when i have to do the processing of files.



Regards,
Louberlu.
Anonymous
Not applicable
Author

Use "Post reply" link to attach screenshot..
Vaibhav
Anonymous
Not applicable
Author

It's okay.
Louberlu.