Tuesday, 23 April 2013

Exception: AbstractMethodError requires c3p0 upgrade

photo credit: markchadwickart
via photopin cc
I just encountered this exception:
Exception in thread "main" java.lang.AbstractMethodError: com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.setCharacterStream(ILjava/io/Reader;J)V at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$4$1.doBind(ClobTypeDescriptor.java:114) at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:92)
It turns out that upgrading c3p0 does the trick (from to


Tuesday, 16 April 2013

Week in Review - 2013-16

Print to Google Drive

I just noticed 'Save to Google Drive' in my 'Print' options in Chrome! This is awesome - when you want to save something for reference, and you don't want to go through thousands of bookmarks, this is exactly what I wanted!

Media Problems

Here is a great blog post about trying to find a decent movie streaming service. Now I have FetchTV (this lets me buy movies to stream, much like the Google Play option) I'm considering turning my MythTV media center off, but I still need an option for playing music/displaying photos/etc. There are lots of options, from AppleTV to Western Digital et al media players. Props to Google for actually selling us here in Australia movies and music - unlike Amazon (we still can't buy movies and music from Amazon in 2013).

Andrew Chen quits RSS - WTF!

Andrew Chen just announced that he's quitting RSS in favour of email notifications. Look at the comments though, and there isn't a single positive response (and they are all quite sensible reactions). Presumably this was provoked by Google Reader being retired, but the unanswered question for Andrew is why does Reader == RSS ? I've switch to Feedly (which has a seamless process to migrate your reader account) and I'm liking it so far. I won't even notice Reader go offline.


Friday, 12 April 2013

AspectJWeaver with JDK 7 - error - only supported at Java 5 compliance level or above

I came across this problem with an older project - when I switched from jdk6 to jdk7, when the application started I encountered:
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException:  error annotation type patterns are only supported at Java 5 compliance level or above
I didn't want a purely maven solution because during development I run the app in Tomcat via the IDE (Intellij IDEA).

In the end I just upgraded my aspectjweaver dependency to 1.7.2 (it was 1.5.4)

Everything seems okay now.