[ 
https://issues.apache.org/jira/browse/SLING-6254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated SLING-6254:
-----------------------------------
    Affects Version/s: Tooling Support Source 1.0.0

> Sling IDE: Got status code 500 for call to 
> http://localhost:4000/system/sling/tooling/sourceReferences.json
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-6254
>                 URL: https://issues.apache.org/jira/browse/SLING-6254
>             Project: Sling
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: Sling Eclipse IDE 1.1.0, Tooling Support Source 1.0.0
>            Reporter: Konrad Windszus
>             Fix For: Sling Eclipse IDE 1.2.0
>
>
> When connecting in debug mode with a local server got the following error
> {code}
> org.apache.sling.ide.osgi.OsgiClientException: 
> org.apache.commons.httpclient.HttpException: Got status code 500 for call to 
> http://localhost:4000/system/sling/tooling/sourceReferences.json
>       at 
> org.apache.sling.ide.osgi.impl.HttpOsgiClient.findSourceReferences(HttpOsgiClient.java:223)
>       at 
> org.apache.sling.ide.osgi.impl.TracingOsgiClient.findSourceReferences(TracingOsgiClient.java:110)
>       at 
> org.apache.sling.ide.eclipse.core.internal.JVMDebuggerConnection.connectInDebugMode(JVMDebuggerConnection.java:119)
>       at 
> org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.start(SlingLaunchpadBehaviour.java:123)
>       at 
> org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadLaunchConfigurationDelegate.launch(SlingLaunchpadLaunchConfigurationDelegate.java:45)
>       at 
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
>       at 
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
>       at 
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
>       at 
> org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3556)
>       at 
> org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3492)
>       at 
> org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:367)
>       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: org.apache.commons.httpclient.HttpException: Got status code 500 
> for call to http://localhost:4000/system/sling/tooling/sourceReferences.json
>       at 
> org.apache.sling.ide.osgi.impl.HttpOsgiClient.findSourceReferences(HttpOsgiClient.java:198)
>       ... 11 more
> {code}
> On the server-side I see
> {code}
> 8.11.2016 15:42:56.189 *ERROR* [qtp1040324669-4133] 
> org.apache.felix.http.jetty Exception while processing request to 
> /system/sling/tooling/sourceReferences.json (java.lang.NullPointerException)
> java.lang.NullPointerException: null
>       at 
> org.apache.sling.tooling.support.source.impl.FelixJettySourceReferenceFinder.findSourceReferences(FelixJettySourceReferenceFinder.java:53)
>       at 
> org.apache.sling.tooling.support.source.impl.SourceReferencesServlet.doGet(SourceReferencesServlet.java:123)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
>       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.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:290)
>       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 
> com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308)
>       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.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:129)
>       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.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:116)
>       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:75)
>       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:124)
>       at 
> org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:61)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
>       at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>       at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>       at org.eclipse.jetty.server.Server.handle(Server.java:499)
>       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
>       at 
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
>       at 
> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
>       at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to