MyEclipse Hibernate Spring tutorial – Managing Hibernate transaction in Spring

Spring transaction management, Hibernate transaction management in Spring There was a problem/defect in the MyEclipse tutorial on Hibernate Spring. It was not a major problem. The tutorial demonstrates the Spring and Hibernate functionality pretty well. The only problem was that the code does seems to work properly. Because of absence… Read more »

10061 error while installing MySQL on Windows Vista

      1 Comment on 10061 error while installing MySQL on Windows Vista

I really had a very tough time today while installing MySQL on vista. All the steps in the installation are simple and self-explanatory. I just want to mention two things from my experience Before starting installation 1) If you want to install MySQL after uninstall, delete your current MySQL fully… Read more »

org.hibernate.TransientObjectException: object references an unsaved transient instance – save the transient instance before flushing:

I was getting this error today. org.hibernate.TransientObjectException: object references an unsaved transient instance – save the transient instance before flushing:This is the problemTable A was referring to the talbe B using a foreign key hbm.xml for A looked like this <class name=”com.xxx.A” table=”A” schema=”TESTSCHEMA”> <id name=”aId” type=”java.lang.Long”> <column name=”A_ID” precision=”29″… Read more »

ORA-01747: invalid user.table.column, table.column, or column specification

Today I got this error. ORA-01747: invalid user.table.column, table.column, or column specification. There could be many reasons why you can get this error. But the basic reason is the query which is finally getting executed to your database is wrong in some way. In my case, I had a column… Read more »

org.hibernate.QueryParameterException: could not locate named parameter

When you query the database in Hibernate using NamedQuery you may run into this error org.hibernate.QueryParameterException: could not locate named parameter [parm1] Chances are that you are either trying to set a parmeter to the query which infact doesn’t exist in your query. For example you are trying to do… Read more »

synchronization in DWR

      3 Comments on synchronization in DWR

AJAX(Asynchronous JavaScript + XML) got its name because of its ability to interact asynchronously. This makes Ajax famous for the Rich Internet Applications aka RIAs. But sometimes you purposefully need synchronization in your code. I needed it once. I was calling the same business method consecutively from my ajax code… Read more »

addOptions problem in DWR

      6 Comments on addOptions problem in DWR

Have you ever wondered why the addOptions is not working in DWR even after reading the specs carefully. It happened to me recently. First, of all, the API or specs or documentation for DWR(addOptions Documentation) are not detailed and sufficient. Especially, for the new and impatient learners like me, who… Read more »

JRun Error – Exception parsing the TLD null : The tag function on line 14 is not a valid TLD element

Problem – Last week we had hard time with this problem. Our Web App was running all fine on Tomcat 5. But when we deployed our application on JRun we got Exception parsing the TLD null : The tag function on line 14 is not a valid TLD element Solution:… Read more »

Hibernate Error – Identifier of an instance altered from 1 to 1

Problem:-Getting the error ” identifier of an instance of com.sample.db.Sample altered from 1 to 1″ Solution:– Check whether the java type of the identifier field in the Data Object, the type of the field in the hibernate xml file and the type of the column in the database are compatible… Read more »