Re: Resource.getResourceStream() called twice in 1.4.15

2011-01-20 Thread Brad Grier

To follow-up it appears getResourceStream is being called multiple times per
request for other shared resources like generated images (even under
1.4.12). This can be extremely inefficient depending on the amount of work
done. I'm wondering if there's something wrong with my configuration. Any
thoughts?

I'm basically extending Resource and overriding getResourceStream to return
either a generated image (via AbstractResourceStream) or text information
(via StringResourceStream).
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Resource-getResourceStream-called-twice-in-1-4-15-tp3225454p3227876.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: Resource.getResourceStream() called twice in 1.4.15

2011-01-20 Thread Martin Grigorov
we fixed something similar in 1.5 - UrlResourceStream was opening the
underlying connection twice
but your seems to be something else

create a quickstart and attach to Jira
thanks!

On Thu, Jan 20, 2011 at 5:13 PM, Brad Grier brad.gr...@salusnovus.comwrote:


 To follow-up it appears getResourceStream is being called multiple times
 per
 request for other shared resources like generated images (even under
 1.4.12). This can be extremely inefficient depending on the amount of work
 done. I'm wondering if there's something wrong with my configuration. Any
 thoughts?

 I'm basically extending Resource and overriding getResourceStream to return
 either a generated image (via AbstractResourceStream) or text information
 (via StringResourceStream).
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Resource-getResourceStream-called-twice-in-1-4-15-tp3225454p3227876.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: Resource.getResourceStream() called twice in 1.4.15

2011-01-20 Thread Brad Grier

Thanks. I submitted an issue in Jira with a quickstart .

https://issues.apache.org/jira/browse/WICKET-3357
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Resource-getResourceStream-called-twice-in-1-4-15-tp3225454p3228511.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



Resource.getResourceStream() called twice in 1.4.15

2011-01-19 Thread Brad Grier

Not too long ago I built a url-based api into our web app. I basically
mounted a shared resource and then hooked into getResourceStream to process
information from the url parameters and insert the result into our data
store. Under 1.4.15 I'm getting duplicate records because getResourceStream
is being called twice for every request.

This doesn't happen in 1.4.12.

Is there any way to avoid the duplication? I'm hesitant to rollback to
1.4.12 for other reasons.



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Resource-getResourceStream-called-twice-in-1-4-15-tp3225454p3225454.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