Project

General

Profile

Actions

Bug #4368

open

The response page is confusing after calling "buildindex" command

Added by Jing Tao almost 15 years ago.

Status:
New
Priority:
Normal
Category:
metacat
Target version:
Start date:
09/04/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4368

Description

I used web browser to call "buildindex" command to metacat. "buildindex" command DID work. This is good. However, my browser got an error message:
exception

java.lang.StringIndexOutOfBoundsException: String index out of range: 253
java.lang.StringBuffer.charAt(StringBuffer.java:163)
org.geotools.data.shapefile.dbf.DbaseFileWriter$FieldFormatter.getFieldString(DbaseFileWriter.java:241)
org.geotools.data.shapefile.dbf.DbaseFileWriter.fieldString(DbaseFileWriter.java:134)
org.geotools.data.shapefile.dbf.DbaseFileWriter.write(DbaseFileWriter.java:112)
org.geotools.data.shapefile.ShapefileDataStore$Writer.write(ShapefileDataStore.java:1627)
org.geotools.data.shapefile.ShapefileDataStore$Writer.close(ShapefileDataStore.java:1463)
org.geotools.data.TransactionStateDiff.applyDiff(TransactionStateDiff.java:253)
org.geotools.data.TransactionStateDiff.commit(TransactionStateDiff.java:140)
org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:176)
edu.ucsb.nceas.metacat.spatial.SpatialDataset.insertOrUpdateDataStore(SpatialDataset.java:272)
edu.ucsb.nceas.metacat.spatial.SpatialDataset.insertOrUpdate(SpatialDataset.java:232)
edu.ucsb.nceas.metacat.spatial.SpatialHarvester.harvestDocument(SpatialHarvester.java:174)
edu.ucsb.nceas.metacat.spatial.SpatialHarvester.addToUpdateQue(SpatialHarvester.java:116)
edu.ucsb.nceas.metacat.DocumentImpl.buildIndex(DocumentImpl.java:1677)
edu.ucsb.nceas.metacat.MetaCatServlet.buildDocumentIndex(MetaCatServlet.java:2788)
edu.ucsb.nceas.metacat.MetaCatServlet.handleBuildIndexAction(MetaCatServlet.java:2763)
edu.ucsb.nceas.metacat.MetaCatServlet.handleGetOrPost(MetaCatServlet.java:820)
edu.ucsb.nceas.metacat.MetaCatServlet.doGet(MetaCatServlet.java:351)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)

This error message will cause user think it didn't work. So we should figure out the reason why caused the error message during the process of "buildindex".

Actions

Also available in: Atom PDF