Great to hear that you found the cause of the problem. Thanks very
much for posting it to the list - it's good to have ones like this in
the archives.

Michael

On 12 October 2011 03:34, filippov70 <filippo...@gmail.com> wrote:
> I solved the problem.
> were too long strings in russian language are to record in the DBF
>
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
> range: 253
>        at java.lang.StringBuffer.charAt(StringBuffer.java:179)
>        at
> org.geotools.data.shapefile.dbf.DbaseFileWriter$FieldFormatter.getFieldString(Dbas
>        at
> org.geotools.data.shapefile.dbf.DbaseFileWriter.fieldBytes(DbaseFileWriter.java:23
>        at
> org.geotools.data.shapefile.dbf.DbaseFileWriter.write(DbaseFileWriter.java:205)
>        at
> org.geotools.data.shapefile.ShapefileFeatureWriter.write(ShapefileFeatureWriter.ja
>        at
> org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.write(IndexedSha
>        at
> org.geotools.data.TransactionStateDiff.applyDiff(TransactionStateDiff.java:256)
>
> public String getFieldString(int size, String s) {
>            try {
>                buffer.replace(0, size, emptyString);
>                buffer.setLength(size);
>                // international characters must be accounted for so size !=
> length.
>                int maxSize = size;
>
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/writing-shapefile-problem-tp6846785p6881670.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> Geotools-gt2-users mailing list
> Geotools-gt2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to