OpenXava Impossible to execute Add files action Member not found in model -
i'm experimenting openxava files stereotype , embedded class , finding strange error. first of all, if create record , attach bunch of files before saving first time, works. if i, however, first create record (temple), leave in embedded record (library) blank, save (saves successfully, says), go edit it, following message: "impossible execute add files action: member library.documents not found in model temple"
i have not been able find useful via google on this.
is i'm doing wrong or error in openxava library.
i'm using: openxava version 5.1.1 tomcat comes it: apache tomcat version 7.0.50 oracle 11g
here's temple , inner library class:
package org.openxava.zen.model; import javax.persistence.*; import org.openxava.annotations.*; @entity public class temple { @id @column(length=3) @generatedvalue @readonly private int id; @version private integer version; @column(length=50) private string name; @stereotype("images_gallery") private string photos; @column private string address; @embedded private library library; @embeddable public static class library { @stereotype("files") @column(length=32) private string documents; public admittance getadmittance() { return admittance; } public void setadmittance(admittance admittance) { this.admittance = admittance; } @column private admittance admittance; public enum admittance {members_only, community, everyone}; public string getdocuments() { return documents; } public void setdocuments(string documents) { this.documents = documents; } } public library getlibrary() { return library; } public void setlibrary(library library) { this.library = library; } public integer getversion() { return version; } public void setversion(integer version) { this.version = version; } public string getname() { return name; } public void setname(string name) { this.name = name; } public string getphotos() { return photos; } public void setphotos(string photos) { this.photos = photos; } public string getaddress() { return address; } public void setaddress(string address) { this.address = address; } public int getid() { return id; } public void setid(int id) { this.id = id; } }
full stacktrace:
dec 01, 2014 4:09:46 pm org.directwebremoting.util.commonsloggingoutput info info: exec: module.request() dec 01, 2014 4:09:46 pm org.openxava.model.impl.mapfacadebean validate warning: warning!: member library.documents of temple not validated: type unkown (property, reference, collection) dec 01, 2014 4:09:46 pm org.openxava.controller.modulemanager manageregularexception severe: member library.documents not found in model temple org.openxava.util.xavaexception: member library.documents not found in model temple @ org.openxava.model.impl.mapfacadebean.convertsubmapsinobject(mapfacadebean.java:1675) @ org.openxava.model.impl.mapfacadebean.setvalues(mapfacadebean.java:1337) @ org.openxava.model.impl.mapfacadebean.setvalues(mapfacadebean.java:198) @ org.openxava.model.mapfacade.setvalues(mapfacade.java:635) @ org.openxava.actions.addfiletofilesetaction.execute(addfiletofilesetaction.java:27) @ org.openxava.controller.modulemanager.executeaction(modulemanager.java:493) @ org.openxava.controller.modulemanager.executeaction(modulemanager.java:401) @ org.openxava.controller.modulemanager.execute(modulemanager.java:358) @ org.apache.jsp.xava.execute_jsp._jspservice(execute_jsp.java:196) @ org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) @ javax.servlet.http.httpservlet.service(httpservlet.java:728) @ org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:432) @ org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:390) @ org.apache.jasper.servlet.jspservlet.service(jspservlet.java:334) @ javax.servlet.http.httpservlet.service(httpservlet.java:728) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.applicationdispatcher.invoke(applicationdispatcher.java:749) @ org.apache.catalina.core.applicationdispatcher.doinclude(applicationdispatcher.java:605) @ org.apache.catalina.core.applicationdispatcher.include(applicationdispatcher.java:544) @ org.openxava.web.servlets.servlets.geturiasstream(servlets.java:66) @ org.openxava.web.dwr.module.geturiasstream(module.java:205) @ org.openxava.web.dwr.module.request(module.java:64) @ sun.reflect.generatedmethodaccessor41.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ org.directwebremoting.impl.executeajaxfilter.dofilter(executeajaxfilter.java:34) @ org.directwebremoting.impl.defaultremoter$1.dofilter(defaultremoter.java:428) @ org.directwebremoting.impl.defaultremoter.execute(defaultremoter.java:431) @ org.directwebremoting.impl.defaultremoter.execute(defaultremoter.java:283) @ org.directwebremoting.servlet.plaincallhandler.handle(plaincallhandler.java:52) @ org.directwebremoting.servlet.urlprocessor.handle(urlprocessor.java:101) @ org.directwebremoting.servlet.dwrservlet.dopost(dwrservlet.java:146) @ javax.servlet.http.httpservlet.service(httpservlet.java:647) @ javax.servlet.http.httpservlet.service(httpservlet.java:728) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:222) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:123) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:502) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:100) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:953) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:409) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1044) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:607) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:315) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:744)
this issue addressed in openxava forums: https://sourceforge.net/p/openxava/discussion/419690/thread/fde016f3/
Comments
Post a Comment