Hi Gerolf,

Thanks for the help.  After dropping an image in the webapp folder, I
got a more helpful message that indicated a path that doesn't exist on
my system:

4328 [btpool0-2] DEBUG org.wicketstuff.pickwick.PickwickApplication  -
imageFile: src\main\webapp\images

So I created the images folder and it then ran.  It appears to run
even without an image in webapp or webapp\images.

Still running into other issues with it, but I'll deal with those as I
get to them.  At least I can run it now.

Oh, by the way, I had checked the readme, but all it does is refer to
the wicketstuff page on pickwick:

Pickwick, a Wicket Photo Gallery
See http://wicketstuff.org/confluence/display/STUFFWIKI/Pickwick

Thanks again!
Tauren


On 8/12/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> the last time i tried it, i had to put at least one image somehwere in the
> webapp folder.
> iirc, details can be found in the readme
>
> On 8/12/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
> >
> > Can someone explain how to use pickwick from wicketstuff?
> >
> > I checked out pickwick from wicketstuff trunk and did a mvn install
> > eclipse:eclipse.  Had to turn off tests as they were failing.  And I
> > had to download and install wicketstuff-dojo-1.3.0-SNAPSHOT manually
> > as mvn didn't find it.  But once done, the eclipse project looked good
> > with no errors.
> >
> > So I started PickwickLauncher in debug mode as a Java Application,
> > then went to http://localhost:8080/.  This gives an NPE:
> >
> >    1. Unexpected RuntimeException
> >    2.
> >    3. Root cause:
> >    4.
> >    5. java.lang.NullPointerException
> >    6. at java.io.File.<init>(Unknown Source)
> >    7. at org.wicketstuff.pickwick.backend.ImageUtils.toFile(
> > ImageUtils.java:237)
> >    8. at org.wicketstuff.pickwick.PickwickApplication$1.decode(
> > PickwickApplication.java:93)
> >    9. at
> > org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest
> > (WebRequestCodingStrategy.java:373)
> >   10. at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
> > WebRequestCycleProcessor.java:175)
> >   11. at org.apache.wicket.RequestCycle.step(RequestCycle.java:1090)
> >   12. at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
> >   13. at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
> >   14. at org.apache.wicket.protocol.http.WicketFilter.doGet(
> > WicketFilter.java:257)
> >   15. at org.apache.wicket.protocol.http.WicketFilter.doFilter(
> > WicketFilter.java:127)
> >   16. at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> > ServletHandler.java:1065)
> >   17. at org.mortbay.jetty.servlet.ServletHandler.handle(
> > ServletHandler.java:365)
> >   18. at org.mortbay.jetty.security.SecurityHandler.handle(
> > SecurityHandler.java:185)
> >   19. at org.mortbay.jetty.servlet.SessionHandler.handle(
> > SessionHandler.java:181)
> >   20. at org.mortbay.jetty.handler.ContextHandler.handle(
> > ContextHandler.java:689)
> >   21. at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java
> > :391)
> >   22. at org.mortbay.jetty.handler.HandlerWrapper.handle(
> > HandlerWrapper.java:139)
> >   23. at org.mortbay.jetty.Server.handle(Server.java:285)
> >   24. at org.mortbay.jetty.HttpConnection.handleRequest(
> > HttpConnection.java:457)
> >   25. at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
> > HttpConnection.java:751)
> >   26. at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
> >   27. at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
> >   28. at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
> >   29. at org.mortbay.io.nio.SelectChannelEndPoint.run(
> > SelectChannelEndPoint.java:329)
> >   30. at org.mortbay.thread.BoundedThreadPool$PoolThread.run(
> > BoundedThreadPool.java:475)
> >
> > What is the correct way to run it?  Are there some settings that need
> > to be made somewhere?  Do I use a path in the URL?
> >
> > The error is in this line because uri is null:
> >
> > File imageFolder = imageUtils.toFile(uri);
> >
> > It makes sense that uri is null because:
> >
> > String uri = getURI(requestParameters);
> >
> > And I'm going to http://localhost:8080/, so there are no
> > requestParameters.
> >
> > Do I need to specify a path for pickwick? The jetty launcher and
> > web.xml both don't define paths, used just "/" and "/*" respectively.
> >
> > Any suggestions would be appreciated.
> >
> > Thanks,
> > Tauren
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to