I suggest you post your 'error' (exception!?) and the code you are trying to get working.
Sorry for the late reply. The problem actually had nothign to do with the seam contexts at all. This was the debug page that came up when the error occurred. The actual problem was corrupted indexes in my maxdb database.