After getting a weird NullPointerException
using Transaction.commit()
in Hibernate during an insert (eventually calling PreparedStatement.clearParameters()
which was the source of the exception), it turned out that the JDBC driver in classes12.jar
is outdated, and will not work on JDK1.4 and an Oracle 10g database.
Download the new drivers here to prevent unsuspected errors such as this one..
Happy
0 0 %
Sad
0 0 %
Excited
0 0 %
Sleepy
0 0 %
Angry
0 0 %
Surprise
0 0 %
Like this:
Like Loading...
Mon Aug 30 , 2004
A simple, standard and reusable way of creating toString, equals and hashcode methods in your classes/beans can be found in the jakarta commons.lang package: import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; public class BaseBean { public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); } public boolean equals(Object o) { return […]
For a some interesting samples of what you can do with this new driver check out
this link on OTN