Posts tagged as:

Java

No Scope registered for scope request

June 5, 2009

Recently I was working with some code which defined beans as request scope. Junit tests failed with the following exception while trying to initialize the application context:

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: …; nested exception is java.lang.IllegalStateException: No Scope registered for scope ‘request’

I found the solution by searching around (unfortunately I didn’t record the [...]

Read the full article →

A better StringTokenizer

December 22, 2008

I’ve just been reminded how painful it can be splitting a string based on a token with StringTokenizer. The problem is that it gets messy when you have two tokens consecutively. Luckily commons-lang comes to the rescue with StrTokenizer - where empty tokens may be removed or returned as null.

Read the full article →

Built with AppEngine and Groovy

September 17, 2008

I’ve just released http://blogs.morehappydogs.com/ - this is a AppEngine/Groovy blend - the application aggregates blog posts about dogs. If you are interested in dogs, check it out.
The web tier is build with AppEngine in Python. AppEngine supplies the database via Datastore. Since you can’t run jobs within appengine, I wrote services in Groovy which process [...]

Read the full article →