Archive for September, 2008

Java Exceptions Hierarchy

In Java, exceptions are objects, when you throw an exception, you are throwing an object.  You can’t throw just any object as an exception as Exceptions needs to be in the inheritance hierarchy of Throwable.  Throwable is the base class for the Exceptions. The Hierarchy is like below.  Throwable is the base class.  Error and [...]

Failed to open stream: no such file or directory in PHP

Failed to open stream: no such file or directory in PHP This is usually a very common issue.  The same code will work in the local machine and it often fails when gets uploaded to the Actual web server. Possible Causes The File might be missing. The file might not have the read access The [...]

Cursor Is Closed Exception In Java – Fixed (Resolved)

In java, when there is a stored procedure call which returns the Cursor as a ResultSet, there is a possibility that, Cursor is closed exception might occur. Here is the stack trace which shows that. java.sql.SQLException: Cursor is closed. at oracle.jdbc.driver.T4CResultSetAccessor.getCursor(T4CResultSetAccessor.java:323) at oracle.jdbc.driver.ResultSetAccessor.getObject(ResultSetAccessor.java:85) at oracle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:1401) at com.ibm.ws.rsadapter.jdbc.WSJdbcCallableStatement.getObject(WSJdbcCallableStatement.java:443) Solution to over come the “Cursor is closed” [...]