Error when add a Maven 2 Project with file url
----------------------------------------------

                 Key: CONTINUUM-2175
                 URL: http://jira.codehaus.org/browse/CONTINUUM-2175
             Project: Continuum
          Issue Type: Bug
          Components: Web - UI
    Affects Versions: 1.4.0
         Environment: Firefox 3
Ubuntu 8.10
            Reporter: Jose Morales Martinez


In pom url dont allow pattern file:///, but if file does not exist I get an 
error and if path is correct I get 'The specified resource isn't a file or the 
protocol used isn't allowed' (correct)

Error
{noformat}
org.apache.maven.continuum.ContinuumException: Error reading POM

Show/hide Stack Trace

        org.apache.maven.continuum.ContinuumException: Error reading POM
        at 
org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:109)
        at 
org.apache.maven.continuum.web.action.AddMavenProjectAction.execute(AddMavenProjectAction.java:189)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
        at 
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
        at 
org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:56)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: / (Is a directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at java.io.FileReader.<init>(FileReader.java:41)
        at 
org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:93)
        ... 9 more
{noformat}
      



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

        

Reply via email to