Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2012 19:56
Show Gist options
  • Save anonymous/4279269 to your computer and use it in GitHub Desktop.
Save anonymous/4279269 to your computer and use it in GitHub Desktop.
Bean to HashMap()
List<ActxTecnico> lista = averiaServices.rpteActuXTecnico(map);
//String json2 = util.toJsonJqGrid(new HashMap(), lista, npage, records, nrows, "codigoTecnico","Averia","resultActtXTecnicoAverias");
String json = util.toJsonJqGrid(new ActxTecnico(), lista, npage, records, nrows, "codigoTecnico","Averia","resultActtXTecnicoAverias");
java.lang.NoSuchMethodException: pe.com.tdp.perifericos.averias.bean.ActxTecnico.getCodigoTecnico()
at java.lang.Class.getMethod(Unknown Source)
at pe.com.tdp.perifericos.comun.util.JqueryUtil.toJsonJqGrid(JqueryUtil.java:54)
at pe.com.tdp.perifericos.averias.servlet.RpteActXTecnicoServlet.service(RpteActXTecnicoServlet.java:233)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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(Unknown Source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment