Technologies
iTunes 10.5 High CPU (100%) – On Windows
iTunes 10.5 on windows might cause a high CPU usage. You would most likely see the iTunes consuming 50% and AppleMobileDeviceService.exe could consume another 50%. Resolution: In the command prompt enter the below command and RESTART your computer. netsh winsock reset
How to convert local timestamp to UTC in Java?
The below code can be used to convert the local timestamp to UTC in Java. Converting to any other timezone is very easy by changing the below UTC into the target timezone. public static String getCurrentUTCTimestamp() { SimpleDateFormat dateFormatter = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss z”); final TimeZone utc = TimeZone.getTimeZone(“UTC”); dateFormatter.setTimeZone(utc); return dateFormatter.format(new java.util.Date()); }
Convert DocX to Doc in Windows
If you have word 2007 or higher and would like to do a batch conversion of docx to any save as format of word, here is a wonderful article that helps you do that with few steps in the word using macros. It is not tough, it is very easy for anybody do this. So here [...]
org .apache .xerces .dom Deferred Document Impl getXmlStandalone Exception
java.lang.AbstractMethodError: org.apache.xerces.dom.DeferredDocumentImpl.getXmlStandalone()Z Resolution: This error occurs when there is NO xercesImpl.jar in the class path. Remove the xerces.jar from the classpath and add xercesimpl.jar in the classpath. Good luck!
A Program on your computer has corrupted your default search provider setting for Internet Explorer (IE 8) – Resolved
Most of the people those who upgraded to Internet Explorer 8 (IE might run into the issue of seeing the error message on the start up of the IE saying “A Program on your computer has corrupted your default search provider setting“. If it is an one time alert, then it might be fine. But [...]
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 [...]
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” [...]
