issue with Upload control

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

issue with Upload control

Jency Chackummoottil

Hi,

The upload control in Orbeon does not work if the state handling is ‘Client’. It works when the state handling is Session. Is this a bug with Orbeon? Is there any way to get the upload control working in Client State handling too.

Waiting for your response…

 

Thanks in advance

Jency

 



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: issue with Upload control

Jency Chackummoottil

Hi,

The exception that is thrown when using Upload control with Client state handling is:

org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

        at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:768)

 

Please help me to resolve this issue.

 

Thanks in advance

Jency

 

 

From: Jency Chackummoottil [mailto:[hidden email]]
Sent: Wednesday, August 22, 2007 4:15 PM
To: [hidden email]
Subject: [ops-users] issue with Upload control

 

Hi,

The upload control in Orbeon does not work if the state handling is ‘Client’. It works when the state handling is Session. Is this a bug with Orbeon? Is there any way to get the upload control working in Client State handling too.

Waiting for your response…

 

Thanks in advance

Jency

 



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: issue with Upload control

Nathan Jones-2
I had a similar problem recently and the solution was simply to make sure that the correct version of commons-fileupload is on the classpath. Orbeon requires commons-fileupload 1.0 and appears to not work well with later versions.

- Nathan




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: issue with Upload control

Jency Chackummoottil
Thanks Nathan. Earlier I have used commons-fileupload 1.2 and now I
changed it to commons-fileupload 1.0. But, now it throws another
exception:
java.lang.NullPointerException
        at
org.orbeon.oxf.xforms.control.controls.XFormsUploadControl.setExternalVa
lue(XFormsUploadControl.java:112)
        at
org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsM
odelSubmission.java:414)
        at
org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsConta
iningDocument.java:920)

Please help me to resolve this issue.

Thanks
Jency


-----Original Message-----
From: Nathan Jones [mailto:[hidden email]]
Sent: Thursday, August 23, 2007 11:27 AM
To: [hidden email]
Subject: RE: [ops-users] issue with Upload control



-----Original Message-----
From: Nathan Jones [mailto:[hidden email]]
Sent: Thursday, August 23, 2007 11:27 AM
To: [hidden email]
Subject: RE: [ops-users] issue with Upload control

I had a similar problem recently and the solution was simply to make
sure that the correct version of commons-fileupload is on the classpath.
Orbeon requires commons-fileupload 1.0 and appears to not work well with
later versions.

- Nathan





--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: issue with Upload control

Erik Bruchez
Administrator
Jency,

What exact version of Orbeon Forms are you using?

-Erik

Jency Chackummoottil wrote:

> Thanks Nathan. Earlier I have used commons-fileupload 1.2 and now I
> changed it to commons-fileupload 1.0. But, now it throws another
> exception:
> java.lang.NullPointerException
>         at
> org.orbeon.oxf.xforms.control.controls.XFormsUploadControl.setExternalVa
> lue(XFormsUploadControl.java:112)
>         at
> org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsM
> odelSubmission.java:414)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsConta
> iningDocument.java:920)
>
> Please help me to resolve this issue.
>
> Thanks
> Jency
>
>
> -----Original Message-----
> From: Nathan Jones [mailto:[hidden email]]
> Sent: Thursday, August 23, 2007 11:27 AM
> To: [hidden email]
> Subject: RE: [ops-users] issue with Upload control
>
>
>
> -----Original Message-----
> From: Nathan Jones [mailto:[hidden email]]
> Sent: Thursday, August 23, 2007 11:27 AM
> To: [hidden email]
> Subject: RE: [ops-users] issue with Upload control
>
> I had a similar problem recently and the solution was simply to make
> sure that the correct version of commons-fileupload is on the classpath.
> Orbeon requires commons-fileupload 1.0 and appears to not work well with
> later versions.
>
> - Nathan
>
>
>
>

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: issue with Upload control

Jency Chackummoottil
Erik,
I'm using ops 3.5.1.

Thanks
Jency


-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Friday, August 24, 2007 4:34 PM
To: [hidden email]
Subject: Re: [ops-users] issue with Upload control

Jency,

What exact version of Orbeon Forms are you using?

-Erik

Jency Chackummoottil wrote:

> Thanks Nathan. Earlier I have used commons-fileupload 1.2 and now I
> changed it to commons-fileupload 1.0. But, now it throws another
> exception:
> java.lang.NullPointerException
>         at
> org.orbeon.oxf.xforms.control.controls.XFormsUploadControl.setExternal
> Va
> lue(XFormsUploadControl.java:112)
>         at
> org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XForm
> sM
> odelSubmission.java:414)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsCon
> ta
> iningDocument.java:920)
>
> Please help me to resolve this issue.
>
> Thanks
> Jency
>
>
> -----Original Message-----
> From: Nathan Jones [mailto:[hidden email]]
> Sent: Thursday, August 23, 2007 11:27 AM
> To: [hidden email]
> Subject: RE: [ops-users] issue with Upload control
>
>
>
> -----Original Message-----
> From: Nathan Jones [mailto:[hidden email]]
> Sent: Thursday, August 23, 2007 11:27 AM
> To: [hidden email]
> Subject: RE: [ops-users] issue with Upload control
>
> I had a similar problem recently and the solution was simply to make
> sure that the correct version of commons-fileupload is on the
classpath.
> Orbeon requires commons-fileupload 1.0 and appears to not work well
> with later versions.
>
> - Nathan
>
>
>
>


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: issue with Upload control

Alessandro Vernet
Administrator
In reply to this post by Jency Chackummoottil
Jency,

On 8/22/07, Jency Chackummoottil <[hidden email]> wrote:
> The upload control in Orbeon does not work if the state handling is
> 'Client'. It works when the state handling is Session. Is this a bug with
> Orbeon? Is there any way to get the upload control working in Client State
> handling too.

Are you using a submission replace="instance"? That would explain the
issue you are seeing as we do not support the upload with
replace="instance" in client mode. You can see below the bug we have
about this. So you can either switch to a replace="all" or to using
the session mode. If this isn't creating any other problem, I would
recommend you use the session mode.

http://forge.objectweb.org/tracker/index.php?func=detail&aid=307136&group_id=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: issue with Upload control

Jency Chackummoottil
Yes, I am using replace="instance" in submission. Now I changed the
state handling to session mode to get it working.

Thanks
Jency


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
Alessandro Vernet
Sent: Wednesday, September 12, 2007 5:53 AM
To: [hidden email]
Subject: Re: [ops-users] issue with Upload control

Jency,

On 8/22/07, Jency Chackummoottil
<[hidden email]> wrote:
> The upload control in Orbeon does not work if the state handling is
> 'Client'. It works when the state handling is Session. Is this a bug
> with Orbeon? Is there any way to get the upload control working in
> Client State handling too.

Are you using a submission replace="instance"? That would explain the
issue you are seeing as we do not support the upload with
replace="instance" in client mode. You can see below the bug we have
about this. So you can either switch to a replace="all" or to using the
session mode. If this isn't creating any other problem, I would
recommend you use the session mode.

http://forge.objectweb.org/tracker/index.php?func=detail&aid=307136&grou
p_id=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: issue with Upload control

Alessandro Vernet
Administrator
On 9/12/07, Jency Chackummoottil <[hidden email]> wrote:
> Yes, I am using replace="instance" in submission. Now I changed the
> state handling to session mode to get it working.

OK, great.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws