Announcement

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

    Toolbar button shrinks to 1px and throws Exception

    Hi,

    I'm having recently this issue: when mouse is over the Toolbar button, the button shrinks to 1 pixel width and an exception is raised (showed only in the Dev Console)

    Can you reproduce the issue?
    Do you know how to solve the problem?

    1. SmartClient Version: v9.1p_2014-03-04/Pro Deployment (built 2014-03-04)
    2. I.E. version 11.0.9600.17351 (11.0.13 KB2987107)
    3-4. Client Side
    5. Stack:
    Code:
    16:44:39.048:TMR7:WARN:Log:Error: Argumento no válido.
    Stack from error.stack:
        Canvas._assignSize () @ tovai/sc/modules/ISC_Core.js:2331:483
        Button._assignRectToHandle () @ tovai/sc/modules/ISC_Foundation.js:424:448
        Canvas._setHandleRect () @ tovai/sc/modules/ISC_Core.js:2331:1
        Canvas.._adjustOverflow () @ tovai/sc/modules/ISC_Core.js:2241:98
        Canvas._adjustOverflow () @ tovai/sc/modules/ISC_Core.js:2235:15
        Canvas.adjustOverflow () @ tovai/sc/modules/ISC_Core.js:2231:35
        Button.setTableClassName () @ tovai/sc/modules/ISC_Foundation.js:468:53
        Button.stateChanged () @ tovai/sc/modules/ISC_Foundation.js:465:55
        StatefulCanvas.setState () @ tovai/sc/modules/ISC_Foundation.js:173:117
        StatefulCanvas.handleMouseOver () @ tovai/sc/modules/ISC_Foundation.js:211:117
    6. sample code if applicable:

    GWT.XML
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" 
        "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
    <module rename-to="tovai">
        <inherits name='com.google.gwt.user.User'/>
        <inherits name="com.smartgwt.tools.SmartGwtTools"/>
        <inherits name="com.smartgwtee.tools.Tools"/>
        <inherits name="com.smartgwtee.SmartGwtEE"/>
        <entry-point class='com.tovai.tovai.client.Tovai'/>
    </module>
    EntryPoint#onModuleLoad()
    Code:
    public void onModuleLoad()
        {
            ToolStrip bar = new ToolStrip();
            ToolStripButton btnAdd = new ToolStripButton("Add");
            bar.addButton(btnAdd);
            bar.draw();
        }
    Thanks,
    Omar

    #2
    Test against the latest available patch build, make sure you are using the HTML5 DOCTYPE (see FAQ).

    Comment


      #3
      ...

      Hi,

      The DOCTYPE is there in the HTML as the first line
      Code:
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      The only thing I have to do now is to find that patch. Can you give me a hint where it is?

      Thanks,
      Omar

      Comment


        #4
        ...

        I found the last patch for SmartGWT, 4.1p, Pro, in https://smartclient.com/builds, date: 2014-10-15

        With the new libraries the front end is working as expected in I.E. 11, at least for the buttons.

        And the Dev console is showing now a warning in I.E. 11 and Chrome 37.0.2062.124 m.

        I.E stack:
        Code:
        10:41:48.182:WARN:Log:java.lang.ClassCastException
            at at ng()
            at at cf()
            at at Cxb()
            at at Jl()
            at at Zpb()
            at at Deb()
            at at ej()
            at at Wi()
            at at sD()
        10:41:49.001:INFO:Log:isc.Page is loaded
        10:41:52.769:WARN:Log:TypeError: No se puede obtener la propiedad 'maps' de referencia nula o sin definir
        Stack from error.stack:
            tsb () @ tovai/AA7215BDB42A4295FECB0E06442C27D9.cache.html:1853:78
            d () @ tovai/AA7215BDB42A4295FECB0E06442C27D9.cache.html:1863:160
        
        10:41:53.809:pointerup5:WARN:Log:java.lang.ClassCastException
            at at ng()
            at at cf()
            at at Cxb()
            at at Jl()
            at at Npb()
            at at Deb()
            at at ej()
            at at Wi()
            at at sD()
        10:41:58.906:TMR4:WARN:Log:java.lang.ClassCastException
            at at ng()
            at at cf()
            at at Cxb()
            at at Jl()
            at at Zpb()
            at at Deb()
            at at ej()
            at at Wi()
            at at sD()
        10:41:59.784:TMR4:WARN:Log:java.lang.ClassCastException
            at at ng()
            at at cf()
            at at Cxb()
            at at Jl()
            at at Npb()
            at at Deb()
            at at ej()
            at at Wi()
            at at sD()
        10:42:00.439:TMR2:WARN:Log:java.lang.ClassCastException
            at at ng()
            at at cf()
            at at Cxb()
            at at Jl()
            at at Zpb()
            at at Deb()
            at at ej()
            at at Wi()
            at at sD()
        10:42:01.320:TMR2:WARN:Log:java.lang.ClassCastException
            at at ng()
            at at cf()
            at at Cxb()
            at at Jl()
            at at Npb()
            at at Deb()
            at at ej()
            at at Wi()
            at at sD()
        Chrome stack:
        Code:
        10:40:23.834:WARN:Log:java.lang.ClassCastException
            at cf(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@19)
            at fyb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@19)
            at em(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@46)
            at Cqb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@8314)
            at gfb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@10069)
            at Bj(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@188)
            at rj(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@77)
            at SD(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@29)
            at aE(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@25873)
            at <anonymous>(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@84)
            at Df(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@29)
            at Hf(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@57)
            at resized(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@45)
            at isc.B.push.isc.A.$5y(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@74)
            at isc_Canvas__completeResizeBy(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@32)
            at isc_Canvas_resizeBy(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@6)
            at isc_Canvas_resizeTo(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@932)
            at isc_Canvas_init(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@89)
            at isc_Class_completeCreation(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@6)
            at isc_c_Class_create(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@1891)
            at d$(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@4334)
            at FX(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@329)
            at dY(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@1932)
            at QZ(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@112)
            at PZ(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@31)
            at yqb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@493)
            at uqb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@49)
            at hpb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@758)
            at Kz(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@447)
            at Df(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@29)
            at Hf(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@155)
            at anonymous(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@45)
            at gwtOnLoad(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@102)
            at G(http://127.0.0.1/tovai/tovai/tovai.nocache.js@137)
            at tovai.onScriptLoad(http://127.0.0.1/tovai/tovai/tovai.nocache.js@538)
            at anonymous(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@24097)
        10:40:24.830:WARN:Log:TypeError: Cannot read property 'maps' of undefined
        Stack from error.stack:
        
        10:40:26.970:MUP1:WARN:Log:java.lang.ClassCastException
            at cf(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@19)
            at fyb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@19)
            at em(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@46)
            at qqb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@8074)
            at gfb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@10069)
            at Bj(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@188)
            at rj(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@77)
            at SD(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@29)
            at aE(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@25873)
            at <anonymous>(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@84)
            at Df(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@29)
            at Hf(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@57)
            at resized(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@45)
            at isc.B.push.isc.A.$5y(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@74)
            at isc_Canvas__completeResizeBy(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@32)
            at isc_Canvas_resizeBy(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@6)
            at isc_Canvas_resizeTo(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@932)
            at isc_Canvas_init(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@89)
            at isc_Class_completeCreation(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@6)
            at isc_c_Class_create(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@1891)
            at d$(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@4334)
            at FX(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@329)
            at dY(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@1932)
            at QZ(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@112)
            at PZ(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@31)
            at mqb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@469)
            at uqb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@105)
            at xqb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@191)
            at Iqb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@8698)
            at xpb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@115)
            at Gpb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@7785)
            at Xeb(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@9838)
            at Bj(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@188)
            at rj(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@77)
            at SD(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@29)
            at aE(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@25873)
            at anonymous(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@83)
            at Df(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@29)
            at Hf(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@57)
            at anonymous(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@45)
            at d.click(http://127.0.0.1/tovai/tovai/CEE17F8F7B828BC74B49D55D6FF6A6BF.cache.html@248)
            at isc_StatefulCanvas_handleActivate(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Foundation.js@108)
            at isc_StatefulCanvas_handleClick(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Foundation.js@13)
            at isc_c_EventHandler_bubbleEvent(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@139)
            at isc_c_EventHandler_handleClick(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@606)
            at isc_c_EventHandler__handleMouseUp(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@26)
            at isc_c_EventHandler_handleMouseUp(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@41)
            at isc_c_EventHandler_dispatch(http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@155)
            at eval(eval at isc__makeFunction (http://127.0.0.1/tovai/tovai/sc/modules/ISC_Core.js@122)
        Warnings that I suppose that are there not to worry about, but just in case, is this an issue related to new SmartGWT libraries or something in my code that is creating it? I the last case, I will find the cause and solution.

        Thanks

        Comment


          #5
          That's the wrong DOCTYPE (again see the FAQ).

          Also, the stack traces you are showing could not have resulted from the sample code you've shared. If you look, you can see that wherever you're actually testing, you've got code that crashes somewhere in response to a ResizedEvent (after several other calls).

          Comment


            #6
            ...

            Thanks for the answer.

            "you've got code that crashes somewhere in response to a ResizedEvent (after several other calls)", completely true. A resize handler doing something wrong and that was not reported before in the development console. Probably the last patch applied catched and reported it. Fixed, thanks again.

            "That's the wrong DOCTYPE (again see the FAQ)" was not easy to find that famous "FAQ". Just a suggestion, be kind next time and provide the link to the FAQ. It's not difficult for you.

            Buy the way, the library/framework "Smart-GWT-Client" is better every day.

            Best regards and thanks again for your help.

            Comment


              #7
              To make sure you cannot miss it, there are 3 links to the FAQ right next to where you type in your post.

              Comment

              Working...
              X