Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026895Openbravo ERPA. Platformpublic2014-06-18 13:442022-02-01 08:09
zhiqiang 
Triage Platform Base 
normalmajoralways
acknowledgedopen 
20Community Appliance
 
 
Core
No
0026895: The parameter of standard process doesn't support tree reference
As we know, Standard UI pattern of Process Definition allows to create Parameter Windows defined in Application Dictionary. I want to create a standard process definiton to pass some parameters to my customized action handler for a specific logic. In the process defintion, one parameter's reference is "Tree Reference", it means that user can use tree selector to input the parameter. According to the guide of Openbravo wiki, it doesn't work, the version of Openbravo community is openbravo-3.0PR14Q2
Below is the steps what I followed, please point out the problem if I missed something.
1. In Application dictionary, created a table A which has "Table Tree Category", and the tree structure is "AD Tree Node".
2. In Application dictionary, created a reference. The parent reference is "Tree Reference", so in the sub tab, a tree refence was created, and the corresponding Table and Column were set based on the information of step 1, the column is the primary key of the table A of step 1. I also created a tree field for this tree referece. To my supprise, there is no any Tree reference in the current Openbravo ERP module, most of selectors are OBUISEL_Selector reference, it doesn't support the tree structure representation.
3. To very if the tree reference works or not, I created another a table B, in that table, a column has foreign key with the primary key of table A. In the application dictionary, I specify the reference of this column to "Tree Refernce" and the reference search key is the reference I created in setp 2. next, I created the window, I can use this selector to choose the tree node correctly in that window, see the attached screenshot 1.
4. So I cretead a process defintion in the application dictionary, I specified the parameter's reference as "Tree Reference" and the the reference search key is the same with the key in the Table B of step 3. But when I click the menu to try to launch this process defintion window, a exceptional dialog popup to indicate the error "freemarker.template.TemplateModelException...", please see the detailed error in the attached screenshot 2. Below the error log in Tomcat:
2014-06-18 15:59:03,482 [http-8080-3] ERROR freemarker.runtime - get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter

get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
The problematic instruction:
----------
==> ${param.parameterProperties} [on line 56, column 5 in template]
 in user-directive createParameter [on line 114, column 7 in template]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
    at freemarker.ext.beans.BeanModel.get(BeanModel.java:223)
    at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IfBlock.accept(IfBlock.java:82)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.Macro$Context.runMacro(Macro.java:172)
    at freemarker.core.Environment.visit(Environment.java:603)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IfBlock.accept(IfBlock.java:82)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
    at freemarker.core.Environment.visit(Environment.java:417)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.Environment.process(Environment.java:190)
    at freemarker.template.Template.process(Template.java:237)
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:64)
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:48)
    at org.openbravo.client.kernel.BaseTemplateProcessor.process(BaseTemplateProcessor.java:61)
    at org.openbravo.client.kernel.freemarker.org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$kernel$freemarker$FreemarkerTemplateProcessor_$$_WeldClientProxy.process(org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$kernel$freemarker$FreemarkerTemplateProcessor_$$_WeldClientProxy.java)
    at org.openbravo.client.kernel.BaseTemplateComponent.generate(BaseTemplateComponent.java:55)
    at org.openbravo.client.application.window.ParameterWindowComponent.generate(ParameterWindowComponent.java:94)
    at org.openbravo.client.application.ViewComponent.generateProcess(ViewComponent.java:137)
    at org.openbravo.client.application.ViewComponent.generate(ViewComponent.java:90)
    at org.openbravo.client.application.org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$application$ViewComponent_$$_WeldClientProxy.generate(org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$application$ViewComponent_$$_WeldClientProxy.java)
    at org.openbravo.client.kernel.ComponentGenerator.generate(ComponentGenerator.java:65)
    at org.openbravo.client.kernel.KernelServlet.processComponentRequest(KernelServlet.java:220)
    at org.openbravo.client.kernel.KernelServlet.doGet(KernelServlet.java:170)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:445)
    at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:87)
    at org.openbravo.client.kernel.BaseKernelServlet.service(BaseKernelServlet.java:63)
    at org.openbravo.client.kernel.KernelServlet.service(KernelServlet.java:140)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    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:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    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.Http11AprProcessor.process(Http11AprProcessor.java:879)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840)
    at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:276)
    at freemarker.ext.beans.BeanModel.get(BeanModel.java:183)
    ... 74 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.get(ArrayList.java:411)
    at org.hibernate.collection.PersistentBag.get(PersistentBag.java:446)
    at org.openbravo.client.kernel.reference.FKTreeUIDefinition.getParameterProperties(FKTreeUIDefinition.java:193)
    at org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter.getParameterProperties(OBViewParameterHandler.java:245)
    ... 81 more
