Announcement

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

    Blank page after migrating from SmartGwt LGPL to SmartGwtEE

    SmartGWT : 2.4

    After following detailed instructions there : http://www.smartclient.com/smartgwte...wtEESetup.html

    I tried to launch my application, previously using SmartGwt LGPL and working very fine, and now using SmartGWTEE (I would like a Pro licence, but if i understood correctly i have to try first with EE, until i pay for the Pro library, right ?)

    A blank page is showing up in every browser (IE, Firefox,CHROME), although it seems to be loading start of page (and no error in console panel). I have no logged errors in my app log nor web container (Jetty 6.1.10) at startup. Only a WARN saying:

    Code:
    2011-02-09 15:39:37.280::WARN:  Aliased resource: file:/C:/Users/max/AppData/Local/Temp/Jetty_0_0_0_0_8080_bgp-web-client-1.0.10-SAI
    _BRANCH-2011_02_09.war__bgp-web-client-1_0_10-SAI_BRANCH-2011_02_09__mqo8px/webapp/bgpweb.html==file:/C:/Users/max/AppData/Local/Tem
    p/Jetty_0_0_0_0_8080_bgp-web-client-1.0.10-SAI_BRANCH-2011_02_09.war__bgp-web-client-1_0_10-SAI_BRANCH-2011_02_09__mqo8px/webapp/BGP
    Web.html

    And in Firebug:

    Code:
    <html><head>
    
    <title>bgp web</title>
    <script type="text/javascript">
        var isomorphicDir = "bgpweb/sc/";
        </script>
    <script src="bgpweb/bgpweb.nocache.js" language="javascript">     
         </script><script src="http://localhost:8080/bgp-web/bgpweb/sc/initsc.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/modules/ISC_Core.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/modules/ISC_Foundation.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/modules/ISC_Containers.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/modules/ISC_Grids.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/modules/ISC_Forms.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/modules/ISC_RichTextEditor.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/modules/ISC_Calendar.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/modules/ISC_DataBinding.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/sc/skins/Enterprise/load_skin.js" language="javascript"></script><link href="http://localhost:8080/bgp-web/bgpweb/sc/skins/Enterprise/skin_styles.css" type="text/css" rel="stylesheet"><script src="http://localhost:8080/bgp-web/bgpweb/jquery.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/jQuery-noConfict.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/flot-0.5/jquery.flot.pack.js" language="javascript"></script><script src="http://localhost:8080/bgp-web/bgpweb/flot-0.5/excanvas.pack.js" language="javascript"></script><script defer="defer">bgpweb.onInjectionDone('bgpweb')</script>
    <link href="custom.css" rel="stylesheet" type="text/css">
    <link href="mastergrid-custom.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="http://localhost:8080/bgp-web/bgpweb/custom.css"><link rel="stylesheet" href="http://localhost:8080/bgp-web/bgpweb/mastergrid-custom.css"><link rel="stylesheet" href="http://localhost:8080/bgp-web/bgpweb/gwt-log.css"></head><body>
    <iframe style="position: absolute; width: 0pt; height: 0pt; border: 0pt none;" id="__gwt_historyFrame" src="javascript:''"></iframe>
    <iframe src="javascript:''" id="bgpweb" style="position: absolute; width: 0pt; height: 0pt; border: medium none;" tabindex="-1"></iframe><div style="position: absolute; z-index: -32767; left: -20cm; top: -20cm; width: 10cm; height: 10cm;">&nbsp;</div><table cellpadding="81" style="position: absolute; left: 0px; top: -2000px;"><tbody><tr><td id="isc_cellStyleTester" class="normal">&nbsp;</td><td id="isc_cellNoStyleTester">&nbsp;</td></tr></tbody></table><div style="position: absolute; left: 0px; top: -2000px;" id="isc_styleTester" class="normal">&nbsp;</div><div onscroll="return isc_Img_0.$lh()" style="position: absolute; left: 0px; top: -10px; width: 1px; height: 1px; z-index: 200090; background-color: pink; -moz-box-sizing: border-box; overflow: hidden;" class="normal" eventproxy="isc_Img_0" id="isc_1"><div style="position: relative; visibility: inherit; z-index: 200090; cursor: default;" eventproxy="isc_Img_0" id="isc_0"><img height="1" border="0" align="TEXTTOP" width="1" suppress="TRUE" onload="if(isc.Page._eT.extraStuff)isc.Page._eT.setSrc(isc.Page._eT.fsrc);isc.Page._eT.extraStuff=null;" name="isc_0main" src="http://www.isomorphic.com/versionCheck/blank.gif?version=SC_SNAPSHOT-2011-01-06/EVAL Deployment&amp;date=2011-01-06&amp;licence=ISC_EVAL_NIGHTLY"></div></div></body></html>

    In Smart log:
    Code:
    ISC: Configuring log4j from: file:/C:/Users/max/AppData/Local/Temp/Jetty_0_0_0_0_8080_bgp-web-client-1.0.10-SAI_BRANCH-2011_02_09.war__bgp-web-client-1_0_10-SAI_BRANCH-2011_02_09__mqo8px/webapp/WEB-INF/classes/log4j.isc.config.xml
    === 2011-02-09 16:30:14,493 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
    === 2011-02-09 16:30:14,498 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2011-02-09 16:30:14,552 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Users/max/AppData/Local/Temp/Jetty_0_0_0_0_8080_bgp-web-client-1.0.10-SAI_BRANCH-2011_02_09.war__bgp-web-client-1_0_10-SAI_BRANCH-2011_02_09__mqo8px/webapp/WEB-INF/lib/isomorphic_core_rpc-2.4.jar!/framework.properties
    === 2011-02-09 16:30:14,553 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2011-02-09 16:30:14,553 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2011-02-09 16:30:14,555 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Users/max/AppData/Local/Temp/Jetty_0_0_0_0_8080_bgp-web-client-1.0.10-SAI_BRANCH-2011_02_09.war__bgp-web-client-1_0_10-SAI_BRANCH-2011_02_09__mqo8px/webapp/WEB-INF/lib/isomorphic_core_rpc-2.4.jar!/isc_interfaces.properties
    === 2011-02-09 16:30:14,556 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2011-02-09 16:30:14,571 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Users/max/AppData/Local/Temp/Jetty_0_0_0_0_8080_bgp-web-client-1.0.10-SAI_BRANCH-2011_02_09.war__bgp-web-client-1_0_10-SAI_BRANCH-2011_02_09__mqo8px/webapp/WEB-INF/classes/server.properties
    === 2011-02-09 16:30:14,576 [main] INFO  Logger - Logging system started.
    === 2011-02-09 16:30:14,576 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-01-06/EVAL Deployment 2011-01-06) - Initialization Complete
    === 2011-02-09 16:30:14,578 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\Users\max\AppData\Local\Temp\Jetty_0_0_0_0_8080_bgp-web-client-1.0.10-SAI_BRANCH-2011_02_09.war__bgp-web-client-1_0_10-SAI_BRANCH-2011_02_09__mqo8px\webapp
    I double checked each point described in the setup page and it seems i am quite ok.

    Do you have another idea please ?

    Thanks
    Last edited by munger; 9 Feb 2011, 07:36. Reason: forgot some more log

    #2
    Basic first step (see FAQ): check the Developer Console.

    Comment


      #3
      Thanks a lot for your answer, but the dev console is quite empty.
      First i didn't succeeded in loading it "normally" adding : javascript:isc.showConsole()

      So i just type the model provided in your documentation:

      http://localhost:8080/bgp-web/bgpweb...lpers/Log.html

      all first tabs are totally empty, when clicking on Server Logs, i got the following pop up:

      Code:
      Failed to get log data - error: Transport error - HTTP code: 404 for URL: http://localhost:8080/bgp-web/bgpweb/sc/IDACall?isc_rpc=1&isc_v=SC_SNAPSHOT-2011-01-06&isc_xhr=1&isc_tnum=2&isc_noLog=1



      Clicking on "Results" tab, raises the following in FireBug:

      Code:
      targetWindow is null
      getContents()ISC_De...sole.js (ligne 125)
      getInnerHTML()ISC_Co...1-06.js (ligne 1994)
      $px(_1=undefined)ISC_Co...1-06.js (ligne 1998)
      $p8(_1=true)ISC_Co...1-06.js (ligne 2089)
      draw(_1=undefined)ISC_Co...1-06.js (ligne 2023)
      layoutChildren(_1="initial draw", _2=undefined, _3=undefined)ISC_Fo...1-06.js (ligne 460)
      drawChildren()ISC_Fo...1-06.js (ligne 362)
      draw(_1=undefined)ISC_Co...1-06.js (ligne 2023)
      layoutChildren(_1="membersAdded", _2=undefined, _3=undefined)ISC_Fo...1-06.js (ligne 463)
      reflowNow(_1="membersAdded", _2=2)ISC_Fo...1-06.js (ligne 481)
      reflow()ISC_Fo...1-06.js (ligne 480)
      runTeas()ISC_Co...1-06.js (ligne 1619)
      $h2()ISC_Co...1-06.js (ligne 1616)
      $in(_1="$ir1")ISC_Co...1-06.js (ligne 1247)
      ISC_Core.js?isc_version=SC_SNAPSHOT-2011-01-06.js()ISC_Co...1-06.js (ligne 1242)
      [Stopper sur une erreur] targetWindow.literalHTMLCanvas.bringTo...nbsp;${targetWindow.isc.buildDate})"}
      ISC_De...sole.js (ligne 125)
      targetWindow is null
      [Stopper sur une erreur] var _5;if(_4){var _6=_1.ownerDocument....);_5=_7.createContextualFragment(_3)}
      Last edited by munger; 10 Feb 2011, 02:21. Reason: forgot some more info

      Comment


        #4
        A first problem have been solved, now i can see the Server Log, the reason was because, i just picked the wrong sample to merge web.xml files:

        Code:
          <servlet-mapping>
                <servlet-name>IDACall</servlet-name>
                <url-pattern>/JPADS_js/sc/IDACall</url-pattern>
            </servlet-mapping>
        i left the "_js" although i had to remove it.

        Please consider this is not very obvious if you follow the instructions and pick this sample up. Hope this could help someone.

        Anyway the page is still blank, still investigating.

        Comment


          #5
          Do i have to remove all code concerning PureMVC and gwtrpcspring ?
          I looks like the problem... but then the migration is not straightforward at all...

          Is it possible to keep both ?

          Every time i click on first tabs they are empty and i have the following error in firebug : targetWindow is null


          thanks a lot
          Last edited by munger; 10 Feb 2011, 07:22.

          Comment


            #6
            Ok, the problem is a linked to widgets drawing, please help on this strange situation: when i call draw() on the top level widget, none of its children is drawn, but when i call draw() on each of its children they appear, but all stuck in the upper left corner, whitout taking care of the layout.
            Here is my code:

            Code:
             private void getViewInitialization() {
            
            			LayoutSpacer leftSidePanel = new LayoutSpacer();
            			leftSidePanel.setWidth("10%");
            
            			LayoutSpacer rightSidePanel = new LayoutSpacer();
            			rightSidePanel.setWidth("10%");
            			
            			HLayout mainLayout = new HLayout();
            			mainLayout.addMember(leftSidePanel);
            			
            			mainPanel = new VLayout();
            			mainPanel.setWidth("80%");
            			centerPanel = new Canvas();
            			centerPanel.setStyleName("gwt-MyDecoratedPopupPanel");
            			centerPanel.setWidth(Constants.CENTRAL_PANEL_WIDTH);
            			headerPanel = getHeader();
            			
            			mainPanel.addMember(headerPanel);
            			mainPanel.addMember(centerPanel);
            
            			mainLayout.addMember(mainPanel);
            			mainLayout.addMember(rightSidePanel);
            			mainLayout.setWidth("100%");
            			mainLayout.draw();
            	}
            	 
            	 
            	 private VLayout getHeader(){
            			VLayout vLayout = new VLayout();
            			vLayout.setShowEdges(false);
            			vLayout.setMembersMargin(0);
            			vLayout.setLayoutMargin(2);
            			
            			// add banner with log image
            			final Img logoImg = new Img(images.logo().getURL(),344,55);
            			vLayout.addMember(logoImg);
            			toolBar = new ToolBarMenu();
            			vLayout.addMember(toolBar);//(Canvas)toolBar.getViewComponent());
            
            			return vLayout;
            	 }

            Comment


              #7
              The problem was that one of my inner children of my top level canvas was null. One of my ToolStripMenu of my ToolStrip bar was null, causing all widgets to dissappear.

              Hope this could help anyone else.

              Thanks

              Comment

              Working...
              X