com.sun.jdi.InvocationException occurred invoking method

I just want to create an object of class, but got this error when debugging. Can anybody tell me what the problem is? The location of this code is in some Spring(2.5) Service class. There is a similar problem: OJB Reference Descriptor 1:0 relationship? Should I set auto-retrieve to false? Thanks a lot~

Palindrome check in Javascript

Maybe I will suggest alternative solution: UPD. Keep in mind however that this is pretty much “cheating” approach, a demonstration of smart usage of language features, but not the most practical algorithm (time O(n), space O(n)). For real life application or coding interview you should definitely use loop solution. The one posted by Jason Sebring in this … Read more

Exit a SQLite 3 database

I have an SQLite 3 database in SUSE Linux. It’s stuck at the command prompt like so: How do I exit out of the database?

How to use glOrtho() in OpenGL?

Have a look at this picture: Graphical Projections  The glOrtho command produces an “Oblique” projection that you see in the bottom row. No matter how far away vertexes are in the z direction, they will not recede into the distance. I use glOrtho every time I need to do 2D graphics in OpenGL (such as health bars, menus … Read more