Hi, Willa, Willa WEI wrote: > Sorry, it was a typo when I posted the message. I used > > PGgeometry geom = (PGgeometry)r.getObject(1); > > in my code before and it gave me runtime "java.lang.ClassCastException: > java.lang.String." error. Now when I tried it again, it works. Maybe I > used a wrong class file. This looks like the addDataType() calls were missing. Markus