[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #AEP-799909]: verify error


This is likely due to mismatch between compilation and runtime environments. 
The code is compiled with another version of the library that you are using at 
runtime possibly due to classpath confusion.

Best Wishes,

IDV Support

> I am try to use IDV classes at the backend of a webapp for reading
> shapefiles. I am getting this error.
> While it works pretty nicely in a desktop application. Any idea what
> might be the reason.
> Exception in thread "main" java.lang.VerifyError: (class:
> ucar/unidata/gis/shapefile/EsriShapefile$EsriFeature, method: <init>
> signature: (Lucar/unidata/gis/shapefile/EsriShapefile;)V) Constructor
> must call super() or this()
> at
> ucar.unidata.gis.shapefile.EsriShapefile.nextFeature(EsriShapefile.java:560)
> at
> ucar.unidata.gis.shapefile.EsriShapefile.Init(EsriShapefile.java:461)
> at
> ucar.unidata.gis.shapefile.EsriShapefile.<init>(EsriShapefile.java:369)
> at
> ucar.unidata.gis.shapefile.EsriShapefile.<init>(EsriShapefile.java:276)
> at
> ucar.unidata.gis.shapefile.EsriShapefile.<init>(EsriShapefile.java:191)
> In my test program, I am doing something like this:
> String url_str = "";;
> MapFamily mf = new MapFamily("maps");
> byte[] bytes = IOUtil.readBytes(IOUtil.getInputStream(url_str,
> TestVectors.class));
> ShapefileAdapter sfa =
> new ShapefileAdapter(new ByteArrayInputStream(bytes, 0,
> bytes.length), url_str);
> URL url =new URL(url_str);
> DataImpl data = mf.open(url);
> regards
> ghansham

Ticket Details
Ticket ID: AEP-799909
Department: Support IDV
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.