Image from upload not displaying

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

Image from upload not displaying

yemlef
I recently upgraded from Orbeon 3.7.1 to Orbeon 3.8.  It is running inside
JBoss 5.0 with JDK 1.6.  I worked through the JBoss 5.0/Orbeon issues and I
am able to display my XForms, save data, and bring that form up with that
data displayed in the form.  Everything seems to be working but for when I
upload an image.  The image appears to upload and the binary is saved in my
instance data and even displays when printed to pdf but when I load the form
that should display the uploaded image in a browser the image can not be
found.

This worked in my previous version when running Orbeon 3.7.1.  Is there a configuration setting or something that I am missing in order for the image to be displayed?  Below is all of the relevant information from my form:


<xforms:model>
            <xforms:instance id="my-instance">
                <data xmlns="">
                   ...
                   <imgBytes fileName=""/>
                   ...
                </data>
               </xforms:instance>
               <xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
<xforms:model>

....
             <xhtml:tr>
                <xhtml:td>
                    <xforms:output ref="imgBytes" mediatype="image/*"/>
                </xhtml:td>
            </xhtml:tr>
            <xhtml:tr>
                <xhtml:td>
                    <xforms:upload ref="imgBytes">
                        <xforms:filename ref="@fileName"/>
                        <xforms:label>Attach Diagram image</xforms:label>
                        <xforms:hint>Please upload an image</xforms:hint>
                    </xforms:upload>
                </xhtml:td>
            </xhtml:tr>




Here is the link in the output which I believe points to the image:
http://127.0.0.1:8080/orbeon/xforms-server/dynamic/77f4dd964bb16cfdf906b9d717a842a2


And here is what the orbeon log states:
2010-10-06 16:10:40,501 INFO  ProcessorService  -
/xforms-server/dynamic/77f4dd964bb16cfdf906b9d717a842a2 - Received request
2010-10-06 16:10:40,501 INFO  ProcessorService  -
/xforms-server/dynamic/77f4dd964bb16cfdf906b9d717a842a2 - Timing: 0 - Cache
hits for cache.main: 5, fault: 2, adds: 2, expirations: 0, success rate: 71%


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

Re: Image from upload not displaying

yemlef
So I was able to get an image to display but not in a desirable way.  In order to see the image, here are the steps:  

1.  Open Form
2.  Browse and choose an image to upload
3.  Click the save button
4.  Navigate away from that form
5.  Open the same form with the saved instance data
6.  Enter data into another form field and click save again
7.  Navigate away from that form again
8.  Open that form for a third time and the image finally displays and will display in that form until the    session dies.

So, what does that mean?  Is there some sort of session or state handling setting or property that I don't have right?  Here are the properties that I have set for state handling:

<property as="xs:string"  name="oxf.http.state" value="none"/>
<property as="xs:string" name="oxf.xforms.state-handling" value="client"/>

If I change oxf.xforms.state-handling to anything other than "client", I get a session expired error immediately anytime I click on a checkbox, or change focus from a form field.
Reply | Threaded
Open this post in threaded view
|

Re: Image from upload not displaying

yemlef
In reply to this post by yemlef
Found one more thing...
 

The dynamic link that Orbeon creates for the image, http://127.0.0.1:8080/orbeon/xforms-server/dynamic/77f4dd964bb16cfdf906b9d717a842a2, for example produces a 404 error when I go to it the first time and that same url displays the image when I go to it subsequent time.  What causes the image to not be there the first time even though the url is generated properly?
Reply | Threaded
Open this post in threaded view
|

Re: Image from upload not displaying

yemlef
I'm surprised/disappointed no one has responded to my thread.  Am I not asking my question properly or not describing the problem properly?  Or is this just not the type of questioning answered in this forum.

Thanks...
Reply | Threaded
Open this post in threaded view
|

Re: Re: Image from upload not displaying

Hank Ratzesberger-2

Sorry that no one can or has been able to answer this, but
sometimes everyone is busy.  Sometimes the Orbeon developers
need a week to come up with an answer.  

I am sure they welcome your input.

They also provide support contracts so that when you run into
situations like this, they are obligate to respond and have the
resources to do so.

(I may have some time after today....)

Regards,
Hank

On Oct 12, 2010, at 8:28 AM, yemlef wrote:

>
> I'm surprised/disappointed no one has responded to my thread.  Am I not
> asking my question properly or not describing the problem properly?  Or is
> this just not the type of questioning answered in this forum.
>
> Thanks...
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p2992120.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
Hank Ratzesberger
NEES@UCSB
Earth Research Institute
University of California, Santa Barbara
805-893-8042








--
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: Image from upload not displaying

Erik Bruchez
Administrator
In reply to this post by yemlef
Sorry about the delay, but you don't provide a standalone example, so
the burden is on whoever looks at the issue. Here is an example that
works for me:

http://gist.github.com/623354

Note that the image is uploaded when a submission takes place (here I
used the "test:" submission). It's not ideal but it works.

-Erik

On Tue, Oct 12, 2010 at 8:28 AM, yemlef <[hidden email]> wrote:

>
> I'm surprised/disappointed no one has responded to my thread.  Am I not
> asking my question properly or not describing the problem properly?  Or is
> this just not the type of questioning answered in this forum.
>
> Thanks...
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p2992120.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
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: Image from upload not displaying

yemlef
Thanks for the example but I don't think my problem is the uploading of the image any more.  The image appears to be uploaded fine.  I can see the binary in the instance data and as I described above I can even see the uploaded image through the output tag by going through a sequence of events that leads me to believe I am having some kind of session issue.  Here is how I can make the image display if its bind is set up as xs:anyURI


1.  Open Form
2.  Browse and choose an image to upload
3.  Click the save button
4.  Navigate away from that form
5.  Open the same form with the saved instance data
6.  Enter data into another form field and click save again
7.  Navigate away from that form again
8.  Open that form for a third time and the image finally displays and will display in that form until the    session dies.

Here is how I can get the image to display if its bind is set up as xs:binary64

1.  Open Form
2.  Browse and choose an image to upload
3.  Click the save button
4.  Navigate away from that form
5.  Open the same form with the saved instance data
6.  Enter data into another form field and tab to another form field
7. The image displays
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Image from upload not displaying

Erik Bruchez
Administrator
Jon,

Dynamic images do require the session, as the mapping between the
image URL hash and the actual image is stored in the session.

What does your setup look like?

-Erik

On Wed, Oct 13, 2010 at 7:04 PM, yemlef <[hidden email]> wrote:

>
> Thanks for the example but I don't think my problem is the uploading of the
> image any more.  The image appears to be uploaded fine.  I can see the
> binary in the instance data and as I described above I can even see the
> uploaded image through the output tag by going through a sequence of events
> that leads me to believe I am having some kind of session issue.  Here is
> how I can make the image display if its bind is set up as xs:anyURI
>
>
> 1.  Open Form
> 2.  Browse and choose an image to upload
> 3.  Click the save button
> 4.  Navigate away from that form
> 5.  Open the same form with the saved instance data
> 6.  Enter data into another form field and click save again
> 7.  Navigate away from that form again
> 8.  Open that form for a third time and the image finally displays and will
> display in that form until the    session dies.
>
> Here is how I can get the image to display if its bind is set up as
> xs:binary64
>
> 1.  Open Form
> 2.  Browse and choose an image to upload
> 3.  Click the save button
> 4.  Navigate away from that form
> 5.  Open the same form with the saved instance data
> 6.  Enter data into another form field and tab to another form field
> 7. The image displays
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p2994720.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
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: Image from upload not displaying

yemlef
Erik Bruchez wrote
Jon,

Dynamic images do require the session, as the mapping between the
image URL hash and the actual image is stored in the session.

What does your setup look like?

-Erik

Erik,

I am running JBoss 5.1/JDK 6 with Orbeon 3.8.  I have extracted the orbeon.war to an orbeaon.war folder in my JBoss deploy directory and set up the servlet filters.  I have a seperate deployment in my own application as an ear file.

Here are the relevant parts of my form:

Below is all of the relevant information from my form:


<xforms:model>
            <xforms:instance id="my-instance">
                <data xmlns="">
                   ...
                   <imgBytes fileName=""/>
                   ...
                </data>
               </xforms:instance>
               <xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
<xforms:model>

....
             <xhtml:tr>
                <xhtml:td>
                    <xforms:output ref="imgBytes" mediatype="image/*"/>
                </xhtml:td>
            </xhtml:tr>
            <xhtml:tr>
                <xhtml:td>
                    <xforms:upload ref="imgBytes">
                        <xforms:filename ref="@fileName"/>
                        <xforms:label>Attach Diagram image</xforms:label>
                        <xforms:hint>Please upload an image</xforms:hint>
                    </xforms:upload>
                </xhtml:td>
            </xhtml:tr>

And here are my two session/cache configuration settings as I have them now:
<property as="xs:string"  name="oxf.http.state" value="none"/>
<property as="xs:string" name="oxf.xforms.state-handling" value="client"/> 

Changing those to anything else causes a Session Timeout to occur the next time Orbeon goes back to the server

Thanks,
Jon
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Image from upload not displaying

Erik Bruchez
Administrator
Do you have one EAR or two EARs?

-Erik

On Mon, Oct 18, 2010 at 11:12 AM, yemlef <[hidden email]> wrote:

>
>
> Erik Bruchez wrote:
>>
>> Jon,
>>
>> Dynamic images do require the session, as the mapping between the
>> image URL hash and the actual image is stored in the session.
>>
>> What does your setup look like?
>>
>> -Erik
>>
>>
>
>
> Erik,
>
> I am running JBoss 5.1/JDK 6 with Orbeon 3.8.  I have extracted the
> orbeon.war to an orbeaon.war folder in my JBoss deploy directory and set up
> the servlet filters.  I have a seperate deployment in my own application as
> an ear file.
>
> Here are the relevant parts of my form:
>
> Below is all of the relevant information from my form:
>
>
> <xforms:model>
>            <xforms:instance id="my-instance">
>                <data xmlns="">
>                   ...
>                   <imgBytes fileName=""/>
>                   ...
>                </data>
>               </xforms:instance>
>               <xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
> <xforms:model>
>
> ....
>             <xhtml:tr>
>                <xhtml:td>
>                    <xforms:output ref="imgBytes" mediatype="image/*"/>
>                </xhtml:td>
>            </xhtml:tr>
>            <xhtml:tr>
>                <xhtml:td>
>                    <xforms:upload ref="imgBytes">
>                        <xforms:filename ref="@fileName"/>
>                        <xforms:label>Attach Diagram image</xforms:label>
>                        <xforms:hint>Please upload an image</xforms:hint>
>                    </xforms:upload>
>                </xhtml:td>
>            </xhtml:tr>
>
> And here are my two session/cache configuration settings as I have them now:
> <property as="xs:string"  name="oxf.http.state" value="none"/>
> <property as="xs:string" name="oxf.xforms.state-handling" value="client"/>
>
> Changing those to anything else causes a Session Timeout to occur the next
> time Orbeon goes back to the server
>
> Thanks,
> Jon
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3000759.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
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: Re: Image from upload not displaying

yemlef
one EAR

Erik Bruchez wrote
Do you have one EAR or two EARs?

-Erik

