RAMP application works in designer mode but gets an error "NL runtime manager outer wrapper on vf_sy120.htm" in end user mode
|Date:||17 May 2007|
|Product/Release:||Visual LANSA Framework /RAMP|
|Submitted By:||LANSA Technical Support|
When running a RAMP application it works in Framework Designer mode (e.g. UF_DESGN) but not in Framework End User mode (e.g. UF_EXEC).
It also produces an error in x_err.log:
Component : VF_SY120
NL runtime manager outer wrapper
Line : 608
Message : Error Code = -1
Routine : Dispatch_Component_Manager
Individual RAMP scripts are dynamically loaded and executed from this file. This is why you change your script and it executes immediately.
These are the RAMP script files that you deploy.
All the scripts within a 5250 session (identified in this example by the GUID 6C8F62620CB74C2893B4EFF7E23CD393) are defined into this 'big' file and they are all loaded in one hit.
This is done because it produces much better execution time performance than the dynamic loading model that is used for designers.
This performance benefit of this model creates 2 possible issues you need to be aware of:
- Untested or unused scripts that contain syntax errors may be okay during development, but will produce execution time errors.
Say you have a script named BUTTON_SCRIPT_7 and you accidentally put a syntax error in it.
You never test or use BUTTON_SCRIPT_7 during development.
The syntax problem will only be detected when BUTTON_SCRIPT_7 is loaded, so you don't notice the problem.
BUTTON_SRIPT_7 then gets saved into the 'big' .JS file used at execution time.
Your RAMP application fails to start.
Solution: Do a test load of your 'big' .JS file
If your scripts work during development, but you get an error when executing them in end user mode, then you should try this test.
In your LANSA partition execute directory make a small file that contains this HTML. The script src should be pointing at your nodes.js file:
<html> <head> <script src="My_Nodes_6C8F62620CB74C2893B4EFF7E23CD393.js"> </script> </head> <body> <p>TEST</p> </body> </html>
Save this file as (e.g. test.htm) and open this HTML file in Internet Explorer.
This assumes that you allow JS errors to display, which is an IE browser configuration setting you should check.
Working with the line number, and by looking at the content of the 'big' JS file, you should be able to locate the syntax error.
Go back to the Visual LANSA Framework RAMP Tool, correct the syntax error, then save your Framework to create a new 'big' JS file.
Note: You might have more than one syntax error, so keep doing this check until no errors are displayed.