10 Replies Latest reply on Aug 16, 2006 9:45 AM by Pete Muir

    specific @SelectItem Question -

    dudududu Novice

      please help me with this issue , I tried to fix it in the last 4 days with no success

      I'm using the SelectItems DataBinder and it doesn't work

      I am getting this Exception , please tell me what do I do wrong

      the only differences betwen my EAR and the example EAR file of seam-selectitems that do work for me is the version of jboss-seam.jar(I'm using the newset - 1.0.1GA)
      it seem to me that it does called the method fetchLanguges()(@factory method)
      I tried to change the SB to be SF -> i am getting there a different exception
      that says that the List doesn't contains Object instance of SelectItem.


      11:03:27,697 INFO [STDOUT] Hibernate: select codestable0_.ID as ID1_, codestable0_.TABLE as TABLE1_, codestable0_.DESCRIPTION as DESCRIPT3_1_, codestable0_.CODE as CODE1_, codestable0_.LABEL as LABEL1_ from wannabet.codes_table codestable0_ where codestable0_.TABLE=?
      11:03:27,867 INFO [STDOUT] Hibernate: select codestable0_.ID as ID1_, codestable0_.TABLE as TABLE1_, codestable0_.DESCRIPTION as DESCRIPT3_1_, codestable0_.CODE as CODE1_, codestable0_.LABEL as LABEL1_ from wannabet.codes_table codestable0_ where codestable0_.TABLE=?
      11:03:27,887 ERROR [STDERR] 13/08/2006 11:03:27 com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/login/register.xhtml]
      java.lang.NullPointerException
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:556)
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:531)
      at javax.naming.InitialContext.bind(InitialContext.java:359)
      at org.jboss.seam.contexts.StatelessContext.set(StatelessContext.java:42)
      at org.jboss.seam.Component.handleFactoryMethodResult(Component.java:1415)
      at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1390)
      at org.jboss.seam.Component.getInstance(Component.java:1339)
      at org.jboss.seam.Component.getInstance(Component.java:1323)
      at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
      at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
      at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
      at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
      at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
      at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
      at javax.faces.component.UISelectItems.getValue(UISelectItems.java:55)
      at org.apache.myfaces.shared_impl.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:102)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:477)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:453)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:277)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:251)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:54)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:98)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      11:03:27,937 INFO [STDOUT] Hibernate: select codestable0_.ID as ID1_, codestable0_.TABLE as TABLE1_, codestable0_.DESCRIPTION as DESCRIPT3_1_, codestable0_.CODE as CODE1_, codestable0_.LABEL as LABEL1_ from wannabet.codes_table codestable0_ where codestable0_.TABLE=?


      my stateless-
      @Stateless
      @Name("login")
      public class LoginAction
       implements Login
      {
       private static final String USER_VAR = "loggedIn";
      
       @PersistenceContext
       private EntityManager em;
      
       @In
       Context sessionContext;
      
      
       @In(required=false) @Valid
       CodesTable codesTable;
      
       @SelectItems(labelMethod="getLabel",valueMethod="getId")
       public List<CodesTable> lang;
      
       @Factory("lang")
       public void fetchLanguages()
       {
       /*ArrayList<SelectItem> a = new ArrayList<SelectItem>();
       SelectItem selectedItem = new SelectItem(1,"one");
       SelectItem selectedItem1 = new SelectItem(2,"two");
       a.add(selectedItem);
       a.add(selectedItem1);
       selectedItem.*/
       List resultList = em.createQuery("select c from CodesTable c where c.table=:table")
       .setParameter("table","languages").getResultList();
       this.lang = resultList;
      
       }
      
      
      
      
      
      }


      here is my xhtml-
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html">
      <body>
      <ui:composition template="/WEB-INF/template.xhtml">
       <ui:define name="topnav">
       <ui:include src="/WEB-INF/incl/store_nav.xhtml">
       <ui:param name="page" value="home" />
       </ui:include>
       </ui:define>
      
       <ui:define name="sidebar">
       <ui:include src="/WEB-INF/incl/login.xhtml" />
       </ui:define>
      
       <ui:define name="body">
       <f:view>
       <h:form>
       <h:outputText value="Registration date: #{user.regDate}" rendered="#{loggedIn!=null}" />
      
       <h:panelGrid columns="2">
       <h:outputText value="First name: " />
       <h:inputText value="#{user.firstName}" />
       <h:outputText value="Last name: " />
       <h:inputText value="#{user.lastName}" />
       <h:outputText value="Username: " />
       <h:panelGroup>
       <h:inputText id="usernameField" value="#{user.username}" />
       <h:message for="usernameField" />
       </h:panelGroup>
       <h:outputText value="Password: " />
       <h:inputSecret value="#{user.password}" />
       <h:outputText value="Language: " />
       <h:selectOneMenu >
       <f:selectItems value="#{lang}" />
       </h:selectOneMenu>
       </h:panelGrid>
      
       <h:commandButton value="Register" action="#{login.register}" rendered="#{loggedIn==null}" />
       <h:commandButton value="Update" action="#{login.update}" rendered="#{loggedIn!=null}" />
       </h:form>
       </f:view>
       </ui:define>
      </ui:composition>
      </body>
      </html>
      

      Thanks

        • 1. Re: specific @SelectItem Question -
          dudududu Novice

          anyone?! any start point?

          • 2. Re: specific @SelectItem Question -
            Pete Muir Master

            I haven't seen CptnKirk who wrote this SelectItems implementation around here for a while. I guess he is busy with something else ;)

            • 3. Re: specific @SelectItem Question -
              dudududu Novice

              ok I found what happened(I guess)
              I had this line in my SLSB:

               @In
               private Context sessionContext;

              and I guess it cleaned my context
              I removed those lines and now I am getting new Exception..
              any idea?!?

              java.lang.IllegalArgumentException: Value binding '#{cLang}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /login/register.xhtml][Class: javax.faces.component.html.HtmlForm,Id: _id38][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id40][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _id51][Class: javax.faces.component.UISelectItems,Id: _id52]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
              


              I cahnged the @factory and the varible name to be cLang

              Thanks.

              • 4. Re: specific @SelectItem Question -
                Pete Muir Master

                It means that the context variable is null, is the factory method being called?

                • 5. Re: specific @SelectItem Question -
                  dudududu Novice

                  no it doesn't get called what do you recommend?!

                  this is my code

                  @Stateless
                  @Scope(ScopeType.APPLICATION)
                  @Name("login")
                  public class LoginAction
                   implements Login,Serializable
                  {
                  
                   private static final long serialVersionUID = 1L;
                  
                   private static final String USER_VAR = "loggedIn";
                  
                   @PersistenceContext
                   private EntityManager em;
                  
                   @In
                   private Context sessionContext;
                  
                  
                   @SelectItems(labelMethod="getLabel",disabledMethod="getDisabled")
                   private List<Codes> cLang;
                  
                   @Factory("cLang")
                   public void getLanguages()
                   {
                   List resultList = em.createQuery("select c from Codes c where c.table = :table")
                   .setParameter("table","languages")
                   .getResultList();
                   this.cLang = resultList;
                  
                   }
                  
                  
                  
                  
                  
                  
                   }
                  


                  • 6. Re: specific @SelectItem Question -
                    Pete Muir Master

                    Is that the first exception? If not, please post the whole stacktrace of the first exception to occur after accessing the page. Can you also post the Codes class.

                    I would expect the factory method to get called given the code you posted, can you confirm it doesn't (put a breakpoint at the entry to and conform it doesn't or put a log output in it) as it looks like it is from your earlier stack trace.

                    • 7. Re: specific @SelectItem Question -
                      dudududu Novice

                      thanks for helping us!

                      well I am sure it doesn't call the factory I put a breakpoint there..

                      beforeI added @Scope(ScopeType.APPLICATION)
                      it did called the factory method but then I got NullPointerException
                      you can see that in my first Post

                      here is the Codes code:

                      
                      @Entity
                      @Scope(ScopeType.SESSION)
                      @Name("codes")
                      @Table(name="codes")
                      
                      public class Codes implements java.io.Serializable {
                      
                      
                       // Fields
                      
                       private int id;
                       private String label;
                       private String table;
                       private String code;
                       private String description;
                       private Boolean disabled;
                      
                      
                       // Constructors
                      
                       /** default constructor */
                       public Codes() {
                       }
                      
                       /** minimal constructor */
                       public Codes(int id, String table, String code) {
                       this.id = id;
                       this.table = table;
                       this.code = code;
                       }
                      
                       /** full constructor */
                       public Codes(int id, String label, String table, String code, String description, Boolean disabled) {
                       this.id = id;
                       this.label = label;
                       this.table = table;
                       this.code = code;
                       this.description = description;
                       this.disabled = disabled;
                       }
                      
                      
                      
                       // Property accessors
                       @Id
                       @Column(name="ID", unique=true, nullable=false, insertable=true, updatable=true)
                      
                       public int getId() {
                       return this.id;
                       }
                      
                       public void setId(int id) {
                       this.id = id;
                       }
                       @Column(name="LABEL", unique=false, nullable=true, insertable=true, updatable=true, length=2000)
                      
                       public String getLabel() {
                       return this.label;
                       }
                      
                       public void setLabel(String label) {
                       this.label = label;
                       }
                       @Column(name="TABLE", unique=false, nullable=false, insertable=true, updatable=true, length=200)
                      
                       public String getTable() {
                       return this.table;
                       }
                      
                       public void setTable(String table) {
                       this.table = table;
                       }
                       @Column(name="CODE", unique=false, nullable=false, insertable=true, updatable=true, length=100)
                      
                       public String getCode() {
                       return this.code;
                       }
                      
                       public void setCode(String code) {
                       this.code = code;
                       }
                       @Column(name="DESCRIPTION", unique=false, nullable=true, insertable=true, updatable=true, length=2000)
                      
                       public String getDescription() {
                       return this.description;
                       }
                      
                       public void setDescription(String description) {
                       this.description = description;
                       }
                       @Column(name="disabled", unique=false, nullable=true, insertable=true, updatable=true)
                       public Boolean getDisabled() {
                       return this.disabled;
                       }
                      
                       public void setDisabled(Boolean disabled) {
                       this.disabled = disabled;
                       }
                      }
                      

                      here is the exception:

                      09:08:48,767 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 1m:167ms
                      09:09:22,375 INFO [Pages] reading pages.xml
                      09:09:32,740 ERROR [STDERR] 15/08/2006 09:09:32 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/C:/wb/JBoss/J404/server/default/tmp/deploy/tmp5228wb.ear-contents/wb-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
                      09:09:32,850 ERROR [STDERR] 15/08/2006 09:09:32 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/C:/wb/JBoss/J404/server/default/tmp/deploy/tmp5228wb.ear-contents/wb-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
                      09:09:32,880 ERROR [STDERR] 15/08/2006 09:09:32 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/C:/wb/JBoss/J404/server/default/tmp/deploy/tmp5228wb.ear-contents/wb-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam.taglib.xml
                      09:09:32,940 ERROR [STDERR] 15/08/2006 09:09:32 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/C:/wb/JBoss/J404/server/default/tmp/deploy/tmp5228wb.ear-contents/wb-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
                      09:09:33,050 ERROR [STDERR] 15/08/2006 09:09:33 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/C:/wb/JBoss/J404/server/default/tmp/deploy/tmp5228wb.ear-contents/wb-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
                      09:09:33,110 ERROR [STDERR] 15/08/2006 09:09:33 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/C:/wb/JBoss/J404/server/default/tmp/deploy/tmp5228wb.ear-contents/wb-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
                      09:09:34,442 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
                      09:09:34,442 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
                      09:09:34,442 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
                      09:09:35,564 INFO [STDOUT] Hibernate: select codes0_.ID as ID1_, codes0_.TABLE as TABLE1_, codes0_.DESCRIPTION as DESCRIPT3_1_, codes0_.CODE as CODE1_, codes0_.LABEL as LABEL1_, codes0_.disabled as disabled1_ from wb.codes codes0_ where codes0_.TABLE=?
                      09:09:35,774 INFO [STDOUT] Hibernate: select codes0_.ID as ID1_, codes0_.TABLE as TABLE1_, codes0_.DESCRIPTION as DESCRIPT3_1_, codes0_.CODE as CODE1_, codes0_.LABEL as LABEL1_, codes0_.disabled as disabled1_ from wb.codes codes0_ where codes0_.TABLE=?
                      09:09:35,774 ERROR [STDERR] 15/08/2006 09:09:35 com.sun.facelets.FaceletViewHandler handleRenderException
                      SEVERE: Error Rendering View[/login/register.xhtml]
                      java.lang.IllegalArgumentException: Value binding '#{cLang}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /login/register.xhtml][Class: javax.faces.component.html.HtmlForm,Id: _id38][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id40][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _id51][Class: javax.faces.component.UISelectItems,Id: _id52]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
                      at org.apache.myfaces.shared_impl.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:141)
                      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:477)
                      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:453)
                      at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:277)
                      at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:251)
                      at org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:54)
                      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
                      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442)
                      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)
                      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:98)
                      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
                      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                      at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                      at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                      at java.lang.Thread.run(Thread.java:595)
                      09:09:35,834 INFO [STDOUT] Hibernate: select codes0_.ID as ID1_, codes0_.TABLE as TABLE1_, codes0_.DESCRIPTION as DESCRIPT3_1_, codes0_.CODE as CODE1_, codes0_.LABEL as LABEL1_, codes0_.disabled as disabled1_ from wb.codes codes0_ where codes0_.TABLE=?

                      in the last line it looks like it does called the factory method but there is 2 bp there...
                      and bk on other places in the code do work for me

                      any idea?


                      • 8. Re: specific @SelectItem Question -
                        dudududu Novice

                        ok , my mistake , it does call the @factory method.

                        • 9. Re: specific @SelectItem Question -
                          dudududu Novice

                          does anyone knows what to do here ? or has way to contact CptnKirk ?

                          Thanks

                          • 10. Re: specific @SelectItem Question -
                            Pete Muir Master

                            No, I'm not sure where the problem is. If you try the version of SelectItems I wrote I'll try to help you if you run into problems.