Custom Exception with same name as JDK Exception
If I create an exception example IOException, will there be an conflict with the existion IOException of JDK?In a discussion the qustion popped up for a quick response and most us had it. But if...
View ArticleSoap request from JavaFX
I was searching on net to know how to send soap request from JavaFX. I could not get a straight answer. While looking at the JavaFX 1.0 API, I did find java.io.http.HttpRequest class to send HTTP...
View ArticleFactory Method Pattern - Misconception
This post does not talk about the Factory Method Pattern, but I would like to discuss about from where it starts. Recently I had the privilege to attend a training on the topic. I do not miss...
View ArticleOne or more local transaction resources were rolled back during the cleanup...
You might have seen the following statement in your log file sometimes:[9/11/09 10:26:06:349 CEST] 00000033 LocalTranCoor W WLTC0032W: One or more local transaction resources were rolled back during...
View ArticleError "Document could not be opened"
When we try to open any of the jasper reports in pdf, csv or rtf format, it results in an error saying that the document can't be opened. However, when we first save the report then it can be opened....
View ArticleThings to remember while developing web application (Some Practices)
Below is a list of technical and non-technical high level points to be taken care. There can be definitely many more. (For exhaustive web application security specific guidelines please refer to...
View ArticleOpen Source Crawler in JAVA
In case you have the need to crawl the web to get information. I would suggest few:Smart and Simple Web Crawler - https://crawler.dev.java.net/Websphnix -...
View ArticleStruts 2 + Hibernate CRUD application
We had a requirement to provide some CRUD based screens to perform administrative task.After doing some searching I found a tool.Our requirement changed so have not used it, but thought of sharing the...
View ArticleBehavior of AUTO INCREMENT column when max value has reached
I was looking on the net for the query that "What will happen in an InnoDB MySQL table with column of type AUTO INCREMENT if the max value has reached?"There is so much of information on the net...
View ArticleCore Dump and Stack Tace on Linux of a Java process
Steps for taking the Core DumpRun the command # ps -ef | grep javaget the process id of the java process you want to get the core dump.Next run the command # gdb --pid=Next gdb>gcoreThis should...
View Articlecom.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect...
This error may crop up if you are doing any DML operation through IN clause.Example String sql = 'update table set status = true where id in (?)'If you are using the above statement as part of the...
View Articlejava.lang.AbstractMethodError:...
If you are facing this issue than most probably have a wrong version of XercesImpl.jar fileI had a 2.0.2 version, which causing conflict.Replacing it with 2.8.1 resolved the issue.
View Article301 Moved Permanently, URLConnection and HTTPURLConnection
If a website has applied a redirection from "BaseUrl" to "BaseUrl/" then what you see the response by hitting "" in your browser "301 Moved Permanently" and redirected to "/"How to deal this situation...
View Articlejava.lang.nosuchmethoderror org.objectweb.asm.classwriter
I was working on a RESTFul Service based project. Recently I migrated the plain JDBC DAO layer to the hibernate based orm layer. As a first step I migrated one of the DAO class. When I deployed the...
View Articleorg.hibernate.HibernateException: Unable to instantiate default tuplizer...
This Exception during the maven build in an hibernate based project could come due to various reasons.Primarily one should look into the complete stack trace. The further exception usually do give clue...
View ArticleContext initialization failed - java.lang.NoClassDefFoundError:...
I received the following error while running a Spring and Hibernate applicationContext initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name...
View ArticleHibernate: a different object with the same identifier value was already...
People working with Hibernate might be familiar with the below error.org.springframework.orm.hibernate3.HibernateSystemException:a different object with the same identifier value was alreadyassociated...
View ArticleHibernate + Spring + MySql: Cannot convert value '0000-00-00 00:00:00' from...
When I was trying to load an Hibernate object, I received the following error:nested exception is java.sql.SQLException: Cannot convert value '0000-00-00' from column 4 to TIMESTAMP. at...
View ArticleWhat is Web 2.0?
I know the article is too late. We are done with all type of definitions and I am now talking about it.I planned to write a five second explanation is because I keep bumping into this question and...
View ArticleUnable to load default SVN client
While installing the subversion plugin Subclipse in the Eclipse IDE I came across a problem. Subclipse uses "JavaHL (JNI)" to interface with subversion by default.Initially I was getting the following...
View Article