I was testing some piece of code for calculation of new date on the basis of a given pattern and the specified date.
I wrote a method to automate the test cases to generates those patterns and calculate the new date for each date of the specified date of the range of years.
Since there were around 1 million pattern test cases are possible, so I want to insert this data in database for any future reference.
After creating a pattern I was inserting data of the pattern and the calculation date along with the calculated date.
It was working fine.
I was prepare to hit the start button now, after testing different patterns individually.
I hit the run button and it started its executions, but in the middle, I got this error.
I am not sure about this error, why I got this. I looked database also, since looking at the trace, it seems that the database connection is not available.
But database was up, so it looks strange to me.
Is it possible that, I am firing so many insert queries in such a small interval, that it denied the insert statements.
If anyone faced such an error, please reply back.
I wrote a method to automate the test cases to generates those patterns and calculate the new date for each date of the specified date of the range of years.
Since there were around 1 million pattern test cases are possible, so I want to insert this data in database for any future reference.
After creating a pattern I was inserting data of the pattern and the calculation date along with the calculated date.
It was working fine.
I was prepare to hit the start button now, after testing different patterns individually.
I hit the run button and it started its executions, but in the middle, I got this error.
java.sql.SQLException: Listener refused the connection with the following error:ORA-12516, TNS:listener could not find available handler with matching protocol stack at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:200) at com.ofss.fc.infra.jdbc.FCRJConnection.openConnection(FCRJConnection.java:292) at com.ofss.fc.infra.jdbc.FCRJConnection.getConnection(FCRJConnection.java:241) at com.ofss.fc.junit.domain.dda.entity.account.facility.instruction.RecurrencePatternAutomation.runQuery(RecurrencePatternAutomation.java:392) at com.ofss.fc.junit.domain.dda.entity.account.facility.instruction.RecurrencePatternAutomation.createRecurrencePattern(RecurrencePatternAutomation.java:149) at com.ofss.fc.junit.domain.dda.entity.account.facility.instruction.RecurrencePatternAutomation.main(RecurrencePatternAutomation.java:83)Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:ORA-12516, TNS:listener could not find available handler with matching protocol stack at oracle.net.ns.NSProtocol.connect(NSProtocol.java:386) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1054) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308) ... 11 more
I am not sure about this error, why I got this. I looked database also, since looking at the trace, it seems that the database connection is not available.
But database was up, so it looks strange to me.
Is it possible that, I am firing so many insert queries in such a small interval, that it denied the insert statements.
If anyone faced such an error, please reply back.
Comments
Post a Comment