You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by Matthew Buckett <bu...@gmail.com> on 2008/09/16 18:54:30 UTC

Issues with 1.2 release

tar on my Mac (10.5.5) seems to moan about training blocks:

tar zxf ~/Downloads/apache-continuum-1.2-bin.tar.gz
tar: A lone zero block at 67776

md5 ~/Downloads/apache-continuum-1.2-bin.tar.gz
MD5 (/Users/buckett/Downloads/apache-continuum-1.2-bin.tar.gz) =
333a3683c5f6750758c7391af871cbec

tar --version
tar (GNU tar) 1.15.1

although it seems to unpack fine.

When I try to add a maven 2 project through uploading a pom from my
local file system it fails with:
  POM file does not exist. Either the POM you specified or one of its
modules does not exist.
and in the logs:
2008-09-16 17:45:03,253 [addMavenTwoProjectBackgroundThread] INFO
continuumProjectBuilder#maven-two-builder  - Downloading
file:/tmp/Jetty_0_0_0_0_8080_continuum__continuum__-7z7vzn/upload__3a7bc47a_11c6c028981__7ff5_00000003.tmp
2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO
continuum  - Created 0 projects.
2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO
continuum  - Created 0 project groups.
2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO
continuum  - 1 errors.
2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO
continuum  - 1 errors during project add:
2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO  continuum  -

however if I add this file by supplying it at a URL it works fine
(https://svn.oucs.ox.ac.uk/projects/vle/sakai/root-webapp/trunk/pom.xml).

Here I am running Continuum 1.2 on a Mac with JDK 1.6

-- 
 Matthew Buckett

Re: Issues with 1.2 release

Posted by Olivier Lamy <ol...@apache.org>.
Yes sure it does it. (argh :-) )
Can you load an issue ?

--
Olivier


2008/9/19 Marica Tan <ct...@exist.com>:
> Hi,
> I have actually encountered this error, though sometimes I can successfully
> upload a pom file.
> We have the same conclusion that it's the FileUploadInterceptor that's
> deleting the uploaded file.
>
>
> Thanks,
> --
> Marica
>
> On Fri, Sep 19, 2008 at 7:53 PM, Matthew Buckett <bu...@gmail.com> wrote:
>
>> On Wed, Sep 17, 2008 at 10:09 AM, Matthew Buckett <bu...@gmail.com>
>> wrote:
>> > On Tue, Sep 16, 2008 at 7:00 PM, Olivier Lamy <ol...@apache.org> wrote:
>> >> Hi,
>> >> I have tested the upload file mode and didn't find issues.
>> >
>> > I have installed continuum 1.2 on a Linux vmware image and seem to get
>> > the same error.
>> >
>> >> Is the parent pom available in a repository declared in your
>> settings.xml ?
>> >
>> > No, I don't think so. But why would the same pom.xml work when
>> > downloaded from a URL but not work when uploaded through a web
>> > browser?
>>
>> Running the latest 1.2 WAR in tomcat gives me slight more information:
>>
>> 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:613)
>> Caused by: java.io.FileNotFoundException:
>>
>> /private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000009.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
>> 2008-09-19 12:50:02,405 [http-8080-Processor20] INFO
>> com.opensymphony.webwork.dispatcher.DispatcherUtils  - Unable to find
>> 'webwork.multipart.saveDir' property setting. Defaulting to
>> javax.servlet.context.tempdir
>> 2008-09-19 12:50:02,418 [http-8080-Processor20] INFO
>> com.opensymphony.webwork.interceptor.FileUploadInterceptor  - File
>> m2PomFile text/xml pom.xml
>>
>> /private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
>> 2008-09-19 12:50:02,435 [http-8080-Processor20] INFO
>> com.opensymphony.webwork.interceptor.FileUploadInterceptor  - Removing
>> file m2PomFile
>> /private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
>> 2008-09-19 12:50:02,443 [addMavenTwoProjectBackgroundThread] INFO
>> continuumProjectBuilder#maven-two-builder  - Downloading
>>
>> file:/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
>> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
>> continuum  - Created 0 projects.
>> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
>> continuum  - Created 0 project groups.
>> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
>> continuum  - 1 errors.
>> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
>> continuum  - 1 errors during project add:
>> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
>>  continuum  -
>>
>>
>> It seems like the
>> com.opensymphony.webwork.interceptor.FileUploadInterceptor is deleting
>> the uploaded file before it can be added by the project builder.
>>
>> --
>>   Matthew Buckett
>>
>

