You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Milind <m....@maxxton.com> on 2014/11/25 06:22:40 UTC

Wicket6 setResponsePage() stackoverflow error.

Hello,

I am using Liferay "liferay-portal-6.2-ce-ga2" with Wicket6 and when
setResponsePage(MyClass.class, params); is called it gives stackoverflow
error. Does anyone came across similar error?

http://www.liferay.com/community/forums/-/message_boards/message/45604006
<http://www.liferay.com/community/forums/-/message_boards/message/45604006>  



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Martin Grigorov <mg...@apache.org>.
The only way I see this to happen is if SomeHttpServletRequestWrapper calls
setRequest(this).
There is no such usage of javax.servlet.ServletRequestWrapper#setRequest()
in wicketstuff-portlet code.
So it should be in Liferay's code ...

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Nov 25, 2014 at 1:38 PM, Milind <m....@maxxton.com> wrote:

> Reported bug is closed
> https://issues.apache.org/bugzilla/show_bug.cgi?id=57256
>
> Mark Thomas 2014-11-25 11:38:08 UTC
> You (or the application you are using) has created a wrapper that wraps
> itself.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668551.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Milind <m....@maxxton.com>.
Reported bug is closed
https://issues.apache.org/bugzilla/show_bug.cgi?id=57256 

Mark Thomas 2014-11-25 11:38:08 UTC
You (or the application you are using) has created a wrapper that wraps
itself.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668551.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Martin Grigorov <mg...@apache.org>.
I guess it will be closed with message like "Bugzilla is not support forum.
Please use the mailing lists" :-)
But let's see.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Nov 25, 2014 at 12:20 PM, Milind <m....@maxxton.com> wrote:

> Its updated at
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=57256
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668548.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Milind <m....@maxxton.com>.
Its updated at 

https://issues.apache.org/bugzilla/show_bug.cgi?id=57256



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668548.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Martin Grigorov <mg...@apache.org>.
I'd suggest to ask in Tomcat users@ mailing list.
The weird cycle is in their code.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56339#c4 says it should
have been fixed in 7.0.54.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Nov 25, 2014 at 10:29 AM, Milind <m....@maxxton.com> wrote:

> Hi Martin,
>
> I am using tomcat-7.0.42,  tested the same with tomcat-7.0.47/54/57 too
> still same issue happened.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668543.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Milind <m....@maxxton.com>.
Hi Martin,

I am using tomcat-7.0.42,  tested the same with tomcat-7.0.47/54/57 too
still same issue happened.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668543.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

See http://stackoverflow.com/a/25147003
Do you know which version of Tomcat is in use behind the scenes ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Nov 25, 2014 at 9:01 AM, Milind <m....@maxxton.com> wrote:

> some part of web.xml as:
>
>
>
>   <filter>
>     <filter-name>MyPortlet</filter-name>
>     <filter-class>
>       org.apache.wicket.portlet.PortletFilter
>     </filter-class>
>     <init-param>
>       <param-name>applicationClassName</param-name>
>       <param-value>
>         test.portlet.myportlet.WicketApplication
>       </param-value>
>     </init-param>
>   </filter>
>
>
>   <filter-mapping>
>     <filter-name>MyPortlet</filter-name>
>     <url-pattern>/MyPortlet/*</url-pattern>
>     <dispatcher>REQUEST</dispatcher>
>     <dispatcher>FORWARD</dispatcher>
>     <dispatcher>INCLUDE</dispatcher>
>   </filter-mapping>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668541.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Milind <m....@maxxton.com>.
some part of web.xml as:


 
  <filter>
    <filter-name>MyPortlet</filter-name>
    <filter-class>
      org.apache.wicket.portlet.PortletFilter
    </filter-class>
    <init-param>
      <param-name>applicationClassName</param-name>
      <param-value>
        test.portlet.myportlet.WicketApplication
      </param-value>
    </init-param>
  </filter>
  
  
  <filter-mapping>
    <filter-name>MyPortlet</filter-name>
    <url-pattern>/MyPortlet/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668541.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Paul Bors <pa...@bors.ws>.
I'm no expert but it looks as if your filter from Liferay is looping calls
into Wicket's filter and vice-versa.

What's your web.xml config?

On Tue, Nov 25, 2014 at 12:22 AM, Milind <m....@maxxton.com> wrote:

> Hello,
>
> I am using Liferay "liferay-portal-6.2-ce-ga2" with Wicket6 and when
> setResponsePage(MyClass.class, params); is called it gives stackoverflow
> error. Does anyone came across similar error?
>
> http://www.liferay.com/community/forums/-/message_boards/message/45604006
> <http://www.liferay.com/community/forums/-/message_boards/message/45604006
> >
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Martin Grigorov <mg...@apache.org>.
Put a breakpoint and see what kind of instance is the request wrapper that
Mark says is problematic.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Nov 26, 2014 at 1:25 PM, Milind <m....@maxxton.com> wrote:

> Got one link:
> http://w3facility.org/question/stackoverflowerror-upon-running-project/
>
> but when when its changed to tomcat 7.0.52 then also i got the same error.
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668571.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Milind <m....@maxxton.com>.
Got one link:
http://w3facility.org/question/stackoverflowerror-upon-running-project/

but when when its changed to tomcat 7.0.52 then also i got the same error. 


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668571.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Milind <m....@maxxton.com>.
Hi Gabriel, yes we are already changed it to
 *liferay-web-xml-enabled=false*



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668569.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Gabriel Landon <gl...@piti.pf>.
Well I don't known if the code I've modified is relieable enough...
I've just debug what seems to be wrong for my personal usecases.
Feel free to use it and improve it!

For me the wicketuff-portlet code is a complete maze!!

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668566.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Rob Sonke <ro...@tigrou.nl>.
Gabriel, did you consider offering the patch to the wicketstuff project?
Maybe those changes are general improvements for all of us. Thanks for
sharing anyway!

On Tue, Nov 25, 2014 at 7:49 PM, Gabriel Landon <gl...@piti.pf> wrote:

> I know it's not the error you report, but did you add
> "liferay-web-xml-enabled=false" in the liferay-plugin-package.properties
> file.
> I had to do that to have portlet work with liferay 6.1 and 6.2
> see :
>
> http://apache-wicket.1842946.n4.nabble.com/wicket-portlet-and-liferay-6-1-td4650001.html
>
> Also I'm not using PageParameters, but constructors :
> setResponsePage(new MyClass(param1, param2, ...))
>
> I also had to tweak a few files in the wicketstuff-portlet :
> -PortletRequesMapper (to handle
> BookmarkableListenerInterfaceRequestHandler)
> -WicketPorlet and ResponseStat (to fix some ajax issues)
> wicketstuff-portlet-6.jar
> <
> http://apache-wicket.1842946.n4.nabble.com/file/n4668558/wicketstuff-portlet-6.jar
> >
>
> But still from time to time I've got problem with wicket-portlet and
> liferay
> with an infinite loop that use 100% CPU. Unfortunatly I'm not skilled
> enough
> in Porlet spec to fix this. So from my point of view wicketstuff-portlet is
> not production safe anymore...
>
> Hope this help,
> Gabriel.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668558.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket6 setResponsePage() stackoverflow error.

Posted by Gabriel Landon <gl...@piti.pf>.
I know it's not the error you report, but did you add
"liferay-web-xml-enabled=false" in the liferay-plugin-package.properties
file.
I had to do that to have portlet work with liferay 6.1 and 6.2
see :
http://apache-wicket.1842946.n4.nabble.com/wicket-portlet-and-liferay-6-1-td4650001.html

Also I'm not using PageParameters, but constructors :
setResponsePage(new MyClass(param1, param2, ...))

I also had to tweak a few files in the wicketstuff-portlet :
-PortletRequesMapper (to handle BookmarkableListenerInterfaceRequestHandler)
-WicketPorlet and ResponseStat (to fix some ajax issues)
wicketstuff-portlet-6.jar
<http://apache-wicket.1842946.n4.nabble.com/file/n4668558/wicketstuff-portlet-6.jar>  

But still from time to time I've got problem with wicket-portlet and liferay
with an infinite loop that use 100% CPU. Unfortunatly I'm not skilled enough
in Porlet spec to fix this. So from my point of view wicketstuff-portlet is
not production safe anymore...

Hope this help,
Gabriel.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-setResponsePage-stackoverflow-error-tp4668538p4668558.html
Sent from the Users forum mailing list archive at Nabble.com.

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