Forum Stats

  • 3,768,492 Users
  • 2,252,799 Discussions
  • 7,874,598 Comments

Discussions

How to solve connexion problem with SGBD in java?

I have a program with java language it sometimes work and sometimes i show me this exception how to solve it?

Exception in thread "main" java.sql.SQLRecoverableException: IO Error: Connection reset

        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:498)

        at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:553)

        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:254)

        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)

        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528)

        at java.sql.DriverManager.getConnection(DriverManager.java:582)

        at java.sql.DriverManager.getConnection(DriverManager.java:185)

        at execute_parsing_xml.ParsingXML.ordonne(ParsingXML.java:143)

        at execute_parsing_xml.ParsingXML.main(ParsingXML.java:1041)

Caused by: java.net.SocketException: Connection reset

        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)

        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

        at oracle.net.ns.DataPacket.send(DataPacket.java:210)

        at oracle.net.ns.NetOutputStream.flush(NetOutputStream.java:230)

        at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:321)

        at oracle.net.ns.NetInputStream.read(NetInputStream.java:268)

        at oracle.net.ns.NetInputStream.read(NetInputStream.java:190)

        at oracle.net.ns.NetInputStream.read(NetInputStream.java:107)

        at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:124)

        at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:80)

        at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1137)

        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:350)

        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227)

        at oracle.jdbc.driver.T4CTTIoauthenticate.doOSESSKEY(T4CTTIoauthenticate.java:407)

        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:416)

        ... 8 more

Tagged: