Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server error response [url] http://athena-proxy:9090/proxy/ [status code] 500 #5

Open
suciista09 opened this issue Dec 22, 2016 · 1 comment

Comments

@suciista09
Copy link

suciista09 commented Dec 22, 2016

I experience this while run test parallel.

[GuzzleHttp\Exception\ServerException]
Server error response [url] http://athena-proxy:9090/proxy/ [status code] 500 [reason phrase] Exception [NullPointerException - "null"] thrown by event method [public com.google.sitebricks.headless.Reply net.lightbody.bmp.proxy.bricks.ProxyResource.getProxies()] at net.lightbody.bmp.BrowserMobProxyServer.getPort(BrowserMobProxyServer.java:426) (See below for entire trace.)

from athena proxy logs:

[WARN  2016-12-21T06:29:41,909 org.eclipse.jetty.util.log] (qtp1633594503-14) /proxy/ com.google.sitebricks.routing.EventDispatchException: Exception [NullPointerException - "null"] thrown by event method [public com.google.sitebricks.headless.Reply net.lightbody.bmp.proxy.bricks.ProxyResource.getProxies()]

at net.lightbody.bmp.BrowserMobProxyServer.getPort(BrowserMobProxyServer.java:426)
(See below for entire trace.)

	at com.google.sitebricks.routing.DefaultPageBook$MethodTuple.call(DefaultPageBook.java:830) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.routing.DefaultPageBook$MethodTuple.call(DefaultPageBook.java:805) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.routing.DefaultPageBook$PageTuple.callAction(DefaultPageBook.java:624) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.routing.DefaultPageBook$PageTuple.doMethod(DefaultPageBook.java:603) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.routing.WidgetRoutingDispatcher.fireEvent(WidgetRoutingDispatcher.java:171) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.routing.WidgetRoutingDispatcher.bindAndReply(WidgetRoutingDispatcher.java:102) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.routing.WidgetRoutingDispatcher.dispatch(WidgetRoutingDispatcher.java:88) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.DebugModeRoutingDispatcher.dispatch(DebugModeRoutingDispatcher.java:56) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.SitebricksFilter.doFilter(SitebricksFilter.java:62) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.sitebricks.HiddenMethodFilter.doFilter(HiddenMethodFilter.java:70) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) ~[browsermob-dist-2.1.2.jar:?]
	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) ~[browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) ~[browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.Server.handle(Server.java:346) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) [browsermob-dist-2.1.2.jar:?]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528) [browsermob-dist-2.1.2.jar:?]
	at java.lang.Thread.run(Thread.java:745) [?:1.7.0_111]
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_111]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_111]
	at com.google.sitebricks.routing.DefaultPageBook$MethodTuple.call(DefaultPageBook.java:820) ~[browsermob-dist-2.1.2.jar:?]
	... 34 more
Caused by: java.lang.NullPointerException
	at net.lightbody.bmp.BrowserMobProxyServer.getPort(BrowserMobProxyServer.java:426) ~[browsermob-dist-2.1.2.jar:?]
	at net.lightbody.bmp.proxy.bricks.ProxyResource.getProxies(ProxyResource.java:68) ~[browsermob-dist-2.1.2.jar:?]
	at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_111]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_111]
	at com.google.sitebricks.routing.DefaultPageBook$MethodTuple.call(DefaultPageBook.java:820) ~[browsermob-dist-2.1.2.jar:?]
	... 34 more
@ghost ghost self-assigned this Dec 27, 2016
@pproenca
Copy link
Contributor

Hello @suciolx,

Could you please try the following:

  1. echo 'PROXY_VERSION=2.1.4' > /tmp/proxy.env
  2. athena proxy start --athena-env=/tmp/proxy.env

This will ensure that you use a new version of the BrowserMob proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants