how to avoid printing of stacktrace on console?

One Star

how to avoid printing of stacktrace on console?

Hi
I dont want stacktrace to be printed on console in case of any excception.
How can i do it?
can anyone help me out?
Community Manager

Re: how to avoid printing of stacktrace on console?

Hello
Uncheck the stats & traces options on run job tab.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: how to avoid printing of stacktrace on console?

stats ans traces option is unchecked. the exception along with stacktrace is shown below.
Starting job ProcessMetaDataConfiguration at 15:42 04/08/2008.
Exception in component tOracleRow_2
java.sql.SQLException: ORA-01918: user 'PMF' does not exist
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)
at oracle.jdbc.driver.T4CStatement.execute_for_rows(T4CStatement.java:474)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1516)
at apostrophecheck.initial_script.Initial_Script.tFileInputDelimited_2Process(Initial_Script.java:516)
at apostrophecheck.initial_script.Initial_Script.tOracleConnection_2Process(Initial_Script.java:420)
at apostrophecheck.initial_script.Initial_Script.runJobInTOS(Initial_Script.java:2363)
at apostrophecheck.initial_script.Initial_Script.runJob(Initial_Script.java:2251)
at apostrophecheck.processmetadataconfiguration.ProcessMetaDataConfiguration.tRunJob_4Process(ProcessMetaDataConfiguration.java:1027)
at apostrophecheck.processmetadataconfiguration.ProcessMetaDataConfiguration.tFileInputDelimited_1Process(ProcessMetaDataConfiguration.java:947)
at apostrophecheck.processmetadataconfiguration.ProcessMetaDataConfiguration.runJobInTOS(ProcessMetaDataConfiguration.java:1455)
at apostrophecheck.processmetadataconfiguration.ProcessMetaDataConfiguration.main(ProcessMetaDataConfiguration.java:1243)
User pmf created successfuly
Database scripts executed successfully
ORA-01918: user 'PMF' does not exist
|Initial_Script
XML is validated against XSD
1 records are inserted successfully into process_type_defn table
5 records are inserted successfully into process_step_defn table
Job is completed successfully and process_type_defn & processs_step_defn tables are populated
Business Tables have been created successfully
History tables have been created successfully
5 Rows Inserted successfully into Status table
Job ProcessMetaDataConfiguration ended at 15:42 04/08/2008.

i dont want the entire stack trace. how to avoid it?
One Star

Re: how to avoid printing of stacktrace on console?

I've never seen the ability to disable the stack trace. If anywhere, look under Window->Preferences->Run/Debug and un-check the option for writing errors to the console. Give it a try.
However - in one place it says you're creating user 'pmf' (lower case) and when it throws the error, you're using user 'PMF' (upper case). Perhaps if they're both in the same case it'll run as it should?
One Star

Re: how to avoid printing of stacktrace on console?

I tried it that way. it's not giving me the required result.
And the cases are not a problem. Oracle stores everything in uppercase so it returns username in uppercase. that's not a problem.
is there any other way?