5 Replies Latest reply on Mar 22, 2007 4:14 PM by J.R. Ector

    Using convertEntity and still getting

    J.R. Ector Newbie

      Even after overriding equals() and hash() and using convertEntity I still get this error:

      Value is not a valid option


      I'm not sure what else there is to do.
      Here's my select:

      <h:selectManyListbox id="cppmsUsers" value="#{profileHome.instance.cppmsUsers}">
      <s:selectItems value="#{cppmsUserList.resultList}" var="cppmsUser" label="#{cppmsUser.name}"
       noSelectionLabel="Please Select..." hideNoSelectionLabel="true"/>
      <ec:convertEntity entityClass="my.package.CppmsUser"/>
      </h:selectManyListbox>


      And the relevant getters/setters:

      
       @ManyToMany(mappedBy = "cppmsUsers")
       public List<Profile> getProfiles()
       {
       return this.profiles;
       }
      


       @ManyToMany
       @JoinTable(name = "PROJECT_ANALYST", joinColumns =
       { @JoinColumn(name = "PROJECT_NUMBER") }, inverseJoinColumns =
       { @JoinColumn(name = "USER_ID") })
       public List<CppmsUser> getCppmsUsers()
       {
       return this.cppmsUsers;
       }


      Any help would be appreciated.

        • 1. Re: Using convertEntity and still getting
          Tino Nitze Newbie

          Don't know if that will help you at all, but I just switched to the current cvs version, which in fact fixes a npe thrown when using s:convertEntity, which would also be my suggestion. Make use of s:convertEntity, and use the latest cvs ...

          • 2. Re: Using convertEntity and still getting
            Pete Muir Master

            Please use s:convertEntity from CVS as atzbert said

            • 3. Re: Using convertEntity and still getting
              J.R. Ector Newbie

              I downloaded the jboss-seam project but, it seems to be missing the
              org.jboss.seam.text package.
              Which folder should that be in?

              • 4. Re: Using convertEntity and still getting
                J.R. Ector Newbie

                Apparently that was just a problem with eclipse.
                Everything got built but, it appears to be incompatible with icefaces 1.5.3.
                It's throwing this exception:

                15:17:35,439 ERROR [SeamUtilities] Exception loading seam environment:
                java.lang.NoSuchMethodException: org.jboss.seam.core.Manager.encodeConversationId(java.lang.String)
                 at java.lang.Class.getMethod(Class.java:1581)
                 at com.icesoft.util.SeamUtilities.loadSeamEnvironment(SeamUtilities.java:250)
                 at com.icesoft.util.SeamUtilities.<clinit>(SeamUtilities.java:49)
                 at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.checkSeamRequestParameters(PersistentFacesServlet.jav
                a:483)
                 at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:326)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                 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)


                • 5. Re: Using convertEntity and still getting
                  J.R. Ector Newbie

                  One more thing. The version I checked out from cvs does not contain a convertEntity tag.

                  Is the path in the wiki correct?

                  cvs -d:pserver:anonymous@anoncvs.forge.jboss.com:/cvsroot/jboss co jboss-seam