I got a new exception "java.lang.IllegalStateException: Sanity check -
neither a stream response nor a redirect response was generated for this
action request." after I upgraded the tapestry to 5.3.6. I was using 5.3.4
(or maybe earlier) before without any issue.

Our codes -

...
        @InjectPage
        private UserStart start;

...
        public Object onSubmit() throws ValidationException {
                Long id = -1L;
                
                id = (new UserSecurityDAO()).exist(myBean);
                Long bid = myBean.getId();
                
                if(myBean != null && id > 0 && !id.equals(myBean.getId())) {
                        //as workaround as GAE4J does not support composite 
primary key i.e.
                        //beanManager.delete(id);
                        //throw new ValidationException("User with user id '" +
myBean.getUserId() + "' already exists!");
                } else {
                        if(selectedList != null && selectedList.size() > 0) {
                                //change only if there is a selection, if not 
do not modify existing
role(s)
                                myBean.setUserRoles(selectedList);
                        }
                }

                beanManager.save(myBean);
                
                return start;
        }

Any help will be highly appreciated.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/java-lang-IllegalStateException-Sanity-check-neither-a-stream-response-nor-a-redirect-response-was-g-tp5717915.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to