Announcement

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

    loadXMLSchema: TypeError: elem is null if modules-debug

    Hi,
    I am not able to use modules-debug:
    Code:
    var debugMode = "-debug";
    function loader(name, picture)
    {
        if (picture) {
            document.write("<"+"script type='text/javascript'> document.getElementById('loadingPicture').src = '" + picture + "';<"+"/script>");
        }
        if (name) {
            document.write("<"+"script src=" + name + "?version=" + version + "><"+"/script>");
        }
    }
    loader('sc/modules'+debugMode+'/ISC_Core.js', 'images/loader1.gif');
    loader('sc/modules'+debugMode+'/ISC_Foundation.js', 'images/loader2.gif');
    loader('sc/modules'+debugMode+'/ISC_Containers.js');
    loader('sc/modules'+debugMode+'/ISC_Grids.js');
    loader('sc/modules'+debugMode+'/ISC_Forms.js');
    loader('sc/modules'+debugMode+'/ISC_RichTextEditor.js');
    loader('sc/modules'+debugMode+'/ISC_Calendar.js');
    loader('sc/modules'+debugMode+'/ISC_DataBinding.js');
    loader('sc/skins/' + currentSkin + '/load_skin.js', 'images/loader3.gif');
    
    // starting GWT application
    loader('pl.com.tech4.app.nocache.js', 'images/loader4.gif');
    Code:
        <inherits name="com.smartgwt.debug.SmartGwtNoScriptDebug"/>
    because the loadXMLSchema() call fires this ex:
    Code:
    00:00:22,496 [ERROR] 15:49:31.632:XRP6:WARN:Log:TypeError: elem is null Stack from error.stack: unnamed() @ :144 __gwt_javaInvokes[1]() @ ?service=plan9000&gwt.codesvr=127.0.0.1:9997:197 unnamed() @ :52 .fireCallback() @ sc/client/language/Class.js:1867 ._completeLoad() @ sc/client/language/XMLTools.js:2185 ._loadSchemaToJSReply() @ sc/client/language/XMLTools.js:2176 ._loadSchemaReply() @ sc/client/language/XMLTools.js:2132 .loadWSDL/<() @ sc/client/language/XMLTools.js:2084 .fireCallback() @ sc/client/language/Class.js:1867 ._getXMLResponseReply() @ sc/client/language/XMLTools.js:260 .fireCallback() @ sc/client/language/Class.js:1867 .fireCallback() @ sc/client/language/Class.js:3718 .fireReplyCallback() @ sc/client/application/RPCManager.js:4668 $wnd.isc.RPCManager.fireReplyCallback() @ :311 .fireReplyCallbacks() @ sc/client/application/RPCManager.js:4730 .performOperationReply() @ sc/client/application/RPCManager.js:4659 ._performTransactionReply() @ sc/client/application/RPCManager.js:4573 .performTransactionReply() @ sc/client/application/RPCManager.js:3935 anonymous() @ sc/client/language/Object.js:151 .fireCallback() @ sc/client/language/Class.js:1867 .performXmlTransactionReply() @ sc/client/communications/Comm.js:438 anonymous() @ sc/client/language/Object.js:151 .fireCallback() @ sc/client/language/Class.js:1870 ._fireXMLCallback() @ sc/client/communications/Comm.js:101 .sendXmlHttpRequest/loadFunc() @ sc/client/communications/Comm.js:337
    com.smartgwt.client.core.JsObject$SGWT_WARN: 15:49:31.632:XRP6:WARN:Log:TypeError: elem is null Stack from error.stack:     unnamed() @ :144     __gwt_javaInvokes[1]() @ ?service=plan9000&gwt.codesvr=127.0.0.1:9997:197     unnamed() @ :52     .fireCallback() @ sc/client/language/Class.js:1867     ._completeLoad() @ sc/client/language/XMLTools.js:2185     ._loadSchemaToJSReply() @ sc/client/language/XMLTools.js:2176     ._loadSchemaReply() @ sc/client/language/XMLTools.js:2132     .loadWSDL/<() @ sc/client/language/XMLTools.js:2084     .fireCallback() @ sc/client/language/Class.js:1867     ._getXMLResponseReply() @ sc/client/language/XMLTools.js:260     .fireCallback() @ sc/client/language/Class.js:1867     .fireCallback() @ sc/client/language/Class.js:3718     .fireReplyCallback() @ sc/client/application/RPCManager.js:4668     $wnd.isc.RPCManager.fireReplyCallback() @ :311     .fireReplyCallbacks() @ sc/client/application/RPCManager.js:4730     .performOperationReply() @ sc/client/application/RPCManager.js:4659     ._performTransactionReply() @ sc/client/application/RPCManager.js:4573     .performTransactionReply() @ sc/client/application/RPCManager.js:3935     anonymous() @ sc/client/language/Object.js:151     .fireCallback() @ sc/client/language/Class.js:1867     .performXmlTransactionReply() @ sc/client/communications/Comm.js:438     anonymous() @ sc/client/language/Object.js:151     .fireCallback() @ sc/client/language/Class.js:1870     ._fireXMLCallback() @ sc/client/communications/Comm.js:101     .sendXmlHttpRequest/loadFunc() @ sc/client/communications/Comm.js:337      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     at java.lang.reflect.Constructor.newInstance(Constructor.java:526)     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:293)     at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)     at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)     at java.lang.Thread.run(Thread.java:745)
    The very same call, but using "modules" instead of "modules-debug" works fine with clear log.
    I would like to debug something later in the application, but I am not able to start it using debug modules.
    I am using latest SGWT LGPL version.
    Any hints?
    Thanks,
    MichalG
Working...
X