[postgis-users] Weird ClassCastException

Satish Murthy satish_m at hotmail.com
Sat Aug 22 05:16:47 PDT 2009


I am getting this exception:
java.lang.ClassCastException: org.postgis.PGgeometry cannot be cast to org.postgis.PGgeometry
Never seen anything like this!

This happens at this code line:
PGgeometry loc = (PGgeometry) map.get("loc");

I grep'ed the whole of JBoss directories, and the only jar file that contains PGgeometry is postgis-1.5.0SVN.jar
jar tvf postgis-1.5.0SVN.jar | grep PGgeometry
  2983 Thu Jul 30 09:12:02 GMT+05:30 2009 org/postgis/PGgeometry.class
   866 Thu Jul 30 09:12:02 GMT+05:30 2009 org/postgis/PGgeometryLW.class

Has anybody seen this? Any idea why this might be happening?

Thanks,
Satish

_________________________________________________________________
Sports, news, fashion and entertainment. Pick it all up in a package called MSN India
http://in.msn.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20090822/47fad36d/attachment.html>


More information about the postgis-users mailing list