BigDecimal conversion exception for primary key field - Oracle database -----------------------------------------------------------------------
Key: GEOT-3198 URL: http://jira.codehaus.org/browse/GEOT-3198 Project: GeoTools Issue Type: Bug Affects Versions: 2.6.4 Reporter: Senthilruban Puvanendran When used Oracle database table with primary key field of Number(38,0), following exception thrown with WFS request: 23 Jun 16:32:27 WARN [org.geotools.jdbc] - Unable to convert 4198885 to java.math.BigDecimal 23 Jun 16:32:27 DEBUG [org.geotools.jdbc] - CLOSE CONNECTION 23 Jun 16:32:27 ERROR [org.geoserver.ows] - java.lang.RuntimeException: java.io.IOException at org.geotools.data.store.ContentFeatureCollection.iterator(ContentFeatureCollection.java:266) at org.geotools.data.complex.DataAccessMappingFeatureIterator.setNextFilteredFeature(DataAccessMappingFeatureIterator.java:628) at org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:674) at org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:193) at org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:64) at org.geotools.data.complex.NestedAttributeMapping.getFeatures(NestedAttributeMapping.java:286) at org.geotools.data.complex.DataAccessMappingFeatureIterator.setAttributeValue(DataAccessMappingFeatureIterator.java:373) at org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:701) at org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:193) at org.geotools.data.complex.MappingFeatureCollection.size(MappingFeatureCollection.java:300) at org.geoserver.wfs.GetFeature.run(GetFeature.java:371) at org.geoserver.wfs.DefaultWebFeatureService.getFeature(DefaultWebFeatureService.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.geoserver.ows.util.EMFLogger.invoke(EMFLogger.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy16.getFeature(Unknown Source) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel