Bundle Resource Provider not working?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bundle Resource Provider not working?

Andres Bott

Hello all, 

I was looking into bundle resource provider on sling 9 "/system/console/bundleresources" but when trying to navigate to the path i.e : view the content of /libs/sling/sightly/js this will only show one level but not sub levels. (see attached) 

I also get a nice exception in the error.log

I guess this is not expected

Regards
Andres 


27.01.2018 18:02:52.742 *ERROR* [0:0:0:0:0:0:0:1 [1517072572738] GET /bin/browser.tab.display.html/libs/sling/sightly/js HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
javax.el.ELException: Error reading 'currentPathUrl' on type com.composum.sling.nodes.browser.Browser
       at javax.el.BeanELResolver.getValue(BeanELResolver.java:66)
       at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
       at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
       at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
       at org.apache.sling.scripting.jsp.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:975)
       at org.apache.jsp.libs.composum.nodes.console.browser.tabs.display_jsp._jspService(display_jsp.java:116)
       at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
       at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)
       at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)
       at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:342)
       at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:97)                                                                                                                                                                                
       at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:603)                                                                                                                                                                     
       at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388)                                                                                                                                                                                       
       at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184)                                                                                                                                                                                       
       at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491)                                                                                                                                                                                    
       at org.apache.sling.scripting.jsp.taglib.CallTag.doEndTag(CallTag.java:124)                                                                                                                                                                                                        
       at org.apache.jsp.libs.composum.nodes.console.browser.tab_jsp._jspx_meth_sling_005fcall_005f0(tab_jsp.java:159)                                                                                                                                                                    
       at org.apache.jsp.libs.composum.nodes.console.browser.tab_jsp._jspService(tab_jsp.java:119)                                                                                                                                                                                        
       at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)                                                                                                                                                                                          
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)                                                                                                                                                                                                                    
       at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)                                                                                                                                                                             
       at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)                                                                                                                                                                             
       at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:342)                                                                                                                                                                                  
       at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:97)                                                                                                                                                                                
       at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:603)                                                                                                                                                                     
       at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388)                                                                                                                                                                                       
       at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184)                                                                                                                                                                                       
       at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491)                                                                                                                                                                                    
       at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552)                                                                                                                                                                                                  
       at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)                                                                                                                                                                         
       at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)                                                                                                                                                                         
       at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:282)                                                                                                                                                                     
       at org.apache.sling.engine.impl.SlingRequestProcessorImpl.dispatchRequest(SlingRequestProcessorImpl.java:322)                                                                                                                                                                      
       at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatcher.java:211)                                                                                                                                                                           
       at org.apache.sling.engine.impl.request.SlingRequestDispatcher.forward(SlingRequestDispatcher.java:146)                                                                                                                                                                            
       at com.composum.sling.core.servlet.AbstractConsoleServlet.doGet(AbstractConsoleServlet.java:55)                                                                                                                                                                                    
       at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:270)                                                                                                                                                                              
       at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:346)                                                                                                                                                                                 
       at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:378)                                                                                                                                                                                 
       at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552)                                                                                                                                                                                                  
       at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)                                                                                                                                                                         
       at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)                                                                                                                                                                         
       at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:282)                                                                                                                                                                     
       at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)                                                                                                                                                                             
       at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)                                                                                                                                                                         
       at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:107)                                                                                                                                                           
       at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)                                                                                                                                                                         
       at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:138)                                                                                                                                                                                                             
       at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)                                                                                                                                                                         
       at org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java:151)                                                                                                                                                                     
       at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:234)                                                                                                                                                                                                
       at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:85)                                                                                                                                                                                       
       at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:79)                                                                                                                                                                                  
       at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89)                                                                                                                                                                                                  
       at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)                                                                                                                                                                                        
       at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)                                                                                                                                                                                  
       at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:138)                                                                                                                                                                                                             
       at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)                                                                                                                                                                                        
       at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
       at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:72)
       at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
       at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
       at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:128)
       at org.apache.felix.http.base.internal.dispatch.DispatcherServlet.service(DispatcherServlet.java:49)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
       at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
       at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
       at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
       at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
       at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
       at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
       at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
       at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
       at org.eclipse.jetty.server.Server.handle(Server.java:534)
       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
       at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
       at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
       at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
       at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
       at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
       at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
       at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException: null
       at com.composum.sling.core.util.LinkUtil.getExtension(LinkUtil.java:334)
       at com.composum.sling.core.util.LinkUtil.getExtension(LinkUtil.java:299)
       at com.composum.sling.nodes.browser.BrowserBean$NodeHandle.getPathUrl(BrowserBean.java:103)
       at com.composum.sling.nodes.browser.BrowserBean.getCurrentPathUrl(BrowserBean.java:153)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
       ... 87 common frames omitted

 


Reply | Threaded
Open this post in threaded view
|

Re: Bundle Resource Provider not working?

Robert Munteanu-2
Hi Andres,

On Sat, 2018-01-27 at 18:19 +0100, Andres Bott wrote:

> Hello all,  
>
> I was looking into bundle resource provider on sling 9
> "/system/console/bundleresources" but when trying to navigate to the
> path i.e : view the content of /libs/sling/sightly/js this will only
> show one level but not sub levels. (see attached)  
>
> I also get a nice exception in the error.log
>
> I guess this is not expected

I tried on 10-SNAPSHOT and it works on composum. Can you try updating
composum on Sling 9 to version 1.8.2 and see if this solves your
problem?

Thanks,

Robert
Reply | Threaded
Open this post in threaded view
|

Re: Bundle Resource Provider not working?

Andres Bott
Hi Robert, thanks for checking

quick test on sling 9 with composum 1.8.2 the error in the log is not
there anymore, bu i still don't see the content of the bundle

Regards
Andres

El 2018-01-30 11:10, Robert Munteanu escribió:

> Hi Andres,
>
> On Sat, 2018-01-27 at 18:19 +0100, Andres Bott wrote:
>> Hello all,
>>
>> I was looking into bundle resource provider on sling 9
>> "/system/console/bundleresources" but when trying to navigate to the
>> path i.e : view the content of /libs/sling/sightly/js this will only
>> show one level but not sub levels. (see attached)
>>
>> I also get a nice exception in the error.log
>>
>> I guess this is not expected
>
> I tried on 10-SNAPSHOT and it works on composum. Can you try updating
> composum on Sling 9 to version 1.8.2 and see if this solves your
> problem?
>
> Thanks,
>
> Robert