[OpenMap Users] Re: reading shapefile from jar

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Oct 08 2003 - 08:30:20 EDT

Hi Alessandro,

Thanks for the advice! I'll patch the openmap file the same way.

- Don

On Wednesday, October 1, 2003, at 11:49 AM, Alessandro Foresi wrote:

> On Wed, Jun 12, 2002 at 05:08:41PM -0400, Don Dietrick wrote:
>> The problem with the 1.4 plugin is slightly different. With 1.3, the
>> getResource() call would return a URL to the cached jar file stored in
>> the plugin cache. With 1.4, the getResource() call returns a URL to
>> the
>> jar on the server, which the JarInputReader seems to be OK with,
>> acknowledging that the resource (file) exists. The problem occurs when
>> the JarInputReader tries to read the file, resulting in a
>> ZipException,
>> as if the file is not valid.
>
> I had a similar problem, and patched JarInputReader.java line 72 from
> openmap-4.5.4:
> jarFile = new JarFile(URLDecoder.decode(jarFileName, "UTF-8"));
>
> Regards,
>
> Alessandro
> --
> Alessandro Foresi
> Advanced Computer Systems S.p.A.
> Space Division
> Via della Bufalotta, 378
> 00139 Rome (Italy)
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Oct 8 08:32:09 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT