Re: problem using ThreadPool in wicket

2013-04-05 Thread Ernesto Reinaldo Barreiro
you are welcome:-)


On Sat, Apr 6, 2013 at 1:31 AM, saty  wrote:

> You were right, It was my fault, the code was indeed trying to read user
> from
> session. It works fine after i tweaked the code, thanks!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657791.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: problem using ThreadPool in wicket

2013-04-05 Thread saty
You were right, It was my fault, the code was indeed trying to read user from
session. It works fine after i tweaked the code, thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657791.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem using ThreadPool in wicket

2013-04-05 Thread saty
It just prints one line as of now as i mentioned above, trying to see if i
can print more details.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657788.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem using ThreadPool in wicket

2013-04-05 Thread Ernesto Reinaldo Barreiro
post stacktrace.


On Fri, Apr 5, 2013 at 10:19 PM, saty  wrote:

> I am not doing any Application.get()  inside the thread pool, pool does not
> care who is using it, it just processed anything submitted to it and
> returns
> a future to collect the output, Any thoughts?
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657786.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: problem using ThreadPool in wicket

2013-04-05 Thread saty
I am not doing any Application.get()  inside the thread pool, pool does not
care who is using it, it just processed anything submitted to it and returns
a future to collect the output, Any thoughts?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657786.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem using ThreadPool in wicket

2013-04-05 Thread Ernesto Reinaldo Barreiro
Hi,

On Fri, Apr 5, 2013 at 10:00 PM, saty  wrote:

> Sorry i dont get what you mean by 'You will have to path the "info" you
> need
> to this "pooled
> thread" from "request handling thread" '
> Did you mean 'pass the info'? that is what i am doing..
>

yes.. I might be getting sleepy:-)


>
> The request handling thread is creating a pooled thread and submitting
> tasks
> and waiting for them to finish and than combine the output and respond,
> what
> is missing in this.
>

On threads on the pool you WILL NOT be able to do

Application.get()

As application is attached as a thread local variable to thread handling
request.


> Thanks
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657782.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: problem using ThreadPool in wicket

2013-04-05 Thread Andrea Del Bene
Which is the instruction that rises the exception and how do you pass 
the application instance to the working threads of the pool?

Sorry i dont get what you mean by 'You will have to path the "info" you need
to this "pooled
thread" from "request handling thread" '
Did you mean 'pass the info'? that is what i am doing..

The request handling thread is creating a pooled thread and submitting tasks
and waiting for them to finish and than combine the output and respond, what
is missing in this.

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657782.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem using ThreadPool in wicket

2013-04-05 Thread saty
Sorry i dont get what you mean by 'You will have to path the "info" you need
to this "pooled
thread" from "request handling thread" '
Did you mean 'pass the info'? that is what i am doing..

The request handling thread is creating a pooled thread and submitting tasks
and waiting for them to finish and than combine the output and respond, what
is missing in this.

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778p4657782.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem using ThreadPool in wicket

2013-04-05 Thread Ernesto Reinaldo Barreiro
Application is a thread local which is attached to the thread handling the
request... You will have to path the "info" you need to this "pooled
thread" from "request handling thread"


On Fri, Apr 5, 2013 at 9:26 PM, saty  wrote:

> ExecutionExceptionjava.util.concurrent.ExecutionException:
> org.apache.wicket.WicketRuntimeException: There is no application attached
> to current thread pool-2-thread-1
>
> I am trying to process a bulk data request within a thread pool.
>
>
> Thanks for your help.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


problem using ThreadPool in wicket

2013-04-05 Thread saty
ExecutionExceptionjava.util.concurrent.ExecutionException:
org.apache.wicket.WicketRuntimeException: There is no application attached
to current thread pool-2-thread-1

I am trying to process a bulk data request within a thread pool.


Thanks for your help.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-using-ThreadPool-in-wicket-tp4657778.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org