Announcement

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

    BuiltInDs socket creation error

    After way too many hours I finally got the built-in-ds sample to compile and run in Firefox. The application comes up, but when I "Select a Datasource" I get a modal dialogue "socket creation error". Please help me with what must be a simple setup error, the solution to which has nonetheless eluded me.

    1. SmartClient Version: v8.2p_2012-08-08/EVAL Deployment (expires 2012.10.07_05.10.27) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

    2. Firefox 5.0

    3.
    012-08-10 01:41:19.075 java[23341:707] [Java CocoaComponent compatibility mode]: Enabled
    2012-08-10 01:41:19.075 java[23341:707] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
    Initializing App Engine server
    Aug 10, 2012 12:41:21 AM com.google.apphosting.utils.jetty.JettyLogger info
    INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
    Aug 10, 2012 12:41:22 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
    INFO: Successfully processed /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/appengine-web.xml
    Aug 10, 2012 12:41:22 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
    INFO: Successfully processed /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/web.xml
    Aug 10, 2012 12:41:22 AM com.google.appengine.tools.development.AbstractContainerService loadPropertiesFile
    WARNING: Unable to load properties file, /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/logging.properties
    java.io.FileNotFoundException: /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/logging.properties (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at com.google.appengine.tools.development.AbstractContainerService.loadPropertiesFile(AbstractContainerService.java:533)
    at com.google.appengine.tools.development.AbstractContainerService.updateLoggingConfiguration(AbstractContainerService.java:482)
    at com.google.appengine.tools.development.AbstractContainerService.staticInitialize(AbstractContainerService.java:390)
    at com.google.appengine.tools.development.AbstractContainerService.loadAppEngineWebXml(AbstractContainerService.java:371)
    at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:239)
    at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:148)
    at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97)
    at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
    at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
    at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    at com.google.gwt.dev.DevMode.main(DevMode.java:311)
    Aug 10, 2012 12:41:22 AM com.google.apphosting.utils.jetty.JettyLogger info
    INFO: jetty-6.1.x
    [Server@65f5bb6e]: [Thread[Thread-1,5,main]]: checkRunning(false) entered
    [Server@65f5bb6e]: [Thread[Thread-1,5,main]]: checkRunning(false) exited
    [Server@65f5bb6e]: Startup sequence initiated from main() method
    [Server@65f5bb6e]: Loaded properties from [/Users/sgoldwinv2/Documents/workspace/built-in-ds/war/server.properties]
    [Server@65f5bb6e]: Initiating startup sequence...
    [Server@65f5bb6e]: Server socket opened successfully in 3 ms.
    [Server@65f5bb6e]: Database [index=0, id=0, db=file:/Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/db/hsqldb/isomorphic, alias=isomorphic] opened sucessfully in 2036 ms.
    [Server@65f5bb6e]: Startup sequence completed in 2042 ms.
    [Server@65f5bb6e]: 2012-08-10 00:41:24.971 HSQLDB server 1.8.0 is online
    [Server@65f5bb6e]: To close normally, connect and execute SHUTDOWN SQL
    [Server@65f5bb6e]: From command line, use [Ctrl]+[C] to abort abruptly
    ISC: Configuring log4j from: file:/Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/classes/log4j.isc.config.xml
    === 2012-08-10 00:41:25,201 [ad-1] INFO ISCInit - Isomorphic SmartClient Framework - Initializing
    === 2012-08-10 00:41:25,218 [ad-1] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2012-08-10 00:41:25,511 [ad-1] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
    === 2012-08-10 00:41:25,511 [ad-1] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2012-08-10 00:41:25,512 [ad-1] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2012-08-10 00:41:25,556 [ad-1] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
    === 2012-08-10 00:41:25,556 [ad-1] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2012-08-10 00:41:25,569 [ad-1] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/classes/server.properties
    === 2012-08-10 00:41:25,589 [ad-1] INFO Logger - Logging system started.
    === 2012-08-10 00:41:25,591 [ad-1] INFO ISCInit - Isomorphic SmartClient Framework (v8.2p_2012-08-08/EVAL Deployment 2012-08-08) - Initialization Complete
    === 2012-08-10 00:41:25,596 [ad-1] INFO ISCInit - Auto-detected webRoot - using: /Users/sgoldwinv2/Documents/workspace/built-in-ds/war
    Aug 10, 2012 12:41:25 AM com.google.apphosting.utils.jetty.JettyLogger info
    INFO: Started SelectChannelConnector@0.0.0.0:8888
    Aug 10, 2012 12:41:25 AM com.google.appengine.tools.development.DevAppServerImpl start
    INFO: The server is running at http://localhost:8888/
    Aug 10, 2012 12:41:25 AM com.google.appengine.tools.development.DevAppServerImpl start
    INFO: The admin console is running at http://localhost:8888/_ah/admin
    === 2012-08-10 00:41:47,464 [83-0] INFO RequestContext - URL: '/builtinds/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:5.0) Gecko/20100101 Firefox/5.0': Moz (Gecko) with Accept-Encoding header
    === 2012-08-10 00:41:47,559 [83-0] INFO PoolManager - SmartClient pooling disabled for 'supplyItem' objects
    === 2012-08-10 00:41:47,700 [83-0] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/builtinTypes.xml: 24ms
    === 2012-08-10 00:41:47,827 [83-0] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/ds/supplyItem.ds.xml: 15ms
    === 2012-08-10 00:41:47,842 [83-0] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/DataSource.ds.xml: 12ms
    === 2012-08-10 00:41:47,953 [83-0] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/DataSourceField.ds.xml: 10ms
    === 2012-08-10 00:41:48,037 [83-0] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/ValueMap.ds.xml: 3ms
    === 2012-08-10 00:41:48,053 [83-0] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/Validator.ds.xml: 9ms
    === 2012-08-10 00:41:48,215 [83-0] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/ds/animals.ds.xml: 5ms
    === 2012-08-10 00:41:48,244 [83-0] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/ds/employees.ds.xml: 2ms
    === 2012-08-10 00:41:48,277 [83-0] INFO Compression - /builtinds/sc/DataSourceLoader: 5409 -> 1066 bytes
    === 2012-08-10 00:42:00,901 [83-3] INFO RequestContext - URL: '/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:5.0) Gecko/20100101 Firefox/5.0': Moz (Gecko) with Accept-Encoding header
    === 2012-08-10 00:42:00,934 [83-3] DEBUG XML - Parsed XML from (in memory stream): 1ms
    === 2012-08-10 00:42:00,942 [83-3] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/List.ds.xml: 5ms
    === 2012-08-10 00:42:00,948 [83-3] DEBUG RPCManager - Processing 1 requests.
    === 2012-08-10 00:42:00,949 [83-3] DEBUG RPCManager - Request #1 (RPCRequest) data: {
    appID:"isc_builtin",
    className:"builtin",
    methodName:"getAvailableScriptEngines",
    arguments:[
    ],
    is_ISC_RPC_DMI:true
    }
    === 2012-08-10 00:42:00,953 [83-3] INFO IDACall - Performing 1 operation(s)
    === 2012-08-10 00:42:00,965 [83-3] DEBUG XML - Parsed XML from jar:file:/Users/sgoldwinv2/Documents/workspace/built-in-ds/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_builtin.app.xml: 3ms
    === 2012-08-10 00:42:00,979 [83-3] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/Application.ds.xml: 13ms
    === 2012-08-10 00:42:01,017 [83-3] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/ServerObject.ds.xml: 23ms
    === 2012-08-10 00:42:01,072 [83-3] DEBUG XML - Parsed XML from /Users/sgoldwinv2/Documents/workspace/built-in-ds/war/builtinds/sc/system/schema/Method.ds.xml: 2ms
    === 2012-08-10 00:42:01,083 [83-3] 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"
    },
    {
    name:"getPdfObject"
    }
    ]
    },
    {
    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"
    }
    ]
    }
    ]
    })

    === 2012-08-10 00:42:01,085 [83-3] WARN RequestContext - rpcRequest.execute() failed:
    java.lang.Exception: Attempt to execute RPC DMI Builtin 'getAvailableScriptEngines' DENIED by server.properties configuration. To enable this method, add it to the list of methods under RPCManager.enabledBuiltinMethods in server.properties
    at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:180)
    at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:66)
    at com.isomorphic.rpc.RPCRequest.execute(RPCRequest.java:231)
    at com.isomorphic.servlet.IDACall.handleRPCRequest(IDACall.java:268)
    at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:152)
    at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
    at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:60)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:94)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:370)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    === 2012-08-10 00:42:01,088 [83-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2012-08-10 00:42:01,089 [83-3] INFO Compression - /builtinds/sc/IDACall: 285 -> 218 bytes
    === 2012-08-10 00:43:04,098 [83-4] INFO RequestContext - URL: '/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:5.0) Gecko/20100101 Firefox/5.0': Moz (Gecko) with Accept-Encoding header
    === 2012-08-10 00:43:04,113 [83-4] INFO Compression - /builtinds/sc/IDACall: 271 -> 208 bytes

    #2
    You're trying to run in Google App Engine with a sample project intended for a normal Java environment (eg Eclipse's built-in Jetty server).

    If you didn't intended to use Google App Engine, you can disable it in your Run Configuration.

    Comment

    Working...
    X