You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Gaurav <ga...@gmail.com> on 2017/12/21 06:14:31 UTC

Unable to write to database(sql server 2012) using log4j2

Hi,

Getting the error:

Unable to write to database 
AppenderLoggingException: Failed to commit transaction logging event or flushing buffer.

Caused by: 

com.microsoft.sqlserver.jdbc.SQLServerException: An error occurred while reading the value from the stream object. Error: "java.io.IOException: Stream closed"

Details:
log4j2 2.10.0
sql server 2012
database driver: sqljdbc4

P.S. Connection to database works. Log4j2 unable to write to database.

Please help,

Thanks