wyan0220/cloud-management — comment on commit 8cd1cdff6424568030d0a8e5d581317c1bb6404b
File: src/test/java/com/proofpoint/cloudmanagement/service/TestInstance.java line 45
By wyan0220:

2012-03-07T22:56:13.633+0000 WARN qtp709926392-10832 org.eclipse.jetty.servlet.ServletHandler /v1/instance/
java.util.NoSuchElementException: null
at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:154) ~[guava-11.0.jar:na]
at com.google.common.collect.Iterators.find(Iterators.java:722) ~[guava-11.0.jar:na]
at com.google.common.collect.Iterables.find(Iterables.java:643) ~[guava-11.0.jar:na]
at com.proofpoint.cloudmanagement.service.NovaInstanceConnector.getFlavorForSizeName(NovaInstanceConnector.java:261) ~[main.jar:1.0-SNAPSHOT]
at com.proofpoint.cloudmanagement.service.NovaInstanceConnector.createInstance(NovaInstanceConnector.java:105) ~[main.jar:1.0-SNAPSHOT]
at com.proofpoint.cloudmanagement.service.InstancesResource.createInstance(InstancesResource.java:65) ~[main.jar:1.0-SNAPSHOT]
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_20]
at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_20]
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708) ~[jersey-server-1.9.1.jar:1.9.1]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) ~[servlet-api-3.0.20100224.jar:na]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:558) ~[jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1365) ~[jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
at com.proofpoint.http.server.GZipRequestFilter.doFilter(GZipRequestFilter.java:49) ~[http-server-0.52-SNAPSHOT.jar:na]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336) ~[jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77) ~[jetty-servlets-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:144) ~[jetty-servlets-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336) ~[jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486) [jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:972) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417) [jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:906) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:121) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.Server.handle(Server.java:350) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:941) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801) [jetty-http-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224) [jetty-http-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:52) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) [jetty-io-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) [jetty-io-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) [jetty-util-8.0.3.v20111011.jar:8.0.3.v20111011]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) [jetty-util-8.0.3.v20111011.jar:8.0.3.v20111011]
at java.lang.Thread.run(Thread.java:636) [na:1.6.0_20]

Thanks,
Wei