java - No valid constructor error in EJB -
recently changing machine , had work creating new workspace environment. using eclipse kepler. code worked on previous machine don't know went wrong , tried recreating workspace again , again on previous machine. when running web application(primefaces,jsf,jpa 2.1 eclipselink 2.5,tomee 7,java 6,mojarra 2.1.6), "no valid constructor error" in ejb working on other machines. error :
com.sun.faces.renderkit.clientsidestatehelper dogetstate severe: com.magnus.sessionejb.util.fiscalyrejb$$localbeanproxy; com.magnus.sessionejb.util.fiscalyrejb$$localbeanproxy; no valid constructor java.io.invalidclassexception: com.magnus.sessionejb.util.fiscalyrejb$$localbeanproxy; com.magnus.sessionejb.util.fiscalyrejb$$localbeanproxy; no valid constructor @ java.io.objectstreamclass.checkdeserialize(unknown source) @ java.io.objectinputstream.readordinaryobject(unknown source) @ java.io.objectinputstream.readobject0(unknown source) @ java.io.objectinputstream.defaultreadfields(unknown source) @ java.io.objectinputstream.readserialdata(unknown source) @ java.io.objectinputstream.readordinaryobject(unknown source) @ java.io.objectinputstream.readobject0(unknown source) @ java.io.objectinputstream.defaultreadfields(unknown source) @ java.io.objectinputstream.readserialdata(unknown source) @ java.io.objectinputstream.readordinaryobject(unknown source) @ java.io.objectinputstream.readobject0(unknown source) @ java.io.objectinputstream.readobject(unknown source) @ java.util.hashmap.readobject(unknown source) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ java.io.objectstreamclass.invokereadobject(unknown source) @ java.io.objectinputstream.readserialdata(unknown source) @ java.io.objectinputstream.readordinaryobject(unknown source) @ java.io.objectinputstream.readobject0(unknown source) @ java.io.objectinputstream.defaultreadfields(unknown source) @ java.io.objectinputstream.readserialdata(unknown source) @ java.io.objectinputstream.readordinaryobject(unknown source) @ java.io.objectinputstream.readobject0(unknown source) @ java.io.objectinputstream.readarray(unknown source) @ java.io.objectinputstream.readobject0(unknown source) @ java.io.objectinputstream.readobject(unknown source) @ java.util.hashmap.readobject(unknown source) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ java.io.objectstreamclass.invokereadobject(unknown source) @ java.io.objectinputstream.readserialdata(unknown source) @ java.io.objectinputstream.readordinaryobject(unknown source) @ java.io.objectinputstream.readobject0(unknown source) @ java.io.objectinputstream.readobject(unknown source) @ com.sun.faces.renderkit.clientsidestatehelper.dogetstate(clientsidestatehelper.java:255) @ com.sun.faces.renderkit.clientsidestatehelper.getstate(clientsidestatehelper.java:198) @ com.sun.faces.renderkit.responsestatemanagerimpl.getstate(responsestatemanagerimpl.java:100) @ com.sun.faces.application.view.statemanagementstrategyimpl.restoreview(statemanagementstrategyimpl.java:227) @ com.sun.faces.application.statemanagerimpl.restoreview(statemanagerimpl.java:188) @ com.sun.faces.application.view.viewhandlingstrategy.restoreview(viewhandlingstrategy.java:123) @ com.sun.faces.application.view.faceletviewhandlingstrategy.restoreview(faceletviewhandlingstrategy.java:453) @ com.sun.faces.application.view.multiviewhandler.restoreview(multiviewhandler.java:148) @ javax.faces.application.viewhandlerwrapper.restoreview(viewhandlerwrapper.java:303) @ com.sun.faces.lifecycle.restoreviewphase.execute(restoreviewphase.java:192) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.restoreviewphase.dophase(restoreviewphase.java:116) @ com.sun.faces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:118) @ javax.faces.webapp.facesservlet.service(facesservlet.java:593) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:303) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208) @ org.primefaces.webapp.filter.fileuploadfilter.dofilter(fileuploadfilter.java:79) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:241) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208) @ com.magnus.filter.logincheckfilter.dofilter(logincheckfilter.java:130) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:241) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:220) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:122) @ org.apache.tomee.catalina.openejbvalve.invoke(openejbvalve.java:44) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:501) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:103) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:116) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1070) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:611) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:316) @ java.util.concurrent.threadpoolexecutor$worker.runtask(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) @ java.lang.thread.run(unknown source)
my ejb :
import java.io.serializable; import java.util.arraylist; import java.util.list; import javax.ejb.localbean; import javax.ejb.stateless; import com.magnus.model.util.fiscalyrmodel; import com.magnus.sessionejb.core.genericdao; @stateless @localbean public class fiscalyrejb extends genericdao<fiscalyrmodel> implements serializable { /** * */ private static final long serialversionuid = 1l; public fiscalyrejb() { super(fiscalyrmodel.class); // todo auto-generated constructor stub } public list<fiscalyrmodel> listallfiscalyr(){ list<fiscalyrmodel> fslist = new arraylist<fiscalyrmodel>(); fslist = findallwithgivencondition(fiscalyrmodel.find_all_fiscal_yr, null); return fslist; } public fiscalyrmodel getactivefsyr(){ return findoneresult(fiscalyrmodel.find_active_fiscal_yr, null); } }
i don't know caused error working on previous machine. had added required libraries configured on previous machine same version of eclipse. particular error occurring in newly configured machine.
Comments
Post a Comment