Hi Aarthi,
I think you are looking at the code in the trunk. This code is not
yet in a binary build.
Could you try and build Hibernate Spatial from source? In the latest
discussion thread with Sebastien Arbogast you'll find a brief
discussion on how to do that. That should resolve the issue.
Regards,
Karel Maesen
On 15 Jan 2008, at 01:10, aarthi.h wrote:
>
> Hi,
> I get the following error when trying to use the JGeometry class.
>
> Caused by: java.lang.ClassCastException:
> org.jboss.resource.adapter.jdbc.WrappedConnection cannot be cast to
> oracle.jdbc.OracleConnection
> at oracle.sql.StructDescriptor.createDescriptor
> (StructDescriptor.java:181)
> at oracle.sql.StructDescriptor.createDescriptor
> (StructDescriptor.java:130)
> at
> oracle.spatial.geometry.JGeometry.createDBDescriptors
> (JGeometry.java:1321)
> at oracle.spatial.geometry.JGeometry.store(JGeometry.java:1257)
> at
> org.hibernatespatial.oracle.SDOGeometryType.conv2DBGeometry
> (SDOGeometryType.java:103)
> at
> org.hibernatespatial.oracle.SDOGeometryType.nullSafeSet
> (SDOGeometryType.java:76)
> at
> org.hibernatespatial.GeometryUserType.nullSafeSet
> (GeometryUserType.java:183)
>
> When I look at the source code for the SDOGeometryType class, I see a
> findOracleConnection() method that says that it is specifically for
> such a
> problem but I still get this error, nevertheless.
> Can someone please tell me if this is a bug or is there something I
> can do.
>
> Thanks in advance,
> Aarthi
> --
> View this message in context:
http://www.nabble.com/
> ClassCastException-when-trying-to-use-JGeometry-
> tp14818727p14818727.html
> Sent from the Hibernate Spatial - Users mailing list archive at
> Nabble.com.
>
> _______________________________________________
> hibernatespatial-users mailing list
> hibernatespatial-users@lists.hibernatespatial.org
>
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/
> hibernatespatial-users
_______________________________________________
hibernatespatial-users mailing list
hibernatespatial-users@lists.hibernatespatial.org
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users