Closed ghost closed 7 years ago
Hi, it seems you have a compilation issue, that has nothing to do with Ektorp nor Cloudant.
Code samples in the Ektorp documentation do not explicitly state imports, but you have to use them for your code to compile.
I am facing problem in my project:
Problem: Need to get the last value inserted in a table in cloudant database using java liberty (java servlet program). but I get a program which retrieve the data of a specific id.(code below)I need to print the last value inserted in cloudant database in an android application
@Resource(name = "couchdb/myCloudant") protected CouchDbInstance mydb ;
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
} } i try View query but
[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/pipeline/a77663db-cbef-4367-b7f1-d1ec2024871e/src/main/java/wasdev/sample/servlet/Servlet_iot4.java:[123,82] cannot find symbol symbol: variable keys location: class wasdev.sample.servlet.Servlet_iot4 [ERROR] /home/pipeline/a77663db-cbef-4367-b7f1-d1ec2024871e/src/main/java/wasdev/sample/servlet/Servlet_iot4.java:[123,30] cannot find symbol symbol: method createQuery(java.lang.String) location: class wasdev.sample.servlet.Servlet_iot4 [ERROR] /home/pipeline/a77663db-cbef-4367-b7f1-d1ec2024871e/src/main/java/wasdev/sample/servlet/Servlet_iot4.java:[124,17] cannot find symbol symbol: class ViewResult location: class wasdev.sample.servlet.Servlet_iot4 [ERROR] /home/pipeline/a77663db-cbef-4367-b7f1-d1ec2024871e/src/main/java/wasdev/sample/servlet/Servlet_iot4.java:[125,22] cannot find symbol symbol: class Row location: class wasdev.sample.servlet.Servlet_iot4 [ERROR] /home/pipeline/a77663db-cbef-4367-b7f1-d1ec2024871e/src/main/java/wasdev/sample/servlet/Servlet_iot4.java:[126,22] cannot find symbol symbol: class Row location: class wasdev.sample.servlet.Servlet_iot4
I got this error i had add
import org.ektorp.ViewQuery; import org.ektorp.support.View;
but no use so please help me... I am using Java Liberty, devOps (git), cloudant