2014-06-18 15:59:03,489 [http-8080-3] ERROR org.openbravo.client.kernel.KernelServlet - freemarker.template.TemplateModelException: get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
java.lang.IllegalStateException: freemarker.template.TemplateModelException: get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:69)
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:48)
    at org.openbravo.client.kernel.BaseTemplateProcessor.process(BaseTemplateProcessor.java:61)
    at org.openbravo.client.kernel.freemarker.org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$kernel$freemarker$FreemarkerTemplateProcessor_$$_WeldClientProxy.process(org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$kernel$freemarker$FreemarkerTemplateProcessor_$$_WeldClientProxy.java)
    at org.openbravo.client.kernel.BaseTemplateComponent.generate(BaseTemplateComponent.java:55)
    at org.openbravo.client.application.window.ParameterWindowComponent.generate(ParameterWindowComponent.java:94)
    at org.openbravo.client.application.ViewComponent.generateProcess(ViewComponent.java:137)
    at org.openbravo.client.application.ViewComponent.generate(ViewComponent.java:90)
    at org.openbravo.client.application.org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$application$ViewComponent_$$_WeldClientProxy.generate(org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$application$ViewComponent_$$_WeldClientProxy.java)
    at org.openbravo.client.kernel.ComponentGenerator.generate(ComponentGenerator.java:65)
    at org.openbravo.client.kernel.KernelServlet.processComponentRequest(KernelServlet.java:220)
    at org.openbravo.client.kernel.KernelServlet.doGet(KernelServlet.java:170)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:445)
    at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:87)
    at org.openbravo.client.kernel.BaseKernelServlet.service(BaseKernelServlet.java:63)
    at org.openbravo.client.kernel.KernelServlet.service(KernelServlet.java:140)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    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:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    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.Http11AprProcessor.process(Http11AprProcessor.java:879)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760)
    at java.lang.Thread.run(Thread.java:744)
Caused by: freemarker.template.TemplateModelException: get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
    at freemarker.ext.beans.BeanModel.get(BeanModel.java:223)
    at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IfBlock.accept(IfBlock.java:82)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.Macro$Context.runMacro(Macro.java:172)
    at freemarker.core.Environment.visit(Environment.java:603)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IfBlock.accept(IfBlock.java:82)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
    at freemarker.core.Environment.visit(Environment.java:417)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.Environment.process(Environment.java:190)
    at freemarker.template.Template.process(Template.java:237)
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:64)
    ... 46 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840)
    at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:276)
    at freemarker.ext.beans.BeanModel.get(BeanModel.java:183)
    ... 74 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.get(ArrayList.java:411)
    at org.hibernate.collection.PersistentBag.get(PersistentBag.java:446)
    at org.openbravo.client.kernel.reference.FKTreeUIDefinition.getParameterProperties(FKTreeUIDefinition.java:193)
    at org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter.getParameterProperties(OBViewParameterHandler.java:245)
    ... 81 more
