Announcement

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

    JasperException on saved source

    My problem is that when I save the 'source' of a page I am testing, the result will not itself run. I run the JSP file that VisualBuilder saves just fine. My practice has been to save a working page and use that to load onto my remote server and test there.

    Now that does not work. And, now I find that I cannot even run it locally using localhost.

    I get the following error right out of the gate:
    Using user-defined JAVA_HOME: "C:\Program Files\Java\jdk1.7.0"

    === 2013-03-14 13:25:28,546 [main] INFO Embedded - Starting tomcat server
    === 2013-03-14 13:25:28,718 [main] INFO StandardEngine - Starting Servlet Engine: Apache Tomcat/5.5.23
    === 2013-03-14 13:25:28,796 [main] INFO StandardHost - XML validation disabled
    ISC: Configuring log4j from: file:/D:/My%20Websites/Planet%20Project/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../
    ../WEB-INF/classes/log4j.isc.config.xml
    === 2013-03-14 13:25:30,593 [main] INFO ISCInit - Isomorphic SmartClient Framework - Initializing
    === 2013-03-14 13:25:30,609 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2013-03-14 13:25:30,781 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location:
    jar:file:/D:/My%20Websites/Planet%20Project/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/lib/isomorphi
    c_core_rpc.jar!/framework.properties
    === 2013-03-14 13:25:30,781 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2013-03-14 13:25:30,781 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2013-03-14 13:25:30,796 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at loca
    tion: jar:file:/D:/My%20Websites/Planet%20Project/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/lib/isom
    orphic_core_rpc.jar!/isc_interfaces.properties
    === 2013-03-14 13:25:30,796 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2013-03-14 13:25:30,796 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: fi
    le:/D:/My%20Websites/Planet%20Project/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/classes/server.prope
    rties
    === 2013-03-14 13:25:30,812 [main] INFO Logger - Logging system started.
    === 2013-03-14 13:25:30,812 [main] INFO ISCInit - Isomorphic SmartClient Framework (v8.2p_2013-03-11/EVAL Deployment 2013-0
    3-11) - Initialization Complete
    === 2013-03-14 13:25:30,828 [main] INFO ISCInit - Auto-detected webRoot - using: D:\My Websites\Planet Project
    === 2013-03-14 13:25:30,953 [main] INFO JSSyntaxScannerFilter - Couldn't load list of FileAssembler URLs - if the filter in
    tercepts those URLs, they will be scanned.
    === 2013-03-14 13:25:31,062 [main] INFO AuthenticationFilter - AuthExampleAuthenticator - URI Cache enabled - max size: 100
    00 entries
    === 2013-03-14 13:25:31,140 [main] INFO [/] - Initializing Spring root WebApplicationContext
    === 2013-03-14 13:25:50,406 [main] INFO TilesPlugin - Tiles definition factory loaded for module ''.
    === 2013-03-14 13:25:50,484 [main] INFO ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validator-rules.xml'

    === 2013-03-14 13:25:50,484 [main] INFO ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validation.xml'
    === 2013-03-14 13:25:50,781 [main] INFO PreCache - Isomorphic PreCache servlet loading
    === 2013-03-14 13:25:50,859 [main] INFO PoolManager - SmartClient pooling disabled for 'DataSource' objects
    === 2013-03-14 13:25:50,968 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\builti
    nTypes.xml: 15ms
    === 2013-03-14 13:25:51,062 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DataSo
    urce.ds.xml: 0ms
    === 2013-03-14 13:25:51,140 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DataSo
    urceField.ds.xml: 15ms
    === 2013-03-14 13:25:51,171 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Valida
    tor.ds.xml: 15ms
    === 2013-03-14 13:25:51,187 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ValueM
    ap.ds.xml: 0ms
    === 2013-03-14 13:25:51,203 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Instan
    tDataApp.ds.xml: 0ms
    === 2013-03-14 13:25:51,296 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Applic
    ation.ds.xml: 0ms
    === 2013-03-14 13:25:51,312 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAPag
    e.ds.xml: 0ms
    === 2013-03-14 13:25:51,328 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAUse
    rType.ds.xml: 0ms
    === 2013-03-14 13:25:51,343 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAOpe
    ration.ds.xml: 0ms
    === 2013-03-14 13:25:51,390 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Canvas
    .ds.xml: 15ms
    === 2013-03-14 13:25:51,437 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Method
    Declaration.ds.xml: 0ms
    === 2013-03-14 13:25:51,453 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Img.ds
    .xml: 0ms
    === 2013-03-14 13:25:51,484 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Statef
    ulCanvas.ds.xml: 16ms
    === 2013-03-14 13:25:51,531 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Button
    .ds.xml: 0ms
    === 2013-03-14 13:25:51,562 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ListVi
    ewer.ds.xml: 0ms
    === 2013-03-14 13:25:51,578 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ListGr
    id.ds.xml: 0ms
    === 2013-03-14 13:25:51,625 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Dynami
    cForm.ds.xml: 0ms
    === 2013-03-14 13:25:51,671 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\FormIt
    em.ds.xml: 15ms
    === 2013-03-14 13:25:51,734 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Detail
    Viewer.ds.xml: 16ms
    === 2013-03-14 13:25:51,750 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Detail
    ViewerField.ds.xml: 0ms
    === 2013-03-14 13:25:51,781 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\isomor
    phicXML.ds.xml: 16ms
    === 2013-03-14 13:25:51,796 [main] INFO PreCache - Isomorphic PreCache complete (1015ms)
    === 2013-03-14 13:25:52,062 [main] INFO Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-8080
    === 2013-03-14 13:25:52,125 [main] INFO Http11BaseProtocol - Starting Coyote HTTP/1.1 on http-8080
    === 2013-03-14 13:26:56,593 [sor4] INFO RequestContext - URL: '/tools/visualBuilder/workspace/PlanetProjectAlphaAppY.jsp',
    User-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0': Moz (Gecko) with Accept-Encoding header
    === 2013-03-14 13:26:59,562 [sor4] ERROR [jsp] - Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:


    Stacktrace:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
    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:251)
    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:722)
    When it works, it starts like this:


    Using user-defined JAVA_HOME: "C:\Program Files\Java\jdk1.7.0"

    === 2013-03-14 13:59:08,046 [main] INFO Embedded - Starting tomcat server
    === 2013-03-14 13:59:08,203 [main] INFO StandardEngine - Starting Servlet Engine: Apache Tomcat/5.5.23
    === 2013-03-14 13:59:08,296 [main] INFO StandardHost - XML validation disabled
    ISC: Configuring log4j from: file:/D:/My%20Websites/Planet%20Project/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../
    ../WEB-INF/classes/log4j.isc.config.xml
    === 2013-03-14 13:59:09,906 [main] INFO ISCInit - Isomorphic SmartClient Framework - Initializing
    === 2013-03-14 13:59:09,937 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2013-03-14 13:59:10,093 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location:
    jar:file:/D:/My%20Websites/Planet%20Project/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/lib/isomorphi
    c_core_rpc.jar!/framework.properties
    === 2013-03-14 13:59:10,093 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2013-03-14 13:59:10,109 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2013-03-14 13:59:10,109 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at loca
    tion: jar:file:/D:/My%20Websites/Planet%20Project/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/lib/isom
    orphic_core_rpc.jar!/isc_interfaces.properties
    === 2013-03-14 13:59:10,109 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2013-03-14 13:59:10,125 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: fi
    le:/D:/My%20Websites/Planet%20Project/WEB-INF/embeddedTomcat/../embeddedTomcat/webapps/../../../WEB-INF/classes/server.prope
    rties
    === 2013-03-14 13:59:10,140 [main] INFO Logger - Logging system started.
    === 2013-03-14 13:59:10,140 [main] INFO ISCInit - Isomorphic SmartClient Framework (v8.2p_2013-03-11/EVAL Deployment 2013-0
    3-11) - Initialization Complete
    === 2013-03-14 13:59:10,156 [main] INFO ISCInit - Auto-detected webRoot - using: D:\My Websites\Planet Project
    === 2013-03-14 13:59:10,468 [main] INFO JSSyntaxScannerFilter - Couldn't load list of FileAssembler URLs - if the filter in
    tercepts those URLs, they will be scanned.
    === 2013-03-14 13:59:10,562 [main] INFO AuthenticationFilter - AuthExampleAuthenticator - URI Cache enabled - max size: 100
    00 entries
    === 2013-03-14 13:59:10,734 [main] INFO [/] - Initializing Spring root WebApplicationContext
    === 2013-03-14 13:59:35,593 [main] INFO TilesPlugin - Tiles definition factory loaded for module ''.
    === 2013-03-14 13:59:35,656 [main] INFO ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validator-rules.xml'

    === 2013-03-14 13:59:35,671 [main] INFO ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validation.xml'
    === 2013-03-14 13:59:36,062 [main] INFO PreCache - Isomorphic PreCache servlet loading
    === 2013-03-14 13:59:36,093 [main] INFO PoolManager - SmartClient pooling disabled for 'DataSource' objects
    === 2013-03-14 13:59:36,171 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\builti
    nTypes.xml: 15ms
    === 2013-03-14 13:59:36,296 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DataSo
    urce.ds.xml: 0ms
    === 2013-03-14 13:59:36,390 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DataSo
    urceField.ds.xml: 0ms
    === 2013-03-14 13:59:36,437 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Valida
    tor.ds.xml: 0ms
    === 2013-03-14 13:59:36,468 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ValueM
    ap.ds.xml: 0ms
    === 2013-03-14 13:59:36,484 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Instan
    tDataApp.ds.xml: 0ms
    === 2013-03-14 13:59:36,625 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Applic
    ation.ds.xml: 0ms
    === 2013-03-14 13:59:36,640 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAPag
    e.ds.xml: 0ms
    === 2013-03-14 13:59:36,656 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAUse
    rType.ds.xml: 0ms
    === 2013-03-14 13:59:36,671 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAOpe
    ration.ds.xml: 15ms
    === 2013-03-14 13:59:36,718 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Canvas
    .ds.xml: 15ms
    === 2013-03-14 13:59:36,781 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Method
    Declaration.ds.xml: 16ms
    === 2013-03-14 13:59:36,828 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Img.ds
    .xml: 0ms
    === 2013-03-14 13:59:36,843 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Statef
    ulCanvas.ds.xml: 0ms
    === 2013-03-14 13:59:36,921 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Button
    .ds.xml: 0ms
    === 2013-03-14 13:59:36,953 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ListVi
    ewer.ds.xml: 0ms
    === 2013-03-14 13:59:36,968 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ListGr
    id.ds.xml: 15ms
    === 2013-03-14 13:59:37,000 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Dynami
    cForm.ds.xml: 0ms
    === 2013-03-14 13:59:37,015 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\FormIt
    em.ds.xml: 0ms
    === 2013-03-14 13:59:37,078 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Detail
    Viewer.ds.xml: 0ms
    === 2013-03-14 13:59:37,093 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Detail
    ViewerField.ds.xml: 0ms
    === 2013-03-14 13:59:37,109 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\isomor
    phicXML.ds.xml: 0ms
    === 2013-03-14 13:59:37,109 [main] INFO PreCache - Isomorphic PreCache complete (1047ms)
    === 2013-03-14 13:59:37,265 [main] INFO Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-8080
    === 2013-03-14 13:59:37,296 [main] INFO Http11BaseProtocol - Starting Coyote HTTP/1.1 on http-8080
    === 2013-03-14 13:59:43,468 [sor4] INFO RequestContext - URL: '/tools/visualBuilder/workspace/PlanetProjectAlphaApp.jsp', U
    ser-Agent: 'Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0': Moz (Gecko) with Accept-Encoding header
    === 2013-03-14 13:59:43,609 [sor4] DEBUG LoadISCTag - isomorphicURI not specified in tag, defaulting to: ../../../isomorphic
    /
    === 2013-03-14 13:59:43,687 [sor4] DEBUG XML - Parsed XML from (in memory stream): 31ms
    === 2013-03-14 13:59:43,703 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\HTMLPa
    ne.ds.xml: 0ms
    === 2013-03-14 13:59:43,718 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\HTMLFl
    ow.ds.xml: 0ms
    === 2013-03-14 13:59:43,968 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Spacer
    Item.ds.xml: 0ms
    === 2013-03-14 13:59:43,984 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\TextIt
    em.ds.xml: 0ms
    === 2013-03-14 13:59:44,000 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Submit
    Item.ds.xml: 0ms
    === 2013-03-14 13:59:44,015 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Button
    Item.ds.xml: 0ms
    === 2013-03-14 13:59:44,031 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Canvas
    Item.ds.xml: 0ms
    === 2013-03-14 13:59:44,046 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DataVi
    ew.ds.xml: 0ms
    === 2013-03-14 13:59:44,062 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\VLayou
    t.ds.xml: 0ms
    === 2013-03-14 13:59:44,078 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Layout
    .ds.xml: 0ms
    === 2013-03-14 13:59:44,093 [sor4] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\shared\ds\Community.ds.xml: 0ms

    === 2013-03-14 13:59:44,156 [sor4] INFO SQLDataSource - Deriving dataSource Community from table: Community
    I have attached the first 10% of the two files. The .jsp file came out of VB. The Y.jsp file is the saved source.

    I have no immediate clue as to what could be wrong or how to diagnose it. Since the framework does not start I have no Developer Console. I don't think Firebug will help either.

    I am open to suggestions. I really stepped into it this time.

    Thanks,

    Rick

    P.S. Firebug just says there is no script and that a 'type' parameter is missing saying so.

    P.P.S. I checked the Y.jsp code with JSLint. Except for lots of warnings for missing semicolons and an ugly comma placement I could find to real errors.

    P.P.P.S. I am running SmartClient_v82p_2013-03-11/EVAL Development Only on Mozilla Firefox 12.0 with Firebug using Windows XP Pro 32 bit.
    Attached Files
    Last edited by RickBollinger; 14 Mar 2013, 07:08. Reason: Firebug result

    #2
    This is some kind of Tomcat bug. It's telling you that it translated the .jsp code to Java, and tried to compile that, and that Java code was invalid. That's supposed to never happen; if there was a problem with the .jsp, it should have been reported when the .jsp was being translated to Java.

    Best guess, this is some kind of timing issue where you happened to be copying this file over to the remote server at the exact moment the browser accessed it. Or, there are intermittent filesystem read issues on the remote server.

    If it's a persistent problem, you can probably solve it by deleting the "work" directory of the Tomcat instance, and re-starting it.

    Comment


      #3
      I really appreciate the quick reply. I have saved the source multiple times in various ways. So, it is not an intermittent copy problem. I have also restarted Tomcat dozens of times to no avail. The problem is no longer with the remote server. It happens with my locally embedded Tomcat as well. That worries me more.

      I thought maybe it was a size problem from somewhere. But, if the VB output JSP runs, it creates the same size code that I see as page source. And, that runs just fine. The longest string I have is 26,122 characters.

      I will try to locate my local Tomcat 'work' directory and clean it out.

      This is getting all my attention because I am dead in the water without a fix. I have been preparing to leave VB behind. But, that can only work if I can get a pure JSP working version on which to base further development. I need to know what is broke so I can avoid it in the future no matter how I develop.

      Thanks,

      Rick

      Comment


        #4
        I made and found the new PlanetProjectAlphaAppY_jsp.java and loaded it into Eclipse.

        I get the following error when I delete the complaining package name:

        -Implements org.apache.jasper.runtime.HttpJspBase._jspService
        -The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit.
        That seems a bit small for an Enterprise scale application. And, it is in the JavaScript domain that the QuickStart Guide mentions for developers to use.

        This is a big stop. I am trying to demo my software on a remote server and need the page source to work. I have invested hundreds and hundreds of hours.

        I really need your help.

        Thanks,

        Rick
        Last edited by RickBollinger; 14 Mar 2013, 11:58.

        Comment


          #5
          That certainly is a small number, but it's not coming from SmartClient. You should be able to configure Tomcat to use a larger number.

          Comment


            #6
            A little Google research indicates 64K is a JVM limit on how much code can be in a try/catch or just in a module.

            There will be no changing this number that I can see.

            My solution is to eliminate comments and debug statements in my methods.

            Unless you know of any way out otherwise. Or, that I am wrong.

            I am getting closer to the end of my application with only a few more windows and forms.

            I hope they will fit.

            Thanks,

            Rick

            P.S. Now I wonder why the regular .jsp file that VB makes with the XML inside still works. Doesn't that also get compiled into Java?
            Last edited by RickBollinger; 14 Mar 2013, 12:22.

            Comment


              #7
              That JVM limit applies to individual methods, which is a reasonable limit on it's own, but Tomcat is generating Java code for the .jsp that's all in one giant method.

              We would never recommend deleting comments. Instead, you can split the file into multiple .jsps, or move some large .js methods into their own file.

              Comment


                #8
                P.S. Now I wonder why the regular .jsp file that VB makes with the XML inside still works. Doesn't that also get compiled into Java?
                No, it does not. It results in a very short bit of generated Java that causes our framework to output JavaScript.

                Comment


                  #9
                  I have found a number of ways to compress code without removing comments. I can try that right away.

                  I would be curious if there are any guidelines or good practices to splitting code into multiple jsp files.

                  I have to keep in mind that all of this needs to be exported to a remote server and still work.

                  Much to mull over hot coffee in the AM.

                  Thanks for the hope.

                  Rick

                  Comment


                    #10
                    We don't have any best practices specific to .jsps other than the overview in the SmartClient Architecture topic in the SmartClient Reference.

                    Comment


                      #11
                      In another forum post I saw the following statement:

                      With cacheFiles(), the files do not execute. cacheFiles() basically allows you to get files into the browser cache so that subsequent loading is immediate.
                      Does that mean that the alternative discussed, loadJSFiles, DOES execute the loaded files?

                      I looked at the docs unsuccessfully to find the mechanism to invoke the loaded .js files. Should I wrap them in a function and call them by name? What does loading really comprise?

                      Since the main app has a top level set of tabs, I thought I would assign the unloaded components to these tabs. If the user would be permitted to see a tab, then I would load its .js file and execute it to build its components unseen and add the tab at the end.

                      This would reduce the initial amount loaded from the JSP file and let subsequent loading happen asynchronously and only as appropriate for the user.

                      Sorry for the newbie question.

                      Thanks,

                      Rick

                      Comment


                        #12
                        Please start a new thread for unrelated questions.

                        Yes, loadJSFiles() fully loads the target JS files, meaning the JavaScript in them is actually executed.

                        If you have previously called cacheJSFiles for the same URLs, the subsequent loadJSFiles() happens without a server round-trip (assuming you have not done anything to interfere with caching).

                        However, your application is far, far too small to start worrying about loading files separately per tab. Take a look at the SmartClient Architecture document again - this loading pattern is counter-productive in a small application, and only makes sense for huge application with clear segmentation points.

                        Comment


                          #13
                          I would ask for an explanation for how my application is small when it blows some 65535 byte limit. Except, I am forced to segment now. The explanation is not needed. Actually, I was hoping to do this part later when I knew more.

                          It was always my intention to segment my app in the way I described. If a user is not a project manager, and I can establish that from the database, then they will not need the MyProjects tab or any of its contents.

                          Similarly, if they are not a Community Admin, they should not have access to MyCommunity, and so on for MyAccount. 3 fixed tabs and 3 conditional tabs with clear segmentation points. That results in one JSP file and 3 JS files.

                          I appreciate the info on loadJSFiles. I think I have enough now to proceed onto my next problem.

                          Thanks,

                          Rick

                          Comment


                            #14
                            65k is what we would consider a small app, where it is not nearly worth loading JavaScript on-demand.

                            You are not required to load JavaScript on-demand at all yet. You do have to move your JavaScript into separate files, but those can be loaded by ordinary <script> tags without bothering with load-on-demand.

                            We understand that it seems like a no-brainer to only load JavaScript needed per-role. The reality is that the combination of JavaScript compression (which makes these files barely larger than the HTTP headers needed to deliver them) and shared caching (which means different roles may be able to leverage files cached by other roles) makes this a net loss for a small app.

                            If you don't understand all the factors involved here, it's best to just follow our best practices.

                            Comment


                              #15
                              I yield to your greater wisdom and my gratitude is real.

                              FYI: some change in 8.2 since January has increased the size of the Java that is generated for the same amount of XML/JSP. To restore my remote app I tried to open up an archived version of my XML. VisualBuilder could not open it. Servlet.service threw the recently familiar exception.

                              Not to worry. I have been looking at the Architecture page in the docs. Under the cacheable UI discussion there is mention using SCRIPT tags with JSP files. I will use that to segment and substantiate my canvases and just disable tabs according to my scheme.

                              I will have to assume that recreation of a dataSource is no big deal.

                              Thanks,

                              Rick

                              P.S. This VB problem may not be true. My CVS seems to be acting up. The archved version was many times larger than what got saved. It seems to have duplicated stuff. Stay tuned.
                              Last edited by RickBollinger; 15 Mar 2013, 12:14. Reason: new info

                              Comment

                              Working...
                              X