Generation errors on ajax enabled page with many components, ajax links and selective refresh

20 Dec '13, 06:34 PM
57,270 Views
Forum Forum Starter - Level 2

Hi,

I have an ajax enabled page with many components, some content modules and some outgoung ajax flows/links. Those flows go outside the page executing some operations and then i have 2 OK Flows wich return to the same ajax enabled page. I want to have selective refresh: one incoming flow refreshes (Execute) some content components and leaves another components intact (Skip). If i leave Component Computations options at <auto> the page generates fine but almost all content on the page gets refreshed. If  i set many Component Computations to Skip then WebRatio 7.2.0 fails to generate all the Flows on the page including those inside component modules. Here's the one of the errors i have:

Input lc::_miu15meu1 should be preserved, however it not a webapp external input

com.webratio.commons.transform.EvaluateException: Error initializing run info
    [occurred at line 6 in Link.template]
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:173)
    at com.webratio.commons.transform.groovy.Script2$11.doCall(Script2.java:119)
    at sun.reflect.GeneratedMethodAccessor1492.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:927)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:672)
    at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
    at groovy.lang.Script.invokeMethod(Script.java:78)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:371)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:322)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
    at com_webratio_generator_webapp_7_2_0_201308081300_Logic_Main_template_1387529672019$_run_closure5.doCall(com_webratio_generator_webapp_7_2_0_201308081300_Logic_Main_template_1387529672019:293)
    at sun.reflect.GeneratedMethodAccessor2967.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at groovy.lang.Closure.call(Closure.java:292)
    at groovy.lang.Closure.call(Closure.java:305)
    at com.webratio.generator.OrderingScheduler.doProcessGroupElement(OrderingScheduler.java:215)
    at com.webratio.generator.OrderingScheduler.doProcessGroupElement(OrderingScheduler.java:267)
    at com.webratio.generator.OrderingScheduler.doProcessGroup(OrderingScheduler.java:198)
    at com.webratio.generator.OrderingScheduler.process(OrderingScheduler.java:185)
    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
    at com_webratio_generator_webapp_7_2_0_201308081300_Logic_Main_template_1387529672019.run(com_webratio_generator_webapp_7_2_0_201308081300_Logic_Main_template_1387529672019:386)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    at com.webratio.commons.transform.groovy.Script2$11.doCall(Script2.java:119)
    at com.webratio.commons.transform.groovy.Script2$11.doCall(Script2.java:101)
    at com.webratio.commons.transform.groovy.Script2$11.doCall(Script2.java:97)
    at sun.reflect.GeneratedMethodAccessor1211.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:927)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
    at com_webratio_generator_webapp_7_2_0_201308081300_WebApp_Main_template_1387529679475.run(com_webratio_generator_webapp_7_2_0_201308081300_WebApp_Main_template_1387529679475:100)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:149)
    at com.webratio.ide.deploy.core.jobs.GenerateWebAppJob.doRun(GenerateWebAppJob.java:152)
    at com.webratio.ide.deploy.core.jobs.AbstractDeploymentJob.runExternal(AbstractDeploymentJob.java:79)
    at com.webratio.commons.mf.jobs.ExternalJob.run(ExternalJob.java:53)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.RuntimeException: Error initializing run info
    at com.webratio.generator.logic.RunInfoCache.get(RunInfoCache.java:77)
    at com.webratio.generator.helpers.WebModelUtils.getPageRunInfo(WebModelUtils.java:4784)
    at com.webratio.generator.helpers.WebModelUtils.getLinkRunInfo(WebModelUtils.java:4868)
    at sun.reflect.GeneratedMethodAccessor2344.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1105)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:749)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
    at com_webratio_generator_helpers_7_2_0_201308081300_Helpers_WebModelAdvancedHelper_template_1387529666373$_run_closure91.doCall(com_webratio_generator_helpers_7_2_0_201308081300_Helpers_WebModelAdvancedHelper_template_1387529666373:508)
    at sun.reflect.GeneratedMethodAccessor2343.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at groovy.lang.Closure.call(Closure.java:292)
    at groovy.lang.Script.invokeMethod(Script.java:87)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:85)
    at com_webratio_generator_webapp_7_2_0_201308081300_Logic_Link_template_1387529671878.run(com_webratio_generator_webapp_7_2_0_201308081300_Logic_Link_template_1387529671878:5)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    ... 64 more
Caused by: com.webratio.generator.runmodel.AnalyzeException: Input lc::_miu15meu1 should be preserved, however it not a webapp external input
    at com.webratio.generator.logic.PageRunInfo.computeDataPreservedForEntry(PageRunInfo.java:2652)
    at com.webratio.generator.logic.PageRunInfo.computeDataPreservedForEntry(PageRunInfo.java:2602)
    at com.webratio.generator.logic.PageRunInfo.computeDataPreservedForEntry(PageRunInfo.java:2593)
    at com.webratio.generator.logic.PageRunInfo.computeUselessPreserves(PageRunInfo.java:700)
    at com.webratio.generator.logic.PageRunInfo.<init>(PageRunInfo.java:245)
    at com.webratio.generator.helpers.WebModelUtils$62.initValue(WebModelUtils.java:4788)
    at com.webratio.generator.helpers.WebModelUtils$62.initValue(WebModelUtils.java:1)
    at com.webratio.generator.logic.RunInfoCache$1.call(RunInfoCache.java:67)
    at com.webratio.generator.logic.RunInfoCache$1.call(RunInfoCache.java:1)
    at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
    at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
    at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)
    at com.webratio.generator.logic.RunInfoCache.get(RunInfoCache.java:64)
    at com.webratio.generator.helpers.WebModelUtils.getPageRunInfo(WebModelUtils.java:4784)
    at sun.reflect.GeneratedMethodAccessor2756.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1105)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:749)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
    at com_webratio_generator_helpers_7_2_0_201308081300_Helpers_WebModelAdvancedHelper_template_1387529666373$_run_closure89.doCall(com_webratio_generator_helpers_7_2_0_201308081300_Helpers_WebModelAdvancedHelper_template_1387529666373:494)
    at sun.reflect.GeneratedMethodAccessor2755.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at groovy.lang.Closure.call(Closure.java:292)
    at groovy.lang.Script.invokeMethod(Script.java:87)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:85)
    at com_webratio_generator_webapp_7_2_0_201308081300_Logic_Page_template_1387529672831.run(com_webratio_generator_webapp_7_2_0_201308081300_Logic_Page_template_1387529672831:14)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    at com.webratio.commons.transform.groovy.Script2$11.doCall(Script2.java:119)
    at sun.reflect.GeneratedMethodAccessor1492.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:927)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:672)
    at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
    at groovy.lang.Script.invokeMethod(Script.java:78)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:371)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:322)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
    at com_webratio_generator_webapp_7_2_0_201308081300_Logic_Main_template_1387529672019$_run_closure1.doCall(com_webratio_generator_webapp_7_2_0_201308081300_Logic_Main_template_1387529672019:127)
    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at groovy.lang.Closure.call(Closure.java:292)
    at groovy.lang.Closure.call(Closure.java:305)
    at com.webratio.generator.OrderingScheduler.doProcessGroupElement(OrderingScheduler.java:215)
    ... 37 more

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 5

Hi, please atach a image of your model

 
x 0
Forum Starter - Level 2

HI,

The original model is too big so i copy-pasted it and simplified to make a screenschot and just demonstrate what causes generation errors. It gives the same generation errors as the original model:

http://s17.postimg.org/7blflluhr/wrajaxgb.png

 
x 0
Forum Starter - Level 2

I've found the condition/reason why it happens: the page uses custom grid, ajax-refreshing unit is placed in the grid cell with has cell layout template applied and has cell visibility condition set. All the flows on the page int that case are failing to generate.

 
x 0
Forum Starter - Level 2

Here, i've made a small test project wich fails generation http://rghost.net/51152644

 
x 0
Answer at this question and get points!

Related questions

