Menu

Error executing ORDER example

2012-01-04
2012-11-26
  • Sugimin Chen

    Sugimin Chen - 2012-01-04

    Dear all,

    I am an OpenXava newbie, I am trying the given example from Javier Paniza's Learn OpenXava by Example, I have successfully executed the INVOICE app, but failed on ORDER app, the error happens when I try to save a detail, what could be the cause of error, to me it's very weird as both INVOICE and ORDER extends from CommercialDocument and only have slightly different properties, following is the error log:

    Any help will be very appreciated, thank you
    Jan 4, 2012 4:13:22 PM org.directwebremoting.util.CommonsLoggingOutput info
    INFO: Exec: Module.request()
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id PO
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id PO
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id invoiceDate
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id estimatedProfit
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id baseAmount
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id totalAmount
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id invoiceDate
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id estimatedProfit
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id baseAmount
    Jan 4, 2012 4:13:22 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id totalAmount
    Jan 4, 2012 4:13:22 PM org.openxava.tab.impl.JDBCTabProvider nextBlock
    FINE:  Executing SELECT CommercialDocument.oid, CommercialDocument.year, CommercialDocument.number1, CommercialDocument.invoiceDate, CommercialDocument.remarks, CommercialDocument.vatPercentage, AMOUNT * 0.10, CommercialDocument.amount, 0, 0, 0 from CommercialDocument  where DTYPE='PO' with arguments
    Jan 4, 2012 4:13:22 PM org.openxava.tab.impl.TableModelBean getRow
    FINE: nextChunk=2
    Jan 4, 2012 4:13:26 PM org.directwebremoting.util.CommonsLoggingOutput info
    INFO: Exec: Module.request()
    Jan 4, 2012 4:13:26 PM org.openxava.controller.ModuleManager execute
    FINE: Execute CRUD.new=13 ms
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id invoiceDate
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id invoiceDate
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id details
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id pricePerUnit
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id pricePerUnit
    Jan 4, 2012 4:13:26 PM org.openxava.tab.impl.TableModelBean getRow
    FINE: nextChunk=1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id estimatedProfit
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id estimatedProfit
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id baseAmount
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id baseAmount
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id totalAmount
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id totalAmount
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id invoiceDate
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id invoiceDate
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id details
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id pricePerUnit
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id number1
    Jan 4, 2012 4:13:26 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id pricePerUnit
    Jan 4, 2012 4:13:26 PM org.openxava.tab.impl.TableModelBean getRow
    FINE: nextChunk=0
    Jan 4, 2012 4:13:33 PM org.directwebremoting.util.CommonsLoggingOutput info
    INFO: Exec: Module.request()
    Jan 4, 2012 4:13:33 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id invoiceDate
    Jan 4, 2012 4:13:34 PM org.directwebremoting.util.CommonsLoggingOutput info
    INFO: Exec: Module.request()
    Jan 4, 2012 4:13:34 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:34 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:34 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:34 PM org.openxava.controller.ModuleManager execute
    FINE: Execute Collection.new=6 ms
    Jan 4, 2012 4:13:34 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:35 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:35 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id pricePerUnit
    Jan 4, 2012 4:13:35 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id pricePerUnit
    Jan 4, 2012 4:13:36 PM org.directwebremoting.util.CommonsLoggingOutput info
    INFO: Exec: Module.request()
    Jan 4, 2012 4:13:36 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id product
    Jan 4, 2012 4:13:36 PM org.openxava.util.Labels get
    WARNING: Impossible to translate element with id pricePerUnit
    Jan 4, 2012 4:13:38 PM org.directwebremoting.util.CommonsLoggingOutput info
    INFO: Exec: Module.request()
    Jan 4, 2012 4:13:38 PM org.openxava.controller.ModuleManager manageRegularException
    SEVERE: argument type mismatch
    java.lang.IllegalArgumentException: argument type mismatch
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.openxava.util.PropertiesManager.executeSet(PropertiesManager.java:160)
    at org.openxava.util.PropertiesManager.executeSets(PropertiesManager.java:337)
    at org.openxava.model.impl.POJOPersistenceProviderBase.create(POJOPersistenceProviderBase.java:147)
    at org.openxava.model.impl.POJOPersistenceProviderBase.createAggregate(POJOPersistenceProviderBase.java:225)
    at org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:726)
    at org.openxava.model.impl.MapFacadeBean.createAggregate(MapFacadeBean.java:675)
    at org.openxava.model.impl.MapFacadeBean.createAggregate(MapFacadeBean.java:587)
    at org.openxava.model.impl.MapFacadeBean.createAggregate(MapFacadeBean.java:296)
    at org.openxava.model.MapFacade.createAggregate(MapFacade.java:173)
    at org.openxava.actions.SaveElementInCollectionAction.createAggregate(SaveElementInCollectionAction.java:118)
    at org.openxava.actions.SaveElementInCollectionAction.saveAggregate(SaveElementInCollectionAction.java:100)
    at org.openxava.actions.SaveElementInCollectionAction.execute(SaveElementInCollectionAction.java:33)
    at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:381)
    at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:298)
    at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:485)
    at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:298)
    at org.openxava.controller.ModuleManager.execute(ModuleManager.java:258)
    at org.apache.jsp.xava.execute_jsp._jspService(execute_jsp.java:177)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    at org.openxava.web.servlets.Servlets.getURIAsStream(Servlets.java:66)
    at org.openxava.web.dwr.Module.getURIAsStream(Module.java:182)
    at org.openxava.web.dwr.Module.request(Module.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
    at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
    at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
    at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
    at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
    at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
    at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)
    Jan 4, 2012 4:13:38 PM org.openxava.controller.ModuleManager execute
    FINE: Execute Collection.saveAndStay=23 ms

    Regards,

    Sugimin Chen

     

Log in to post a comment.