java - Getting exceptions on inserting into couchdb -
i'm trying insert data couchdb landed these exceptions here logs.
starting jetty on port 8888 [warn] exception while dispatching incoming rpc call com.google.gwt.user.server.rpc.unexpectedexception: service method 'public abstract java.lang.string org.rz.client.greetingservice.rr() throws java.lang.illegalargumentexception' threw unexpected exception: net.sf.json.jsonexception: jsonobject["error"] not jsonobject. at com.google.gwt.user.server.rpc.rpc.encoderesponseforfailure(rpc.java:415) at com.google.gwt.user.server.rpc.rpc.invokeandencoderesponse(rpc.java:605) at com.google.gwt.user.server.rpc.remoteserviceservlet.processcall(remoteserviceservlet.java:333) at com.google.gwt.user.server.rpc.remoteserviceservlet.processcall(remoteserviceservlet.java:303) at com.google.gwt.user.server.rpc.remoteserviceservlet.processpost(remoteserviceservlet.java:373) at com.google.gwt.user.server.rpc.abstractremoteserviceservlet.dopost(abstractremoteserviceservlet.java:62) at javax.servlet.http.httpservlet.service(httpservlet.java:755) at javax.servlet.http.httpservlet.service(httpservlet.java:848) at org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:686) at org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:501) at org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:137) at org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:557) at org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:231) at org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1086) at org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:428) at org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:193) at org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1020) at org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:135) at org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:116) at org.eclipse.jetty.server.handler.requestloghandler.handle(requestloghandler.java:68) at org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:116) at org.eclipse.jetty.server.server.handle(server.java:370) at org.eclipse.jetty.server.abstracthttpconnection.handlerequest(abstracthttpconnection.java:489) at org.eclipse.jetty.server.abstracthttpconnection.content(abstracthttpconnection.java:960) at org.eclipse.jetty.server.abstracthttpconnection$requesthandler.content(abstracthttpconnection.java:1021) at org.eclipse.jetty.http.httpparser.parsenext(httpparser.java:865) at org.eclipse.jetty.http.httpparser.parseavailable(httpparser.java:240) at org.eclipse.jetty.server.asynchttpconnection.handle(asynchttpconnection.java:82) at org.eclipse.jetty.io.nio.selectchannelendpoint.handle(selectchannelendpoint.java:668) at org.eclipse.jetty.io.nio.selectchannelendpoint$1.run(selectchannelendpoint.java:52) at org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:608) at org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:543) at java.lang.thread.run(thread.java:745) caused by: net.sf.json.jsonexception: jsonobject["error"] not jsonobject. at net.sf.json.jsonobject.getjsonobject(jsonobject.java:2163) at com.fourspaces.couchdb.couchresponse.<init>(couchresponse.java:90) at com.fourspaces.couchdb.session.http(session.java:365) at com.fourspaces.couchdb.session.get(session.java:325) at com.fourspaces.couchdb.session.getdatabase(session.java:183) at org.rz.server.greetingserviceimpl.rr(greetingserviceimpl.java:21) at sun.reflect.nativemethodaccessorimpl.invoke0(native method) at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) at java.lang.reflect.method.invoke(method.java:606) at com.google.gwt.user.server.rpc.rpc.invokeandencoderesponse(rpc.java:587) ... 31 more [error] 500 - post /rz/greet (127.0.0.1) 57 bytes request headers host: 127.0.0.1:8888 user-agent: mozilla/5.0 (windows nt 6.1; wow64; rv:47.0) gecko/20100101 firefox/47.0 accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 accept-language: en-us,en;q=0.5 accept-encoding: gzip, deflate dnt: 1 content-type: text/x-gwt-rpc; charset=utf-8 x-gwt-permutation: 98267cd3f923780b0e51298defe71eba x-gwt-module-base: http://127.0.0.1:8888/rz/ referer: http://127.0.0.1:8888/rz.html content-length: 108 connection: keep-alive response headers content-type: text/plain
fjjkbk hkj jk kjhkb h ghj j jhvjg ch vg jhvbbbbbbbbbbbbbbbbbbbbbt ygy gy yu gygggggugihngdlh d jgdfj hgdhgd hjd ghd dhdkjfhgdg hg sg df gf dgj fdkjg kdg d ghkd gkdh kgdghf gdfjkgkdkgd kg fkg kdkgkdf gdf g dfgjkdgd gj dgdkgkdh djd gdk gkfg kdkfkgdk gdk gkfghdkf gkdf ghdkfgkd fhg fkg fd ghdfk gd ghfkgkfdgkf ghk
greetingserviceimpl.java
hum, you're requesting host: 127.0.0.1:8888
wich not database port according source code. might want try example see if setup wrong or if it's code.
Comments
Post a Comment