|
楼主 |
发表于 2016-7-8 16:47:39
|
显示全部楼层
控制台报错
public static Table show() throws ParseException, SQLException {
String sql = "select uploadAddr from pic";
HashMap<String, String> sqlMap = new HashMap<String, String>();
sqlMap.put(SQL.DEFAULT_DB_NAME, sql);
Table table = SQL.select(sqlMap, null, "/qx/qx/data");
String uploadAddr = "";
Iterator<Row> addrRows = table.iterator();
JSONObject j = new JSONObject();
String m = "";
while (addrRows.hasNext()) {
Row addrRow = addrRows.next();
uploadAddr = (String) addrRow.getValue("uploadAddr");
m += uploadAddr + ",";
}
m = m.substring(0, m.length() - 1);
String n = m.replace("[", "");
String d = n.replace("]", "");
String newJson = "[" + d + "]";
Row r = addrRows.next();
r.setValue("uploadAddr", newJson);
return table;
}
excute stream action, params:{"accept":"application/json","action":"showAction","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":"","process":"/QX/QX/process/attach_paizhao/attach_paizhaoProcess"}
java.lang.reflect.InvocationTargetException
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.justep.system.action.Engine.invokeActions(Native Method)
at com.justep.system.action.Engine.invokeActions(Unknown Source)
at com.justep.business.server.BusinessServer.doAction(Unknown Source)
at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
at com.justep.business.server.BusinessServer.excute(Unknown Source)
at com.justep.business.server.BusinessServer.excute(Unknown Source)
at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.NoSuchElementException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
at com.justep.system.data.impl.TableImpl$TableIterator.next(Unknown Source)
at com.justep.system.data.impl.TableImpl$TableIterator.next(Unknown Source)
at QX.show(QX.java:36)
... 27 more |
|