Announcement

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

    Getting Started "Demo App" give FileNotFound Exception

    Fresh install of the evaluation version of SmartClient [Version: 8.3/SDK Development Only (expires 2013-03-26 19:01:47.0)] on a Linux system. Mostly works OK but several of the examples, include the "Getting Started -> Demo App" yield a FileNotFound exception in the server log. The missing file is:

    /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/work/null/localhost/_/org/apache/jsp/isomorphic/system/reference/inlineExamples/demoApp/demoAppJS_jsp.java

    Notice the ".../work/null/localhost/_/org/..." in that path.

    There's a related error in the log shown during start-up (before invoking the "Demo App"):

    FATAL EmbeddedServletOptions - The scratchDir you specified: /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/work/null/localhost/_ is unusable.

    Looks like something isn't initialized correctly.

    Log follows:

    smartclientSDK 7> ./start_embedded_server.sh

    Using user-defined JAVA_HOME: /usr/lib64/jvm/jre

    === 2013-01-25 20:24:53,021 [main] INFO Embedded - Starting tomcat server
    === 2013-01-25 20:24:53,116 [main] INFO StandardEngine - Starting Servlet Engine: Apache Tomcat/5.5.23
    === 2013-01-25 20:24:53,166 [main] INFO StandardHost - XML validation disabled
    java.io.FileNotFoundException: /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/work/null/localhost/_/tldCache.ser (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
    at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:317)
    at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4307)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4144)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:822)
    at com.isomorphic.embedded_tomcat.EmbeddedTomcat.main(EmbeddedTomcat.java:269)
    ISC: Configuring log4j from: file:/opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/classes/log4j.isc.config.xml
    === 2013-01-25 20:24:54,049 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.InitListener
    === 2013-01-25 20:24:54,050 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
    === 2013-01-25 20:24:54,057 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2013-01-25 20:24:54,225 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
    === 2013-01-25 20:24:54,225 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2013-01-25 20:24:54,225 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2013-01-25 20:24:54,230 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
    === 2013-01-25 20:24:54,230 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2013-01-25 20:24:54,237 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/classes/server.properties
    === 2013-01-25 20:24:54,244 [main] INFO Logger - Logging system started.
    === 2013-01-25 20:24:54,245 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (8.3/SDK Development Only 2012-11-20) - Initialization Complete
    === 2013-01-25 20:24:54,246 [main] INFO ISCInit - Auto-detected webRoot - using: /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK
    === 2013-01-25 20:24:54,259 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Base
    === 2013-01-25 20:24:54,259 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
    === 2013-01-25 20:24:54,300 [main] INFO JSSyntaxScannerFilter - Couldn't load list of FileAssembler URLs - if the filter intercepts those URLs, they will be scanned.
    === 2013-01-25 20:24:54,346 [main] INFO AuthenticationFilter - AuthExampleAuthenticator - URI Cache enabled - max size: 10000 entries
    === 2013-01-25 20:24:54,382 [main] INFO [/] - Initializing Spring root WebApplicationContext
    === 2013-01-25 20:24:56,515 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Init
    === 2013-01-25 20:24:56,515 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
    === 2013-01-25 20:24:56,645 [main] INFO TilesPlugin - Tiles definition factory loaded for module ''.
    === 2013-01-25 20:24:56,668 [main] INFO ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validator-rules.xml'
    === 2013-01-25 20:24:56,669 [main] INFO ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validation.xml'
    === 2013-01-25 20:24:56,780 [main] INFO PreCache - Isomorphic PreCache servlet loading
    === 2013-01-25 20:24:56,795 [main] INFO PoolManager - SmartClient pooling disabled for 'DataSource' objects
    === 2013-01-25 20:24:56,827 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/builtinTypes.xml: 4ms
    === 2013-01-25 20:24:56,867 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/DataSource.ds.xml: 3ms
    === 2013-01-25 20:24:56,895 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/DataSourceField.ds.xml: 3ms
    === 2013-01-25 20:24:56,915 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/Validator.ds.xml: 1ms
    === 2013-01-25 20:24:56,927 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/ValueMap.ds.xml: 1ms
    === 2013-01-25 20:24:56,932 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/InstantDataApp.ds.xml: 2ms
    === 2013-01-25 20:24:56,981 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/Application.ds.xml: 1ms
    === 2013-01-25 20:24:56,989 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/IDAPage.ds.xml: 1ms
    === 2013-01-25 20:24:56,995 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/IDAUserType.ds.xml: 1ms
    === 2013-01-25 20:24:57,002 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/IDAOperation.ds.xml: 2ms
    === 2013-01-25 20:24:57,020 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/Canvas.ds.xml: 9ms
    === 2013-01-25 20:24:57,059 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/MethodDeclaration.ds.xml: 1ms
    === 2013-01-25 20:24:57,066 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/Img.ds.xml: 1ms
    === 2013-01-25 20:24:57,073 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/StatefulCanvas.ds.xml: 2ms
    === 2013-01-25 20:24:57,087 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/Button.ds.xml: 1ms
    === 2013-01-25 20:24:57,094 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/ListViewer.ds.xml: 0ms
    === 2013-01-25 20:24:57,103 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/ListGrid.ds.xml: 8ms
    === 2013-01-25 20:24:57,136 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/DynamicForm.ds.xml: 3ms
    === 2013-01-25 20:24:57,157 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/FormItem.ds.xml: 6ms
    === 2013-01-25 20:24:57,183 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/DetailViewer.ds.xml: 2ms
    === 2013-01-25 20:24:57,193 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/DetailViewerField.ds.xml: 2ms
    === 2013-01-25 20:24:57,198 [main] DEBUG XML - Parsed XML from /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/isomorphic/system/schema/isomorphicXML.ds.xml: 1ms
    === 2013-01-25 20:24:57,200 [main] INFO PreCache - Isomorphic PreCache complete (420ms)
    === 2013-01-25 20:24:57,208 [main] FATAL EmbeddedServletOptions - The scratchDir you specified: /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/work/null/localhost/_ is unusable.
    === 2013-01-25 20:24:57,273 [main] INFO Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-8080
    === 2013-01-25 20:24:57,290 [main] INFO Http11BaseProtocol - Starting Coyote HTTP/1.1 on http-8080
    === 2013-01-25 20:25:08,163 [sor4] INFO RequestContext - URL: '/isomorphic/system/reference/inlineExamples/demoApp/demoAppJS.jsp', User-Agent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4': Safari with Accept-Encoding header
    java.io.FileNotFoundException: /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/work/null/localhost/_/org/apache/jsp/isomorphic/system/reference/inlineExamples/demoApp/demoAppJS_jsp.java (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:141)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:662)
    === 2013-01-25 20:25:08,205 [sor4] ERROR [jsp] - Servlet.service() for servlet jsp threw exception
    java.io.FileNotFoundException: /opt/smartclient/SmartClient_83_Evaluation/smartclientSDK/WEB-INF/embeddedTomcat/work/null/localhost/_/org/apache/jsp/isomorphic/system/reference/inlineExamples/demoApp/demoAppJS_jsp.java (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:141)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:662)

    #2
    This is Tomcat internals blowing up without any of our code involved - as a guess you may have installed Tomcat somewhere where it either can't write files, or where writes of files don't happen synchronously (as with some network file systems).

    Comment

    Working...
    X