AnsweredAssumed Answered

Navigating through nodes created using Web Services

Question asked by doblek on Nov 23, 2006
Hi all,

I've created some folders in Alfresco using Web Services and I've found some problems during navigation.
I've posted some of these problems in "Web Services" forum (as you can see here), though nobody seem to know how to solve them.

Maybe I have better luck in this one…

I think the problem is related to "browse.jsp" or something similar because:
    - If I create the folder directly (hanging from root node in the store) on a Store different from "SpacesStore", it crashes when logging in. As described in the post previously mentioned…
    - If I create the folder directly on "SpacesStore" (hanging from root), it crashes sometimes. For example, when creating a rule that asks for a location… like "Move some item to space when something occurs". When I have to specify the location where i want the item to be moved I get the following error:


    javax.faces.FacesException: org.apache.jasper.JasperException

    caused by:
    org.apache.jasper.JasperException

    caused by:
    java.lang.NullPointerException

    Hide Details

    javax.faces.FacesException: org.apache.jasper.JasperException
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
    at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView (JspViewHandlerImpl.java:234)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
    at org.alfresco.web.app.servlet.AlfrescoFacesServlet.service (AlfrescoFacesServlet.java:49)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173)
    at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:73)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java :664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: org.apache.jasper.JasperException
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException (JspServletWrapper.java:510)
    at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java :463)
    at org.apache.catalina.core.ApplicationDispatcher.doForward (ApplicationDispatcher.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch (ServletExternalContextImpl.java :415)
    … 21 more
    - If I create the folder hanging from a folder which is placed under "Company Home" node, everything seems to be fine =)

So, my question is
does Alfresco's browser work properly only when navigating through nodes which hang from "Company Home" in "SpacesStore" store?
Is easy to modify the "browser jsp" in order to make it work under any store/node?
I've been dealing with "login.jsp" and I don't understand why it crashes when it tries to access a store different from "SpacesStore" (though I have to say that I'm newbie to jsp and jsf… =/). As far as I know, it should look for the node stored in user's field homefolder.

Any help would be very much appreciated…

Thanks in advance,
Enrique Pérez

Outcomes