Asynchronous Submission to XPL

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

Asynchronous Submission to XPL

martin.vanderlubbe
Hi,

I have an XPL-pipeline which uploads data from the eXist database to some other server, this upload takes about 40 minutes.
I don't want to force the user to have an browser open for 40 minutes.
I have tried to make an asynchronous submission to this XPL, but when i execute the submission and log off the XPL stops running. In the orbeon.log file i get the following exceptions:
java.lang.IllegalStateException: getAttribute: Session already invalidated
Is it possible to have the XPL running while the user, who started the XPL, is logged off?

Thanks,

--
Martin van der Lubbe

Aexist B.V.

Tel.:        06 22 75 03 39

e-Mail:    [hidden email]





--
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: Asynchronous Submission to XPL

Erik Bruchez
Administrator
Martin,

If the code didn't need to access the session, then things would be
fine, right? So maybe that's the key here: figure out why somebody
needs an attribute from the session and try to prevent that.

-Erik

On Wed, Sep 28, 2011 at 7:54 AM, Martin van der Lubbe
<[hidden email]> wrote:

> Hi,
>
> I have an XPL-pipeline which uploads data from the eXist database to some
> other server, this upload takes about 40 minutes.
> I don't want to force the user to have an browser open for 40 minutes.
> I have tried to make an asynchronous submission to this XPL, but when i
> execute the submission and log off the XPL stops running. In the orbeon.log
> file i get the following exceptions:
>
> java.lang.IllegalStateException: getAttribute: Session already invalidated
>
> Is it possible to have the XPL running while the user, who started the XPL,
> is logged off?
>
> Thanks,
>
> --
> Martin van der Lubbe
>
> Aexist B.V.
>
> Tel.:        06 22 75 03 39
>
> e-Mail:    [hidden email]
>
>
>
>
> --
> 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: Asynchronous Submission to XPL

martin.vanderlubbe
Hi,

The XPL does not request any session attribute. In the orbeon.log file i can see that the session is destroyed twice after which the exceptions appears:
2011-10-03 15:08:42,671 INFO  OrbeonSessionListener  - Session Listener - Session destroyed.
2011-10-03 15:08:48,187 ERROR XFormsServer  - xforms-submit-error - setting throwable {throwable: "java.lang.IllegalStateException: getAttribute: Session already invalidated

I have tried to create a session with a "request" scope before calling the XPL, but this does not seem to make a difference. In the log i don't see an "OrbeonSessionListener - Session Listener - Session created." notice.

Do you have any other ideas?

Thanks,

--
Martin van der Lubbe

Aexist B.V.

Tel.:        06 22 75 03 39

e-Mail:    [hidden email]


On Thu, Sep 29, 2011 at 6:11 AM, Erik Bruchez <[hidden email]> wrote:
Martin,

If the code didn't need to access the session, then things would be
fine, right? So maybe that's the key here: figure out why somebody
needs an attribute from the session and try to prevent that.

-Erik

On Wed, Sep 28, 2011 at 7:54 AM, Martin van der Lubbe
<[hidden email]> wrote:
> Hi,
>
> I have an XPL-pipeline which uploads data from the eXist database to some
> other server, this upload takes about 40 minutes.
> I don't want to force the user to have an browser open for 40 minutes.
> I have tried to make an asynchronous submission to this XPL, but when i
> execute the submission and log off the XPL stops running. In the orbeon.log
> file i get the following exceptions:
>
> java.lang.IllegalStateException: getAttribute: Session already invalidated
>
> Is it possible to have the XPL running while the user, who started the XPL,
> is logged off?
>
> Thanks,
>
> --
> Martin van der Lubbe
>
> Aexist B.V.
>
> Tel.:        06 22 75 03 39
>
> e-Mail:    [hidden email]
>
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Asynchronous Submission to XPL

Erik Bruchez
Administrator
Martin,

No specific idea except that the log message seems to indicate that
some code somewhere is calling getAttribute. Maybe a debugger could
catch that to find the culprit.

-Erik

On Mon, Oct 3, 2011 at 6:10 AM, Martin van der Lubbe
<[hidden email]> wrote:

> Hi,
>
> The XPL does not request any session attribute. In the orbeon.log file i can
> see that the session is destroyed twice after which the exceptions appears:
>
> 2011-10-03 15:08:42,671 INFO  OrbeonSessionListener  - Session Listener -
> Session destroyed.
> 2011-10-03 15:08:48,187 ERROR XFormsServer  - xforms-submit-error - setting
> throwable {throwable: "java.lang.IllegalStateException: getAttribute:
> Session already invalidated
>
> I have tried to create a session with a "request" scope before calling the
> XPL, but this does not seem to make a difference. In the log i don't see an
> "OrbeonSessionListener - Session Listener - Session created." notice.
>
> Do you have any other ideas?
>
> Thanks,
>
> --
> Martin van der Lubbe
>
> Aexist B.V.
>
> Tel.:        06 22 75 03 39
>
> e-Mail:    [hidden email]
>
>
> On Thu, Sep 29, 2011 at 6:11 AM, Erik Bruchez <[hidden email]> wrote:
>>
>> Martin,
>>
>> If the code didn't need to access the session, then things would be
>> fine, right? So maybe that's the key here: figure out why somebody
>> needs an attribute from the session and try to prevent that.
>>
>> -Erik
>>
>> On Wed, Sep 28, 2011 at 7:54 AM, Martin van der Lubbe
>> <[hidden email]> wrote:
>> > Hi,
>> >
>> > I have an XPL-pipeline which uploads data from the eXist database to
>> > some
>> > other server, this upload takes about 40 minutes.
>> > I don't want to force the user to have an browser open for 40 minutes.
>> > I have tried to make an asynchronous submission to this XPL, but when i
>> > execute the submission and log off the XPL stops running. In the
>> > orbeon.log
>> > file i get the following exceptions:
>> >
>> > java.lang.IllegalStateException: getAttribute: Session already
>> > invalidated
>> >
>> > Is it possible to have the XPL running while the user, who started the
>> > XPL,
>> > is logged off?
>> >
>> > Thanks,
>> >
>> > --
>> > Martin van der Lubbe
>> >
>> > Aexist B.V.
>> >
>> > Tel.:        06 22 75 03 39
>> >
>> > e-Mail:    [hidden email]
>> >
>> >
>> >
>> >
>> > --
>> > 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
>
>


--
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: Asynchronous Submission to XPL

martin.vanderlubbe
Hi,

Is it possible to use the session scope "request" to keep the session alive until the XPL is completed?

The wiki says the following about the request session scope:

request - The request scope starts when an HTTP request is sent to the server. It ends when the corresponding HTTP response is sent back to the client. The request scope can be used to integrate a Orbeon Forms application with legacy J2EE servlets.

Thanks,
--
Martin van der Lubbe

Aexist B.V.

Tel.:        06 22 75 03 39

e-Mail:    [hidden email]


On Wed, Oct 5, 2011 at 7:25 AM, Erik Bruchez <[hidden email]> wrote:
Martin,

No specific idea except that the log message seems to indicate that
some code somewhere is calling getAttribute. Maybe a debugger could
catch that to find the culprit.

-Erik

On Mon, Oct 3, 2011 at 6:10 AM, Martin van der Lubbe
<[hidden email]> wrote:
> Hi,
>
> The XPL does not request any session attribute. In the orbeon.log file i can
> see that the session is destroyed twice after which the exceptions appears:
>
> 2011-10-03 15:08:42,671 INFO  OrbeonSessionListener  - Session Listener -
> Session destroyed.
> 2011-10-03 15:08:48,187 ERROR XFormsServer  - xforms-submit-error - setting
> throwable {throwable: "java.lang.IllegalStateException: getAttribute:
> Session already invalidated
>
> I have tried to create a session with a "request" scope before calling the
> XPL, but this does not seem to make a difference. In the log i don't see an
> "OrbeonSessionListener - Session Listener - Session created." notice.
>
> Do you have any other ideas?
>
> Thanks,
>
> --
> Martin van der Lubbe
>
> Aexist B.V.
>
> Tel.:        06 22 75 03 39
>
> e-Mail:    [hidden email]
>
>
> On Thu, Sep 29, 2011 at 6:11 AM, Erik Bruchez <[hidden email]> wrote:
>>
>> Martin,
>>
>> If the code didn't need to access the session, then things would be
>> fine, right? So maybe that's the key here: figure out why somebody
>> needs an attribute from the session and try to prevent that.
>>
>> -Erik
>>
>> On Wed, Sep 28, 2011 at 7:54 AM, Martin van der Lubbe
>> <[hidden email]> wrote:
>> > Hi,
>> >
>> > I have an XPL-pipeline which uploads data from the eXist database to
>> > some
>> > other server, this upload takes about 40 minutes.
>> > I don't want to force the user to have an browser open for 40 minutes.
>> > I have tried to make an asynchronous submission to this XPL, but when i
>> > execute the submission and log off the XPL stops running. In the
>> > orbeon.log
>> > file i get the following exceptions:
>> >
>> > java.lang.IllegalStateException: getAttribute: Session already
>> > invalidated
>> >
>> > Is it possible to have the XPL running while the user, who started the
>> > XPL,
>> > is logged off?
>> >
>> > Thanks,
>> >
>> > --
>> > Martin van der Lubbe
>> >
>> > Aexist B.V.
>> >
>> > Tel.:        06 22 75 03 39
>> >
>> > e-Mail:    [hidden email]
>> >
>> >
>> >
>> >
>> > --
>> > 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
>
>


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