java - Google Spanner NullPointerException at SpannerOptions -
i'm trying initiate , add google spanner during runtime. however, when reach line:
spanneroptions options = spanneroptions.newbuilder().build();
i stack trace:
2017-08-14 14:28:39.232:warn:oejs.servlethandler:qtp998351292-16: error /_ah/api/discovery/v1/apis/helloworld/v1/rest java.lang.nosuchmethoderror: com.google.common.base.preconditions.checkargument(zljava/lang/string;ii)v @ com.google.cloud.spanner.spanneroptions.createchannels(spanneroptions.java:232) @ com.google.cloud.spanner.spanneroptions.<init>(spanneroptions.java:88) @ com.google.cloud.spanner.spanneroptions.<init>(spanneroptions.java:43) @ com.google.cloud.spanner.spanneroptions$builder.build(spanneroptions.java:179) @ com.example.b612.asteroidlist.<clinit>(asteroidlist.java) @ java.lang.class.forname0(native method) @ java.lang.class.forname(unknown source) @ com.google.api.server.spi.servletinitializationparameters.getclassforname(servletinitializationparameters.java:115) @ com.google.api.server.spi.servletinitializationparameters.fromservletconfig(servletinitializationparameters.java:72) @ com.google.api.server.spi.endpointsservlet.init(endpointsservlet.java:56) @ org.eclipse.jetty.servlet.servletholder.initservlet(servletholder.java:643) @ org.eclipse.jetty.servlet.servletholder.getservlet(servletholder.java:499) @ org.eclipse.jetty.servlet.servletholder.ensureinstance(servletholder.java:791) @ org.eclipse.jetty.servlet.servletholder.prepare(servletholder.java:776) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:579) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:524) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:226) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1180) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:512) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:185) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1112) @ com.google.appengine.tools.development.jetty9.devappenginewebappcontext.doscope(devappenginewebappcontext.java:94) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:141) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:134) @ com.google.appengine.tools.development.jetty9.jettycontainerservice$apiproxyhandler.handle(jettycontainerservice.java:597) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:134) @ org.eclipse.jetty.server.server.handle(server.java:534) @ org.eclipse.jetty.server.httpchannel.handle(httpchannel.java:320) @ org.eclipse.jetty.server.httpconnection.onfillable(httpconnection.java:251) @ org.eclipse.jetty.io.abstractconnection$readcallback.succeeded(abstractconnection.java:283) @ org.eclipse.jetty.io.fillinterest.fillable(fillinterest.java:108) @ org.eclipse.jetty.io.selectchannelendpoint$2.run(selectchannelendpoint.java:93) @ org.eclipse.jetty.util.thread.strategy.executeproduceconsume.executeproduceconsume(executeproduceconsume.java:303) @ org.eclipse.jetty.util.thread.strategy.executeproduceconsume.produceconsume(executeproduceconsume.java:148) @ org.eclipse.jetty.util.thread.strategy.executeproduceconsume.run(executeproduceconsume.java:136) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:671) @ org.eclipse.jetty.util.thread.queuedthreadpool$2.run(queuedthreadpool.java:589) @ java.lang.thread.run(unknown source) 2017-08-14 14:28:40.735:warn:oejs.servlethandler:qtp998351292-18: /_ah/api/discovery/v1/apis/helloworld/v1/rest java.lang.nullpointerexception @ com.google.api.server.spi.endpointsservlet.service(endpointsservlet.java:71) @ javax.servlet.http.httpservlet.service(httpservlet.java:790) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:848) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1772) @ com.google.appengine.api.socket.dev.devsocketfilter.dofilter(devsocketfilter.java:74) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1759) @ com.google.appengine.tools.development.responserewriterfilter.dofilter(responserewriterfilter.java:134) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1759) @ com.google.appengine.tools.development.headerverificationfilter.dofilter(headerverificationfilter.java:34) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1759) @ com.google.appengine.api.blobstore.dev.serveblobfilter.dofilter(serveblobfilter.java:63) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1759) @ com.google.apphosting.utils.servlet.transactioncleanupfilter.dofilter(transactioncleanupfilter.java:48) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1759) @ com.google.appengine.tools.development.jetty9.staticfilefilter.dofilter(staticfilefilter.java:122) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1759) @ com.google.appengine.tools.development.devappservermodulesfilter.dodirectrequest(devappservermodulesfilter.java:366) @ com.google.appengine.tools.development.devappservermodulesfilter.dodirectmodulerequest(devappservermodulesfilter.java:349) @ com.google.appengine.tools.development.devappservermodulesfilter.dofilter(devappservermodulesfilter.java:116) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1751) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:582) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:524) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:226) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1180) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:512) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:185) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1112) @ com.google.appengine.tools.development.jetty9.devappenginewebappcontext.doscope(devappenginewebappcontext.java:94) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:141) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:134) @ com.google.appengine.tools.development.jetty9.jettycontainerservice$apiproxyhandler.handle(jettycontainerservice.java:597) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:134) @ org.eclipse.jetty.server.server.handle(server.java:534) @ org.eclipse.jetty.server.httpchannel.handle(httpchannel.java:320) @ org.eclipse.jetty.server.httpconnection.onfillable(httpconnection.java:251) @ org.eclipse.jetty.io.abstractconnection$readcallback.succeeded(abstractconnection.java:283) @ org.eclipse.jetty.io.fillinterest.fillable(fillinterest.java:108) @ org.eclipse.jetty.io.selectchannelendpoint$2.run(selectchannelendpoint.java:93) @ org.eclipse.jetty.util.thread.strategy.executeproduceconsume.executeproduceconsume(executeproduceconsume.java:303) @ org.eclipse.jetty.util.thread.strategy.executeproduceconsume.produceconsume(executeproduceconsume.java:148) @ org.eclipse.jetty.util.thread.strategy.executeproduceconsume.run(executeproduceconsume.java:136) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:671) @ org.eclipse.jetty.util.thread.queuedthreadpool$2.run(queuedthreadpool.java:589) @ java.lang.thread.run(unknown source)
some things online said resolve first issue update guava, doesn't appear have worked. error in gradle/maven? can poist additional information needed such gradle , maven files. help.
i'm fool, guava, there 2 guava dependencies in pom.xml file, 1 accidentally put in , outdated.
Comments
Post a Comment