<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Here is an explanation for this: http://www.jspwiki.org/wiki/A2AClassCastException<br><br>Sorry, this is obviously nothing to do with postgis.<br><br>Thanks,<br>Satish<br><br><hr id="stopSpelling">From: satish_m@hotmail.com<br>To: postgis-users@postgis.refractions.net<br>Date: Sat, 22 Aug 2009 12:16:47 +0000<br>Subject: [postgis-users] Weird ClassCastException<br><br>



<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>


I am getting this exception:<br><blockquote>java.lang.ClassCastException: org.postgis.PGgeometry cannot be cast to org.postgis.PGgeometry<br></blockquote>Never seen anything like this!<br><br>This happens at this code line:<br><blockquote>PGgeometry loc = (PGgeometry) map.get("loc");<br></blockquote><br>I grep'ed the whole of JBoss directories, and the only jar file that contains PGgeometry is postgis-1.5.0SVN.jar<br><blockquote><div align="left">jar tvf postgis-1.5.0SVN.jar | grep PGgeometry<br>  2983 Thu Jul 30 09:12:02 GMT+05:30 2009 org/postgis/PGgeometry.class<br>   866 Thu Jul 30 09:12:02 GMT+05:30 2009 org/postgis/PGgeometryLW.class<br></div></blockquote><br>Has anybody seen this? Any idea why this might be happening?<br><br>Thanks,<br>Satish<br><br><hr>Are you an untamed, bizarre or daring explorer? Find out now! <a href="http://www.ExploreMyWay.com">Drag n' drop</a><br /><hr />One blink is all it takes for the world to change. One click and MSN India helps you catch up <a href='http://in.msn.com' target='_new'>Try it!</a></body>
</html>