2014-06-18 15:59:03,489 [http-8080-3] ERROR org.openbravo.client.kernel.KernelUtils - freemarker.template.TemplateModelException: get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
java.lang.IllegalStateException: freemarker.template.TemplateModelException: get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:69)
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:48)
    at org.openbravo.client.kernel.BaseTemplateProcessor.process(BaseTemplateProcessor.java:61)
    at org.openbravo.client.kernel.freemarker.org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$kernel$freemarker$FreemarkerTemplateProcessor_$$_WeldClientProxy.process(org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$kernel$freemarker$FreemarkerTemplateProcessor_$$_WeldClientProxy.java)
    at org.openbravo.client.kernel.BaseTemplateComponent.generate(BaseTemplateComponent.java:55)
    at org.openbravo.client.application.window.ParameterWindowComponent.generate(ParameterWindowComponent.java:94)
    at org.openbravo.client.application.ViewComponent.generateProcess(ViewComponent.java:137)
    at org.openbravo.client.application.ViewComponent.generate(ViewComponent.java:90)
    at org.openbravo.client.application.org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$application$ViewComponent_$$_WeldClientProxy.generate(org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$application$ViewComponent_$$_WeldClientProxy.java)
    at org.openbravo.client.kernel.ComponentGenerator.generate(ComponentGenerator.java:65)
    at org.openbravo.client.kernel.KernelServlet.processComponentRequest(KernelServlet.java:220)
    at org.openbravo.client.kernel.KernelServlet.doGet(KernelServlet.java:170)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:445)
    at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:87)
    at org.openbravo.client.kernel.BaseKernelServlet.service(BaseKernelServlet.java:63)
    at org.openbravo.client.kernel.KernelServlet.service(KernelServlet.java:140)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    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:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    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.Http11AprProcessor.process(Http11AprProcessor.java:879)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760)
    at java.lang.Thread.run(Thread.java:744)
Caused by: freemarker.template.TemplateModelException: get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
    at freemarker.ext.beans.BeanModel.get(BeanModel.java:223)
    at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IfBlock.accept(IfBlock.java:82)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.Macro$Context.runMacro(Macro.java:172)
    at freemarker.core.Environment.visit(Environment.java:603)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IfBlock.accept(IfBlock.java:82)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
    at freemarker.core.Environment.visit(Environment.java:417)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:210)
    at freemarker.core.Environment.process(Environment.java:190)
    at freemarker.template.Template.process(Template.java:237)
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:64)
    ... 46 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840)
    at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:276)
    at freemarker.ext.beans.BeanModel.get(BeanModel.java:183)
    ... 74 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.get(ArrayList.java:411)
    at org.hibernate.collection.PersistentBag.get(PersistentBag.java:446)
    at org.openbravo.client.kernel.reference.FKTreeUIDefinition.getParameterProperties(FKTreeUIDefinition.java:193)
    at org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter.getParameterProperties(OBViewParameterHandler.java:245)
    ... 81 more
Tree reference
png 2.PNG (22,321) 2014-06-18 13:44
https://issues.openbravo.com/file_download.php?file_id=7010&type=bug
png

png 1.PNG (49,566) 2014-06-18 13:50
https://issues.openbravo.com/file_download.php?file_id=7011&type=bug
png
Issue History
2014-06-18 13:44zhiqiangNew Issue
2014-06-18 13:44zhiqiangAssigned To => mtaal
2014-06-18 13:44zhiqiangFile Added: 2.PNG
2014-06-18 13:49zhiqiangTag Attached: Tree reference
2014-06-18 13:50zhiqiangFile Added: 1.PNG
2014-06-18 14:13mtaalAssigned Tomtaal => AugustoMauch
2015-03-31 12:50alostaleProjectModules => Openbravo ERP
2015-03-31 12:51alostaleModules => Core
2015-03-31 12:51alostaleTriggers an Emergency Pack => No
2015-03-31 12:51alostaleAssigned ToAugustoMauch => platform
2015-03-31 12:51alostaleStatusnew => acknowledged
2015-03-31 12:51alostaleCategoryFreemarker template engine => A. Platform
2015-03-31 12:51alostaleTypedefect => design defect
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.