Hi Reto

while trying to create the offline version the following exception occurs:

Request:
http://localhost:8080/admin/offline/download?baseUri=http://localhost:8080/&targetUri=http://incubator.apache.org/clerezza/&formatExtension=xhtml&formatExtension=rdf&formatExtension=png&formatExtension=html&formatExtension=js&formatExtension=jpeg&rootLinkPrefix=/clerezza

Exception:
/admin/offline/download
java.lang.NullPointerException
        at 
org.wymiwyg.commons.util.dirbrowser.MultiPathNode.isDirectory(MultiPathNode.java:104)
        at 
org.apache.clerezza.tools.offline.ZipCreationUtil.archive(ZipCreationUtil.java:46)
        at 
org.apache.clerezza.tools.offline.ZipCreationUtil.archive(ZipCreationUtil.java:51)
        at 
org.apache.clerezza.tools.offline.ZipCreationUtil.createZip(ZipCreationUtil.java:39)
        at 
org.apache.clerezza.tools.offline.Generator.createOfflineSite(Generator.java:161)
        at 
org.apache.clerezza.tools.offline.Generator.download(Generator.java:144)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.clerezza.triaxrs.RootResourceExecutorImpl.handleWithMethod(RootResourceExecutorImpl.java:469)
        at 
org.apache.clerezza.triaxrs.RootResourceExecutorImpl.execute(RootResourceExecutorImpl.java:119)
        at 
org.apache.clerezza.triaxrs.JaxRsHandler.handle(JaxRsHandler.java:503)
        at 
org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler$RegisteredHandler.handle(PathMappingHandler.java:127)
        at 
org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler.handle(PathMappingHandler.java:102)
        at 
org.apache.clerezza.platform.security.auth.AuthenticatingFilter$1.run(AuthenticatingFilter.java:94)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        at 
org.apache.clerezza.platform.security.auth.AuthenticatingFilter.handle(AuthenticatingFilter.java:90)
        at 
org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(FilterRunner.java:56)
        at 
org.apache.clerezza.platform.xhtml2html.Xhtml2HtmlFilter.handle(Xhtml2HtmlFilter.java:73)
        at 
org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(FilterRunner.java:56)
        at 
org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerFactory.java:78)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at 
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
        at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:109)
        at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:532)
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:965)
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:388)
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:187)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:901)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
        at org.eclipse.jetty.server.Server.handle(Server.java:348)
        at 
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
        at 
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211)
        at 
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:425)
        at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:489)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
        at java.lang.Thread.run(Thread.java:619)

Any ideas?

On Sun, Mar 27, 2011 at 10:58 PM, Reto Bachmann-Gmuer
<[email protected]> wrote:
> Today I createt a renderlet for the new style and entered most new contents
> in the graph for the respective pages to be generated, the advantage of this
> is apart from the dogfood aspects and the rdf representations being
> available that there is a single place (the renderlet) that has to be
> modified when the navigation changes. The pages look still the same with
> only difference that the main title on the page is now also the title of the
> page (html title). Some pages couldn't yet been updated because of a
> permission problem.
>
> Several pages are still there as static resources which thanks to the
> bundle-dev tools can now be edited quite easily on the clerezza instance
> used to generate the website. For most pages with header and footer its
> better to put the contents in the RDF (even as a single literal) so that the
> headers doesn't has to be updated manually.
>
> I'm aware that the process is still not the easiest, but as we know have a
> dedicated bundle for the site more functionality could be added there and so
> the steps one needs to do manually could be minimised. Anyway, let me know
> immediately if you don't suceed updating the website follwing the
> instructions in the website, I think it is crucial to keep the site up to
> date and thus manageable. In the discobits editor the pages look quite
> strange with new style (far from wysiwyg), I'll have to look into more
> closely.
>
> I did some minor changes in the style:
> - removed all uppercase word from the html for accessibility (the
> transformatzion to uppercase is now in the css)
> - using xhtml style <br/> tags
> - removed target attribute from some links
>
> Cheers,
> reto
>



-- 
--trialox ag--------------------------------------

Tsuyoshi Ito
Binzmuehlestrasse 14
CH-8050 Zürich
Tel. +41 44 635 75 77
URL: http://trialox.org

Reply via email to