Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Satrix
Looks like it's working now :) Thank you Francois for your help :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-memory-leak-in-Wicket-1-5-12-tp4668856p4668874.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Satrix
Actually I've checked the code in the second constructor and the stream is the ByteArrayInputStream instance. But I've moved the stream creation from the first constructor to the getImageData because that's the constructor I use to create the 99% of the images in my website. And yes I've changed i

Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Satrix
Hi, It's used very rarely so it should not be a problem. However I've moved the stream creation from the constructor to getImageData method. The important point here - it only happens when the crawler visits my website. When normal users visit my website the file descriptors are closed successfu

Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Satrix
Yeah, sure. Here is the code: public class LocalFileResource extends DynamicImageResource { private final Logger LOG = Logger.getLogger(LocalFileResource.class); private String filePath; private InputStream stream; public LocalFileResource(String filePath) throws FileNotFound

Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Satrix
Hi, It would be quite hard to reproduce the problem in quickstart application. Here is the code of DynamicImageResource: @Override protected byte[] getImageData(IResource.Attributes attributes) { try { return IOUtils.toByteArray(stream); } catch (IOException ex) {

Possible memory leak in Wicket 1.5.12

2014-12-19 Thread Satrix
Hello, I've developed an Wicket website in Wicket 1.5.12. It's hosted on Glassfish server 3.1.2.2 and lately I've run into the following problem: The problem only occurs when a crawler (for example googlebot) visits my website and then when it's crawling, Glassfish opens a lot of file descriptors

Load Image in IE fails

2013-01-26 Thread Satrix
Hello, Im struggling with a very strange problem. Im loading the images from the file system using NonCachingImage or Image classes and everything work fine in FF but in IE it fails to load the images randomly and for example: 1. First request it loads all images. 2. Second request it fails to lo

Wicket Form + multiple fields

2012-12-01 Thread Satrix
haviour because when product passes the validation his model should be updated with new value but it doesn't. Any idea how could I change this ? Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Form-multiple-fields-tp4654407.html Sent

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-24 Thread Satrix
Cause Im eager to learn new things :) Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-EJB-3-1-strange-problem-tp4653977p4654128.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Satrix
other link on my page container returns previous EJB bean so the cart number is 1. Btw Im using LoadableDetachableModel so there is no way that the user is seeing stale data. Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-EJB-3-1-strange

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Satrix
bean (but... after the bean has been recreated, when I click on a links etc, container returns me correct bean instance (previous bean - before recreation)). I wonder if you know someone from the wicketstuff-javaee-inject, so maybe they could provide me a workaround or smth ? Regards, Satrix --

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Satrix
Hello Martin, I'll check this out today and let you know if it helps. Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-EJB-3-1-strange-problem-tp4653977p4653990.html Sent from the Users forum mailing list archive at Nabbl

Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-18 Thread Satrix
se of that I'm struggling with a very strange problem. Everything works as expected except... back button. When I click back button - @Stateful EJB is being recreated each time I press back button. So it's ruining my logic. Any idea what's happening ? Thank you in advance, Sa

Re: Access Denied Page

2012-04-16 Thread Satrix
ng like a charm. Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Access-Denied-Page-tp4555096p4560780.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe

Access Denied Page

2012-04-13 Thread Satrix
what can cause such a problem ? Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Access-Denied-Page-tp4555096p4555096.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Wicket Application on GoDaddy

2012-04-04 Thread Satrix
Yeah, You are right about that it's GoDaddy's problem. Their support couldn't help me with it... But my collegue who's managing this hosting finally did it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4534008.html Sent from t

Re: Wicket Application on GoDaddy

2012-04-03 Thread Satrix
Yes. I know that I can redirect all requests but the question is how to deploy Java Web App on their hosting because there is something like Parallels Panel and you have to upload your WAR file and the files are generated (cant edit them by hand). That's why my application is available under www.d

Re: Wicket Application on GoDaddy

2012-04-03 Thread Satrix
I changed the name of WAR file to ROOT.war but no luck now it's www.domain.com/ROOT/home :/ >From what I know there is tomcat 5 running -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4529402.html Sent from the Users forum mailin

Wicket Application on GoDaddy

2012-04-03 Thread Satrix
cketApplication wicket.website /* So do you have any idea how can I solve this problem or maybe it a problem on their side ? Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-on-GoDaddy-tp4529071p4529071.html Sent

Re: POST parameters lost during InterceptException

2012-03-30 Thread Satrix
The point is that I cannot catch the exception. The code enters first if in the catch section: if (e.getTargetException() instanceof ReplaceHandlerException || e.getTargetException() instanceof AuthorizationException || e.getTargetException() instanceof WicketRuntimeException) { throw (

Re: POST parameters lost during InterceptException

2012-03-30 Thread Satrix
Moreover, I've debugged continueToOriginalDestination (InterceptData data = InterceptData.get();) and the parameters are in the data but at (RequestCycle.get().replaceAllRequestHandlers(new RedirectRequestHandler(url));) it goes into the replaceAllRequestHandlers method and then from this method it

Re: POST parameters lost during InterceptException

2012-03-30 Thread Satrix
Hmm, one question where shall I setup a breakpoint ? Cause I've no idea how to debug only the org.apache.wicket.RestartResponseAtInterceptPageException.InterceptData#set(). Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-parameters-lost-d

POST parameters lost during InterceptException

2012-03-30 Thread Satrix
post parameters to Order Page and after the redirection they are lost. I use Apache Wicket 1.5.5 and SimplePageAuthorizationStrategy. Any idea how can I resolve such a problem ? Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-parameters-lost

Re: POST parameters in URL Problem

2012-03-28 Thread Satrix
Ahhh! It works :). I had some WAR related issues. I confirm that by uprading wicket version to 1.5.5 the problem with POST parameters in URL is fixed. Martin THANK YOU VERY MUCH, you made my day :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-parameters-in-URL

Re: POST parameters in URL Problem

2012-03-28 Thread Satrix
Hey Martin, I've tried and changed the wicket version to 1.5.5 but the problem still occurs :/ Any idea what can be wrong ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-parameters-in-URL-Problem-tp4512104p4512167.html Sent from the Users forum mailing list arch

POST parameters in URL Problem

2012-03-28 Thread Satrix
ot;home") The HomePage has constructor with PageParameters. I can see those parameters in the PageParameters but my question is why is this parameter visible in the url? How can I change it ? Please point me in the right direction. Thank you in advance, Satrix -- View this message in context: