Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Visual Builder :Save and Load Problem

    Hi,

    1) I have created a very simple form with just a text box with visual Builder.
    I am unable to save it under the workspace dir using the save dialog.

    Veriosn :SC_SNAPSHOT-2010-01-31 (Nightly build)
    I am using this nightly build as suggested in many of the forum threads.

    Please find below the server logs for the same.

    Code:
    with arg types: java.lang.String
    === 2010-02-02 04:24:35,493 [p-15] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2010-02-02 04:24:35,509 [p-15] DEBUG RPCDMI - rpc returned RPCResponse
    === 2010-02-02 04:24:35,509 [p-15] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2010-02-02 04:24:35,524 [p-15] INFO  Compression - /jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp: 617 -> 388 bytes
    === 2010-02-02 04:24:35,540 [p-13] INFO  RequestContext - URL: '/jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:24:35,540 [p-13] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2010-02-02 04:24:35,556 [p-13] DEBUG RPCManager - Processing 1 requests.
    === 2010-02-02 04:24:35,556 [p-13] DEBUG RPCManager - Request #1 (RPCRequest) data: {
        appID:"isc_builtin",
        className:"builtin",
        methodName:"xmlToJS",
        arguments:[
         "\r<DynamicForm ID=\"SearchFormPanel\" autoDraw=\"false\">\n    <fields>\n        <FormItem name=\"nameText\" title=\"Name \" constructor=\"TextItem\"/>\n    </fields>\n</DynamicForm>\n\n"],
        is_ISC_RPC_DMI:true
    }
    === 2010-02-02 04:24:35,556 [p-13] DEBUG RPCDMI - appConfig: isc.Application.create({
        rpcBindings:[
            {
                ID:"builtin",
                className:"com.isomorphic.rpc.BuiltinRPC",
                visibleMethods:[
                    {name:"downloadWSDL"},
                    {name:"xmlToJS"},
                    {name:"uploadProgressCheck"},
                    {name:"saveFile"},
                    {name:"appendToFile"},
                    {name:"loadFile"},
                    {name:"deleteFile"},
                    {name:"loadSharedXML"},
                    {name:"saveSharedXML"},
                    {name:"getAvailableScriptEngines"},
                    {name:"devConsoleEvalServerScript"},
                    {name:"evalJava"},
                    {name:"getLogNames"},
                    {name:"getLogEntries"},
                    {name:"getLogThresholds"},
                    {name:"setLogThreshold"}
                ]
            },
            {
                ID:"builtin_tools",
                className:"com.isomorphic.tools.BuiltinRPC",
                visibleMethods:[
                    {name:"getDataSourceFromTable"},
                    {name:"getDataSourceJSONFromTable"},
                    {name:"getDataSourceFromHibernateMapping"},
                    {name:"getDataSourceJSONFromHibernateMapping"},
                    {name:"getTables"},
                    {name:"getFieldsFromTable"},
                    {name:"getBeanFields"},
                    {name:"getHibernateBeans"},
                    {name:"getDatabaseProductNameAndVersion"},
                    {name:"getDatabaseTableTypes"},
                    {name:"setAttributes"},
                    {name:"clearAttributes"},
                    {name:"getAttributes"},
                    {name:"getAttribute"},
                    {name:"getDataSourceConfigFromJavaClass"},
                    {name:"getJavaSource", language:"groovy", args:"cName",
                     script:"\n                    if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\");                    \n                    //import org.apache.bcel.Repository;\n\n                    try {\n                        return org.apache.bcel.Repository.lookupClass(cName).toString();\n                    } catch (Throwable e) {\n                        return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n                    }\n                "},
                    {name:"loadDataSource"},
                    {name:"dsFromXML"},
                    {name:"dsConfigFromXML"}
                ]
            }
        ]
    })
    
    === 2010-02-02 04:24:35,556 [p-13] DEBUG Reflection - adaptArgsAndInvoke:
    
     public static com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.xmlToJS(java.lang.String) throws java.lang.Exception
    
    requiredArgs: [java.lang.String] optionalArgs: [com.isomorphic.servlet.RequestContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext, javax.servlet.http.HttpSession, com.isomorphic.rpc.RPCManager, com.isomorphic.rpc.RPCRequest]
    === 2010-02-02 04:24:35,556 [p-13] DEBUG Reflection - checking whether type: java.lang.String fulfills type: java.lang.String
    === 2010-02-02 04:24:35,556 [p-13] DEBUG Reflection - Successfully adapted required arg type: java.lang.String to type: java.lang.String
    === 2010-02-02 04:24:35,556 [p-13] DEBUG Reflection - method takes: 1 args.  I've assembled: 1 args
    === 2010-02-02 04:24:35,556 [p-13] DEBUG Reflection - invoking method:
    com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.xmlToJS(java.lang.String) throws java.lang.Exception
    
    with arg types: java.lang.String
    === 2010-02-02 04:24:35,556 [p-13] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2010-02-02 04:24:35,571 [p-13] DEBUG RPCDMI - rpc returned RPCResponse
    === 2010-02-02 04:24:35,571 [p-13] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2010-02-02 04:24:35,571 [p-13] INFO  Compression - /jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp: 617 -> 388 bytes
    === 2010-02-02 04:26:30,524 [p-15] INFO  RequestContext - URL: '/jedi/GtmWebModule/sc/IDACall', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:26:30,728 [p-15] INFO  Compression - /jedi/GtmWebModule/sc/IDACall: 110 -> 97 bytes
    === 2010-02-02 04:26:30,884 [p-13] INFO  RequestContext - URL: '/jedi/GtmWebModule/sc/IDACall', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:26:30,946 [p-13] INFO  Compression - /jedi/GtmWebModule/sc/IDACall: 183387 -> 9423 bytes
    === 2010-02-02 04:27:35,962 [p-15] INFO  RequestContext - URL: '/jedi/GtmWebModule/sc/skins/ToolSkin/images/shared/shadows/ds2_B.png', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:27:35,962 [p-15] INFO  Download - File C:/GTM/output/GasOps2.0.0.0Dev/java/deploy/remote/server/EntegrateServer/web/GtmWebModule/sc/skins/ToolSkin/images/shared/shadows/ds2_B.png not found, sending 404
    === 2010-02-02 04:27:36,071 [p-13] INFO  RequestContext - URL: '/jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:27:36,212 [p-13] DEBUG XML - Parsed XML from (in memory stream): 109ms
    === 2010-02-02 04:27:36,212 [p-13] DEBUG RPCManager - Processing 1 requests.
    === 2010-02-02 04:27:36,228 [p-13] INFO  AppBase - Using class 'com.isomorphic.tools.AdminConsole' as the implementer for application 'adminConsole'
    === 2010-02-02 04:27:36,228 [p-13] INFO  AppBase - UserType requirements: null
    === 2010-02-02 04:27:36,228 [p-13] DEBUG RPCManager - Request #1 (DSRequest) payload: {
        criteria:{fileFilter:".xml$", parentID:"/tools/visualBuilder/workspace"},
        operationConfig:{dataSource:"Filesystem", operationType:"fetch", textMatchStyle:"substring"},
        startRow:0,
        endRow:75,
        sortBy:["name"],
        componentId:"isc_TSaveFileDialog_99_directoryListing",
        appID:"adminConsole",
        operation:"Filesystem_fetch",
        oldValues:{fileFilter:".xml$", parentID:"/tools/visualBuilder/workspace"}
    }
    === 2010-02-02 04:27:36,228 [p-13] DEBUG AppBase - [adminConsole.Filesystem_fetch] No userTypes defined, allowing anyone access to all operations for this application
    === 2010-02-02 04:27:36,228 [p-13] DEBUG AppBase - [adminConsole.Filesystem_fetch] No public zero-argument method named '_Filesystem_fetch' found, performing generic datasource operation
    === 2010-02-02 04:27:36,228 [p-13] DEBUG FilesystemDataSource - [adminConsole.Filesystem_fetch] returnContent is: false
    === 2010-02-02 04:27:36,228 [p-13] DEBUG FilesystemDataSource - [adminConsole.Filesystem_fetch] listing files at: /tools/visualBuilder/workspace
    === 2010-02-02 04:27:49,759 [p-15] INFO  RequestContext - URL: '/jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:27:49,806 [p-13] INFO  RequestContext - URL: '/jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:27:49,821 [p-15] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2010-02-02 04:27:49,821 [p-13] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2010-02-02 04:27:49,837 [p-13] DEBUG RPCManager - Processing 1 requests.
    === 2010-02-02 04:27:49,837 [p-13] INFO  AppBase - Using class 'com.isomorphic.tools.AdminConsole' as the implementer for application 'adminConsole'
    === 2010-02-02 04:27:49,837 [p-13] INFO  AppBase - UserType requirements: null
    === 2010-02-02 04:27:49,837 [p-13] DEBUG RPCManager - Request #1 (DSRequest) payload: {
        criteria:{path:"tools/visualBuilder/workspace/NomPlanSearch.jsp"},
        values:{path:"tools/visualBuilder/workspace/NomPlanSearch.jsp",
         contents:"<%@ page contentType=\"text/html; charset=UTF-8\"%>\n<%@ taglib uri=\"/WEB-INF/iscTaglib.xml\" prefix=\"isomorphic\" %>\n<HTML><HEAD><TITLE>NomPlanSearch</TITLE>\n<isomorphic:loadISC skin=\"Enterprise\"includeModules=\"FileLoader,SalesForce,EBay,Kapow\"/>\n</HEAD><BODY>\n<SCRIPT SRC=/jedi/tools/visualBuilder/eBayAuthToken.js><\/SCRIPT>\n<SCRIPT>\nisc.Page.setAppImgDir(\"GtmWebModule/tools/visualBuilder/graphics/\");\n<isomorphic:XML>\n\r<DynamicForm ID=\"SearchFormPanel\" autoDraw=\"false\">\n    <fields>\n        <FormItem name=\"nameText\" title=\"Name \" constructor=\"TextItem\"/>\n    </fields>\n</DynamicForm>\n\n\n</isomorphic:XML><\/SCRIPT>\n</BODY></HTML>"},
        operationConfig:{dataSource:"Filesystem", operationType:"update"},
        appID:"adminConsole",
        operation:"saveFile",
        oldValues:{path:"tools/visualBuilder/workspace/NomPlanSearch.jsp",
         contents:"<%@ page contentType=\"text/html; charset=UTF-8\"%>\n<%@ taglib uri=\"/WEB-INF/iscTaglib.xml\" prefix=\"isomorphic\" %>\n<HTML><HEAD><TITLE>NomPlanSearch</TITLE>\n<isomorphic:loadISC skin=\"Enterprise\"includeModules=\"FileLoader,SalesForce,EBay,Kapow\"/>\n</HEAD><BODY>\n<SCRIPT SRC=/jedi/tools/visualBuilder/eBayAuthToken.js><\/SCRIPT>\n<SCRIPT>\nisc.Page.setAppImgDir(\"GtmWebModule/tools/visualBuilder/graphics/\");\n<isomorphic:XML>\n\r<DynamicForm ID=\"SearchFormPanel\" autoDraw=\"false\">\n    <fields>\n        <FormItem name=\"nameText\" title=\"Name \" constructor=\"TextItem\"/>\n    </fields>\n</DynamicForm>\n\n\n</isomorphic:XML><\/SCRIPT>\n</BODY></HTML>"}
    }
    === 2010-02-02 04:27:49,837 [p-13] DEBUG AppBase - [adminConsole.saveFile] No userTypes defined, allowing anyone access to all operations for this application
    === 2010-02-02 04:27:49,837 [p-13] DEBUG AppBase - [adminConsole.saveFile] No public zero-argument method named '_saveFile' found, performing generic datasource operation
    === 2010-02-02 04:27:49,853 [p-15] DEBUG RPCManager - Processing 1 requests.
    === 2010-02-02 04:27:49,853 [p-15] INFO  AppBase - Using class 'com.isomorphic.tools.AdminConsole' as the implementer for application 'adminConsole'
    === 2010-02-02 04:27:49,853 [p-15] INFO  AppBase - UserType requirements: null
    === 2010-02-02 04:27:49,853 [p-15] DEBUG RPCManager - Request #1 (DSRequest) payload: {
        criteria:{path:"tools/visualBuilder/workspace/NomPlanSearch.xml"},
        values:{path:"tools/visualBuilder/workspace/NomPlanSearch.xml",
         contents:"\r<DynamicForm ID=\"SearchFormPanel\" autoDraw=\"false\">\n    <fields>\n        <FormItem name=\"nameText\" title=\"Name \" constructor=\"TextItem\"/>\n    </fields>\n</DynamicForm>\n\n"},
        operationConfig:{dataSource:"Filesystem", operationType:"update"},
        appID:"adminConsole",
        operation:"saveFile",
        oldValues:{path:"tools/visualBuilder/workspace/NomPlanSearch.xml",
         contents:"\r<DynamicForm ID=\"SearchFormPanel\" autoDraw=\"false\">\n    <fields>\n        <FormItem name=\"nameText\" title=\"Name \" constructor=\"TextItem\"/>\n    </fields>\n</DynamicForm>\n\n"}
    }
    === 2010-02-02 04:27:49,853 [p-15] DEBUG AppBase - [adminConsole.saveFile] No userTypes defined, allowing anyone access to all operations for this application
    === 2010-02-02 04:27:49,853 [p-15] DEBUG AppBase - [adminConsole.saveFile] No public zero-argument method named '_saveFile' found, performing generic datasource operation
    === 2010-02-02 04:27:55,368 [p-13] INFO  RequestContext - URL: '/jedi/GtmWebModule/tools/visualBuilder/workspace/NomPlanSearch.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS

    Link generated points to the correct directory.But, the jsp file does not get saved

    Code:
    http://localhost:9999/jedi/GtmWebModule/tools/visualBuilder/workspace/NomPlanSearch.jsp

    XML Code generated by VB:
    Code:
    <DynamicForm ID="SearchFormPanel" autoDraw="false">
        <fields>
            <FormItem name="nameText" title="Name " constructor="TextItem"/>
        </fields>
    </DynamicForm>
    JS Code generated by VB:
    Code:
    isc.DynamicForm.create({
        ID:"SearchFormPanel",
        autoDraw:false,
        fields:[
            {name:"nameText", title:"Name ", _constructor:"TextItem"}
        ]
    })

    #2
    2) I also tried to maually copying pasting the xml and js and save under web root dir and importing it
    But , xml file gives parsing error and js gives null pointer exception while loading

    For saved xml
    Code:
    with arg types: java.lang.String
    === 2010-02-02 04:38:11,071 [up-8] DEBUG BuiltinRPC - Loading: C:/GTM/output/GasOps2.0.0.0Dev/java/deploy/remote/server/EntegrateServer/web/NomPlanSearch.xml
    === 2010-02-02 04:38:11,103 [up-8] DEBUG RPCDMI - rpc returned RPCResponse
    === 2010-02-02 04:38:11,103 [up-8] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2010-02-02 04:38:11,103 [up-8] INFO  Compression - /jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp: 631 -> 383 bytes
    === 2010-02-02 04:38:11,149 [p-10] INFO  RequestContext - URL: '/jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:38:11,165 [p-10] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2010-02-02 04:38:11,165 [p-10] DEBUG RPCManager - Processing 1 requests.
    === 2010-02-02 04:38:11,165 [p-10] DEBUG RPCManager - Request #1 (RPCRequest) data: {
        appID:"isc_builtin",
        className:"builtin",
        methodName:"xmlToJS",
        arguments:[
         "<DynamicForm ID=\"SearchFormPanel\" autoDraw=\"false\">\r\n    <fields>\n        <FormItem name=\"nameText\" title=\"Name \" constructor=\"TextItem\"/>\n    </fields>\n</DynamicForm>"],
        is_ISC_RPC_DMI:true
    }
    === 2010-02-02 04:38:11,165 [p-10] DEBUG RPCDMI - appConfig: isc.Application.create({
        rpcBindings:[
            {
                ID:"builtin",
                className:"com.isomorphic.rpc.BuiltinRPC",
                visibleMethods:[
                    {name:"downloadWSDL"},
                    {name:"xmlToJS"},
                    {name:"uploadProgressCheck"},
                    {name:"saveFile"},
                    {name:"appendToFile"},
                    {name:"loadFile"},
                    {name:"deleteFile"},
                    {name:"loadSharedXML"},
                    {name:"saveSharedXML"},
                    {name:"getAvailableScriptEngines"},
                    {name:"devConsoleEvalServerScript"},
                    {name:"evalJava"},
                    {name:"getLogNames"},
                    {name:"getLogEntries"},
                    {name:"getLogThresholds"},
                    {name:"setLogThreshold"}
                ]
            },
            {
                ID:"builtin_tools",
                className:"com.isomorphic.tools.BuiltinRPC",
                visibleMethods:[
                    {name:"getDataSourceFromTable"},
                    {name:"getDataSourceJSONFromTable"},
                    {name:"getDataSourceFromHibernateMapping"},
                    {name:"getDataSourceJSONFromHibernateMapping"},
                    {name:"getTables"},
                    {name:"getFieldsFromTable"},
                    {name:"getBeanFields"},
                    {name:"getHibernateBeans"},
                    {name:"getDatabaseProductNameAndVersion"},
                    {name:"getDatabaseTableTypes"},
                    {name:"setAttributes"},
                    {name:"clearAttributes"},
                    {name:"getAttributes"},
                    {name:"getAttribute"},
                    {name:"getDataSourceConfigFromJavaClass"},
                    {name:"getJavaSource", language:"groovy", args:"cName",
                     script:"\n                    if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\");                    \n                    //import org.apache.bcel.Repository;\n\n                    try {\n                        return org.apache.bcel.Repository.lookupClass(cName).toString();\n                    } catch (Throwable e) {\n                        return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n                    }\n                "},
                    {name:"loadDataSource"},
                    {name:"dsFromXML"},
                    {name:"dsConfigFromXML"}
                ]
            }
        ]
    })
    
    === 2010-02-02 04:38:11,165 [p-10] DEBUG Reflection - adaptArgsAndInvoke:
    
     public static com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.xmlToJS(java.lang.String) throws java.lang.Exception
    
    requiredArgs: [java.lang.String] optionalArgs: [com.isomorphic.servlet.RequestContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext, javax.servlet.http.HttpSession, com.isomorphic.rpc.RPCManager, com.isomorphic.rpc.RPCRequest]
    === 2010-02-02 04:38:11,165 [p-10] DEBUG Reflection - checking whether type: java.lang.String fulfills type: java.lang.String
    === 2010-02-02 04:38:11,165 [p-10] DEBUG Reflection - Successfully adapted required arg type: java.lang.String to type: java.lang.String
    === 2010-02-02 04:38:11,165 [p-10] DEBUG Reflection - method takes: 1 args.  I've assembled: 1 args
    === 2010-02-02 04:38:11,165 [p-10] DEBUG Reflection - invoking method:
    com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.xmlToJS(java.lang.String) throws java.lang.Exception
    
    with arg types: java.lang.String
    === 2010-02-02 04:38:11,165 [p-10] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2010-02-02 04:38:11,181 [p-10] DEBUG RPCDMI - rpc returned RPCResponse
    === 2010-02-02 04:38:11,181 [p-10] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2010-02-02 04:38:11,181 [p-10] INFO  Compression - /jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp: 617 -> 388 bytes
    === 2010-02-02 04:38:53,415 [up-9] INFO  RequestContext - URL: '/jedi/GtmWebModule/sc/IDACall', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS

    logs for loading saved js

    Code:
    === 2010-02-02 04:40:03,540 [up-9] INFO  RequestContext - URL: '/jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2010-02-02 04:40:03,556 [up-9] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2010-02-02 04:40:03,556 [up-9] DEBUG RPCManager - Processing 1 requests.
    === 2010-02-02 04:40:03,556 [up-9] DEBUG RPCManager - Request #1 (RPCRequest) data: {
        appID:"isc_builtin",
        className:"builtin",
        methodName:"loadFile",
        arguments:["//NomPlanSearch.js"],
        is_ISC_RPC_DMI:true
    }
    === 2010-02-02 04:40:03,571 [up-9] WARN  ProcessedFileCache - Can't perform staleness checking for code-source:/C:/GTM/output/GasOps2.0.0.0Dev/java/deploy/remote/server/EntegrateServer/web/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_builtin.app.xml
    === 2010-02-02 04:40:03,571 [up-9] DEBUG RPCDMI - appConfig: isc.Application.create({
        rpcBindings:[
            {
                ID:"builtin",
                className:"com.isomorphic.rpc.BuiltinRPC",
                visibleMethods:[
                    {name:"downloadWSDL"},
                    {name:"xmlToJS"},
                    {name:"uploadProgressCheck"},
                    {name:"saveFile"},
                    {name:"appendToFile"},
                    {name:"loadFile"},
                    {name:"deleteFile"},
                    {name:"loadSharedXML"},
                    {name:"saveSharedXML"},
                    {name:"getAvailableScriptEngines"},
                    {name:"devConsoleEvalServerScript"},
                    {name:"evalJava"},
                    {name:"getLogNames"},
                    {name:"getLogEntries"},
                    {name:"getLogThresholds"},
                    {name:"setLogThreshold"}
                ]
            },
            {
                ID:"builtin_tools",
                className:"com.isomorphic.tools.BuiltinRPC",
                visibleMethods:[
                    {name:"getDataSourceFromTable"},
                    {name:"getDataSourceJSONFromTable"},
                    {name:"getDataSourceFromHibernateMapping"},
                    {name:"getDataSourceJSONFromHibernateMapping"},
                    {name:"getTables"},
                    {name:"getFieldsFromTable"},
                    {name:"getBeanFields"},
                    {name:"getHibernateBeans"},
                    {name:"getDatabaseProductNameAndVersion"},
                    {name:"getDatabaseTableTypes"},
                    {name:"setAttributes"},
                    {name:"clearAttributes"},
                    {name:"getAttributes"},
                    {name:"getAttribute"},
                    {name:"getDataSourceConfigFromJavaClass"},
                    {name:"getJavaSource", language:"groovy", args:"cName",
                     script:"\n                    if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\");                    \n                    //import org.apache.bcel.Repository;\n\n                    try {\n                        return org.apache.bcel.Repository.lookupClass(cName).toString();\n                    } catch (Throwable e) {\n                        return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n                    }\n                "},
                    {name:"loadDataSource"},
                    {name:"dsFromXML"},
                    {name:"dsConfigFromXML"}
                ]
            }
        ]
    })
    
    === 2010-02-02 04:40:03,571 [up-9] DEBUG Reflection - adaptArgsAndInvoke:
    
     public static com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.loadFile(java.lang.String) throws java.lang.Exception
    
    requiredArgs: [java.lang.String] optionalArgs: [com.isomorphic.servlet.RequestContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext, javax.servlet.http.HttpSession, com.isomorphic.rpc.RPCManager, com.isomorphic.rpc.RPCRequest]
    === 2010-02-02 04:40:03,571 [up-9] DEBUG Reflection - checking whether type: java.lang.String fulfills type: java.lang.String
    === 2010-02-02 04:40:03,571 [up-9] DEBUG Reflection - Successfully adapted required arg type: java.lang.String to type: java.lang.String
    === 2010-02-02 04:40:03,571 [up-9] DEBUG Reflection - method takes: 1 args.  I've assembled: 1 args
    === 2010-02-02 04:40:03,571 [up-9] DEBUG Reflection - invoking method:
    com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.loadFile(java.lang.String) throws java.lang.Exception
    
    with arg types: java.lang.String
    === 2010-02-02 04:40:03,571 [up-9] DEBUG BuiltinRPC - Loading: C:/GTM/output/GasOps2.0.0.0Dev/java/deploy/remote/server/EntegrateServer/web/NomPlanSearch.js
    === 2010-02-02 04:40:03,571 [up-9] DEBUG RPCDMI - rpc returned RPCResponse
    === 2010-02-02 04:40:03,571 [up-9] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2010-02-02 04:40:03,571 [up-9] INFO  Compression - /jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp: 631 -> 389 bytes
    === 2010-02-02 04:40:26,040 [up-8] INFO  RequestContext - URL: '/jedi/GtmWebModule/sc/IDACall', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS

    I am not able to make the problem from the logs.Require help.

    Thanks!!

    Comment


      #3
      As far as the save operation, the saved file is in your deployment directory - it won't automatically appear within your Eclipse project, you need to grab it from the visualBuider/workspace directory.

      As far as loading the saved screen, it looks like you're trying to call undocumented internal RPCs. You've already been told a few times the correct procedure for loading saved screens: just use a <SCRIPT src=> tag in your host HTML file, pointing to either the saved JavaScript code, or, if you prefer to keep the code in XML, a .jsp containing the saved code wrapped in the <isomorphic:XML> .jsp tag.

      Comment


        #4
        Hi ,
        My post does not mention about integrating java and javascript using
        Canvas.getById.But, regarding this point I tried the following

        I copied the java script generated from visual builder to our server and included the following line the module.html file.

        <script src=GtmWebModule/view/NomPlanSearch.js></script>

        NomPlansearch.js contains the following

        Code:
        isc.DynamicForm.create({
            ID:"SearchFormPanel",
            autoDraw:false,
            fields:[
                {name:"nameText", title:"Name ", _constructor:"TextItem"}
            ]
        })
        My java code contains the following
        Code:
        package com.sungard.gwt.smartview;
        
        import com.smartgwt.client.widgets.Canvas;
        import com.smartgwt.client.widgets.tab.Tab;
        
        public class SearchPanelTest extends Tab {
        
        	public SearchPanelTest()
        	{
        		Canvas canvas = Canvas.getById("SearchFormPanel");
        		if(canvas != null)
        		{   
        			canvas.draw();
        			this.setPane(canvas);  
        		}
        	}
        	
        }

        Here, I get the canvas as 'null'.




        2)My actual post yesterday was regarding the save and load view/import dialogs of visual builder which are not working.I am not able to save the .jsp file on doing save as or save in visual builder.The logs shown are for this particular action.
        Also the maually saved js or xml files can not be loaded through the visual builder.Again logs are already attached.

        Even if we deploy the showcase.war in tomcat and open visual builder from there .Here, also we observe the same behavious.Save file and import/load view dialogs do not work.

        Workspace dir is empty.
        Last edited by archashukla; 2 Feb 2010, 20:53.

        Comment


          #5
          Hi ,

          Finally, I am able to used the saved js in java by using Canvas.getById as you suggested.This is by copying the js code generated from visual builder .

          But, still I am not able to save the code (jsp) from visual builder and I am not able to reload the saved js again in VB.
          So once I design the GUI , save the js .It is difficult for me to reload the GUI from js for changes.

          Just a few basic questions again.

          1) Canvas.getById returns canvas
          How do I get the handle on the FormItems(e.g. SelectItems) and the grids to add listeners to it.

          2)If I have developed 5 different screens/pages using VB (5 java scripts ) then , does that mean that id of each component inside a screen should be unique throughout the application or only unique for that particular screen?
          Last edited by archashukla; 3 Feb 2010, 06:17.

          Comment


            #6
            1) use normal Java typecasting

            2) unique throughout the application. Saved screens need some kind of global identifier or they would be no way to reference them. However, you can remove identifiers from any components within the screen that you do not reference via Canvas.getByID()

            It's not clear what problem you are having saving the .jsp. You have posted logs that show no errors.

            What difficulty are you having reloading the .js file?

            Comment


              #7
              I am new in using of SmartGWT. I want to use Visual Builder (VB) to generate UI screen and loading them in my smartgwt application. I followed these steps as given below-

              (1) Used drag n drop feature of VB to put UI components (Button etc) on the screen and saved it by name- 'screen.ui.xml'. VB automatically creats two files: one is 'screen.ui.xml' and other one is 'screen.ui.jsp'. And saves these files into dir- war/visualbuildersample/tools/visualBuilder/workspace/

              (2) I created a dir as--> /war/shared/ui ... And, putted mannualy both the files 'screen.ui.xml' and 'screen.ui.jsp' into this /war/shared/ui dir.

              (3) Even I have created a configuration in server.properties file. Given below-
              project.ui: $webRoot/shared/ui

              (4) Made an entry into host page (VisualBuilderSample.html) as given below-
              <script src="shared/ui/screen.ui.xml"></script>
              and also tried-
              <script src="shared/ui/screen.ui.jsp"></script>

              In addition, in smart client FAQ I read to use below configuration-

              <script src="visualbuildersample/sc/screenLoader?screenName=screen"></script>

              I tried these all, but still unable to load UI.

              (5) In my entry point class I have written the following code -

              public void onModuleLoad() {

              Canvas canvas = Canvas.getById("DataView1");
              if(canvas != null)
              {
              canvas.draw();
              }

              }

              however, canvas always comes as 'null'

              For more information, below are the screen files generated by VB-
              (A) screen.ui.xml


              <isomorphicXML>
              <DynamicForm ID="DynamicForm0" autoDraw="false">
              <fields>
              <FormItem name="TextItem0" constructor="TextItem"/>
              </fields>
              </DynamicForm>


              <DynamicForm ID="DynamicForm1" autoDraw="false">
              <fields>
              <FormItem name="TextItem1" constructor="TextItem"/>
              </fields>
              </DynamicForm>


              <DynamicForm ID="DynamicForm2" autoDraw="false">
              <fields>
              <FormItem name="SelectItem0" constructor="SelectItem"/>
              </fields>
              </DynamicForm>


              <DataView ID="DataView1" overflow="hidden" autoDraw="true">
              <members><Canvas ref="DynamicForm0"/><Canvas ref="DynamicForm1"/><Canvas ref="DynamicForm2"/>
              </members>
              <width>100%</width>
              <height>100%</height>
              <modulesDir>modules/</modulesDir>
              </DataView>
              </isomorphicXML>

              NOTE- I added <isomorphicXML> tag manually in this xml file.

              (B) Below is screen.ui.jsp -

              <%@ page contentType="text/html; charset=UTF-8"%>
              <%@ taglib uri="/WEB-INF/iscTaglib.xml" prefix="isomorphic" %>
              <HTML><HEAD><TITLE>screen.ui</TITLE>
              <isomorphic:loadISC skin="Enterprise"modulesDir="modules/" includeModules="Drawing,Analytics,DocViewer,VisualBuilder"/>
              </HEAD><BODY>
              <SCRIPT>
              isc.Page.setAppImgDir("../graphics/");
              <isomorphic:XML>

              <DynamicForm ID="DynamicForm0" autoDraw="false">
              <fields>
              <FormItem name="TextItem0" constructor="TextItem"/>
              </fields>
              </DynamicForm>


              <DynamicForm ID="DynamicForm1" autoDraw="false">
              <fields>
              <FormItem name="TextItem1" constructor="TextItem"/>
              </fields>
              </DynamicForm>


              <DynamicForm ID="DynamicForm2" autoDraw="false">
              <fields>
              <FormItem name="SelectItem0" constructor="SelectItem"/>
              </fields>
              </DynamicForm>


              <DataView ID="DataView1" overflow="hidden" autoDraw="true">
              <members><Canvas ref="DynamicForm0"/><Canvas ref="DynamicForm1"/><Canvas ref="DynamicForm2"/>
              </members>
              <width>100%</width>
              <height>100%</height>
              <modulesDir>modules/</modulesDir>
              </DataView>


              </isomorphic:XML></SCRIPT>
              </BODY></HTML>


              And, below is my host page (VisualBuilderSample.html)

              <!doctype html>

              <html>
              <head>
              <meta http-equiv="content-type" content="text/html; charset=UTF-8">

              <link type="text/css" rel="stylesheet" href="VisualBuilderSample.css">

              <script> var isomorphicDir = "visualbuildersample/sc/"; </script>
              <script type="text/javascript" language="javascript" src="visualbuildersample/visualbuildersample.nocache.js"></script>

              </head>

              <body>
              <body>
              <!--load the datasources-->
              <script src="visualbuildersample/sc/DataSourceLoader?dataSource=supplyItemDMI"></script>

              <!--<script src="visualbuildersample/sc/screenLoader?screenName=screen"></script>-->

              <script src="shared/ui/screen.ui.xml"></script>

              <!-- OPTIONAL: include this if you want history support -->
              <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>

              </body>

              </body>
              </html>



              Could anyone please help me out on this. I am not able to load UI. Always my application host page displays blank only. And, In code, canvas objects returns as null.

              Please let me know what is the exact configuration to load screens generated by VB, including code. It will be a great help for me. As I have spent 1 full day on this but still unsuccessful.


              Many thanks in advance.
              Last edited by shadab.gaur; 14 Jun 2012, 01:06.

              Comment


                #8
                You should be using either the <script> pointing at the screenLoader servlet or the loadScreen() approach explained in the docs, abandon your other attempts.

                As far as what's going wrong, use Firebug (or any similar tool) to find out what happened to the request to the ScreenLoaderServlet. The most likely problem is that the servlet isn't registered in web.xml at all.

                If you need any more help, follow the directions given when you post and share the server-side logs.

                Comment


                  #9
                  @Isomophic - First of all thanks a lot for replying. I really appreciate it.

                  Still I have some queries however these can be stupid but I am unclear so I have to ask -

                  (1) There is no any method named as 'loadScreen()' in RPCManager class.
                  (2) In which package/jar the class 'ScreenLoaderServlet' I can find?

                  In web.xml I did configurations as given below-

                  <servlet>
                  <servlet-name>screenLoader</servlet-name>
                  <servlet-class>com.isomorphic.servlet.ScreenLoaderServlet</servlet-class>
                  </servlet>

                  <!-- ScreenLoaderServlet requests -->
                  <servlet-mapping>
                  <servlet-name>screenLoader</servlet-name>
                  <url-pattern>/visualbuildersample/sc/ScreenLoaderServlet</url-pattern>
                  </servlet-mapping>

                  This configuration throws 'java.lang.ClassNotFoundException: com.isomorphic.servlet.ScreenLoaderServlet'.

                  I tried 'ScreenLoaderServlet' by putting into 'com.isomorphic.servlet' package [just it was a guess] because I could not find the package/jar for the class 'ScreenLoaderServlet'.

                  (3) In my host page I did the following configuration -

                  <body>
                  <!--load the datasources-->
                  <script src="visualbuildersample/sc/DataSourceLoader?dataSource=supplyItemDMI"></script>

                  // is it a valid configuration to load the screen ??
                  <script src="visualbuildersample/sc/screenLoader?screenName=screen"></script>

                  </body>

                  [Note- name of file generated by VB is 'screen.ui.xml' and 'screen.ui.jsp'. And, I have putted these files into $WEBRoot/shared/ui, where $WEBRoot = visualbuildersample]

                  And, my entry point class contains the following code -

                  public void onModuleLoad() {

                  //Opens Developer Console
                  SC.showConsole();

                  Canvas canvas = Canvas.getById("DynamicForm0");
                  if(canvas != null)
                  {
                  canvas.draw();
                  }

                  }


                  I request you please let me know the exact configuratons I required to do. Please have a look on my configurations whatever I did (given above) and correct me. It will be a great help.

                  Comment


                    #10
                    You never mentioned what version you were working with - ScreenLoaderServlet and loadScreen() are in 3.1d builds, available from smartclient.com/builds.

                    Comment


                      #11
                      Unable to load screen generated by Visual Builder (VB in SmartGWT

                      First of all, thank you very much.

                      I was using 3.0p version that's why I could not find ScreenLoaderServlet and loadScreen().

                      Now, I am using 3.1d build only, as you said.

                      Good news is, my screen is loading properly now using <script src="sc/screenLoader?screenName=screenName"></script> tag.

                      **** But still it's not working with RPCManager.loadScreen("screen"); ***


                      When I run my application, it's throwing an error and the stack trace is as follows-

                      ----------------------
                      Development mode log is-
                      NOTE- visualbuildersample is the my module name
                      --------------------------

                      [INFO] [visualbuildersample] - Your *.gwt.xml module configuration prohibits the use of the current doucment rendering mode (document.compatMode=' CSS1Compat').<br>Modify your application's host HTML page doctype, or update your custom 'document.compatMode' configuration property settings.

                      [INFO] [visualbuildersample] - Module visualbuildersample has been loaded

                      [ERROR] [visualbuildersample] - 11:11:15.875:XRP5:WARN:RPCManager:performTransactionReply: No such transaction 0

                      Below is the detailed log for "RPCManager:performTransactionReply: No such transaction 0" error.


                      10:58:46.136 [ERROR] [visualbuildersample] 10:58:46.160:XRP9:WARN:RPCManager:performTransactionReply: No such transaction 0

                      com.smartgwt.client.core.JsObject$SGWT_WARN: 10:58:46.160:XRP9:WARN:RPCManager:performTransactionReply: No such transaction 0
                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                      at java.lang.reflect.Constructor.newInstance(Unknown Source)
                      at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
                      at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                      at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                      at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
                      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
                      at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
                      at java.lang.Thread.run(Unknown Source)



                      In addition, after couple of minutes I get the following WARNING and the log is as follows-

                      11:15:14.683 [ERROR] [visualbuildersample] 11:15:14.668:TMR8:WARN:Log:undefined: TypeError: Cannot read property '$387' of null
                      Stack from error.stack:
                      RPCManager._timeoutTransaction() @ visualbuildersample/sc/modules/ISC_DataBinding.js:1266:95
                      eval() @ visualbuildersample/sc/modules/ISC_Core.js:63:76
                      [c]Class.fireCallback() @ visualbuildersample/sc/modules/ISC_Core.js:337:78
                      Timer._fireTimeout() @ visualbuildersample/sc/modules/ISC_Core.js:1426:81
                      unknown() @


                      com.smartgwt.client.core.JsObject$SGWT_WARN: 11:15:14.668:TMR8:WARN:Log:undefined: TypeError: Cannot read property '$387' of null
                      Stack from error.stack:
                      RPCManager._timeoutTransaction() @ visualbuildersample/sc/modules/ISC_DataBinding.js:1266:95
                      eval() @ visualbuildersample/sc/modules/ISC_Core.js:63:76
                      [c]Class.fireCallback() @ visualbuildersample/sc/modules/ISC_Core.js:337:78
                      Timer._fireTimeout() @ visualbuildersample/sc/modules/ISC_Core.js:1426:81
                      unknown() @

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                      at java.lang.reflect.Constructor.newInstance(Unknown Source)
                      at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
                      at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                      at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                      at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
                      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
                      at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
                      at java.lang.Thread.run(Unknown Source)

                      -------------------------------------------------------------------

                      My configurations are as follows-

                      (1)Entry point class contains following code-

                      public void onModuleLoad() {

                      //Opens Developer Console
                      SC.showConsole();

                      //screen is the name of file I created using VB and putted into webroot/shared/ui dir

                      RPCManager.loadScreen("screen");

                      }

                      (2) Configurations done in web.xml

                      <servlet>
                      <servlet-name>ScreenLoaderServlet</servlet-name>
                      <servlet-class>com.isomorphic.servlet.ScreenLoaderServlet</servlet-class>
                      </servlet>

                      <servlet-mapping>
                      <servlet-name>ScreenLoaderServlet</servlet-name>
                      <url-pattern>/visualbuildersample/sc/screenLoader</url-pattern>
                      </servlet-mapping>


                      However, Developer console showing generated response for Screen. The snippet of 'server logs' in Developer console is as follows-

                      === 2012-06-19 11:11:15,400 [l0-0] DEBUG ScreenLoaderServlet - Generated response:
                      isc.DynamicForm.create({
                      ID:"DynamicForm0",
                      autoDraw:false,
                      fields:[
                      {
                      name:"TextItem0",
                      _constructor:"TextItem"
                      }
                      ]
                      })



                      isc.DynamicForm.create({
                      ID:"DynamicForm1",
                      autoDraw:false,
                      fields:[
                      {
                      name:"TextItem1",
                      _constructor:"TextItem"
                      }
                      ]
                      })



                      isc.DynamicForm.create({
                      ID:"DynamicForm2",
                      autoDraw:false,
                      fields:[
                      {
                      name:"SelectItem0",
                      _constructor:"SelectItem"
                      }
                      ]
                      })



                      isc.DataView.create({
                      ID:"DataView1",
                      autoDraw:true,
                      overflow:"hidden",
                      members:[
                      DynamicForm0,
                      DynamicForm1,
                      DynamicForm2
                      ],
                      width:"100%",
                      height:"100%",
                      modulesDir:"modules/"
                      })


                      I request you please help me out. Many thanks in advance.

                      Comment


                        #12
                        We've seen this error before, but only from Chrome Development Mode, which is broken in general due to bugs in Chrome and core GWT (see FAQ). Try compiled mode, or another browser.

                        Comment


                          #13
                          hi, how can you make sc/screenLoader folder appers?
                          my does not..

                          thanks

                          Originally posted by shadab.gaur View Post
                          First of all, thank you very much.

                          I was using 3.0p version that's why I could not find ScreenLoaderServlet and loadScreen().

                          Now, I am using 3.1d build only, as you said.

                          Good news is, my screen is loading properly now using <script src="sc/screenLoader?screenName=screenName"></script> tag.

                          **** But still it's not working with RPCManager.loadScreen("screen"); ***


                          When I run my application, it's throwing an error and the stack trace is as follows-

                          ----------------------
                          Development mode log is-
                          NOTE- visualbuildersample is the my module name
                          --------------------------

                          [INFO] [visualbuildersample] - Your *.gwt.xml module configuration prohibits the use of the current doucment rendering mode (document.compatMode=' CSS1Compat').<br>Modify your application's host HTML page doctype, or update your custom 'document.compatMode' configuration property settings.

                          [INFO] [visualbuildersample] - Module visualbuildersample has been loaded

                          [ERROR] [visualbuildersample] - 11:11:15.875:XRP5:WARN:RPCManager:performTransactionReply: No such transaction 0

                          Below is the detailed log for "RPCManager:performTransactionReply: No such transaction 0" error.


                          10:58:46.136 [ERROR] [visualbuildersample] 10:58:46.160:XRP9:WARN:RPCManager:performTransactionReply: No such transaction 0

                          com.smartgwt.client.core.JsObject$SGWT_WARN: 10:58:46.160:XRP9:WARN:RPCManager:performTransactionReply: No such transaction 0
                          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                          at java.lang.reflect.Constructor.newInstance(Unknown Source)
                          at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
                          at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                          at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                          at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
                          at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
                          at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
                          at java.lang.Thread.run(Unknown Source)



                          In addition, after couple of minutes I get the following WARNING and the log is as follows-

                          11:15:14.683 [ERROR] [visualbuildersample] 11:15:14.668:TMR8:WARN:Log:undefined: TypeError: Cannot read property '$387' of null
                          Stack from error.stack:
                          RPCManager._timeoutTransaction() @ visualbuildersample/sc/modules/ISC_DataBinding.js:1266:95
                          eval() @ visualbuildersample/sc/modules/ISC_Core.js:63:76
                          [c]Class.fireCallback() @ visualbuildersample/sc/modules/ISC_Core.js:337:78
                          Timer._fireTimeout() @ visualbuildersample/sc/modules/ISC_Core.js:1426:81
                          unknown() @


                          com.smartgwt.client.core.JsObject$SGWT_WARN: 11:15:14.668:TMR8:WARN:Log:undefined: TypeError: Cannot read property '$387' of null
                          Stack from error.stack:
                          RPCManager._timeoutTransaction() @ visualbuildersample/sc/modules/ISC_DataBinding.js:1266:95
                          eval() @ visualbuildersample/sc/modules/ISC_Core.js:63:76
                          [c]Class.fireCallback() @ visualbuildersample/sc/modules/ISC_Core.js:337:78
                          Timer._fireTimeout() @ visualbuildersample/sc/modules/ISC_Core.js:1426:81
                          unknown() @

                          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                          at java.lang.reflect.Constructor.newInstance(Unknown Source)
                          at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
                          at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                          at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                          at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
                          at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
                          at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
                          at java.lang.Thread.run(Unknown Source)

                          -------------------------------------------------------------------

                          My configurations are as follows-

                          (1)Entry point class contains following code-

                          public void onModuleLoad() {

                          //Opens Developer Console
                          SC.showConsole();

                          //screen is the name of file I created using VB and putted into webroot/shared/ui dir

                          RPCManager.loadScreen("screen");

                          }

                          (2) Configurations done in web.xml

                          <servlet>
                          <servlet-name>ScreenLoaderServlet</servlet-name>
                          <servlet-class>com.isomorphic.servlet.ScreenLoaderServlet</servlet-class>
                          </servlet>

                          <servlet-mapping>
                          <servlet-name>ScreenLoaderServlet</servlet-name>
                          <url-pattern>/visualbuildersample/sc/screenLoader</url-pattern>
                          </servlet-mapping>


                          However, Developer console showing generated response for Screen. The snippet of 'server logs' in Developer console is as follows-

                          === 2012-06-19 11:11:15,400 [l0-0] DEBUG ScreenLoaderServlet - Generated response:
                          isc.DynamicForm.create({
                          ID:"DynamicForm0",
                          autoDraw:false,
                          fields:[
                          {
                          name:"TextItem0",
                          _constructor:"TextItem"
                          }
                          ]
                          })



                          isc.DynamicForm.create({
                          ID:"DynamicForm1",
                          autoDraw:false,
                          fields:[
                          {
                          name:"TextItem1",
                          _constructor:"TextItem"
                          }
                          ]
                          })



                          isc.DynamicForm.create({
                          ID:"DynamicForm2",
                          autoDraw:false,
                          fields:[
                          {
                          name:"SelectItem0",
                          _constructor:"SelectItem"
                          }
                          ]
                          })



                          isc.DataView.create({
                          ID:"DataView1",
                          autoDraw:true,
                          overflow:"hidden",
                          members:[
                          DynamicForm0,
                          DynamicForm1,
                          DynamicForm2
                          ],
                          width:"100%",
                          height:"100%",
                          modulesDir:"modules/"
                          })


                          I request you please help me out. Many thanks in advance.

                          Comment

                          Working...
                          X