Upload not working, throws exception

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Upload not working, throws exception

Mike Ahlers
Hi,

It has been a while since I posted! Resuming project and bump into an error. For some reason, my upload simply fails:

2008-08-20 13:47:40,304 ERROR ProcessorService  - Exception with no location data
org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is servlet
        at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:885)
        at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
        at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:349)
        at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:310)
        at org.apache.commons.fileupload.DiskFileUpload.parseRequest(DiskFileUpload.java:209)
        ...

This is when I am using the sample!

<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xhtml:head>
        <xhtml:title>XForms Upload with replace="instance"</xhtml:title>
        <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
            <xforms:instance id="instance">
                <file filename="" mediatype="" size=""/>
            </xforms:instance>
            <xforms:submission action="http://www.scdi.org/~avernet/try/post.php" method="post" replace="instance" id="submission"/>
        </xforms:model>
        <xhtml:style type="text/css">
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <xforms:upload ref="/file">
            <xforms:filename ref="@filename"/>
            <xforms:mediatype ref="@mediatype"/>
            <xxforms:size ref="@size"/>
        </xforms:upload>
        <xforms:trigger>
            <xforms:label>Upload</xforms:label>
            <xforms:send submission="submission" ev:event="DOMActivate"/>
        </xforms:trigger>
    </xhtml:body>
</xhtml:html> 

For the record, I am using ops 3.6.0.

What can this be? Is there some setting I am overlooking?

Regards,
Mike
Reply | Threaded
Open this post in threaded view
|

Re: Upload not working, throws exception

Mike Ahlers
Ha,

The Exception disappeared, as soon I switched to commons-fileupload-1.0.jar, I was using a higher version.

Mike
Reply | Threaded
Open this post in threaded view
|

Re: Re: Upload not working, throws exception

Erik Bruchez
Administrator
We are using commons-fileupload-1.2.1.jar in the nightly builds. What  
version of orbeon Forms are you using?

-Erik

On Aug 20, 2008, at 5:42 AM, Mike Ahlers wrote:

>
> Ha,
>
> The Exception disappeared, as soon I switched to commons-
> fileupload-1.0.jar,
> I was using a higher version.
>
> Mike
> --
> View this message in context: http://www.nabble.com/Upload-not-working%2C-throws-exception-tp19068365p19068591.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Upload not working, throws exception

Mike Ahlers
<meta name="generator" content="Orbeon Forms 3.6.0.200712061930">
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Upload not working, throws exception

Erik Bruchez
Administrator
Very old ;-)

-Erik

On Aug 20, 2008, at 9:13 AM, Mike Ahlers wrote:

>
> <meta name="generator" content="Orbeon Forms 3.6.0.200712061930">
> --  
> View this message in context: http://www.nabble.com/Upload-not-working%2C-throws-exception-tp19068365p19072306.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Upload not working, throws exception

Mike Ahlers

Erik Bruchez wrote
Very old ;-)

-Erik
Maybe so! But that is however the latest stable release out in the open! For production environments I cannot do with nightly builds. Looking forward to next release ;-)

- Mike
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Upload not working, throws exception

Alessandro Vernet
Administrator
On Wed, Aug 20, 2008 at 1:52 PM, Mike Ahlers
<[hidden email]> wrote:
> Maybe so! But that is however the latest stable release out in the open! For
> production environments I cannot do with nightly builds. Looking forward to
> next release ;-)

We fully understand. To remedy to this, we will start releasing beta
versions of 3.7, with the first beta to be release in the next couple of
days. We have also made some good progress during the last few days
resolving a number of blocker issues which are on the way to 3.7. So
stay tuned ;).

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws