[ http://jira.andromda.org/browse/CORE-76?page=comments#action_13631 ] 

Edvard Scheffers commented on CORE-76:
--------------------------------------

I call AndroMDA from a simple Java class. Then the same problem occurs. The 
exception occurs while the space character is replaced by %20. This is done by 
the ClassLoader. Maven uses a different class loader and does not replace the 
space by the %20.
I fixed the url by decoding it in the ResourceUtils.getArchive(URL) method:
  resourceUrl = URLDecoder.decode(new URL(resourceUrl).getFile(), "UTF-8");
  archive = new ZipFile(resourceUrl);

It would be great if this could be included in a release so I don't need to 
keep my own version of this class.


> Exception when the andromda home path has a blank character
> -----------------------------------------------------------
>
>          Key: CORE-76
>          URL: http://jira.andromda.org/browse/CORE-76
>      Project: AndroMDA Core
>         Type: Bug

>  Environment: XP, ant 1.6.5
>     Reporter: Walter Itamar MourĂ£o
>     Assignee: Chad Brandon
>     Priority: Minor

>
> I've got the exception java.util.zip.ZipException when the andromda home path 
> has a blank character.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Reply via email to