Announcement Announcement Module
Collapse
No announcement yet.
Connection reset Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Connection reset

    Hi All,
    While my application is running if any network problem occurs, I am getting the "Connection reset" exception and batch is stopped.
    Any idea to handle this exception without stopping my batch. Can we able to retry this exception?

    I have attached the exception log
    <code>

    Caused by: org.hibernate.TransactionException: JDBC begin failed:
    at org.hibernate.transaction.JDBCTransaction.begin(JD BCTransaction.java:96)
    at org.hibernate.impl.SessionImpl.beginTransaction(Se ssionImpl.java:1354)
    at xyz.batch.core.launch.RunTaskInstructionPoller.ret rieveRunTaskInstructionDo(RunTaskInstructionPoller .java:308)
    ... 2 more
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.t erminate(SQLServerConnection.java:1368)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.t erminate(SQLServerConnection.java:1355)
    at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuf fer.java:1532)
    at com.microsoft.sqlserver.jdbc.TDSReader.readPacket( IOBuffer.java:3274)
    at com.microsoft.sqlserver.jdbc.TDSCommand.startRespo nse(IOBuffer.java:4437)
    at com.microsoft.sqlserver.jdbc.TDSCommand.startRespo nse(IOBuffer.java:4389)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection$1 ConnectionCommand.doExecute(SQLServerConnection.ja va:1457)
    at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IO Buffer.java:4026)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.e xecuteCommand(SQLServerConnection.java:1416)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.c onnectionCommand(SQLServerConnection.java:1462)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.s etAutoCommit(SQLServerConnection.java:1610)
    at org.apache.commons.dbcp.DelegatingConnection.setAu toCommit(DelegatingConnection.java:371)
    at org.apache.commons.dbcp.PoolingDataSource$PoolGuar dConnectionWrapper.setAutoCommit(PoolingDataSource .java:328)
    at org.hibernate.transaction.JDBCTransaction.begin(JD BCTransaction.java:91)
    ... 4 more

    </code>

    I am using Spring batch 2.1, Hibernate, Sql server 2005.

    Thanks for your reply in advance.
Working...
X