Re: OutOfMemoryError: Java heap space - AppendingStringBuffer
> I start tomcat with: > -Xms512M -Xmx768M > > Should I consider something else? Yes, use a profiler. Everyone who is working on a production system should regularly use a profiler and load testing tool to ensure there are no memory leaks etc. In my experience and if you search threads in this list, leaks are often caused by simple mistakes, such as keeping pages references from your session/ application. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suckerfish Dropdowns contributed to Wicketstuff
I have fixed the problem. Please try it again and let me know if it works. Julian tsuresh wrote: > > I tried this example and it worked well in navigation but I got a problem > in it when one of my menus is named as AddUser which contains the form to > add new user. When I fill the form and try to get the feedback after form > submission I got the following error > java.lang.IllegalArgumentException: A child with id 'linktext' already > exists: > > Could you please test with the form in one of the menus and get feedback > message (e.g for form validation) without any error and inform me if it > works. Thanks > -- View this message in context: http://www.nabble.com/Suckerfish-Dropdowns-contributed-to-Wicketstuff-tp14408947p14533632.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't Find/Load Properties Files
we do not currently check ValidatorClassName.properties files, there is an rfe open for that in jira and will go into 1.3.1 or 1.4.0. for now i would put those new properties into yourapplication.properties -igor On Dec 28, 2007 1:36 PM, Shelli D. Orton <[EMAIL PROTECTED]> wrote: > Hi, > > I asked a variation of this question recently but didn't get a response. I'm > still stumped, so am trying again. I am using Wicket 1.2.6 and Tomcat 5.0.28 > and have created 2 custom validators: > > com.my.company.MyPatternValidator > com.my.company.MyStringValidator > > where MyPatternValidator extends PatternValidator and MyStringValidator > extends StringValidator. I have also created properties files for each class > within a directory structure that match the classpath: > > com/my/company/MyPatternValidator.properties > com/my/company/MyStringValidator.properties > > > The class that extends PatternValidator uses the default message from > Application.properties instead of the message defined in its properties file. > The logs show that the Wizard and Application resources are being loaded: > > Dec 28, 2007 2:31:24 PM wicket.resource.PropertiesFactory > loadPropertiesFileAndWatchForChanges > INFO: Loading properties files from > file:/C:/tomcat-5.0.28/work/Catalina/localhost/myApp/loader/wicket/extensions/wizard/Wizard.properties > Dec 28, 2007 2:31:34 PM wicket.resource.PropertiesFactory > loadPropertiesFileAndWatchForChanges > INFO: Loading properties files from > file:/C:/tomcat-5.0.28/work/Catalina/localhost/myApp/loader/wicket/Application.properties > > The other that extends StringValidator throws this exception: > > java.util.MissingResourceException: Unable to find resource: > MyStringValidator for component: wizard:form:view:service.name > > I have checked and tomcat-5.0.28/work/Catalina/localhost/myApp also contains > /com/my/company/MyPatternValidator.properties and > /com/my/company/MyStringValidator.properties files. > > Can somebody please explain to me (or point me to a resource) how to set up > properties files in Wicket so that they can be found? Any help is greatly > appreciated! > > Shelli > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError: Java heap space - AppendingStringBuffer
He, I thought you were having vacation :-PPP Seb* Johan Compagner wrote: Nowadays its also many times the perm heap thats to small. Dont know if that is the cause for you because i think it will say that in the exception (the propery for that is a special XX system property dont have that at hand) On 12/28/07, Artur W. <[EMAIL PROTECTED]> wrote: Mr Mean wrote: Did you try starting your app container with extra memory, by default java does not allocate that much, a common webapp is likely to run out of memory with the default settings. I start tomcat with: -Xms512M -Xmx768M Should I consider something else? Runtime.getRuntime().freeMemory() returns 165MB. Thanks in advance. Artur -- View this message in context: http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space---AppendingStringBuffer-tp14525029p14527774.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: OutOfMemoryError: Java heap space - AppendingStringBuffer
Nowadays its also many times the perm heap thats to small. Dont know if that is the cause for you because i think it will say that in the exception (the propery for that is a special XX system property dont have that at hand) On 12/28/07, Artur W. <[EMAIL PROTECTED]> wrote: > > > Mr Mean wrote: > > > > Did you try starting your app container with extra memory, by default > > java does not allocate that much, a common webapp is likely to run out > > of memory with the default settings. > > > > I start tomcat with: > -Xms512M -Xmx768M > > Should I consider something else? > > > Runtime.getRuntime().freeMemory() returns 165MB. > > > Thanks in advance. > Artur > > -- > View this message in context: > http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space---AppendingStringBuffer-tp14525029p14527774.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't Find/Load Properties Files
Hi, I asked a variation of this question recently but didn't get a response. I'm still stumped, so am trying again. I am using Wicket 1.2.6 and Tomcat 5.0.28 and have created 2 custom validators: com.my.company.MyPatternValidator com.my.company.MyStringValidator where MyPatternValidator extends PatternValidator and MyStringValidator extends StringValidator. I have also created properties files for each class within a directory structure that match the classpath: com/my/company/MyPatternValidator.properties com/my/company/MyStringValidator.properties The class that extends PatternValidator uses the default message from Application.properties instead of the message defined in its properties file. The logs show that the Wizard and Application resources are being loaded: Dec 28, 2007 2:31:24 PM wicket.resource.PropertiesFactory loadPropertiesFileAndWatchForChanges INFO: Loading properties files from file:/C:/tomcat-5.0.28/work/Catalina/localhost/myApp/loader/wicket/extensions/wizard/Wizard.properties Dec 28, 2007 2:31:34 PM wicket.resource.PropertiesFactory loadPropertiesFileAndWatchForChanges INFO: Loading properties files from file:/C:/tomcat-5.0.28/work/Catalina/localhost/myApp/loader/wicket/Application.properties The other that extends StringValidator throws this exception: java.util.MissingResourceException: Unable to find resource: MyStringValidator for component: wizard:form:view:service.name I have checked and tomcat-5.0.28/work/Catalina/localhost/myApp also contains /com/my/company/MyPatternValidator.properties and /com/my/company/MyStringValidator.properties files. Can somebody please explain to me (or point me to a resource) how to set up properties files in Wicket so that they can be found? Any help is greatly appreciated! Shelli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which way to go? AjaxSubmitLink or AjaxLink? Neither does the job for me :)
> Yes indeed. You could open a JIRA issue with your use case and a proposal. > > Erik. I added an RFE for it now: https://issues.apache.org/jira/browse/WICKET-1247 -- Edvin > Edvin Syse wrote: >> Thanks, that's a good option :) I went with rearranging the layout and >> using two forms, but I think a getDefaultFormValidation() method would >> be a nice addition to the framework :) >> >> -- Edvin >> > > -- > Erik van Oosten > http://day-to-day-stuff.blogspot.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to avoid escaping of the choice-modelobject for a DropDownChoice?
> add an rfe into our jira please > > -igor Done: https://issues.apache.org/jira/browse/WICKET-1246 -- Edvin > On Dec 26, 2007 1:40 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I would like to avoid escaping of my choice-data for a DropDownChoice. >> It seems DropDownChoice derives from AbstractSingleSelectChoice, >> which derives from AbstractChoice, and there i find the following in the >> appendOptionHtml method: >> >> Line 395/Wicket 1.3-rc2: CharSequence escaped = >> Strings.escapeMarkup(display, false, true); >> >> Would it be possible to add an option somewhere so one can choose if the >> model for the element should be escaped, or is there >> another way of achieving this already? >> >> (I want to add » in the option-text, but the ampersand is beeing >> escaped to &) >> >> Sincerely, >> Edvin Syse >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxEditableChoiceLabel uses a MultilineLabel (instead of maybe a Label?)
On Dec 28, 2007 10:27 AM, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote: > The same to me. > > I also found a few issues with this component. How can i create bugs in > JIRA? go here https://issues.apache.org/jira/secure/Dashboard.jspa create an account, login, and create bug reports... -igor > > - The dropDown created doesnt use the IChoiceRenderer passed in the > constructor (still finding why) > - And the Javadoc is wrong... looks like copy&paste from > AjaxEditableMultiLineLabel ;) > > Juan > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxEditableChoiceLabel uses a MultilineLabel (instead of maybe a Label?)
The same to me. I also found a few issues with this component. How can i create bugs in JIRA? - The dropDown created doesnt use the IChoiceRenderer passed in the constructor (still finding why) - And the Javadoc is wrong... looks like copy&paste from AjaxEditableMultiLineLabel ;) Juan
Re: How to avoid escaping of the choice-modelobject for a DropDownChoice?
add an rfe into our jira please -igor On Dec 26, 2007 1:40 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to avoid escaping of my choice-data for a DropDownChoice. It > seems DropDownChoice derives from AbstractSingleSelectChoice, > which derives from AbstractChoice, and there i find the following in the > appendOptionHtml method: > > Line 395/Wicket 1.3-rc2: CharSequence escaped = Strings.escapeMarkup(display, > false, true); > > Would it be possible to add an option somewhere so one can choose if the > model for the element should be escaped, or is there > another way of achieving this already? > > (I want to add » in the option-text, but the ampersand is beeing > escaped to &) > > Sincerely, > Edvin Syse > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No feedback message in Modal window with AjaxSubmitLink
Have you added the feedback panel to the target when detecting an error? (see method onError(AjaxRequestTarget, Form)) In there you should do target.addComponent(feedbackPanel); (since it is an ajax submit link) Hope it helps, Chris On 12/28/07, Javed <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I am facing a very tedious but may be a common problem. > I am using ModalWindow (with page ) in which I have one text box and one > radio group and a AjaxSubmitLink. > I have text box as RequiredTextField and radio group is set Required true. > I have added feed back panel and also called this method > setOutPutMarkupId(true); > > But if I submit this page (i.e.Form) as blank it doesnt show any error > message (feed back message) for both required fields. Where as I have few > other custom validation in onSubmit(AjaxRequestTarget, Form) of > AjaxSubmitLink which are get called when I submit page with proper data in > fields. > > Can anybody tell me why it is not showing Wicket-validation error > messages? > Am I missing something? > > Thanks in Advance. :) > > ~Javed > -- > View this message in context: > http://www.nabble.com/No-feedback-message-in-Modal-window-with-AjaxSubmitLink-tp14527519p14527519.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: OutOfMemoryError: Java heap space - AppendingStringBuffer
Mr Mean wrote: > > Did you try starting your app container with extra memory, by default > java does not allocate that much, a common webapp is likely to run out > of memory with the default settings. > I start tomcat with: -Xms512M -Xmx768M Should I consider something else? Runtime.getRuntime().freeMemory() returns 165MB. Thanks in advance. Artur -- View this message in context: http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space---AppendingStringBuffer-tp14525029p14527774.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No feedback message in Modal window with AjaxSubmitLink
Hi all, I am facing a very tedious but may be a common problem. I am using ModalWindow (with page ) in which I have one text box and one radio group and a AjaxSubmitLink. I have text box as RequiredTextField and radio group is set Required true. I have added feed back panel and also called this method setOutPutMarkupId(true); But if I submit this page (i.e.Form) as blank it doesnt show any error message (feed back message) for both required fields. Where as I have few other custom validation in onSubmit(AjaxRequestTarget, Form) of AjaxSubmitLink which are get called when I submit page with proper data in fields. Can anybody tell me why it is not showing Wicket-validation error messages? Am I missing something? Thanks in Advance. :) ~Javed -- View this message in context: http://www.nabble.com/No-feedback-message-in-Modal-window-with-AjaxSubmitLink-tp14527519p14527519.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError: Java heap space - AppendingStringBuffer
Artur W. schrieb: I didn't. It happened in our production server and only once. But this kind of errors makes me worry so I wanted to ask about it. i´d suggest you duplicate your productionserver and attach a profiler while load-testing with some usual tool like jmeter etc in order to see if/where you´re leaking. cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError: Java heap space - AppendingStringBuffer
Uwe Schäfer wrote: > > I suppose it isn´t the AppendingStringBuffer that is causing your problem. > Did you attach a profiler? http://YourKit.com is just one example of a > good, easy to setup&run profiler. > I didn't. It happened in our production server and only once. But this kind of errors makes me worry so I wanted to ask about it. Artur -- View this message in context: http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space---AppendingStringBuffer-tp14525029p14526513.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError: Java heap space - AppendingStringBuffer
Did you try starting your app container with extra memory, by default java does not allocate that much, a common webapp is likely to run out of memory with the default settings. Maurice On Dec 28, 2007 1:20 PM, Uwe Schäfer <[EMAIL PROTECTED]> wrote: > Hi Artur, > > I suppose it isn´t the AppendingStringBuffer that is causing your problem. > Did you attach a profiler? http://YourKit.com is just one example of a > good, easy to setup&run profiler. > > > java.lang.OutOfMemoryError: Java heap space at > > org.apache.wicket.util.string.AppendingStringBuffer.expandCapacity(AppendingStringBuffer.java:158) > > cu uwe > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError: Java heap space - AppendingStringBuffer
Hi Artur, I suppose it isn´t the AppendingStringBuffer that is causing your problem. Did you attach a profiler? http://YourKit.com is just one example of a good, easy to setup&run profiler. java.lang.OutOfMemoryError: Java heap space at org.apache.wicket.util.string.AppendingStringBuffer.expandCapacity(AppendingStringBuffer.java:158) cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OutOfMemoryError: Java heap space - AppendingStringBuffer
Hello Everybody! I just got OutOfMemoryError in our production application (wicket 1.3rc2). Any ideas what was the reason? Artur java.lang.OutOfMemoryError: Java heap space at org.apache.wicket.util.string.AppendingStringBuffer.expandCapacity(AppendingStringBuffer.java:158) at org.apache.wicket.util.string.AppendingStringBuffer.append(AppendingStringBuffer.java:376) at org.apache.wicket.util.string.AppendingStringBuffer.append(AppendingStringBuffer.java:344) at org.apache.wicket.protocol.http.BufferedWebResponse.write(BufferedWebResponse.java:113) at org.apache.wicket.markup.ComponentTag.writeOutput(ComponentTag.java:661) at org.apache.wicket.Component.renderComponentTag(Component.java:3768) at org.apache.wicket.Component.renderComponent(Component.java:2410)at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) at org.apache.wicket.Component.render(Component.java:2256) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1407) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:631) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112) at org.apache.wicket.Component.renderComponent(Component.java:2419) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) at org.apache.wicket.Component.render(Component.java:2256) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1407) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1344) at org.apache.wicket.Component.renderComponent(Component.java:2419) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) at org.apache.wicket.Component.render(Component.java:2256) at org.apache.wicket.markup.repeater.AbstractRepeater.renderChild(AbstractRepeater.java:119) at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:100) at org.apache.wicket.Component.render(Component.java:2256) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1407) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1344) at org.apache.wicket.Component.renderComponent(Component.java:2419) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) at org.apache.wicket.Component.render(Component.java:2256) at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:222) -- View this message in context: http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space---AppendingStringBuffer-tp14525029p14525029.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]