Re: Issues with 1.2 release

Posted by Marica Tan <ct...@exist.com>.
Hi,
I have actually encountered this error, though sometimes I can successfully
upload a pom file.
We have the same conclusion that it's the FileUploadInterceptor that's
deleting the uploaded file.


Thanks,
--
Marica

On Fri, Sep 19, 2008 at 7:53 PM, Matthew Buckett <bu...@gmail.com> wrote:

> On Wed, Sep 17, 2008 at 10:09 AM, Matthew Buckett <bu...@gmail.com>
> wrote:
> > On Tue, Sep 16, 2008 at 7:00 PM, Olivier Lamy <ol...@apache.org> wrote:
> >> Hi,
> >> I have tested the upload file mode and didn't find issues.
> >
> > I have installed continuum 1.2 on a Linux vmware image and seem to get
> > the same error.
> >
> >> Is the parent pom available in a repository declared in your
> settings.xml ?
> >
> > No, I don't think so. But why would the same pom.xml work when
> > downloaded from a URL but not work when uploaded through a web
> > browser?
>
> Running the latest 1.2 WAR in tomcat gives me slight more information:
>
> 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:613)
> Caused by: java.io.FileNotFoundException:
>
> /private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000009.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
> 2008-09-19 12:50:02,405 [http-8080-Processor20] INFO
> com.opensymphony.webwork.dispatcher.DispatcherUtils  - Unable to find
> 'webwork.multipart.saveDir' property setting. Defaulting to
> javax.servlet.context.tempdir
> 2008-09-19 12:50:02,418 [http-8080-Processor20] INFO
> com.opensymphony.webwork.interceptor.FileUploadInterceptor  - File
> m2PomFile text/xml pom.xml
>
> /private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
> 2008-09-19 12:50:02,435 [http-8080-Processor20] INFO
> com.opensymphony.webwork.interceptor.FileUploadInterceptor  - Removing
> file m2PomFile
> /private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
> 2008-09-19 12:50:02,443 [addMavenTwoProjectBackgroundThread] INFO
> continuumProjectBuilder#maven-two-builder  - Downloading
>
> file:/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
> continuum  - Created 0 projects.
> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
> continuum  - Created 0 project groups.
> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
> continuum  - 1 errors.
> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
> continuum  - 1 errors during project add:
> 2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
>  continuum  -
>
>
> It seems like the
> com.opensymphony.webwork.interceptor.FileUploadInterceptor is deleting
> the uploaded file before it can be added by the project builder.
>
> --
>   Matthew Buckett
>

Re: Issues with 1.2 release

Posted by Matthew Buckett <bu...@gmail.com>.
On Wed, Sep 17, 2008 at 10:09 AM, Matthew Buckett <bu...@gmail.com> wrote:
> On Tue, Sep 16, 2008 at 7:00 PM, Olivier Lamy <ol...@apache.org> wrote:
>> Hi,
>> I have tested the upload file mode and didn't find issues.
>
> I have installed continuum 1.2 on a Linux vmware image and seem to get
> the same error.
>
>> Is the parent pom available in a repository declared in your settings.xml ?
>
> No, I don't think so. But why would the same pom.xml work when
> downloaded from a URL but not work when uploaded through a web
> browser?

Running the latest 1.2 WAR in tomcat gives me slight more information:

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:613)
Caused by: java.io.FileNotFoundException:
/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000009.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
2008-09-19 12:50:02,405 [http-8080-Processor20] INFO
com.opensymphony.webwork.dispatcher.DispatcherUtils  - Unable to find
'webwork.multipart.saveDir' property setting. Defaulting to
javax.servlet.context.tempdir
2008-09-19 12:50:02,418 [http-8080-Processor20] INFO
com.opensymphony.webwork.interceptor.FileUploadInterceptor  - File
m2PomFile text/xml pom.xml
/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
2008-09-19 12:50:02,435 [http-8080-Processor20] INFO
com.opensymphony.webwork.interceptor.FileUploadInterceptor  - Removing
file m2PomFile /private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
2008-09-19 12:50:02,443 [addMavenTwoProjectBackgroundThread] INFO
continuumProjectBuilder#maven-two-builder  - Downloading
file:/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
continuum  - Created 0 projects.
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
continuum  - Created 0 project groups.
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
continuum  - 1 errors.
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
continuum  - 1 errors during project add:
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO  continuum  -


It seems like the
com.opensymphony.webwork.interceptor.FileUploadInterceptor is deleting
the uploaded file before it can be added by the project builder.

-- 
  Matthew Buckett

Re: Issues with 1.2 release

Posted by Matthew Buckett <bu...@gmail.com>.
On Tue, Sep 16, 2008 at 7:00 PM, Olivier Lamy <ol...@apache.org> wrote:
> Hi,
> I have tested the upload file mode and didn't find issues.

I have installed continuum 1.2 on a Linux vmware image and seem to get
the same error.

> Is the parent pom available in a repository declared in your settings.xml ?

No, I don't think so. But why would the same pom.xml work when
downloaded from a URL but not work when uploaded through a web
browser?

-- 
 Matthew Buckett

Re: Issues with 1.2 release

Posted by Olivier Lamy <ol...@apache.org>.
Hi,
I have tested the upload file mode and didn't find issues.
Is the parent pom available in a repository declared in your settings.xml ?

--
Olivier


2008/9/16 Matthew Buckett <bu...@gmail.com>:
> tar on my Mac (10.5.5) seems to moan about training blocks:
>
> tar zxf ~/Downloads/apache-continuum-1.2-bin.tar.gz
> tar: A lone zero block at 67776
>
> md5 ~/Downloads/apache-continuum-1.2-bin.tar.gz
> MD5 (/Users/buckett/Downloads/apache-continuum-1.2-bin.tar.gz) =
> 333a3683c5f6750758c7391af871cbec
>
> tar --version
> tar (GNU tar) 1.15.1
>
> although it seems to unpack fine.
>
> When I try to add a maven 2 project through uploading a pom from my
> local file system it fails with:
>  POM file does not exist. Either the POM you specified or one of its
> modules does not exist.
> and in the logs:
> 2008-09-16 17:45:03,253 [addMavenTwoProjectBackgroundThread] INFO
> continuumProjectBuilder#maven-two-builder  - Downloading
> file:/tmp/Jetty_0_0_0_0_8080_continuum__continuum__-7z7vzn/upload__3a7bc47a_11c6c028981__7ff5_00000003.tmp
> 2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO
> continuum  - Created 0 projects.
> 2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO
> continuum  - Created 0 project groups.
> 2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO
> continuum  - 1 errors.
> 2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO
> continuum  - 1 errors during project add:
> 2008-09-16 17:45:03,257 [addMavenTwoProjectBackgroundThread] INFO  continuum  -
>
> however if I add this file by supplying it at a URL it works fine
> (https://svn.oucs.ox.ac.uk/projects/vle/sakai/root-webapp/trunk/pom.xml).
>
> Here I am running Continuum 1.2 on a Mac with JDK 1.6
>
> --
>  Matthew Buckett
>