jsf - java.lang.InstantiationException: org.primefaces.model.SelectableDataModelWrapper with PF 5.2 and partial state saving enabled -
i have jsf page 2 data tables in 2 different tab in tabview. first data table lazy second no-lazy , value attribute of value of first data table. when try filter global filter in second data table after first character exception.
java.lang.illegalstateexception: java.lang.instantiationexception: org.primefaces.model.selectabledatamodelwrapper @ javax.faces.component.stateholdersaver.restore(stateholdersaver.java:153) @ javax.faces.component.componentstatehelper.restorestate(componentstatehelper.java:306) @ javax.faces.component.uicomponentbase.restorestate(uicomponentbase.java:1628) @ javax.faces.component.uidata.restorestate(uidata.java:1750) @ org.primefaces.component.api.uidata.restorestate(uidata.java:1305) @ com.sun.faces.application.view.faceletpartialstatemanagementstrategy$2.visit(faceletpartialstatemanagementstrategy.java:380) @ com.sun.faces.component.visit.fullvisitcontext.invokevisitcallback(fullvisitcontext.java:151) @ org.primefaces.component.api.uidata.visittree(uidata.java:821) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uinamingcontainer.visittree(uinamingcontainer.java:174) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uiform.visittree(uiform.java:371) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ org.primefaces.component.api.uitabpanel.visittree(uitabpanel.java:920) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ org.primefaces.component.api.uitabpanel.visittree(uitabpanel.java:920) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1700) @ com.sun.faces.application.view.faceletpartialstatemanagementstrategy.restoreview(faceletpartialstatemanagementstrategy.java:367) @ com.sun.faces.application.statemanagerimpl.restoreview(statemanagerimpl.java:138) @ com.sun.faces.application.view.viewhandlingstrategy.restoreview(viewhandlingstrategy.java:123) @ com.sun.faces.application.view.faceletviewhandlingstrategy.restoreview(faceletviewhandlingstrategy.java:585) @ com.sun.faces.application.view.multiviewhandler.restoreview(multiviewhandler.java:150) @ javax.faces.application.viewhandlerwrapper.restoreview(viewhandlerwrapper.java:353) @ com.sun.faces.lifecycle.restoreviewphase.execute(restoreviewphase.java:197) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.restoreviewphase.dophase(restoreviewphase.java:121) @ com.sun.faces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:198) @ javax.faces.webapp.facesservlet.service(facesservlet.java:646) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:295) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:214) @ org.primefaces.webapp.filter.fileuploadfilter.dofilter(fileuploadfilter.java:78) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:246) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:214) @ it.ingeniaonline.platform.ws.filter.characterencodingfilter.dofilter(characterencodingfilter.java:20) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:246) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:214) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:231) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:149) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:512) @ org.jboss.as.jpa.interceptor.webnontxemcloservalve.invoke(webnontxemcloservalve.java:50) @ org.jboss.as.jpa.interceptor.webnontxemcloservalve.invoke(webnontxemcloservalve.java:50) @ org.jboss.as.web.security.securitycontextassociationvalve.invoke(securitycontextassociationvalve.java:169) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:150) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:97) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:102) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:344) @ org.apache.coyote.http11.http11processor.process(http11processor.java:854) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:653) @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:926) @ java.lang.thread.run(thread.java:745) caused by: java.lang.instantiationexception: org.primefaces.model.selectabledatamodelwrapper @ java.lang.class.newinstance(class.java:364) @ javax.faces.component.stateholdersaver.restore(stateholdersaver.java:150) ... 60 more
i using jboss eap 6.4 mojara 2.2.8 , primefaces 5.2 , in web.xml
have javax.faces.partial_state_saving = true
.
if set javax.faces.partial_state_saving = false
, have no problem. primefaces 5.0.4 have no error.
Comments
Post a Comment