One Star

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.

  • SDI
11 REPLIES
Two Stars

Re: Problem of file integration in a project

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
One Star

Re: Problem of file integration in a project

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.
Two Stars

Re: Problem of file integration in a project

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
One Star

Re: Problem of file integration in a project

The same errors display.
Regards,
Louberlu.
One Star

Re: Problem of file integration in a project

Hi,
Do someone knowwhy it doesn't work?
Regards,
Louberlu.
Two Stars

Re: Problem of file integration in a project

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
One Star

Re: Problem of file integration in a project

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.
Two Stars

Re: Problem of file integration in a project

Use "Post reply" link to attach screenshot..
Vaibhav
One Star

Re: Problem of file integration in a project

It's okay.
Louberlu.
Two Stars

Re: Problem of file integration in a project

Whether you are able to execute the project inside TOS?
Try debugging one by one... i.e. disable parts of job and execute which is to be tested...
Vaibhav
One Star

Re: Problem of file integration in a project

Ok, i'll try. Thanks.