continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohan Holt (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (CONTINUUM-1897) Error uploading maven 2 pom file
Date Thu, 25 Sep 2008 11:10:46 GMT

    [ http://jira.codehaus.org/browse/CONTINUUM-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148963#action_148963
] 

Rohan Holt commented on CONTINUUM-1897:
---------------------------------------


I am getting the same problem with Continuum 1.2 Build 697023 under tomcat 5.5.27. I do have
write perms on the temp directory being written to ( as it was created by tomcat ). Here is
an extract from the log file:

2008-09-25 11:24:19,481 [http-9080-Processor23] INFO  com.opensymphony.webwork.interceptor.FileUploadInterceptor
 - File m2PomFile text/xml pom.xml /u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum/upload_4cc4acca_11c98b2e2a5__7ff5_00000095.tmp
2008-09-25 11:24:19,535 [http-9080-Processor23] INFO  com.opensymphony.webwork.interceptor.FileUploadInterceptor
 - Removing file m2PomFile /u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum/upload_4cc4acca_11c98b2e2a5__7ff5_00000095.tmp
2008-09-25 11:24:22,576 [http-9080-Processor25] INFO  interceptor#exceptionLogging  - Error
ocurred during execution
org.apache.maven.continuum.ContinuumException: Error reading POM
        at org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:94)
        at org.apache.maven.continuum.web.action.AddMavenProjectAction.execute(AddMavenProjectAction.java:158)
        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:585)
        at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
        at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
        at com.opensymphony.webwork.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:35)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: /u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum/upload_4cc4acca_11c98b2e2a5__7ff5_00000095.tmp
(No such file or 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:82)
        ... 9 more

It seems the file is being removed almost as soon as it is uploaded so I selected a large
(non-pom) file to see if I could see the uploaded file in the temp dir during transit..

-rw-r--r-- 1 root root     44 2008-09-25 09:49 tldCache.ser
drwxr-xr-x 3 root root     72 2008-09-25 09:52 org
-rw-r--r-- 1 root root      4 2008-09-25 12:03 upload_4cc4acca_11c98b2e2a5__7ff5_00000122.tmp
-rw-r--r-- 1 root root 822442 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000123.tmp
jupiter:/u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum # ls -ltr
total 16
-rw-r--r-- 1 root root 44 2008-09-25 09:49 tldCache.ser
drwxr-xr-x 3 root root 72 2008-09-25 09:52 org
-rw-r--r-- 1 root root  4 2008-09-25 12:03 upload_4cc4acca_11c98b2e2a5__7ff5_00000122.tmp
-rw-r--r-- 1 root root  1 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000125.tmp
-rw-r--r-- 1 root root  1 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000124.tmp
jupiter:/u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum # ls -ltr
total 16
-rw-r--r-- 1 root root 44 2008-09-25 09:49 tldCache.ser
drwxr-xr-x 3 root root 72 2008-09-25 09:52 org
-rw-r--r-- 1 root root  4 2008-09-25 12:03 upload_4cc4acca_11c98b2e2a5__7ff5_00000122.tmp
-rw-r--r-- 1 root root  1 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000125.tmp
-rw-r--r-- 1 root root  1 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000124.tmp
jupiter:/u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum # ls -ltr
total 16
-rw-r--r-- 1 root root 44 2008-09-25 09:49 tldCache.ser
drwxr-xr-x 3 root root 72 2008-09-25 09:52 org
-rw-r--r-- 1 root root  4 2008-09-25 12:03 upload_4cc4acca_11c98b2e2a5__7ff5_00000122.tmp
-rw-r--r-- 1 root root  1 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000125.tmp
-rw-r--r-- 1 root root  1 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000124.tmp
jupiter:/u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum # ls -ltr
total 16
-rw-r--r-- 1 root root 44 2008-09-25 09:49 tldCache.ser
drwxr-xr-x 3 root root 72 2008-09-25 09:52 org
-rw-r--r-- 1 root root  4 2008-09-25 12:03 upload_4cc4acca_11c98b2e2a5__7ff5_00000122.tmp
-rw-r--r-- 1 root root  1 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000125.tmp
-rw-r--r-- 1 root root  1 2008-09-25 12:04 upload_4cc4acca_11c98b2e2a5__7ff5_00000124.tmp
jupiter:/u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum # ls -ltr
total 4
-rw-r--r-- 1 root root 44 2008-09-25 09:49 tldCache.ser
drwxr-xr-x 3 root root 72 2008-09-25 09:52 org
jupiter:/u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum # 

---- continuum.log Extract ---
2008-09-25 12:03:53,700 [http-9080-Processor25] INFO  com.opensymphony.webwork.dispatcher.DispatcherUtils
 - Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir
2008-09-25 12:04:38,080 [http-9080-Processor25] INFO  com.opensymphony.webwork.interceptor.FileUploadInterceptor
 - File m2PomFile application/octet-stream DatabaseInstallChangeset.bundle /u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum/upload_4cc4acca_11c98b2e2a5__7ff5_00000123.tmp
2008-09-25 12:04:38,092 [http-9080-Processor25] INFO  com.opensymphony.webwork.interceptor.FileUploadInterceptor
 - Removing file m2PomFile /u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum/upload_4cc4acca_11c98b2e2a5__7ff5_00000123.tmp
2008-09-25 12:04:40,492 [http-9080-Processor23] INFO  interceptor#exceptionLogging  - Error
ocurred during execution
org.apache.maven.continuum.ContinuumException: Error reading POM
        at org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:94)
        at org.apache.maven.continuum.web.action.AddMavenProjectAction.execute(AddMavenProjectAction.java:158)
        at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
        at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
        at com.opensymphony.webwork.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:35)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: /u01/app/tomcat/apache-tomcat-5.5.27/work/Catalina/localhost/continuum/upload_4cc4acca_11c98b2e2a5__7ff5_00000123.tmp
(No such file or 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:82)
        ... 8 more

This clearly shows that during the upload..the file (upload_4cc4acca_11c98b2e2a5__7ff5_00000123.tmp)
was being created in the correct directory but was subsequently removed before being able
to be processed.

Would you please consider reopening this issue...



> Error uploading maven 2 pom file
> --------------------------------
>
>                 Key: CONTINUUM-1897
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-1897
>             Project: Continuum
>          Issue Type: Bug
>          Components: Integration - Maven 2
>    Affects Versions: 1.2
>         Environment: Java version: 1.5.0_12 
> OS name: "linux" version: "2.6.9-42.elsmp" arch: "i386" Family: "unix"
>            Reporter: Francisco Herrera
>            Assignee: Emmanuel Venisse
>
> I'm getting this error while trying to add a new project using the upload POM option.

> Java version: 1.5.0_12 
> OS name: "linux" version: "2.6.9-42.elsmp" arch: "i386" Family: "unix" 
> 2008-09-24 18:07:31,096 [btpool0-8] INFO  interceptor#exceptionLogging  - Error ocurred
during execution 
> org.apache.maven.continuum.ContinuumException: Error reading POM 
>         at org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:94)

>         at org.apache.maven.continuum.web.action.AddMavenProjectAction.execute(AddMavenProjectAction.java:158)

>         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:585) 
>         at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)

>         at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)

>         at com.opensymphony.webwork.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:35)

>         at java.lang.Thread.run(Thread.java:595) 
> Caused by: java.io.FileNotFoundException: /tmp/Jetty_0_0_0_0_8084_continuum__continuum__3c2jpt/upload__1f6a6380_11c96626dce__7ff5_00000024.tmp
(No such file or 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:82)

>         ... 9 more 

-- 
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

        

Mime
View raw message