Monday, January 30, 2012

Getting show stopper exception :: com.google.gwt.user.server.rpc.UnexpectedException: while using Spring JDBC RowMapper to update serialized DTO

@SuppressWarnings({ "rawtypes", "unchecked" })
ArrayList<ProfilesDetailDTO> profilesDetailDTOs =
(ArrayList<ProfilesDetailDTO>) jdbcTemplate.query(query, new
RowMapper() {

@Override
public Object mapRow(ResultSet rs, int arg1) throws SQLException {
System.out.println("No of iterations is "+arg1);
ProfilesDetailDTO profilesDetailDTO = new
ProfilesDetailDTO(rs.getInt("PROF_NO"), rs.getString
("PROF_NAME"), rs.getString("PROF_DESC")); /"Getting exception after
this line
return profilesDetailDTO;
}
});
rolesDTO.setProfilesDetailDTOs(profilesDetailDTOs);

Stack trace:
[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract com.clsa.gwt.scs.shared.SystemProfilesforRolesDTO
com.clsa.gwt.scs.client.SecurityControlRemoteService.getProfilesforSystem(java.lang.String)'
threw an unexpected exception: java.lang.NoSuchMethodError:
com.clsa.gwt.scs.shared.ProfilesDetailDTO.<init>(ILjava/lang/
String;Ljava/lang/String;)V
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
385)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment