if(event.getSource() == submit){ boolean error = false; if(getContent() == null || getContent() == ""){ errorComment.setVisible(true); error = true; }
if(!error){ Content c = content.getContent(); Comment comment = new Comment(getContent()); comment.setUser(AuthenticationInfo.getUserName()); comment.setApproved(true); //TODO this will have to be updated c.addComment(comment); contentService.saveContentWidget(c, new AsyncCallback<Content>() { public void onFailure(Throwable error){ Window.alert("Comment Failed"); } public void onSuccess(Content ignore){ Window.alert("Successfully added comment"); } }); content.closeCommentForm(); txt_Area.setText(""); errorComment.setVisible(false); ############ Here is the server side code public Content saveContentWidget(Content content) { PersistenceManager pm = getPersistenceManager(); try{ //Content persistentContent = pm.makePersistent(content); ServerContent sc = new ServerContent(content); ServerContent persistentContent = pm.makePersistent(sc); return persistentContent.getContent(); } finally { pm.flush(); pm.close(); } } This is the code that enters the onFailure method. I don't get anything in the stack trace on the console and when I debug in the Throwable error the error only contains the error message com.google.gwt.user.client.rpc.SerializationException, the properties for stack and description are both null. The only field that is not populated is the key on the comments because they have never been saved before. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.