On Mon, Oct 18, 2010 at 11:12 AM, yemlef <jjfelmey@gmail.com> wrote:
>
>
> Erik Bruchez wrote:
>>
>> Jon,
>>
>> Dynamic images do require the session, as the mapping between the
>> image URL hash and the actual image is stored in the session.
>>
>> What does your setup look like?
>>
>> -Erik
>>
>>
>
>
> Erik,
>
> I am running JBoss 5.1/JDK 6 with Orbeon 3.8.  I have extracted the
> orbeon.war to an orbeaon.war folder in my JBoss deploy directory and set up
> the servlet filters.  I have a seperate deployment in my own application as
> an ear file.
>
> Here are the relevant parts of my form:
>
> Below is all of the relevant information from my form:
>
>
> <xforms:model>
>            <xforms:instance id="my-instance">
>                <data xmlns="">
>                   ...
>                   <imgBytes fileName=""/>
>                   ...
>                </data>
>               </xforms:instance>
>               <xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
> <xforms:model>
>
> ....
>             <xhtml:tr>
>                <xhtml:td>
>                    <xforms:output ref="imgBytes" mediatype="image/*"/>
>                </xhtml:td>
>            </xhtml:tr>
>            <xhtml:tr>
>                <xhtml:td>
>                    <xforms:upload ref="imgBytes">
>                        <xforms:filename ref="@fileName"/>
>                        <xforms:label>Attach Diagram image</xforms:label>
>                        <xforms:hint>Please upload an image</xforms:hint>
>                    </xforms:upload>
>                </xhtml:td>
>            </xhtml:tr>
>
> And here are my two session/cache configuration settings as I have them now:
> <property as="xs:string"  name="oxf.http.state" value="none"/>
> <property as="xs:string" name="oxf.xforms.state-handling" value="client"/>
>
> Changing those to anything else causes a Session Timeout to occur the next
> time Orbeon goes back to the server
>
> Thanks,
> Jon
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3000759.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


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

Re: Re: Re: Re: Re: Image from upload not displaying

Erik Bruchez
Administrator
oxf.xforms.state-handling should almost never be set to "client" as
the Ajax traffic involved becomes very large, and caching suffers a
lot in that mode too.

So the only option is to find a way to solve that session issue.

If you keep oxf.xforms.state-handling should to "server", are you
saying that any Ajax request fails?

-Erik

On Thu, Oct 21, 2010 at 12:17 PM, yemlef <[hidden email]> wrote:

>
> one EAR
>
>
> Erik Bruchez wrote:
>>
>> Do you have one EAR or two EARs?
>>
>> -Erik
>>
>> On Mon, Oct 18, 2010 at 11:12 AM, yemlef <[hidden email]> wrote:
>>>
>>>
>>> Erik Bruchez wrote:
>>>>
>>>> Jon,
>>>>
>>>> Dynamic images do require the session, as the mapping between the
>>>> image URL hash and the actual image is stored in the session.
>>>>
>>>> What does your setup look like?
>>>>
>>>> -Erik
>>>>
>>>>
>>>
>>>
>>> Erik,
>>>
>>> I am running JBoss 5.1/JDK 6 with Orbeon 3.8.  I have extracted the
>>> orbeon.war to an orbeaon.war folder in my JBoss deploy directory and set
>>> up
>>> the servlet filters.  I have a seperate deployment in my own application
>>> as
>>> an ear file.
>>>
>>> Here are the relevant parts of my form:
>>>
>>> Below is all of the relevant information from my form:
>>>
>>>
>>> <xforms:model>
>>>            <xforms:instance id="my-instance">
>>>                <data xmlns="">
>>>                   ...
>>>                   <imgBytes fileName=""/>
>>>                   ...
>>>                </data>
>>>               </xforms:instance>
>>>               <xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
>>> <xforms:model>
>>>
>>> ....
>>>             <xhtml:tr>
>>>                <xhtml:td>
>>>                    <xforms:output ref="imgBytes" mediatype="image/*"/>
>>>                </xhtml:td>
>>>            </xhtml:tr>
>>>            <xhtml:tr>
>>>                <xhtml:td>
>>>                    <xforms:upload ref="imgBytes">
>>>                        <xforms:filename ref="@fileName"/>
>>>                        <xforms:label>Attach Diagram image</xforms:label>
>>>                        <xforms:hint>Please upload an image</xforms:hint>
>>>                    </xforms:upload>
>>>                </xhtml:td>
>>>            </xhtml:tr>
>>>
>>> And here are my two session/cache configuration settings as I have them
>>> now:
>>> <property as="xs:string"  name="oxf.http.state" value="none"/>
>>> <property as="xs:string" name="oxf.xforms.state-handling"
>>> value="client"/>
>>>
>>> Changing those to anything else causes a Session Timeout to occur the
>>> next
>>> time Orbeon goes back to the server
>>>
>>> Thanks,
>>> Jon
>>>
>>> --
>>> View this message in context:
>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3000759.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.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
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3006136.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
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: Re: Re: Re: Image from upload not displaying

yemlef

Yes, I get the Orbeon error page stating that the session has expired.  I don't have any session issues with the rest of my application that includes other ajax calls outside of the Orbeon ones.  The Orbeon examples included in the Orbeon war, including the image displays work fine.

On Oct 22, 2010 9:31 PM, "Erik Bruchez" <[hidden email]> wrote:
> oxf.xforms.state-handling should almost never be set to "client" as
> the Ajax traffic involved becomes very large, and caching suffers a
> lot in that mode too.
>
> So the only option is to find a way to solve that session issue.
>
> If you keep oxf.xforms.state-handling should to "server", are you
> saying that any Ajax request fails?
>
> -Erik
>
> On Thu, Oct 21, 2010 at 12:17 PM, yemlef <[hidden email]> wrote:
>>
>> one EAR
>>
>>
>> Erik Bruchez wrote:
>>>
>>> Do you have one EAR or two EARs?
>>>
>>> -Erik
>>>
>>> On Mon, Oct 18, 2010 at 11:12 AM, yemlef <[hidden email]> wrote:
>>>>
>>>>
>>>> Erik Bruchez wrote:
>>>>>
>>>>> Jon,
>>>>>
>>>>> Dynamic images do require the session, as the mapping between the
>>>>> image URL hash and the actual image is stored in the session.
>>>>>
>>>>> What does your setup look like?
>>>>>
>>>>> -Erik
>>>>>
>>>>>
>>>>
>>>>
>>>> Erik,
>>>>
>>>> I am running JBoss 5.1/JDK 6 with Orbeon 3.8.  I have extracted the
>>>> orbeon.war to an orbeaon.war folder in my JBoss deploy directory and set
>>>> up
>>>> the servlet filters.  I have a seperate deployment in my own application
>>>> as
>>>> an ear file.
>>>>
>>>> Here are the relevant parts of my form:
>>>>
>>>> Below is all of the relevant information from my form:
>>>>
>>>>
>>>> <xforms:model>
>>>>            <xforms:instance id="my-instance">
>>>>                <data xmlns="">
>>>>                   ...
>>>>                   <imgBytes fileName=""/>
>>>>                   ...
>>>>                </data>
>>>>               </xforms:instance>
>>>>               <xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
>>>> <xforms:model>
>>>>
>>>> ....
>>>>             <xhtml:tr>
>>>>                <xhtml:td>
>>>>                    <xforms:output ref="imgBytes" mediatype="image/*"/>
>>>>                </xhtml:td>
>>>>            </xhtml:tr>
>>>>            <xhtml:tr>
>>>>                <xhtml:td>
>>>>                    <xforms:upload ref="imgBytes">
>>>>                        <xforms:filename ref="@fileName"/>
>>>>                        <xforms:label>Attach Diagram image</xforms:label>
>>>>                        <xforms:hint>Please upload an image</xforms:hint>
>>>>                    </xforms:upload>
>>>>                </xhtml:td>
>>>>            </xhtml:tr>
>>>>
>>>> And here are my two session/cache configuration settings as I have them
>>>> now:
>>>> <property as="xs:string"  name="oxf.http.state" value="none"/>
>>>> <property as="xs:string" name="oxf.xforms.state-handling"
>>>> value="client"/>
>>>>
>>>> Changing those to anything else causes a Session Timeout to occur the
>>>> next
>>>> time Orbeon goes back to the server
>>>>
>>>> Thanks,
>>>> Jon
>>>>
>>>> --
>>>> View this message in context:
>>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3000759.html
>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>> Nabble.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
>>>>
>>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>> --
>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3006136.html
>> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>>
>>


--
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: Re: Re: Re: Re: Image from upload not displaying

Erik Bruchez
Administrator
Jon,

It seems like this would be worth looking at. Can you package
something we can just drop into JBoss to reproduce the issue? The
easier it is to reproduce, the more likely it is we can look at it! If
large, feel free to use a service like YouSendIt to send it our way.

-Erik

[1] http://www.yousendit.com/

On Sat, Oct 23, 2010 at 11:59 AM, Jon Felmey <[hidden email]> wrote:

> Yes, I get the Orbeon error page stating that the session has expired.  I
> don't have any session issues with the rest of my application that includes
> other ajax calls outside of the Orbeon ones.  The Orbeon examples included
> in the Orbeon war, including the image displays work fine.
>
> On Oct 22, 2010 9:31 PM, "Erik Bruchez" <[hidden email]> wrote:
>> oxf.xforms.state-handling should almost never be set to "client" as
>> the Ajax traffic involved becomes very large, and caching suffers a
>> lot in that mode too.
>>
>> So the only option is to find a way to solve that session issue.
>>
>> If you keep oxf.xforms.state-handling should to "server", are you
>> saying that any Ajax request fails?
>>
>> -Erik
>>
>> On Thu, Oct 21, 2010 at 12:17 PM, yemlef <[hidden email]> wrote:
>>>
>>> one EAR
>>>
>>>
>>> Erik Bruchez wrote:
>>>>
>>>> Do you have one EAR or two EARs?
>>>>
>>>> -Erik
>>>>
>>>> On Mon, Oct 18, 2010 at 11:12 AM, yemlef <[hidden email]> wrote:
>>>>>
>>>>>
>>>>> Erik Bruchez wrote:
>>>>>>
>>>>>> Jon,
>>>>>>
>>>>>> Dynamic images do require the session, as the mapping between the
>>>>>> image URL hash and the actual image is stored in the session.
>>>>>>
>>>>>> What does your setup look like?
>>>>>>
>>>>>> -Erik
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> Erik,
>>>>>
>>>>> I am running JBoss 5.1/JDK 6 with Orbeon 3.8.  I have extracted the
>>>>> orbeon.war to an orbeaon.war folder in my JBoss deploy directory and
>>>>> set
>>>>> up
>>>>> the servlet filters.  I have a seperate deployment in my own
>>>>> application
>>>>> as
>>>>> an ear file.
>>>>>
>>>>> Here are the relevant parts of my form:
>>>>>
>>>>> Below is all of the relevant information from my form:
>>>>>
>>>>>
>>>>> <xforms:model>
>>>>>            <xforms:instance id="my-instance">
>>>>>                <data xmlns="">
>>>>>                   ...
>>>>>                   <imgBytes fileName=""/>
>>>>>                   ...
>>>>>                </data>
>>>>>               </xforms:instance>
>>>>>               <xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
>>>>> <xforms:model>
>>>>>
>>>>> ....
>>>>>             <xhtml:tr>
>>>>>                <xhtml:td>
>>>>>                    <xforms:output ref="imgBytes" mediatype="image/*"/>
>>>>>                </xhtml:td>
>>>>>            </xhtml:tr>
>>>>>            <xhtml:tr>
>>>>>                <xhtml:td>
>>>>>                    <xforms:upload ref="imgBytes">
>>>>>                        <xforms:filename ref="@fileName"/>
>>>>>                        <xforms:label>Attach Diagram
>>>>> image</xforms:label>
>>>>>                        <xforms:hint>Please upload an
>>>>> image</xforms:hint>
>>>>>                    </xforms:upload>
>>>>>                </xhtml:td>
>>>>>            </xhtml:tr>
>>>>>
>>>>> And here are my two session/cache configuration settings as I have them
>>>>> now:
>>>>> <property as="xs:string"  name="oxf.http.state" value="none"/>
>>>>> <property as="xs:string" name="oxf.xforms.state-handling"
>>>>> value="client"/>
>>>>>
>>>>> Changing those to anything else causes a Session Timeout to occur the
>>>>> next
>>>>> time Orbeon goes back to the server
>>>>>
>>>>> Thanks,
>>>>> Jon
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3000759.html
>>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>>> Nabble.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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3006136.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.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
>>>
>>>
>
>
> --
> 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
>
>


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