Announcement

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

    Smart GWT with Bing Maps

    Hi Isomorphic, We are using Bing Maps Web Controls Version 7 with SmartGWT framework version 6.0.20170204p implemented via JSNI in our MarketIntelligence application (With suggested help from http://forums.smartclient.com/forum/...-with-smartgwt). So far we were using GWT version 2.6.1. Recently we started migrating to Java 8 so had to upgrade GWT version 2.8.0 to support Lambda functions. But Bing maps started throwing below error on JS side.
    There is no other change except GWT version.
    Any guidance is appreciated.

    Error:

    loadScriptTagFiles.js:2 GET http://servername:8055/mi/MarketIntelligence/https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&s=1 404 (Not Found)
    (anonymous) @ loadScriptTagFiles.js:2
    isc_Canvas__browserDoneDrawing @ ISC_Core.js:2798
    isc_Canvas__completeChildOverflow @ ISC_Core.js:2247
    isc_Layout_layoutChildren @ ISC_Foundation.js:347
    isc_Layout_drawChildren @ ISC_Foundation.js:255
    isc_Canvas_draw @ ISC_Core.js:2198
    isc_Layout_layoutChildren @ ISC_Foundation.js:345
    isc_Layout_reflowNow @ ISC_Foundation.js:373
    isc_c_Layout_clearReflowQueue @ ISC_Foundation.js:243
    (anonymous) @ ISC_Foundation.js:243
    isc_c_EventHandler_runTeas @ ISC_Core.js:1811
    isc_c_EventHandler__clearThread @ ISC_Core.js:1808
    isc_c_EventHandler_dispatch @ ISC_Core.js:1813
    (anonymous) @ VM1415:3
    ISC_Core.js:1152 *21:58:30.404:MUP7[E0]:WARN:Log:TypeError: Cannot read property 'clear' of undefined
    Stack from error.stack:
    EKb() @ MarketIntelligence-0.js:2068:22
    DKb() @ MarketIntelligence-0.js:1207:17
    R7b() @ MarketIntelligence-0.js:5115:41
    S7b.U7b() @ MarketIntelligence-0.js:5559:29637
    l7b() @ MarketIntelligence-0.js:3711:66
    HKb.JKb() @ MarketIntelligence-0.js:5556:6386
    HKb.W1() @ MarketIntelligence-0.js:5552:21392
    _3.D1.d.onDraw() @ MarketIntelligence-0.js:5552:20638
    _3.isc_Canvas_draw() @ MarketIntelligence/sc/modules/ISC_Core.js:2208:6
    _3.isc_Canvas_drawChildren() @ MarketIntelligence/sc/modules/ISC_Core.js:2245:210
    _3.isc_Canvas_draw() @ MarketIntelligence/sc/modules/ISC_Core.js:2198:253
    _3.isc_Layout_layoutChildren() @ MarketIntelligence/sc/modules/ISC_Foundation.js:345:265
    _3.isc_Layout_reflowNow() @ MarketIntelligence/sc/modules/ISC_Foundation.js:373:542
    [c]Layout.clearReflowQueue() @ MarketIntelligence/sc/modules/ISC_Foundation.js:243:447
    http://servername:8055/mi/MarketInte...on.js:243:82() @
    _3.isc_c_EventHandler_runTeas() @ MarketIntelligence/sc/modules/ISC_Core.js:1811:106
    _3.isc_c_EventHandler__clearThread() @ MarketIntelligence/sc/modules/ISC_Core.js:1808:136
    _3.isc_c_EventHandler_dispatch() @ MarketIntelligence/sc/modules/ISC_Core.js:1813:6
    HTMLDocument.eval() @ eval at isc__makeFunction (http://servername:8055/mi/MarketInte...Core.js:75:122), <anonymous>:3:123

    isc.B.push.isc.A.addToMasterLog @ ISC_Core.js:1152
    isc_c_Log_addLogMessage @ ISC_Core.js:1151
    isc_c_Log_log @ ISC_Core.js:1144
    logMessage @ ISC_Core.js:1133
    logWarn @ ISC_Core.js:1133
    isc__debug__reportJSErrorStack @ ISC_Core.js:1106
    isc__debug__reportJSError @ ISC_Core.js:1106
    window.onerror @ ISC_Core.js:1192
    MarketIntelligence-0.js:2068 Uncaught TypeError: Cannot read property 'clear' of undefined
    at EKb (MarketIntelligence-0.js:2068)
    at DKb (MarketIntelligence-0.js:1207)
    at R7b (MarketIntelligence-0.js:5115)
    at S7b.U7b [as yg] (MarketIntelligence-0.js:5559)
    at l7b (MarketIntelligence-0.js:3711)
    at HKb.JKb [as Oc] (MarketIntelligence-0.js:5556)
    at HKb.W1 [as Qc] (MarketIntelligence-0.js:5552)
    at _3.D1.d.onDraw (MarketIntelligence-0.js:5552)
    at _3.isc_Canvas_draw [as draw] (ISC_Core.js:2208)
    at _3.isc_Canvas_drawChildren [as drawChildren] (ISC_Core.js:2245)
    at _3.isc_Canvas_draw [as draw] (ISC_Core.js:2198)
    at _3.isc_Layout_layoutChildren [as layoutChildren] (ISC_Foundation.js:345)
    at _3.isc_Layout_reflowNow [as reflowNow] (ISC_Foundation.js:373)
    at Object.isc_c_Layout_clearReflowQueue [as clearReflowQueue] (ISC_Foundation.js:243)
    at ISC_Foundation.js:243
    at _3.isc_c_EventHandler_runTeas [as runTeas] (ISC_Core.js:1811)
    at _3.isc_c_EventHandler__clearThread [as $h2] (ISC_Core.js:1808)
    at _3.isc_c_EventHandler_dispatch [as dispatch] (ISC_Core.js:1813)
    at HTMLDocument.eval (eval at isc__makeFunction (ISC_Core.js:75), <anonymous>:3:123)
    EKb @ MarketIntelligence-0.js:2068
    DKb @ MarketIntelligence-0.js:1207
    R7b @ MarketIntelligence-0.js:5115
    U7b @ MarketIntelligence-0.js:5559
    l7b @ MarketIntelligence-0.js:3711
    JKb @ MarketIntelligence-0.js:5556
    W1 @ MarketIntelligence-0.js:5552
    D1.d.onDraw @ MarketIntelligence-0.js:5552
    isc_Canvas_draw @ ISC_Core.js:2208
    isc_Canvas_drawChildren @ ISC_Core.js:2245
    isc_Canvas_draw @ ISC_Core.js:2198
    isc_Layout_layoutChildren @ ISC_Foundation.js:345
    isc_Layout_reflowNow @ ISC_Foundation.js:373
    isc_c_Layout_clearReflowQueue @ ISC_Foundation.js:243
    (anonymous) @ ISC_Foundation.js:243
    isc_c_EventHandler_runTeas @ ISC_Core.js:1811
    isc_c_EventHandler__clearThread @ ISC_Core.js:1808
    isc_c_EventHandler_dispatch @ ISC_Core.js:1813
    (anonymous) @ VM1415:3

    #2
    This is a 404 error. The map is not at the URL you provided.

    Comment


      #3
      Thats the point. Just changing the GWT version to 2.8 is causing this. It is working with GWT2.6. The api url is https:/ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&s=1 and is functional too. I cant find the reason of why the URLs being concatenated. Any insights will be helpful.

      Thanks,
      Manish

      Comment


        #4
        You're in compiled/production mode, correct? Can you please provide the loadScriptTagFiles.js file and your Project (gwt.xml) file so we can verify a potential solution?

        Comment


          #5
          Hi, Here is loadScriptTagFiles.js
          loadScriptTagFiles.js


          MarketIntelligence.gwt.xml
          MarketIntelligence.gwt.xml
          Here is the referred GwtBingMaps.gwt.xml <module> <inherits name="com.google.gwt.user.User"/> <source path='bingmaps'/> <!--Javascript lib for Bing Maps--> <script src='https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&amp;s=1'/> </module>
          Regards,
          Manish

          Comment


            #6
            This should be resolved in SGWT 6.1d/SC 11.1d in today's builds, and will be resolved back to SGWT 4.1p/SC 9.1p in the nightly builds dated 2017-06-17.

            Comment


              #7
              Hi Isomorphic,
              Is there a way to figure out the the changelog between 2 nightly builds of the same minor version (say between 6.0p current nightly build vs. prev. nightly build)?
              Do you publish this somewhere?
              It would help us, since, if we are to take the new nightly build for 6.0 for the above fix, we would need to know if there's any behavior impact that we might expect!
              Thanks!

              Comment


                #8
                We don't currently expose the internal changelogs. If you're thinking of looking it over in order to focus your testing or something like that, that sounds nice but doesn't really work - we'd recommend doing your usual release testing before putting something new into production.

                Note that this particular issue was actually caused because GWT (not us) dropped support for tags in modules and we added a custom linker to restore this bit of functionality.

                Comment


                  #9
                  Yes, the idea was for our QA team to extra-focus on the stuff that changed between the nightly builds.
                  Anyway, we'll continue our usual tests.
                  Thanks for the response and the fix.

                  Comment

                  Working...
                  X