[jboss-user] [JBoss Seam] - Re: IllegalArgumentException when pre-loading SFSB instance

asookazian do-not-reply at jboss.com
Tue Sep 11 13:45:52 EDT 2007


when I click the Run button on the JSF:

<h:commandButton id="searchButton" value="Run" action="#{columnsBean.viewRoles}">

the wrong method is being exec'd on the SFSB based on the output in the server.log.  It's calling the getChoices() method in the SFSB when I click Run button.  

Why does this happen?  seems like a bug.  I will try with a fresh JBoss extraction...

2007-09-11 10:42:14,796 INFO  [org.jboss.seam.example.booking.ColumnsBean] Retrieving all possible selections
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] after phase: PROCESS_VALIDATIONS(3)
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.afterPhase
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.validation
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.validation
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.validation
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.validation
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.validation
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.validation
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-09-11 10:42:14,796 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.validationFailed
  | 2007-09-11 10:42:14,796 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-icefaces].[Blocking Servlet]] Servlet.service() for servlet Blocking Servlet threw exception
  | java.lang.IllegalArgumentException: Value binding '#{columnsBean.choices}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /testDatatable.xhtml][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id1][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id7][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: document][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: container][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: content][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id15][Class: javax.faces.component.html.HtmlForm,Id: _id16][Class: javax.faces.component.html.HtmlPanelGrid,Id: roles_grid][Class: javax.faces.component.html.HtmlPanelGrid,Id: select_grid][Class: javax.faces.component.html.HtmlSelectManyCheckbox,Id: allRoles][Class: javax.faces.component.UISelectItems,Id: _id23]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of typ!
 e : null




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083135#4083135

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083135



More information about the jboss-user mailing list