404 on generated app page 500 error with WebRatio BPM 502 proxy error-generate and run Admin area disabled aggiornamento fallito a causa di un errore interno Ajax and FCK Editor (WebRatio 5.x) ajax and javascript AJAX events problem to external JavaScript Ajax is not working in own style project Ajax link success callback? Ajax onchange and jQuery 2.x (with migrate plugin) incompatible Ajax on change selection field and modify units Ajax web app with javascript history object using the WebRatio Any sample deployment Autocomplete template Cannot invoke method putAll() on null object Cannot invoke method selectSingleNode() on null object Can't run any aplication Code is exceeding the 65535 bytes limit error on JBOSS Como abrir una ventana en ajax desde una master page Como usar la función autocomplete en un field Compare with the current time Component computation com.webratio.struts.exceptions.WRSecurityException: Invalid request target host Connection refused. Custom Unit and AJAX / SOAP Database connection, Host and Port number DB in Data Service Project Debug configuration Dependencies installation error Disabilitare campi durante evento AJAX error activating student account Error deploying WAR against to JBOSS Error updating metadata process Error when updating to WR 7.2.3 Filtros Caracteres Especiales Find Model Problemas Format currency forward/backward navigation and bookmark in ajax web app From BPM to WebProject - BUILD FAILED "Generation Error" with Generate and Run Groovy script numer after an error HelloWorld Unit sample code Help with math unit. Debug mode says error as result code Hiding form components based on page conditions Hierarchy component How to add an image in a modal/pop-up window? how to delete this error? How to get a wr:AjaxURL tag working How to keep current page/block of List/Hierarchy (Index) components after ajax link clickwith selective refresh? How to localize AJAX waiting dialog? How to open a window ajax in a BPM activity? How to use LandmarkMenu as AJAX navigation how to use the landmark menu as AJAX navigation i can't install mobile version on windows I can't install Webratio on my Desktop (Ubuntu 13.04 x64) I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Installation with java 1.8 Installazione Macosx invio mail fallito java.lang.NullPointerException javascript history object java virtual machine error Job not start correctly JSP/DO issues on Tomcat 5.5 (Ubuntu) Login Error mandatory control code parameter is missing Mensaje: the selection cannot be launched and there are no recent launches Missing plugin emulation support error Missing units when importing project Multi Selects didn't work in update page Next Activity Note property - Error synchronizing with web project No access to protected site view with Login No Apache Derby driver found No database on my cloud account Page Home - First time the Project Web begins Problema al generar y ejecutar proyecto Problema generazione codice Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete Problem: Compile Failed problemi installazione su Mac sistema operativo OSX El Capitan problem on first deploy with webratio Problems to connect Sql Server DB from Webratio Problem syncing reports Problem to run an Application Problem with application runnung Problem with execution of webratio Problem with ireport Problem with the deletion of more than 50.000 records in a table Progress bar when uploading big file(s) in a form? Project cannot be opened with WebRatio Community Platform Sample web application Scroll ajax problem selection fields on cascade Selezione sul giorno "Events Planning" Showing items that have a relation with an entity Solve "Generation Error" with Generate and Run option Student reserved area, download error Table 'freeapp43.profesion' doesn't exist Tomcat external session store and WebRatio webapp. "Unable to close sub-context ..." Unable to compute the controller URL(s) for applicationUnable to compute the controller URL(s) for application having status PROVISIONING Unable to connect to Internet Unable to execute the script java.lang.NullPointerException Unable to find Cloud free function Unable to get ExpenseReport example work in WebRation Personl 7.2.2 Unable to instantiate a new application instance Unable to update the web project Unspecified BPM Engine Database Update fields based on selection of other fields Updating attributes of an entity User Login Timestamp Uso de la componente chart de webRatio Webratio Add-ons no permite login Web Ratio Add-ons shop not working WEBRATIO LINUX AT EXECUTION TIME Web Ratio Mobile plateform Macos Sierra Web Ratio Mobile - Remote data mapping problem When execute my web application I have this error: returned a null bean wr-ajaxDivs break layout on ajax pages. XPCOM Error