Wednesday, 23 September 2009

Trying out POC.zip

Sorry, Chris, the Emac is an embedded picture, which didn't make it through the Blogger.
I don't know how you managed to get a picture through.
Here it is, sent directly:

I also tried restarting the computer, just in case the initial firewall block had interfered with the startup, but I got the same.
I have appended the html source of the web page which shows.

I checked, and found files did exist for
steptestgwt/steptestgwt.nocache.js

Please tell me if there are any experiments you want me to do.
I suspect there is something minor like a resource which isn't in the installation package.
It might be worth tracking down now, while the project is fairly simple and there aren't too many bits to check.

David IB

=======================
Chris,   I've downloaded the file pic.zi_ from https://crosswire.org/svn/tynstep/trunk/STEPTestGWT/poc.zi_
On my simply Windows XP, I renamed the file pic.zip and extracted the files.
I double-clicked on RunSTEP.bat.
Windows firewall asked me if I wanted to unblock it - I did - though it was already opening a window in Firefox (my default) and produced this:
Emacs!
I terminated the batch with Ctrl-C and tried again, but got the same.
Tried pasting http://localhost:8080/ in IE8 and got the same.

Not the same as in your post, but something is certainly interacting with the browser.  Well done! 
(sorry to take so long to do this - had so many urgent things that the fun things had to wait)

David IB


Here's the installation messages from the batch file (just in case they are useful):


D:\Temp\poc>java -jar step.jar
22-Sep-2009 18:33:12 org.crosswire.jsword.book.sword.ConfigEntryTable testLanguage
INFO: Unknown language mg in book mal1865
22-Sep-2009 18:33:12 org.crosswire.jsword.book.sword.ConfigEntryTable testLanguage
INFO: Unknown language nb in book norsk
22-Sep-2009 18:33:12 org.crosswire.jsword.book.sword.ConfigEntryTable adjustLanguage
INFO: Fixing data for eren_he. Changing Direction=LtoR to bidi
22-Sep-2009 18:33:12 org.crosswire.jsword.book.sword.ConfigEntryTable testLanguage
INFO: Unknown language ury in book ury_WBTI_1995
22-Sep-2009 18:33:12 org.crosswire.jsword.book.sword.ConfigEntryTable getContinuation
INFO: Line without previous continuation for About in burjudson: http://scripts.sil.org/Padauk
22-Sep-2009 18:33:12 org.crosswire.jsword.book.sword.ConfigEntryTable adjustLanguage
INFO: Fixing data for hebrewgreek. Changing Direction=LtoR to RtoL
2009-09-22 18:33:12.843::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-09-22 18:33:13.062::INFO:  jetty-6.1.x
2009-09-22 18:33:13.984::INFO:  Started SelectChannelConnector@0.0.0.0:8080
Server has been started
java.sql.SQLException: No suitable driver found for jdbc:derby:StepDB
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at uk.me.burrell.server.HistoryDAO.getIndexListFor(HistoryDAO.java:35)
        at uk.me.burrell.gwttest.server.HistoryServiceImpl.getIndexListFor(HistoryServiceImpl.java:17)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:166)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        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.handle(ServletHandler.java:362)
        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.HandlerList.handle(HandlerList.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.content(HttpConnection.java:843)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
        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.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
2009-09-22 18:33:18.375:/:WARN:  Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstr
act java.util.List uk.me.burrell.gwttest.client.HistoryService.getIndexListFor(java.lang.String)' threw an unexpected exception: java.lang.NullPointerException
        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:166)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        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.handle(ServletHandler.java:362)
        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.HandlerList.handle(HandlerList.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.content(HttpConnection.java:843)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
        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.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
Caused by: java.lang.NullPointerException
        at uk.me.burrell.server.HistoryDAO.getIndexListFor(HistoryDAO.java:42)
        at uk.me.burrell.gwttest.server.HistoryServiceImpl.getIndexListFor(HistoryServiceImpl.java:17)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
        ... 20 more

=========================


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <!--                                                               -->
    <!-- Consider inlining CSS to reduce the number of requested files -->
    <!--                                                               -->

    <!--                                           -->
    <!-- Any title is fine                         -->
    <!--                                           -->
    <title>STEP :: History</title>
   
    <!--                                           -->
    <!-- This script loads your compiled module.   -->
    <!-- If you add any GWT meta tags, they must   -->
    <!-- be added before this line.                -->
    <!--                                           -->
    <script type="text/javascript" language="javascript" src="steptestgwt/steptestgwt.nocache.js"></script>
  </head>

  <!--                                           -->
  <!-- The body can have arbitrary html, or      -->
  <!-- you can leave the body empty if you want  -->
  <!-- to create a completely dynamic UI.        -->
  <!--                                           -->
  <body>

    <!-- OPTIONAL: include this if you want history support -->
    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>

    <h1>History Module</h1>
        <div id="main" />

   
  </body>
</html>

No comments:

Post a Comment