Monthly Archives: January 2008

Problem- java.lang.NoClassDefFoundError: javax/el/ValueExpression Tomcat

Problem- java.lang.NoClassDefFoundError: javax/el/ValueExpression Possibly you are using different set of jars at runtime and compile time. In case of tomcat you might be using some of the jars. Try adding jars like el-api.jar, javaee.jar, jstl-1.2.jar from your development environment to the Tomcat/common/lib folder, one by one and it should solve… Read more »

org.hibernate.TransientObjectException Revisited

      14 Comments on org.hibernate.TransientObjectException Revisited

This is continuation of my earlier post on org.hibernate.TransientObjectException. Let me write the scenario again <class name=”com.xxx.A” table=”A” schema=”TESTSCHEMA”> <id name=”aId” type=”java.lang.Long”> <column name=”A_ID” precision=”29″ scale=”0″ /> </id> ………………….. some more mapping elements ………………….. ………………….. <many-to-one name=”bId” class=”com.xxx.B” fetch=”select”> <column name=”B_ID” precision=”29″ scale=”0″ /> </many-to-one> ………………….. A is referring to… Read more »

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 »