Just in case:
i recently had exactly the same problem. It turned out that it is not
related to Wicket at all.
Do you use a Java8 JDK? Do you compile for Java7?
The PermGen Exception happens at random times [*], always at the same
line in the code. Hence you assume you have some faulty code there.
But it is a JDK 8 -> 7 compatibility mode issue, not Wicket.
Before losing lots of hours (like i did) just check the settings of your
IDE.
[*] under Windows 64bit twice as often as under Linux.
HTH
Christos
Am Wednesday, den 18.11.2015, 11:56 -0500 schrieb Mihir Chhaya:
> Martin, Yes. I am using Wicket 7.00.
>
> On Wed, Nov 18, 2015 at 11:55 AM, Mihir Chhaya
> wrote:
>
> > First, Thanks Francois for your quick looking into this.
> >
> > The SearchDealerPage is created as below. The link is menu option.
> >
> > BookmarkablePageLink dealerInquiryLink = new
> > BookmarkablePageLink("dealerInquiryLink", SearchDealerPage.class,
> > searchPageParameters);
> >
> >
> > Thanks,
> >
> > -Mihir.
> >
> >
> > On Wed, Nov 18, 2015 at 11:50 AM, Francois Meillet <
> > francois.meil...@gmail.com> wrote:
> >
> >> Sorry, it's seems that there is a problem when you instanciate the
> >> SearchDealerPage instance
> >>
> >> How you instanciate it ?
> >>
> >> François
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Le 18 nov. 2015 à 17:46, Mihir Chhaya a écrit :
> >>
> >> > Following are AbcUserSearchTO and AbcUser classes with DomainObject
> >> > implementation.
> >> >
> >> > public interface DomainObject extends Serializable {
> >> >
> >> >Long getId();
> >> > }
> >> >
> >> > public class AbcUserSearchTO implements DomainObject {
> >> >
> >> > /**
> >> > *
> >> > */
> >> > private static final long serialVersionUID = 1L;
> >> >
> >> > /* (non-Javadoc)
> >> > * @see gov.fdle.fpp.domain.DomainObject#getId()
> >> > */
> >> > @Override
> >> > public Long getId() {
> >> > return null;
> >> > }
> >> > private String searchName;
> >> > private String searchDealer;
> >> >
> >> > /**
> >> > * @return the lastName
> >> > */
> >> > public String getSearchName() {
> >> > return searchName;
> >> > }
> >> >
> >> > /**
> >> > * @param name the lastName to set
> >> > */
> >> > public void setSearchName(String name) {
> >> >if (name == null){
> >> >name = FppConstants.EMPTY_STRING;
> >> >}
> >> > this.searchName = name;
> >> > }
> >> >
> >> > /**
> >> > * @return the searchDealer
> >> > */
> >> > public String getSearchDealer() {
> >> > return searchDealer;
> >> > }
> >> >
> >> > /**
> >> > * @param searchDealer the searchDealer to set
> >> > */
> >> > public void setSearchDealer(String searchDealer) {
> >> > this.searchDealer = searchDealer;
> >> > }
> >> > }
> >> >
> >> >
> >> > public class AbcUser implements DomainObject {
> >> >
> >> > private static final long serialVersionUID = 1L;
> >> > public Long getId() {
> >> >return null;
> >> >}
> >> >
> >> > //ASM fields
> >> >private long userNbr;
> >> >private String userName;
> >> >private String password;
> >> >private String firstName;
> >> >private String lastName;
> >> > ...setter
> >> > getter
> >> >
> >> > }
> >> >
> >> > On Wed, Nov 18, 2015 at 11:43 AM, Francois Meillet <
> >> > francois.meil...@gmail.com> wrote:
> >> >
> >> >> and the abcUserSearchTO ?
> >> >>
> >> >>
> >> >> François
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Le 18 nov. 2015 à 17:40, Mihir Chhaya a
> >> écrit :
> >> >>
> >> >>> Here is SearchDealerPage.
> >> >>>
> >> >>> package gov.xyz.abc.view.asm;
> >> >>>
> >> >>> import gov.xyz.abc.business.AsmAdminService;
> >> >>> import gov.xyz.abc.common.AppSession;
> >> >>> import gov.xyz.abc.common.AuthenticatedPage;
> >> >>> import gov.xyz.abc.common.DealerDetails;
> >> >>> import gov.xyz.abc.common.abcException;
> >> >>> import gov.xyz.abc.model.abcUser;
> >> >>> import gov.xyz.abc.model.abcUserSearchTO;
> >> >>> import gov.xyz.abc.util.DefaultFocusBehavior;
> >> >>> import gov.xyz.abc.util.abcConstants;
> >> >>> import gov.xyz.abc.util.abcErrConstant;
> >> >>> import gov.xyz.abc.util.abcUtils;
> >> >>> import gov.xyz.wktcommon.components.ErroringTextField;
> >> >>>
> >> >>> import org.apache.commons.lang3.StringUtils;
> >> >>> import org.apache.wicket.ajax.AjaxRequestTarget;
> >> >>> import org.apache.wicket.ajax.markup.html.form.AjaxButton;
> >> >>> import org.apache.wicket.markup.html.basic.Label;
> >> >>> import org.apache.wicket.markup.html.form.Form;
> >> >>> import org.apache.wicket.model.CompoundPropertyModel;
> >> >>> import org.apache.wicket.model.Model;
> >> >>> import org.apache.wicket.request.mapper.parameter.PageParameters;
> >> >>> import org.apache.wicket.spring.injection.annot.SpringBean;
> >> >>> import org.apache.wicket.validation.validator.StringValidator;
> >> >>>
> >> >>>
> >> >>> /**
> >> >>> * Search Dealer Page.
> >> >>> *
> >> >>> * @author Pavankumar Appana
> >> >>> * @since 08/05/2011
> >> >>> */
> >> >>> public class SearchDealerPage extends