Mate , your session gets closed because each one of your methods are marked as transactional,which in turn means that each method will use it's own session.As hibernate says..one session per...
Type: Posts; User: sushant.kapoor; Keyword(s):
Mate , your session gets closed because each one of your methods are marked as transactional,which in turn means that each method will use it's own session.As hibernate says..one session per...
This error is caused by the following line in your code:
Vacationtype vacationtype=vacationtypeDAO.getvacationtypeById(Integer.parseInt(request.getParameter("idvacationtype")));
It looks like...
Mate, the thing is that method code I gave you should work.Only thing you are missing is that idvacationtype.You need to have a value for this variable.Apparently you should have this value in your...
From what I understood from your post is that rather than setting up the values by yourself,you are looking
to get the VacationType object from the database itself to fetch the already inserted...
I actually think it is this line which might have caused the null pointer exception:
vt = v.getVacationtype();
I think this getter is throwing that exception.If that is really the case.
then...
Can you tell me which line in the create method threw this exception.It says line 42 , can you quickly check the line and tell me which statement of code is on line 42.It looks like some of your...
The problem is that your VacationType object is not initialized.You need to add some values to the VacationType object before you plan to use the getter on that object.
In an ideal situation you...
However , If you are really looking to set up log4j and want to see the parameterized SQL queries then you can set up the log4j using the following two lines of code.
...
I hope you must already be using the
hibernate.show_sql = true property in your hibernate configuration file.
Mate, Can you please elaborate what do you mean when you say HQL is not converting into SQL query ? If you want to see SQL queries with parameter values then you might have to configure log4j for...
Can you please update the status ? Were you able to solve the problem with my solution or are you still stuck with it ?
Great .......so it was the case of incompatible ASM libraries. Now ,you don't need to change the hibernate version.As far as the other exception is concerned....i think it may be because of missing...
Try switching to Hibernate 3.2.1 .Please post your project code,it'll be easier and quickest way to resolve the problem ?
I have attached the required Asm libraries for your convenience.
Mate, I think this error could also occur because of an incompatible version of asm jar.Remove the existing asm and add the asm-1.5.3.jar which is surely compatible with your cglib version you are...
the cglib jar which you have mentioned cglib-2.1.3.jar should be cglib-2.1_3.jar.I can't find the jar version you have mentioned in cglib's website !
Can you check if there's anything more in the stacktrace ?Post full stack trace from Tomcat logs.I think there must be a message before java.lang.IllegalAccessError is printed.Do check it and post...
Mate , that was a typo...I meant the cglib which contains your net.sf.cglib.core packages.
Well, the <jar-file> tag only works and recognizes the jar files if and only If you have specified the full absolute path for the Jar files.If you are currently using relative path,then it will not...
I think this exception is related to the cgi library error.Check the version of cgi library you are using.It is advisable to use version 2.1 or higher.Also check if you are having duplicate jars for...
Can you please update the status Mate ? Did it worked out or are you still stuck with it ?
The package which you have mentioned in context:component element does not matches with the package of user class.You have mentioned java.com.vaannila.domain whereas it should be com.vaannila.domain ...
Good Morning Vale,
Many thanks to you for appreciating the post so much .
You made my day !!
I'll be replying to your Hibernate Cache question very soon..
Have a great day ahead..
Cheers,...
Hi Vale,
Hope you are doing good .
First to answer your previous question on when Spring 3.0 exam will start ? I really don't think it will start within the next 2-3 months.I think It will take...
Many Thanks,
It's always a pleasure to help.