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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

DB close before log written

I use Post-Job to close my DB commection

I use a tLogCatcher to write logs into the same DB.

In my Job, the tLogCatcher subJob falis due to a connection close.

Anything wrong in the screenshot ?

 

tWarn_2 - tWarn failed to log message due to internal error: gettingstarted.job_delivery_010_importdatafiles_0_1.Job_Delivery_010_ImportDataFiles$TalendException
Exception in component tDBOutput_1 (Job_Delivery_010_ImportDataFiles)
java.sql.SQLNonTransientConnectionException: No operations allowed after connection closed.
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:73)
	at com.mysql.cj.jdbc.ConnectionImpl.getMetaData(ConnectionImpl.java:1183)
	at com.mysql.cj.jdbc.ConnectionImpl.getMetaData(ConnectionImpl.java:1167)
	at gettingstarted.job_delivery_010_importdatafiles_0_1.Job_Delivery_010_ImportDataFiles.tLogCatcher_1Process(Job_Delivery_010_ImportDataFiles.java:9178)
	at gettingstarted.job_delivery_010_importdatafiles_0_1.Job_Delivery_010_ImportDataFiles.tWarn_2Process(Job_Delivery_010_ImportDataFiles.java:4016)
	at gettingstarted.job_delivery_010_importdatafiles_0_1.Job_Delivery_010_ImportDataFiles.tDBInput_3Process(Job_Delivery_010_ImportDataFiles.java:2638)
	at gettingstarted.job_delivery_010_importdatafiles_0_1.Job_Delivery_010_ImportDataFiles.tWarn_6Process(Job_Delivery_010_ImportDataFiles.java:6986)
Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Found : due to a dynamic job call that ends the connection (even not shared) just before the tWarn.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,

 

    Could you please check the commit component and verify whether the connection close option has been selected there?

 

     Also could you please bring the Post Job Option to the last? Ideally it should work fine irrespective of the position but do not know whether there is any bug due to the position of the code.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

Found : due to a dynamic job call that ends the connection (even not shared) just before the tWarn.