uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tong Fin <tong.f...@gmail.com>
Subject Re: ResourceAccessException by using getResourceFilePath in Eclipse Plug-In
Date Sun, 25 Apr 2010 22:18:32 GMT
Kai,
The following source code expects to have "file" for the URI scheme:

  public String getResourceFilePath(String aKey) throws
ResourceAccessException {
    URI resourceUri = getResourceURI(aKey);
    if (resourceUri != null) {
      if ("file".equals(resourceUri.getScheme())) {
        return resourceUri.getPath();
      }
      else {
        throw new ResourceAccessException(); //TODO: error message
      }
    }
    else {
      return null;
    }
  }

You might try to add "file" to see if it works.
But, it might not what you would like to have.

-- Tong

On Sun, Apr 25, 2010 at 3:17 PM, Kai Schlamp <schlamp@gmx.de> wrote:

> Something I forgot ... here is the full exception trace:
> http://pastebin.com/E0FUUKas
>
> Regards,
> Kai
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message