95% of all code makes me cry. The other 5% are white space.
Caused by: com.ibm.db2.jcc.am.SqlDataException: DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null, DRIVER=3.59.81 at com.ibm.db2.jcc.am.dd.a(dd.java:668) at com.ibm.db2.jcc.am.dd.a(dd.java:60) at com.ibm.db2.jcc.am.dd.a(dd.java:127) at com.ibm.db2.jcc.am.bn.c(bn.java:2546) at com.ibm.db2.jcc.am.bn.a(bn.java:2053) at com.ibm.db2.jcc.t4.cb.n(cb.java:802) at com.ibm.db2.jcc.t4.cb.i(cb.java:259) at com.ibm.db2.jcc.t4.cb.c(cb.java:54) at com.ibm.db2.jcc.t4.q.c(q.java:44) at com.ibm.db2.jcc.t4.rb.j(rb.java:147) at com.ibm.db2.jcc.am.bn.ib(bn.java:2048) at com.ibm.db2.jcc.am.cn.b(cn.java:3845) at com.ibm.db2.jcc.am.cn.b(cn.java:3975) at com.ibm.db2.jcc.am.cn.bc(cn.java:678) at com.ibm.db2.jcc.am.cn.executeQuery(cn.java:652)
I like when error codes are negative. I like when error messages are null. I like when method names are called a(), c(), and j(). When classes are called dd, bn. Closed source is awesome enough, but obfuscated closed source is untoppable. At least, the vendor seems to provide frequent patch releases to the driver, to fix things. Such as renaming cb to axcomments powered by Disqus
Send us your own example of code that made you cry! Please include:
Note that we may choose not to publish some submissions if we feel they're not appropriate. We hope you understand.
Use jOOQ, instead of JDBC.
jOOQ generates Java code from your database and lets you build typesafe SQL queries through its fluent API.