Tuesday, 22 September 2009

Re: [Tyndale STEP - Programming] Trying out POC.zip

Sorry, what was Emacs! supposed to be? Was it a picture?

Have you tried refreshing the page (CTRL+F5). I tried it again from the zip file in a new directory and works fine...
The exceptions you got look alright. They're due to not checking whether the database is currently up before the app tries to connect to it... Easy to fix, but wasn't worth doing it in a proof of concept.

Hmmm, do you have a proxy server?
Do you have files under: http://localhost:8080/steptestgwt/

Let me have the screenshot and perhaps i can help...
Chris

2009/9/22 Tyndale STEP Project <TyndaleSTEP@gmail.com>
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



--
Posted By Tyndale STEP Project to Tyndale STEP - Programming on 9/22/2009 10:50:00 AM

No comments:

Post a Comment