You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by TG <ta...@hotmail.com> on 2012/11/11 23:21:56 UTC

java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

Posted by Alex Kotchnev <ak...@gmail.com>.
Sorry, I didn't dig into what's causing the issue, I was only able to
return it to a working state.

Have you tested if this is a problem only in the dev server or does it
occur if you deploy to production as well ?

I'd love to know if you find anything out - certainly would be useful to
post the details on the GAE issue list.

Cheers - Alex K

On Sun, Nov 11, 2012 at 11:38 PM, TG <ta...@hotmail.com> wrote:

> Alex, great info.
>
> I can't downgrade, as we are testing Cloud endpoints, which is only
> available in 1.7.3.
>
> Any idea what is breaking Tapestry 5.3.6 in this case? Any workaround is
> acceptable too. Thanks!
>
>
>
> --
> 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-tp5717915p5717919.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

Posted by TG <ta...@hotmail.com>.
Alex, great info.

I can't downgrade, as we are testing Cloud endpoints, which is only
available in 1.7.3.

Any idea what is breaking Tapestry 5.3.6 in this case? Any workaround is
acceptable too. Thanks!



--
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-tp5717915p5717919.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

Posted by Alex Kotchnev <ak...@gmail.com>.
I ran into this issue after I upgraded to GAE 1.7.2 or 1.7.3. Switching to
1.7.1.1 resolved the issue.

Cheers - Alex K

On Sun, Nov 11, 2012 at 9:57 PM, Muhammad Gelbana <m....@gmail.com>wrote:

> Any more info about the error message(s) ? What about the stacktrace ?
> Could this be more about GAE and not Tapestry ?
>
> On Mon, Nov 12, 2012 at 12:21 AM, TG <ta...@hotmail.com> wrote:
>
> > 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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

Posted by Muhammad Gelbana <m....@gmail.com>.
Any more info about the error message(s) ? What about the stacktrace ?
Could this be more about GAE and not Tapestry ?

On Mon, Nov 12, 2012 at 12:21 AM, TG <ta...@hotmail.com> wrote:

> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

Posted by "arnold.minde@gmail.com" <ar...@gmail.com>.
This is caused by this issue:
http://code.google.com/p/googleappengine/issues/detail?id=8201



--
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-tp5717915p5719842.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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