1 2 Previous Next 20 Replies Latest reply on Nov 28, 2008 10:36 PM by Frederic Nauleau

    conversation declaration already exists ?

    Gaël Beaudoin Newbie


      I'm using a natural conversation as defined in my pages.xml file :

      <conversation name="Bookseller"

      It works fine.

      But, I have this exception when I refresh the page (sometimes several times, 3, 4 times, etc) :

      java.lang.IllegalStateException: <conversation/> declaration already exists for [Bookseller]
              at org.jboss.seam.navigation.Pages.parseConversation(Pages.java:1068)
              at org.jboss.seam.navigation.Pages.parse(Pages.java:1026)
              at org.jboss.seam.navigation.Pages.initialize(Pages.java:130)
              at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:61)

      I've read the seam sources, Pages.java the error is thrown just like I added the conversation definition twice in my pages.xml file :

      if (conversations.containsKey(name))
         throw new IllegalStateException("<conversation/> declaration already exists for [" + name + "]");

      But it's because it's parsed several time for one page display. Here is the debug log about it  :

      2008-09-09 13:57:55,641 DEBUG [org.jboss.seam.navigation.Pages] reading pages.xml file: /WEB-INF/pages.xml ( * appears several times * )
      2008-09-09 13:57:55,643 DEBUG [org.jboss.seam.navigation.Pages] reading pages.xml file: modules/thesaurus/Thesaurus.page.xml
      2008-09-09 13:57:55,645 DEBUG [org.jboss.seam.navigation.Pages] reading pages.xml file: modules/thesaurus/TopicList.page.xml
      2008-09-09 13:57:55,646 DEBUG [org.jboss.seam.navigation.Pages] reading pages.xml file: modules/i18n/admin_CurrencyList.page.xml
      2008-09-09 13:57:55,648 DEBUG [org.jboss.seam.navigation.Pages] reading pages.xml file: modules/booksellers/Bookseller.page.xml
      2008-09-09 13:57:55,650 DEBUG [org.jboss.seam.navigation.Pages] reading pages.xml file: modules/i18n/Language.page.xml

      And several other dozens of lines like this one.

      I've looked in the forum and google, nothing found about this.

      Do you have an idea why this happens ? Could this be a seam bug ?
      I'm using seam trunk r8922 (after 2.1.0-BETA1).


        1 2 Previous Next