Announcement

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

    Unable load DS after add new DS in project.html file

    I am using gwt 2.4, smartgwt 3.1d EE, IE 9 (64bits), Java 1.7, Eclipse indigo and window 7.

    we use SmartClient Version: SNAPSHOT_v8.3d_2012-07-23/PowerEdition Deployment (built 2012-07-23)

    Used to be our application is working. But after we add a new datasource in our project.html file. First when I start my application again with IE 9(64bits). The new datasource not load. I did not see it been loaded in my log, rest of old datasource still load correctly. Then I delete IE temporary files, history, cookies. All of the datasource not load any more. I mean I did not see any datasource files(even the old working datasoucrce) been loaded and my application throw exception when first time use datasource. Then I change to IE 9 (32bits version), got same error. When I change to try to use Firefox. The application window nerver pop up. Chrome always complain too slow then stoped.

    I have another XP machine has same probblem but at least firefox is working(all of the datasource been loaded correctlly). So at least approve my application is ok but just can not laod datasource when I use IE.

    #2
    Take a look at the steps for troubleshooting DataSource loading in the FAQ. If you can't figure it out, you need to post the diagnostic that you gather while following those troubleshooting instructions.

    Comment


      #3
      where is DataSource loading FAQ?
      Right now after I delete gwt-unitCache file and clear FireFox cookies, Cache, history files. FireFox works for my application. But after I did same thing on IE. Still can not load DS. Whenn I use IE to start my application, throw out null pointer exception when I use datasource. Did not see "Parsed XML from myDS.ds.xml: 0ms " message like in Firefox and used to be.

      Comment


        #4
        IE: 8
        smartGwt: power
        java: 1.7.0_09

        this is the output from FireFox which is working with my datasources:


        ISC: Configuring log4j from: file:/C:/Triad40/NCV1.3/Triad40/war/WEB-INF/classes/log4j.isc.config.xml
        === 2012-10-30 10:14:16,000 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
        === 2012-10-30 10:14:16,031 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
        === 2012-10-30 10:14:16,187 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Triad40/NCV1.3/Triad40/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
        === 2012-10-30 10:14:16,187 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
        === 2012-10-30 10:14:16,187 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
        === 2012-10-30 10:14:16,187 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Triad40/NCV1.3/Triad40/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
        === 2012-10-30 10:14:16,187 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
        === 2012-10-30 10:14:16,187 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Triad40/NCV1.3/Triad40/war/WEB-INF/classes/server.properties
        === 2012-10-30 10:14:16,187 [main] INFO Logger - Logging system started.
        === 2012-10-30 10:14:16,203 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v8.3d_2012-07-23/PowerEdition Deployment 2012-07-23) - Initialization Complete
        === 2012-10-30 10:14:16,203 [main] INFO ISCInit - Auto-detected webRoot - using: C:\Triad40\NCV1.3\Triad40\war
        === 2012-10-30 10:14:16,203 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Base
        === 2012-10-30 10:14:16,203 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
        10:14:16,625 DEBUG [org.apache.jasper.compiler.JspRuntimeContext] - Parent class loader is: ContextLoader@null
        10:14:16,625 DEBUG [org.apache.jasper.servlet.JspServlet] - Scratch dir for the JSP engine is: C:\DOCUME~1\RICHAR~1.ETI\LOCALS~1\Temp\Jetty_127_0_0_1_8888_war____-g0qk00\jsp
        10:14:16,625 DEBUG [org.apache.jasper.servlet.JspServlet] - IMPORTANT: Do not modify the generated servlets
        === 2012-10-30 10:14:16,625 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Init
        === 2012-10-30 10:14:16,625 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
        === 2012-10-30 10:14:43,794 [l0-0] INFO RequestContext - URL: '/Triad40.html', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:43,825 [l0-0] INFO Compression - /Triad40.html: 5558 -> 1318 bytes
        === 2012-10-30 10:14:43,825 [l0-0] DEBUG ServletTools - setting cookie 'isc_cState' to: 'ready'
        === 2012-10-30 10:14:44,137 [l0-0] INFO RequestContext - URL: '/Triad40.css', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,153 [l0-2] INFO RequestContext - URL: '/triad40/triad40.nocache.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,153 [l0-3] INFO RequestContext - URL: '/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,169 [l0-0] INFO Compression - /Triad40.css: 824 -> 468 bytes
        === 2012-10-30 10:14:44,184 [l0-2] INFO Compression - /triad40/triad40.nocache.js: 13866 -> 3381 bytes
        === 2012-10-30 10:14:44,278 [l0-2] INFO RequestContext - URL: '/triad40/sc/initsc.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,278 [l0-0] INFO RequestContext - URL: '/triad40/sc/modules/ISC_Core.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,278 [l0-5] INFO RequestContext - URL: '/triad40/sc/modules/ISC_Foundation.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,294 [l0-4] INFO RequestContext - URL: '/triad40/sc/modules/ISC_Containers.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,294 [l0-6] INFO RequestContext - URL: '/triad40/sc/modules/ISC_Grids.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,372 [l0-5] INFO Compression - /triad40/sc/modules/ISC_Foundation.js: 243894 -> 57682 bytes
        === 2012-10-30 10:14:44,372 [l0-5] INFO RequestContext - URL: '/triad40/sc/modules/ISC_Forms.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,387 [l0-2] INFO Compression - /triad40/sc/initsc.js: 47 -> 72 bytes
        === 2012-10-30 10:14:44,387 [l0-2] INFO RequestContext - URL: '/triad40/sc/modules/ISC_RichTextEditor.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,419 [l0-4] INFO Compression - /triad40/sc/modules/ISC_Containers.js: 134005 -> 31664 bytes
        === 2012-10-30 10:14:44,434 [l0-0] INFO Compression - /triad40/sc/modules/ISC_Core.js: 756455 -> 195500 bytes
        === 2012-10-30 10:14:44,450 [l0-0] INFO RequestContext - URL: '/triad40/sc/modules/ISC_Calendar.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,450 [l0-3] INFO PoolManager - SmartClient pooling disabled for 'networksDS' objects
        === 2012-10-30 10:14:44,466 [l0-4] INFO RequestContext - URL: '/triad40/sc/modules/ISC_DataBinding.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,544 [l0-5] INFO Compression - /triad40/sc/modules/ISC_Forms.js: 684410 -> 165860 bytes
        === 2012-10-30 10:14:44,544 [l0-6] INFO Compression - /triad40/sc/modules/ISC_Grids.js: 816430 -> 205516 bytes
        === 2012-10-30 10:14:44,559 [l0-6] INFO RequestContext - URL: '/triad40/sc/skins/Graphite/load_skin.js', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:44,559 [l0-2] INFO Compression - /triad40/sc/modules/ISC_RichTextEditor.js: 39881 -> 11127 bytes
        === 2012-10-30 10:14:44,575 [l0-0] INFO Compression - /triad40/sc/modules/ISC_Calendar.js: 115858 -> 28639 bytes
        === 2012-10-30 10:14:44,622 [l0-4] INFO Compression - /triad40/sc/modules/ISC_DataBinding.js: 620623 -> 151202 bytes
        === 2012-10-30 10:14:44,637 [l0-6] INFO Compression - /triad40/sc/skins/Graphite/load_skin.js: 55405 -> 9429 bytes
        === 2012-10-30 10:14:44,903 [l0-3] DEBUG XML - Parsed XML from C:\Triad40\NCV1.3\Triad40\war\triad40\sc\system\schema\builtinTypes.xml: 62ms
        === 2012-10-30 10:14:44,997 [l0-3] DEBUG XML - Parsed XML from C:\Triad40\NCV1.3\Triad40\war\shared\ds\default\networksDS.ds.xml: 0ms
        === 2012-10-30 10:14:45,012 [l0-3] DEBUG XML - Parsed XML from C:\Triad40\NCV1.3\Triad40\war\triad40\sc\system\schema\DataSource.ds.xml: 15ms
        === 2012-10-30 10:14:45,122 [l0-3] DEBUG XML - Parsed XML from C:\Triad40\NCV1.3\Triad40\war\triad40\sc\system\schema\DataSourceField.ds.xml: 0ms
        === 2012-10-30 10:14:45,137 [l0-3] DEBUG XML - Parsed XML from C:\Triad40\NCV1.3\Triad40\war\triad40\sc\system\schema\OperationBinding.ds.xml: 0ms
        === 2012-10-30 10:14:45,231 [l0-6] INFO RequestContext - URL: '/triad40/sc/skins/Graphite/skin_styles.css', User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0': Moz (Gecko) with Accept-Encoding header
        === 2012-10-30 10:14:45,247 [l0-6] INFO Compression - /triad40/sc/skins/Graphite/skin_styles.css: 164972 -> 14264 bytes
        === 2012-10-30 10:14:45,356 [l0-3] DEBUG XML - Parsed XML from C:\Triad40\NCV1.3\Triad40\war\shared\ds\default\networkViewDS.ds.xml: 0ms


        This us the output from IE:

        ISC: Configuring log4j from: file:/C:/Triad40/NCV1.3/Triad40/war/WEB-INF/classes/log4j.isc.config.xml
        === 2012-10-30 10:25:28,036 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
        === 2012-10-30 10:25:28,068 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
        === 2012-10-30 10:25:28,255 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Triad40/NCV1.3/Triad40/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
        === 2012-10-30 10:25:28,255 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
        === 2012-10-30 10:25:28,255 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
        === 2012-10-30 10:25:28,255 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Triad40/NCV1.3/Triad40/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
        === 2012-10-30 10:25:28,255 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
        === 2012-10-30 10:25:28,271 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Triad40/NCV1.3/Triad40/war/WEB-INF/classes/server.properties
        === 2012-10-30 10:25:28,271 [main] INFO Logger - Logging system started.
        === 2012-10-30 10:25:28,271 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v8.3d_2012-07-23/PowerEdition Deployment 2012-07-23) - Initialization Complete
        === 2012-10-30 10:25:28,271 [main] INFO ISCInit - Auto-detected webRoot - using: C:\Triad40\NCV1.3\Triad40\war
        === 2012-10-30 10:25:28,286 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Base
        === 2012-10-30 10:25:28,286 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
        10:25:28,411 DEBUG [org.apache.jasper.compiler.JspRuntimeContext] - Parent class loader is: ContextLoader@null
        10:25:28,411 DEBUG [org.apache.jasper.servlet.JspServlet] - Scratch dir for the JSP engine is: C:\DOCUME~1\RICHAR~1.ETI\LOCALS~1\Temp\Jetty_127_0_0_1_8888_war____-g0qk00\jsp
        10:25:28,411 DEBUG [org.apache.jasper.servlet.JspServlet] - IMPORTANT: Do not modify the generated servlets
        === 2012-10-30 10:25:28,427 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Init
        === 2012-10-30 10:25:28,427 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
        === 2012-10-30 10:25:36,895 [l0-4] INFO Compression - /triad40/sc/modules/ISC_Core.js: 756455 -> 195500 bytes
        === 2012-10-30 10:25:36,895 [l0-4] DEBUG ServletTools - setting cookie 'isc_cState' to: 'ready'
        === 2012-10-30 10:25:37,832 [l0-4] INFO RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MDDR)': MSIE with Accept-Encoding header, ready for compressed JS


        10:25:44.363 [ERROR] [triad40] Unable to load module entry point class eti.client.Triad40 (see associated exception for details)
        java.lang.NullPointerException: null
        at com.smartgwt.client.widgets.grid.ListGrid.setDataSource(ListGrid.java:15636)
        at eti.client.features.networkview.port.view.data.DataViewPresenter.<init>(DataViewPresenter.java:42)
        at eti.client.features.networkview.port.dialog.DataVideoVoiceDialogPresenter.<init>(DataVideoVoiceDialogPresenter.java:30)
        at eti.client.features.networkview.fiber.view.OntPortsGridViewPresenter.<init>(OntPortsGridViewPresenter.java:50)
        at eti.client.features.networkview.fiber.FiberElementsStackedViewPresenter.<init>(FiberElementsStackedViewPresenter.java:98)
        at eti.client.features.networkview.fiber.FiberNetworkViewPresenter.<init>(FiberNetworkViewPresenter.java:73)
        at eti.client.features.networkview.NetworkWindowPresenter.<init>(NetworkWindowPresenter.java:34)
        at eti.client.application.MainPresenter.<init>(MainPresenter.java:120)
        at eti.client.Triad40.onModuleLoad(Triad40.java:46)
        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:601)
        at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
        at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
        at java.lang.Thread.run(Thread.java:722)


        The NULL POINTER occurs because the dataSource is not loaded.


        The really strange thing is that this worked in IE until last week.
        Thanks...

        Comment


          #5
          How many datasources are you loading?

          We ran into an issue where our ds.xml files would not be loaded by the datasource loader servlet when there are too many ds.xml files trying to be loaded at once.

          We had to break up the calls to the datasource loader into multiple calls. It just seems to be some limit on the size of the comma-separated value that is passed to the ds loader servlet.

          Comment


            #6
            We are loading 26: however, we expect that we will need hundreds.

            break up the calls to the datasource loader into multiple calls
            Would you show me code as to how you did this in your <project>.html file.

            I think I have an idea but I just want to be sure.

            Thanks.

            Comment


              #7
              Well, I just found that there was a hidden tab or something that was not showing in Eclipse editor.

              After I put all DS on one line it worked again.
              However, if you still post the way to load ds in multiple calls I would really appreciate that.


              I just cannot understand why the FireFox browser was not breaking and the IE browser was breaking with the un-found hidden character.

              Thanks,

              Comment


                #8
                Sure. At the bottom of your .html page where you normally load the datasources, just create multiple calls.

                For example:
                Code:
                <script src="myWebApp/sc/DataSourceLoader?dataSource=
                items,
                supplyItems,
                animals
                "></script>
                
                <script src="myWebApp/sc/DataSourceLoader?dataSource=
                moreItems,
                inventory,
                fish
                "></script>

                Comment

                Working...
                X