You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jeroen Kransen (JIRA)" <ji...@apache.org> on 2010/09/04 13:56:35 UTC

[jira] Created: (WICKET-3030) ListMultipleChoice causes java.lang.IllegalStateException

ListMultipleChoice causes java.lang.IllegalStateException
---------------------------------------------------------

                 Key: WICKET-3030
                 URL: https://issues.apache.org/jira/browse/WICKET-3030
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5-M1
         Environment: Reproduced on Tomcat 6.0 as well as Gassfish v3
            Reporter: Jeroen Kransen


When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 

SEVERE: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException
	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:619)

The code that triggers the Exception (does not occur without) is this: 

Java:

public class FilterPanel extends Panel {

	public FilterPanel(String id, List<String> choices) {
		super(id);
		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
		add(photographerChoice);
	}
}

HTML:

<wicket:panel>
	<div>
		<select wicket:id="filter.choices">
			<option>choice0</option>
			<option>choice1</option>
		</select>
	</div>
</wicket:panel>

There is no more logging besides this, and no more "causes" Exceptions. Good luck! I'll be happy to supply more info.

Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Jeroen Kransen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906341#action_12906341 ] 

Jeroen Kransen commented on WICKET-3030:
----------------------------------------

Just ran it with Jetty, and now I get the stack trace too. Apparently Tomcat (and Glassfish) swallows the info instead of showing it. 

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>            Priority: Minor
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-3030.
-----------------------------------

    Resolution: Invalid

no, it does not make sense to create the listchoice without a model, because then it cannot save the selection anywhere.

the constructor without a model exists to support compoundpropertymodels which are implicitly resolved when used.

the exception you have pasted is incorrect, there should have been another exception before it stating that the component could not save its value because it could not find a model.

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>            Priority: Minor
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906284#action_12906284 ] 

Igor Vaynberg commented on WICKET-3030:
---------------------------------------

ERROR - DefaultExceptionMapper     - Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [Form [Component id = form]] threw an exception
	at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:222)
	at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:193)
	at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:171)
	at org.apache.wicket.request.RequestHandlerStack.executeRequestHandler(RequestHandlerStack.java:84)
	at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:219)
	at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:258)
	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:135)
	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
	at org.mortbay.jetty.Server.handle(Server.java:295)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:841)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:639)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:211)
	... 22 more
Caused by: java.lang.IllegalStateException: Attempt to set model object on null model of component: form:filter:filter.choices
	at org.apache.wicket.Component.setDefaultModelObject(Component.java:3156)
	at org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:393)
	at org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:217)
	at org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:1)
	at org.apache.wicket.util.visit.Visits.visitComponentsPostOrderHelper(Visits.java:202)
	at org.apache.wicket.util.visit.Visits.visitComponentsPostOrderHelper(Visits.java:191)
	at org.apache.wicket.util.visit.Visits.visitComponentsPostOrderHelper(Visits.java:191)
	at org.apache.wicket.util.visit.Visits.visitComponentsPostOrder(Visits.java:172)
	at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:377)
	at org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1756)
	at org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1721)
	at org.apache.wicket.markup.html.form.Form.process(Form.java:871)
	at org.apache.wicket.markup.html.form.Form.process(Form.java:806)
	at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:771)
	... 27 more

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>            Priority: Minor
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Jeroen Kransen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeroen Kransen updated WICKET-3030:
-----------------------------------

    Description: 
When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 

SEVERE: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException
	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:619)

The code that triggers the Exception (does not occur without) is this: 

Java:

public class FilterPanel extends Panel {

	public FilterPanel(String id, List<String> choices) {
		super(id);
		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
		add(photographerChoice);
	}
}

HTML:

<wicket:panel>
	<div>
		<select wicket:id="filter.choices">
			<option>choice0</option>
			<option>choice1</option>
		</select>
	</div>
</wicket:panel>

There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.

Jeroen

  was:
When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 

SEVERE: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException
	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:619)

The code that triggers the Exception (does not occur without) is this: 

Java:

public class FilterPanel extends Panel {

	public FilterPanel(String id, List<String> choices) {
		super(id);
		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
		add(photographerChoice);
	}
}

HTML:

<wicket:panel>
	<div>
		<select wicket:id="filter.choices">
			<option>choice0</option>
			<option>choice1</option>
		</select>
	</div>
</wicket:panel>

There is no more logging besides this, and no more "causes" Exceptions. Good luck! I'll be happy to supply more info.

Jeroen


> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Jeroen Kransen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeroen Kransen updated WICKET-3030:
-----------------------------------

    Attachment: myproject.zip

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906350#action_12906350 ] 

Igor Vaynberg commented on WICKET-3030:
---------------------------------------

im sure they log it to some file somewhere...

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>            Priority: Minor
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Jeroen Kransen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeroen Kransen reopened WICKET-3030:
------------------------------------


Reopened as I was able to modify your project to make it fail as well. The difference is the constructor for ListMultipleChoice without a Model argument. When I removed that in your project, I got the same error. Maybe it doesn't make sense to create a ListMultipleChoice without a Model, I leave that up to you to decide. But then there should be no such constructor or I should get a better error message. I'll lower the priority as there seems to be a good work-around.

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Jeroen Kransen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeroen Kransen updated WICKET-3030:
-----------------------------------

    Priority: Minor  (was: Major)

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>            Priority: Minor
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Jeroen Kransen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906274#action_12906274 ] 

Jeroen Kransen edited comment on WICKET-3030 at 9/4/10 3:16 PM:
----------------------------------------------------------------

Reopened as I was able to modify your project to make it fail as well. The difference is the constructor for ListMultipleChoice without a Model argument. When I removed that in your project, I got the same error. Maybe it doesn't make sense to create a ListMultipleChoice without a Model, I leave that up to you to decide. But then there should be no such constructor or I should get a better error message. I'll lower the priority as there seems to be a good work-around.

Please note that I am testing against 1.5-M1 as I stated in the issue. I have currently no access to the snapshot. 

      was (Author: jkransen):
    Reopened as I was able to modify your project to make it fail as well. The difference is the constructor for ListMultipleChoice without a Model argument. When I removed that in your project, I got the same error. Maybe it doesn't make sense to create a ListMultipleChoice without a Model, I leave that up to you to decide. But then there should be no such constructor or I should get a better error message. I'll lower the priority as there seems to be a good work-around.
  
> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>            Priority: Minor
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Jeroen Kransen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeroen Kransen updated WICKET-3030:
-----------------------------------

        Summary: ListMultipleChoice causes IllegalStateException  (was: ListMultipleChoice causes java.lang.IllegalStateException)
    Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3  (was: Reproduced on Tomcat 6.0 as well as Gassfish v3)

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "causes" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Jeroen Kransen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906280#action_12906280 ] 

Jeroen Kransen commented on WICKET-3030:
----------------------------------------

Ok, I agree that there should be a Model, but I think a decent error message would be so much better than an IllegalStateException. And why don't you run the project I just added before calling me a liar?

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>            Priority: Minor
>         Attachments: myproject.rar, myproject.zip
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-3030.
-----------------------------------

      Assignee: Igor Vaynberg
    Resolution: Cannot Reproduce

tried to reproduce, but could not. please attach a complete quickstart project that fails.

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>            Assignee: Igor Vaynberg
>         Attachments: myproject.rar
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-3030) ListMultipleChoice causes IllegalStateException

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-3030:
----------------------------------

    Attachment: myproject.rar

attaching a project that failed to reproduce the error

> ListMultipleChoice causes IllegalStateException
> -----------------------------------------------
>
>                 Key: WICKET-3030
>                 URL: https://issues.apache.org/jira/browse/WICKET-3030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Reproduced on Tomcat 6.0.29 as well as Glassfish v3
>            Reporter: Jeroen Kransen
>         Attachments: myproject.rar
>
>
> When I use a org.apache.wicket.markup.html.form.ListMultipleChoice  in a Panel, it shows up ok on the screen. When I submit the form, I get a java.lang.IllegalStateException. Full stack trace: 
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
> 	at org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse$SendRedirectAction.invoke(BufferedWebResponse.java:275)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439)
> 	at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:87)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:145)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:188)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> 	at java.lang.Thread.run(Thread.java:619)
> The code that triggers the Exception (does not occur without) is this: 
> Java:
> public class FilterPanel extends Panel {
> 	public FilterPanel(String id, List<String> choices) {
> 		super(id);
> 		ListMultipleChoice<String> photographerChoice = new ListMultipleChoice<String>("filter.choices", choices).setMaxRows(5);
> 		add(photographerChoice);
> 	}
> }
> HTML:
> <wicket:panel>
> 	<div>
> 		<select wicket:id="filter.choices">
> 			<option>choice0</option>
> 			<option>choice1</option>
> 		</select>
> 	</div>
> </wicket:panel>
> There is no more logging besides this, and no more "caused by" Exceptions. Good luck! I'll be happy to supply more info.
> Jeroen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.