Announcement

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

    Launching Visual Builder in samples

    Is there any reason I shouldn't be able to launch the visual builder from one of the samples?

    I successfully imported the built-in-ds project from smartgwtee-2.5 into Eclipse and it runs with no problem (other than the warnings about it wanting to copy all of the .jars).

    Just to confirm, I followed these directions to make sure the sample file had everything set up like it should.

    I copied the code from the FAQ to make a Visual Launcher button to the top of the onModuleLoad() method, which of course causes a button to appear above the built-in-ds app.

    Clicking the button attempts to launch the visual builder, but only ends up opening a blank browser window at http://127.0.0.1:8888/builtinds/tools/visualBuilder/index.jsp

    Code:
    === 2011-08-22 19:41:00,046 [l0-0] INFO  RequestContext - URL: '/builtinds/tools/visualBuilder/index.jsp', User-Agent: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.20) Gecko/20110803 Firefox/3.6.20': Moz (Gecko) with Accept-Encoding header
    === 2011-08-22 19:41:00,046 [l0-0] DEBUG LoadISCTag - isomorphicURI not specified in tag, defaulting to: ../../../builtinds/sc/
    === 2011-08-22 19:41:00,046 [l0-0] WARN  LoadISCTag - isc.moduleLoadOrder does not include user-selected modules: [DBConsole] - placing these modules last in the load order.
    [WARN] /builtinds/tools/visualBuilder/index.jsp
    java.lang.NullPointerException
    	at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:335)
    	at org.apache.jsp.builtinds.tools.visualBuilder.index_jsp._jspService(index_jsp.java:158)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
    	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.Server.handle(Server.java:324)
    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
    I don't know what to make of this. Is there a problem with Jetty?

    #2
    I am having a very similar issue, except that I'm not using a sample project. I have double checked my setup just as RevMen stated they did.

    I'm using SmartGWT Power edition 2.5 and I've added the proverbial button to launch the VB console:
    Code:
    vbButton.addClickHandler(new ClickHandler() {
    	         public void onClick(ClickEvent event) {
    	             com.smartgwtpower.tools.client.SCPOWER.openVisualBuilder();
    	         }
    	     });
    Here is my module descriptor:
    Code:
    <module rename-to='logviewer'>
        <inherits name='com.google.gwt.user.User'/>
        <inherits name="com.smartgwt.tools.SmartGwtTools"/>
        <inherits name="com.smartgwtpower.SmartGwtPower"/>
        <inherits name="com.smartgwtpower.tools.Tools"/>   
      <entry-point class='com.fake.logviewer'/>
      <source path='client'/>
      <source path='shared'/>
    </module>
    Here is my html:
    Code:
      <head>
        <meta http-equiv="content-type" content="logviewer/html; charset=UTF-8">
        <link type="logviewer/css" rel="stylesheet" href="Test.css">
        <script> var isomorphicDir = "logviewer/sc/"; </script>
        <script type="logviewer/javascript" language="javascript" src="logviewer/test.nocache.js"></script>
        <script type="logviewer/javascript" language="javascript" src="logviewer/sc/DataSourceLoader?dataSource=TEST"></script>  
      </head>
    And this is the COMPLETE log when I try to open the Visual Builder:
    Code:
    === 2011-08-23 16:09:21,578 [l0-0] INFO  RequestContext - URL: '/logviewer/tools/adminConsole.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.0.04506.648; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2011-08-23 16:09:21,593 [l0-0] DEBUG LoadISCTag - isomorphicURI not specified in tag, defaulting to: ../../logviewer/sc/
    === 2011-08-23 16:09:21,593 [l0-0] WARN  LoadISCTag - isc.moduleLoadOrder does not include user-selected modules: [DBConsole] - placing these modules last in the load order.
    === 2011-08-23 16:09:21,593 [l0-0] INFO  Compression - /logviewer/tools/adminConsole.jsp: 2830 -> 785 bytes
    === 2011-08-23 16:09:23,125 [l0-0] INFO  RequestContext - URL: '/logviewer/tools/adminConsoleOperations.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.0.04506.648; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2011-08-23 16:09:23,125 [l0-0] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2011-08-23 16:09:23,125 [l0-0] DEBUG RPCManager - Processing 2 requests.
    === 2011-08-23 16:09:23,125 [l0-0] DEBUG RPCManager - Request #1 (RPCRequest) data: {
        appID:"isc_builtin",
        className:"com.isomorphic.tools.AdminConsole",
        methodName:"getDefinedDatabases",
        arguments:[
        ],
        is_ISC_RPC_DMI:true
    }
    === 2011-08-23 16:09:23,125 [l0-0] DEBUG RPCManager - Request #2 (RPCRequest) data: {
        appID:"isc_builtin",
        className:"com.isomorphic.tools.BuiltinRPC",
        methodName:"getDefinedDataSources",
        arguments:[
        ],
        is_ISC_RPC_DMI:true
    }
    === 2011-08-23 16:09:23,125 [l0-0] DEBUG RPCDMI - appConfig: isc.Application.create({
        rpcBindings:[
            {
                ID:"builtin",
                className:"com.isomorphic.rpc.BuiltinRPC",
                visibleMethods:[
                    {
                        name:"downloadWSDL"
                    },
                    {
                        name:"downloadClientContent"
                    },
                    {
                        name:"downloadClientExport"
                    },
                    {
                        name:"xmlToJS"
                    },
                    {
                        name:"uploadProgressCheck"
                    },
                    {
                        name:"saveFile"
                    },
                    {
                        name:"appendToFile"
                    },
                    {
                        name:"loadFile"
                    },
                    {
                        name:"deleteFile"
                    },
                    {
                        name:"loadSharedXML"
                    },
                    {
                        name:"saveSharedXML"
                    },
                    {
                        name:"getAvailableScriptEngines"
                    },
                    {
                        name:"devConsoleEvalServerScript"
                    },
                    {
                        name:"evalJava"
                    },
                    {
                        name:"getLogNames"
                    },
                    {
                        name:"getLogEntries"
                    },
                    {
                        name:"getLogThresholds"
                    },
                    {
                        name:"setLogThreshold"
                    }
                ]
            },
            {
                ID:"builtin_tools",
                className:"com.isomorphic.tools.BuiltinRPC",
                visibleMethods:[
                    {
                        name:"getDataSourceFromTable"
                    },
                    {
                        name:"getDataSourceJSONFromTable"
                    },
                    {
                        name:"getDataSourceFromHibernateMapping"
                    },
                    {
                        name:"getDataSourceJSONFromHibernateMapping"
                    },
                    {
                        name:"getTables"
                    },
                    {
                        name:"getFieldsFromTable"
                    },
                    {
                        name:"getBeanFields"
                    },
                    {
                        name:"getHibernateBeans"
                    },
                    {
                        name:"getDatabaseProductNameAndVersion"
                    },
                    {
                        name:"getDatabaseTableTypes"
                    },
                    {
                        name:"setAttributes"
                    },
                    {
                        name:"clearAttributes"
                    },
                    {
                        name:"getAttributes"
                    },
                    {
                        name:"getAttribute"
                    },
                    {
                        name:"getDataSourceConfigFromJavaClass"
                    },
                    {
                        args:"cName",
                        language:"groovy",
                        name:"getJavaSource",
                        script:"\n                    if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\");                    \n                    //import org.apache.bcel.Repository;\n\n                    try {\n                        return org.apache.bcel.Repository.lookupClass(cName).toString();\n                    } catch (Throwable e) {\n                        return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n                    }\n                "
                    },
                    {
                        name:"loadDataSource"
                    },
                    {
                        name:"dsFromXML"
                    },
                    {
                        name:"dsConfigFromXML"
                    },
                    {
                        name:"getDefinedDataSources"
                    }
                ]
            },
            {
                ID:"builtin_adminconsole",
                className:"com.isomorphic.tools.AdminConsole",
                visibleMethods:[
                    {
                        name:"getDefinedDatabases"
                    },
                    {
                        name:"testDB"
                    },
                    {
                        name:"saveDBConfig"
                    },
                    {
                        name:"setDefaultDB"
                    },
                    {
                        name:"importDataSources"
                    },
                    {
                        name:"discoverJNDIDatabases"
                    }
                ]
            }
        ]
    })
    
    === 2011-08-23 16:09:23,125 [l0-0] INFO  SQLConnectionManager - Autodetecting datasources at JNDI root: __root__
    === 2011-08-23 16:09:23,125 [l0-0] WARN  SQLConnectionManager - Failure during JNDI datasource autoDetection: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
    === 2011-08-23 16:09:23,125 [l0-0] INFO  SQLConnectionManager - Autodetecting datasources at JNDI root: java:comp
    === 2011-08-23 16:09:23,125 [l0-0] WARN  SQLConnectionManager - Failure during JNDI datasource autoDetection: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
    === 2011-08-23 16:09:23,140 [l0-0] INFO  SQLConnectionManager - Autodetecting datasources at JNDI root: java:comp/env
    === 2011-08-23 16:09:23,140 [l0-0] WARN  SQLConnectionManager - Failure during JNDI datasource autoDetection: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
    === 2011-08-23 16:09:23,140 [l0-0] DEBUG BuiltinRPC - Testing DB connection for database: Oracle
    === 2011-08-23 16:09:23,203 [l0-0] DEBUG PoolableSQLConnectionFactory - Returning pooled Connection
    === 2011-08-23 16:09:23,437 [l0-0] DEBUG BuiltinRPC - Testing DB connection for database: Mysql
    === 2011-08-23 16:09:23,437 [l0-0] DEBUG PoolableSQLConnectionFactory - Initializing SQL config for 'Mysql' from system config - using DataSource:  com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    === 2011-08-23 16:09:23,437 [l0-0] INFO  BuiltinRPC - testDB (Mysql) error: java.sql.SQLException: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Testing DB connection for database: HSQLDB
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG PoolableSQLConnectionFactory - DriverManager fetching connection for HSQLDB via jdbc url jdbc:hsqldb:file:C:\helios workspace\GOESR\LogViewer\war/WEB-INF/db/hsqldb/isomorphic
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG PoolableSQLConnectionFactory - Passing JDBC URL only to getConnection
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG PoolableSQLConnectionFactory - Returning unpooled Connection
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Testing DB connection for database: Cache
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG PoolableSQLConnectionFactory - Initializing SQL config for 'Cache' from system config - using DataSource:  com.intersys.jdbc.CacheDataSource
    === 2011-08-23 16:09:23,453 [l0-0] INFO  BuiltinRPC - testDB (Cache) error: java.sql.SQLException: java.lang.ClassNotFoundException: com.intersys.jdbc.CacheDataSource
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Testing DB connection for database: SQLServer
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG PoolableSQLConnectionFactory - Initializing SQL config for 'SQLServer' from system config - using DriverManager:  com.microsoft.jdbc.sqlserver.SQLServerDriver
    === 2011-08-23 16:09:23,453 [l0-0] INFO  BuiltinRPC - testDB (SQLServer) error: java.sql.SQLException: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Testing DB connection for database: PostgreSQL
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG PoolableSQLConnectionFactory - Initializing SQL config for 'PostgreSQL' from system config - using DriverManager:  org.postgresql.Driver
    === 2011-08-23 16:09:23,453 [l0-0] INFO  BuiltinRPC - testDB (PostgreSQL) error: java.sql.SQLException: java.lang.ClassNotFoundException: org.postgresql.Driver
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Testing DB connection for database: DB2
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG PoolableSQLConnectionFactory - Initializing SQL config for 'DB2' from system config - using DataSource:  COM.ibm.db2.jdbc.DB2DataSource
    === 2011-08-23 16:09:23,453 [l0-0] INFO  BuiltinRPC - testDB (DB2) error: java.sql.SQLException: java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.DB2DataSource
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG RPCDMI - rpc returned data
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG RPCDMI - appConfig: isc.Application.create({
        rpcBindings:[
            {
                ID:"builtin",
                className:"com.isomorphic.rpc.BuiltinRPC",
                visibleMethods:[
                    {
                        name:"downloadWSDL"
                    },
                    {
                        name:"downloadClientContent"
                    },
                    {
                        name:"downloadClientExport"
                    },
                    {
                        name:"xmlToJS"
                    },
                    {
                        name:"uploadProgressCheck"
                    },
                    {
                        name:"saveFile"
                    },
                    {
                        name:"appendToFile"
                    },
                    {
                        name:"loadFile"
                    },
                    {
                        name:"deleteFile"
                    },
                    {
                        name:"loadSharedXML"
                    },
                    {
                        name:"saveSharedXML"
                    },
                    {
                        name:"getAvailableScriptEngines"
                    },
                    {
                        name:"devConsoleEvalServerScript"
                    },
                    {
                        name:"evalJava"
                    },
                    {
                        name:"getLogNames"
                    },
                    {
                        name:"getLogEntries"
                    },
                    {
                        name:"getLogThresholds"
                    },
                    {
                        name:"setLogThreshold"
                    }
                ]
            },
            {
                ID:"builtin_tools",
                className:"com.isomorphic.tools.BuiltinRPC",
                visibleMethods:[
                    {
                        name:"getDataSourceFromTable"
                    },
                    {
                        name:"getDataSourceJSONFromTable"
                    },
                    {
                        name:"getDataSourceFromHibernateMapping"
                    },
                    {
                        name:"getDataSourceJSONFromHibernateMapping"
                    },
                    {
                        name:"getTables"
                    },
                    {
                        name:"getFieldsFromTable"
                    },
                    {
                        name:"getBeanFields"
                    },
                    {
                        name:"getHibernateBeans"
                    },
                    {
                        name:"getDatabaseProductNameAndVersion"
                    },
                    {
                        name:"getDatabaseTableTypes"
                    },
                    {
                        name:"setAttributes"
                    },
                    {
                        name:"clearAttributes"
                    },
                    {
                        name:"getAttributes"
                    },
                    {
                        name:"getAttribute"
                    },
                    {
                        name:"getDataSourceConfigFromJavaClass"
                    },
                    {
                        args:"cName",
                        language:"groovy",
                        name:"getJavaSource",
                        script:"\n                    if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\");                    \n                    //import org.apache.bcel.Repository;\n\n                    try {\n                        return org.apache.bcel.Repository.lookupClass(cName).toString();\n                    } catch (Throwable e) {\n                        return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n                    }\n                "
                    },
                    {
                        name:"loadDataSource"
                    },
                    {
                        name:"dsFromXML"
                    },
                    {
                        name:"dsConfigFromXML"
                    },
                    {
                        name:"getDefinedDataSources"
                    }
                ]
            },
            {
                ID:"builtin_adminconsole",
                className:"com.isomorphic.tools.AdminConsole",
                visibleMethods:[
                    {
                        name:"getDefinedDatabases"
                    },
                    {
                        name:"testDB"
                    },
                    {
                        name:"saveDBConfig"
                    },
                    {
                        name:"setDefaultDB"
                    },
                    {
                        name:"importDataSources"
                    },
                    {
                        name:"discoverJNDIDatabases"
                    }
                ]
            }
        ]
    })
    
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: C:\helios workspace\GOESR\LogViewer\war\shared\ds
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: C:\helios workspace\GOESR\LogViewer\war\shared\ds
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: rbCountryTransactions
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File rbCountryTransactions.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/transactions/rollback, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: rbCountryTransactions
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: supplyItemWithOps
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File supplyItemWithOps.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/grids/ds, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: supplyItemWithOps
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: queuedAdd_orderItem
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File queuedAdd_orderItem.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/sql/queuedAdd, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: queuedAdd_orderItem
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: flattenedBeans_flatUserHB
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File flattenedBeans_flatUserHB.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate/flattenedBeans, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: flattenedBeans_flatUserHB
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: queuing_userHB
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File queuing_userHB.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate/queuing, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: queuing_userHB
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: masterDetail_orderHB
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File masterDetail_orderHB.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate/masterDetail, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: masterDetail_orderHB
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: supplyItemJPAAutoDerive
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File supplyItemJPAAutoDerive.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/jpa, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: supplyItemJPAAutoDerive
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: reusableORMDataSource_supplyItem
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File reusableORMDataSource_supplyItem.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/other/reusableORMDataSource, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: reusableORMDataSource_supplyItem
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: countryTransactions
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File countryTransactions.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/transactions/jdbcOperations, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: countryTransactions
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: queuedAdd_order
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File queuedAdd_order.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/sql/queuedAdd, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: queuedAdd_order
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: largeValueMap_orderItemHB
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File largeValueMap_orderItemHB.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate/largeValueMap, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: largeValueMap_orderItemHB
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: worldHB
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File worldHB.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: worldHB
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: worldJPA2
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File worldJPA2.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/jpa, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: worldJPA2
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: customDataSource_user
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File customDataSource_user.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/other/customDataSource, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: customDataSource_user
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: lastUpdated
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File lastUpdated.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/transactions/jdbcOperations, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: lastUpdated
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: mediaLibrary
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File mediaLibrary.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/sql/upload, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: mediaLibrary
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: largeValueMap_orderItem
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File largeValueMap_orderItem.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/sql/largeValueMap, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: largeValueMap_orderItem
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: queuing_order
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File queuing_order.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate/queuing, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: queuing_order
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: cartItem
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File cartItem.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/sql/userSpecificData, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: cartItem
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: mediaLibraryHB
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File mediaLibraryHB.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate/upload, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: mediaLibraryHB
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: dynamicReporting_orderItem
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File dynamicReporting_orderItem.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/sql/dynamicReporting, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: dynamicReporting_orderItem
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: ormDataSource_country
    === 2011-08-23 16:09:23,453 [l0-0] WARN  DataStructCache - File ormDataSource_country.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/other/ormDataSource, checking project-wide area
    === 2011-08-23 16:09:23,453 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: ormDataSource_country
    === 2011-08-23 16:09:23,453 [l0-0] DEBUG BuiltinRPC - Loading DS: reusableORMDataSource_country
    === 2011-08-23 16:09:23,468 [l0-0] WARN  DataStructCache - File reusableORMDataSource_country.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/other/reusableORMDataSource, checking project-wide area
    === 2011-08-23 16:09:23,468 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: reusableORMDataSource_country
    === 2011-08-23 16:09:23,468 [l0-0] DEBUG BuiltinRPC - Loading DS: supplyItemHBAutoDerive
    === 2011-08-23 16:09:23,468 [l0-0] WARN  DataStructCache - File supplyItemHBAutoDerive.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate/autoDerivation, checking project-wide area
    === 2011-08-23 16:09:23,468 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: supplyItemHBAutoDerive
    === 2011-08-23 16:09:23,468 [l0-0] DEBUG BuiltinRPC - Loading DS: masterDetail_orderItemHB
    === 2011-08-23 16:09:23,468 [l0-0] WARN  DataStructCache - File masterDetail_orderItemHB.ds not found at explicitly specified location C:/helios workspace/GOESR/LogViewer/war/logviewer/sc/system/reference/inlineExamples/serverExamples/hibernate/masterDetail, checking project-wide area
    === 2011-08-23 16:09:23,468 [l0-0] WARN  BuiltinRPC - Couldn't load config-defined datasource: masterDetail_orderItemHB
    === 2011-08-23 16:09:23,468 [l0-0] DEBUG RPCDMI - rpc returned RPCResponse
    === 2011-08-23 16:09:23,468 [l0-0] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2011-08-23 16:09:23,468 [l0-0] INFO  Compression - /logviewer/tools/adminConsoleOperations.jsp: 2542 -> 890 bytes
    I wish I knew how to correct the issue indicated here:
    DEBUG LoadISCTag - isomorphicURI not specified in tag, defaulting to: ../../logviewer/sc/
    Last edited by susanpemble; 23 Aug 2011, 12:18.

    Comment


      #3
      I'm having the same problems on another computer. Different projects, slightly different set up, but same error. So it seems like the visual builder and jetty aren't getting along. Anyone have any ideas on things to try?

      Comment


        #4
        Just a note that we're looking into this, but it appears to be a Jetty bug. Switching to Tomcat or any other engine will correct it.

        Comment


          #5
          I was able to finally get Tomcat working in Eclipse, and the Visual Builder does run under Tomcat.

          That was quite a bit of work. It required converting the project to a Dynamic Web Project, which brakes many things that must be fixed.

          Comment


            #6
            This problem was indeed specific to Jetty and the way it handles null HTTPServletRequest parameters. We've fixed it now; nightly builds as of tomorrow (ie, dated August 26 or later) will include the fix

            Comment


              #7
              I grabbed the 8-28 nightly 2.5 Evaluation and repeated the steps I described in the first post. Same result, but different error.

              Code:
              === 2011-08-28 19:30:07,903 [l0-8] INFO  RequestContext - URL: '/builtinds/tools/visualBuilder/index.jsp', User-Agent: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.20) Gecko/20110803 Firefox/3.6.20': Moz (Gecko) with Accept-Encoding header
              === 2011-08-28 19:30:07,919 [l0-8] WARN  LoadISCTag - isc.moduleLoadOrder does not include user-selected modules: [DBConsole] - placing these modules last in the load order.
              === 2011-08-28 19:30:07,927 [l0-8] ERROR LoadSystemSchemaTag - Exception while attempting to process a loadSystemSchema tag.
              java.lang.NullPointerException
              	at com.isomorphic.taglib.LoadSystemSchemaTag.getFrameworkDataSources(LoadSystemSchemaTag.java:74)
              	at com.isomorphic.taglib.LoadSystemSchemaTag.loadFrameworkDataSources(LoadSystemSchemaTag.java:100)
              	at com.isomorphic.taglib.LoadSystemSchemaTag.doStartTag(LoadSystemSchemaTag.java:54)
              	at org.apache.jsp.builtinds.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadSystemSchema_0(index_jsp.java:198)
              	at org.apache.jsp.builtinds.tools.visualBuilder.index_jsp._jspService(index_jsp.java:111)
              	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
              	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
              	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
              	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
              	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
              	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
              	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
              	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
              	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
              	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
              	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
              	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              	at org.mortbay.jetty.Server.handle(Server.java:324)
              	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
              	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
              	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
              [WARN] /builtinds/tools/visualBuilder/index.jsp
              javax.servlet.jsp.JspException: java.lang.NullPointerException
              	at com.isomorphic.taglib.LoadSystemSchemaTag.getFrameworkDataSources(LoadSystemSchemaTag.java:74)
              	at com.isomorphic.taglib.LoadSystemSchemaTag.loadFrameworkDataSources(LoadSystemSchemaTag.java:100)
              	at com.isomorphic.taglib.LoadSystemSchemaTag.doStartTag(LoadSystemSchemaTag.java:54)
              	at org.apache.jsp.builtinds.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadSystemSchema_0(index_jsp.java:198)
              	at org.apache.jsp.builtinds.tools.visualBuilder.index_jsp._jspService(index_jsp.java:111)
              	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
              	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
              	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
              	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
              	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
              	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
              	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
              	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
              	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
              	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
              	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
              	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              	at org.mortbay.jetty.Server.handle(Server.java:324)
              	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
              	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
              	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
              
              	at com.isomorphic.taglib.LoadSystemSchemaTag.doStartTag(LoadSystemSchemaTag.java:57)
              	at org.apache.jsp.builtinds.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadSystemSchema_0(index_jsp.java:198)
              	at org.apache.jsp.builtinds.tools.visualBuilder.index_jsp._jspService(index_jsp.java:111)
              	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
              	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
              	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
              	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
              	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
              	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
              	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
              	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
              	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
              	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
              	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
              	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              	at org.mortbay.jetty.Server.handle(Server.java:324)
              	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
              	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
              	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

              Comment


                #8
                Different problem - either your <inherits> tags are wrong (revisit FAQ to get correct ones) or you may need to manually run a GWT compile before proceeding (Eclipse seems to have failed to do so automatically).

                Comment


                  #9
                  you may need to manually run a GWT compile before proceeding (Eclipse seems to have failed to do so automatically).
                  Looks like that did the trick. Thanks!

                  This is good news, as Jetty is more convenient to use than Tomcat.

                  Comment


                    #10
                    I still see the same error with v2.5 EE. I imported samples/built-in-ds and only changed BuiltInDS

                    Code:
                            KeyIdentifier vbKey = new KeyIdentifier();
                            vbKey.setAltKey(true);
                            vbKey.setKeyName("P");
                            Page.registerKey(vbKey, new KeyCallback() {
                                public void execute(String keyName) {
                                	com.smartgwtee.tools.client.SCEE.openVisualBuilder();
                                }
                            });
                    May be the Jetty server, (how do I replace it ?) in GWT 2.5 is conflicting. Note that I had set GWT_HOME to ~EclipseInstall~\plugins\com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634\gwt-2.3.0

                    Comment


                      #11
                      Get a more recent nightly build.

                      http://www.smartclient.com/builds

                      Comment

                      Working...
                      X