5 Replies Latest reply on Jul 10, 2007 11:45 AM by leon qian

    touble in richface+ajax4jsf+seam

    leon qian Newbie

      i have a web application that build by richface+ajax4jsf+seam. now i want to show a tree and richface's code belows:

      package com.WCRM.departmenttree;
      
      import java.io.ByteArrayOutputStream;
      import java.io.IOException;
      import java.io.InputStream;
      import java.util.HashMap;
      import java.util.Iterator;
      import java.util.List;
      import java.util.Map;
      import java.util.StringTokenizer;
      
      import javax.ejb.Stateful;
      import javax.persistence.EntityManager;
      import javax.persistence.PersistenceContext;
      
      import org.jboss.seam.annotations.In;
      import org.jboss.seam.annotations.Logger;
      import org.jboss.seam.annotations.Name;
      
      import org.jboss.seam.log.Log;
      import org.richfaces.component.TreeNode;
      
      import com.WCRM.customer.Customer;
      import com.WCRM.customer.CustomerEditor;
      import com.WCRM.customer.CustomerFinder;
      import com.WCRM.department.Department;
      import com.WCRM.department.DepartmentFinder;
      import com.WCRM.departmenttree.Department1;
      
      import demo.Bean;
      
      public class Library implements TreeNode {
       /**
       *
       */
       private static final long serialVersionUID = -3530085227471752526L;
      
       private Map brachs = null;
      
       private Object state1;
      
       private Object state2;
      
       private Map a = null;
      
       private Map b = null;
      
       @In(create=true)
       private MyBean mybean;
      
      
      
       @In(value="#{customerFinder}")
       private CustomerFinder customerFinder;
      
      
       @Logger
       private static Log log;
      
       private Map getBrachs() {
       System.out.println("private Map getBrachs() ");
       if (this.brachs == null) {
       initData2();
      
       }
      
       return this.brachs;
       }
      
       public void addBrach(Branch brach) {
       System.out.println("public void addBrach(Brach brach) ");
       addChild(Long.toString(brach.getId()), brach);
       brach.setParent(this);
       }
      
       public void addChild(Object identifier, TreeNode child) {
       System.out
       .println("public void addChild(Object identifier, TreeNode child)");
       getBrachs().put(identifier, child);
       }
      
       public TreeNode getChild(Object id) {
       System.out.println("public TreeNode getChild(Object id) ");
       return (TreeNode) getBrachs().get(id);
       }
      
       public Iterator getChildren() {
       System.out.println("public Iterator getChildren()");
       return getBrachs().entrySet().iterator();
       }
      
       public Object getData() {
       System.out.println("public Object getData()");
      
       return this;
       }
      
       public TreeNode getParent() {
       System.out.println("public TreeNode getParent()");
       return null;
       }
      
       public boolean isLeaf() {
       System.out.println("public boolean isLeaf() ");
       // return false;
       return getBrachs().isEmpty();
       }
      
       public void removeChild(Object id) {
       System.out.println("public void removeChild(Object id)");
       getBrachs().remove(id);
       }
      
       public void setData(Object data) {
       }
      
       public void setParent(TreeNode parent) {
       }
      
       public String getType() {
       System.out.println("public String getType()");
       return "library";
       }
      
       private long nextId = 0;
      
       private long getNextId() {
       System.out.println("private long getNextId()");
       return nextId++;
       }
      
       private Map departmentCache = new HashMap();
      
       private Map departmentCache1 = new HashMap();
      
       private Map departmentCache2 = new HashMap();
      
       private Map departmentCache3 = new HashMap();
      
       private Map brachCache = new HashMap();
      
       private Branch getBrachByName(String name, Library library) {
       System.out
       .println("private Brach getBrachByName(String name, Library library)");
       Branch brach = (Branch) brachCache.get(name);
       if (brach == null) {
       brach = new Branch(getNextId());
       brach.setName(name);
       brachCache.put(name, brach);
       library.addBrach(brach);
       }
       return brach;
       }
      
       private Department1 getDepartment1ByTitle(String title, Branch brach) {
       System.out
       .println("private Department getDepartmentByTitle(String title, Brach brach)");
       Department1 department1 = (Department1) departmentCache1.get(title);
       if (department1 == null) {
       department1 = new Department1(getNextId());
       department1.setTitle(title);
       departmentCache1.put(title, department1);
       brach.addDepartment(department1);
       }
       return department1;
       }
      
       private Department2 getDepartment2ByTitle(String title,
       Department1 department1) {
       Department2 department2 = (Department2) departmentCache2.get(title);
       if (department2 == null) {
       department2 = new Department2(getNextId());
       department2.setTitle(title);
       departmentCache2.put(title, department2);
       // brach.addDepartment(department);
       department1.addDepartment(department2);
       }
       return department2;
       }
      
      
       @PersistenceContext
       EntityManager entityManager;
       private void initData2() {
       System.out.println("private void initData2()");
       brachs = new HashMap();
       List<Department> items = null;
       items=entityManager.createQuery(
       "select c from Department c").getResultList();
       if (items.size() > 0) {
       for (Department item : items) {
       System.out.println("line is started:");
      
       String employerTitle = item.getEmployer();
       if (employerTitle != null)
       System.out.println(employerTitle + "\n");
       String brachName = item.getBranch();
       if (brachName != null)
       System.out.println(brachName + "\n");
       String department1name = item.getDepartment1();
       if (department1name != null)
       System.out.println(department1name + "\n");
       String department2name = item.getDepartment2();
       if (department2name != null)
       System.out.println(department2name + "\n");
       Branch brach = getBrachByName(brachName, this);
       Department1 department1 = getDepartment1ByTitle(
       department1name, brach);
       Department2 department2 = getDepartment2ByTitle(
       department2name, department1);
       // Department department3 =
       // getDepartment3ByTitle(department3name,department2);
       Employer employer = new Employer(getNextId());
       employer.setTitle(employerTitle);
       department2.addEmployer(employer);
       System.out.println("line is ended:");
       }
      
       }
       }
      
       private void initData() {
       System.out.println("private void initData()");
       brachs = new HashMap();
       InputStream is = this.getClass().getClassLoader().getResourceAsStream(
       "data.txt");
       ByteArrayOutputStream os = new ByteArrayOutputStream();
       byte[] rb = new byte[1024];
       int read;
       try {
       do {
       read = is.read(rb);
       if (read > 0) {
       os.write(rb, 0, read);
       }
       } while (read > 0);
       String buf = os.toString();
       // if(buf!=null) System.out.println(buf+"\n");
       StringTokenizer toc1 = new StringTokenizer(buf, "\n");
       while (toc1.hasMoreTokens()) {
       System.out.println("line is started:");
       String str = toc1.nextToken();
       // if(str!=null) System.out.println(str+"\n");
       StringTokenizer toc2 = new StringTokenizer(str, "\t");
       String employerTitle = toc2.nextToken();
       if (employerTitle != null)
       System.out.println(employerTitle + "\n");
       String brachName = toc2.nextToken();
       if (brachName != null)
       System.out.println(brachName + "\n");
       String department1name = toc2.nextToken();
       if (department1name != null)
       System.out.println(department1name + "\n");
       String department2name = toc2.nextToken();
       if (department2name != null)
       System.out.println(department2name + "\n");
       Branch brach = getBrachByName(brachName, this);
       Department1 department1 = getDepartment1ByTitle(
       department1name, brach);
       Department2 department2 = getDepartment2ByTitle(
       department2name, department1);
       // Department department3 =
       // getDepartment3ByTitle(department3name,department2);
       Employer employer = new Employer(getNextId());
       employer.setTitle(employerTitle);
       department2.addEmployer(employer);
       System.out.println("line is ended:");
       }
       } catch (IOException e) {
       e.printStackTrace();
       throw new RuntimeException(e);
       }
       }
      
       public Object getState1() {
       System.out.println("public Object getState1() ");
       return state1;
       }
      
       public void setState1(Object state1) {
       System.out.println("public void setState1(Object state1)");
       this.state1 = state1;
       }
      
       public Object getState2() {
       System.out.println("public Object getState2() ");
       return state2;
       }
      
       public void setState2(Object state2) {
       System.out.println("public void setState2(Object state2)");
       this.state2 = state2;
       }
      }
      

      when i used "initData()" , everything is ok. and when i used "initData2()", throw exceptions, it is below:
      2007-07-09 16:51:09,062 DEBUG [javax.faces.webapp.UIComponentTag] Exited encodeBegin
      2007-07-09 16:51:09,062 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3278f{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,062 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@ae3614{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,093 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@766e80{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,187 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: ajaxContext
      2007-07-09 16:51:09,187 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: ajaxContext
      2007-07-09 16:51:09,187 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
      2007-07-09 16:51:09,187 DEBUG [javax.faces.webapp.UIComponentTag] Entered encodeBegin for client-Id: _idJsp1:_idJsp2
      2007-07-09 16:51:09,187 DEBUG [org.ajax4jsf.framework.renderer.RendererBase] Start encoding of component _idJsp1:_idJsp2 with class org.richfaces.component.html.HtmlTree
      2007-07-09 16:51:09,203 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1d3ce2c{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,218 DEBUG [javax.faces.webapp.UIComponentTag] Exited encodeBegin
      2007-07-09 16:51:09,218 DEBUG [javax.faces.webapp.UIComponentTag] Entered encodeChildren for client-Id: _idJsp1:_idJsp2
      2007-07-09 16:51:09,218 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: library2
      2007-07-09 16:51:09,218 DEBUG [org.jboss.seam.Component] seam component not found: library2
      2007-07-09 16:51:09,218 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to JSF managed bean
      2007-07-09 16:51:09,234 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@fe7a67{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,234 INFO [STDOUT] public Object getData()
      2007-07-09 16:51:09,234 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
      2007-07-09 16:51:09,234 DEBUG [org.jboss.seam.Component] seam component not found: item
      2007-07-09 16:51:09,234 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
      2007-07-09 16:51:09,234 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@a211cf{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.Component] seam component not found: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
      2007-07-09 16:51:09,250 INFO [STDOUT] public boolean isLeaf()
      2007-07-09 16:51:09,250 INFO [STDOUT] private Map getBrachs()
      2007-07-09 16:51:09,250 INFO [STDOUT] private void initData2()
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.Component] seam component not found: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.Component] seam component not found: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.Component] seam component not found: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.Component] seam component not found: item
      2007-07-09 16:51:09,250 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
      2007-07-09 16:51:09,312 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/wcrm].[jsp]] Servlet.service() for servlet jsp threw exception
      java.lang.NullPointerException
       at com.WCRM.departmenttree.Library.initData2(Library.java:188)
       at com.WCRM.departmenttree.Library.getBrachs(Library.java:63)
       at com.WCRM.departmenttree.Library.isLeaf(Library.java:106)
       at org.richfaces.component.CacheableTreeDataModel.walk(CacheableTreeDataModel.java:119)
       at org.richfaces.component.UITree.walk(UITree.java:298)
       at org.richfaces.renderkit.TreeRendererBase.writeContent(TreeRendererBase.java:375)
       at org.richfaces.renderkit.TreeRendererBase.encodeChildren(TreeRendererBase.java:284)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
       at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:480)
       at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:361)
       at org.apache.jsp.dt_jsp._jspx_meth_rich_tree_0(dt_jsp.java:220)
       at org.apache.jsp.dt_jsp._jspx_meth_h_form_0(dt_jsp.java:168)
       at org.apache.jsp.dt_jsp._jspx_meth_f_view_0(dt_jsp.java:114)
       at org.apache.jsp.dt_jsp._jspService(dt_jsp.java:70)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
       at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
       at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
       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.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       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)
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] after phase: RENDER_RESPONSE(6)
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.afterPhase
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] committing transaction after phase: RENDER_RESPONSE(6)
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: ajaxContext
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: ajaxContext
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 1
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.conversationEntries
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.conversationEntries
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.conversationEntries
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,312 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.conversationEntries
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.conversationEntries
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.conversationEntries
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.BUSINESS_PROCESS
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.BUSINESS_PROCESS
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.CONVERSATION
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.facesMessages
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.facesMessages
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.conversation
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.conversation
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.CONVERSATION
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.done
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: class org.apache.myfaces.shared_tomahawk.renderkit.html.util.JavascriptUtils.OLD_VIEW_ID
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: ajaxContext
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.ResponseWrapper
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: library2
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.config.beansUnderConstruction
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.faces.webapp.UIComponentTag.UNIQUE_ID_COUNTER
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.faces.webapp.UIComponentTag.COMPONENT_STACK
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
      2007-07-09 16:51:09,328 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
      2007-07-09 16:51:09,343 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1f3471d{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,343 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@c1c2f1{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,343 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@e589bd{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,343 INFO [org.apache.myfaces.shared_tomahawk.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
      2007-07-09 16:51:09,343 INFO [org.apache.myfaces.shared_tomahawk.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
      2007-07-09 16:51:09,343 INFO [org.apache.myfaces.shared_tomahawk.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
      2007-07-09 16:51:09,343 INFO [org.apache.myfaces.shared_tomahawk.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
      2007-07-09 16:51:09,343 INFO [org.apache.myfaces.shared_tomahawk.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
      2007-07-09 16:51:09,343 INFO [org.apache.myfaces.shared_tomahawk.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
      2007-07-09 16:51:09,343 DEBUG [org.ajax4jsf.framework.renderer.AjaxPhaseListener] Process after phase RENDER_RESPONSE(6)
      2007-07-09 16:51:09,343 ERROR [org.jboss.seam.web.ExceptionFilter] uncaught exception
      javax.servlet.ServletException: org.apache.jasper.JasperException
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       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)
      2007-07-09 16:51:09,343 ERROR [org.jboss.seam.web.ExceptionFilter] exception root cause
      javax.faces.FacesException: org.apache.jasper.JasperException
       at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:426)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
       at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
       at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
       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.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       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)
      Caused by: org.apache.jasper.JasperException
       at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
       ... 32 more
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.web.ExceptionFilter] ending request
      2007-07-09 16:51:09,359 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@18bd37a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@8fd95d{ url=null ,addedOrder=0}
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.exceptions
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.exceptions
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.exceptions
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.exceptions
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,359 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.exceptions
      2007-07-09 16:51:09,375 INFO [org.jboss.seam.core.Exceptions] reading exception mappings from /WEB-INF/pages.xml
      2007-07-09 16:51:09,375 DEBUG [org.jboss.seam.util.DTDEntityResolver] trying to resolve system-id [http://jboss.com/products/seam/pages-1.2.dtd]
      2007-07-09 16:51:09,375 DEBUG [org.jboss.seam.util.DTDEntityResolver] recognized Seam namespace; attempting to resolve on classpath under org/jboss/seam/
      2007-07-09 16:51:09,375 DEBUG [org.jboss.seam.util.DTDEntityResolver] located [http://jboss.com/products/seam/pages-1.2.dtd] in classpath
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.exceptions
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.CONVERSATION
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.CONVERSATION
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.done
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: class org.apache.myfaces.shared_tomahawk.renderkit.html.util.JavascriptUtils.OLD_VIEW_ID
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: ajaxContext
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.ResponseWrapper
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: library2
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.myFacesJavascript
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.config.beansUnderConstruction
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.faces.webapp.UIComponentTag.UNIQUE_ID_COUNTER
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.faces.webapp.UIComponentTag.COMPONENT_STACK
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
      2007-07-09 16:51:09,390 DEBUG [org.jboss.seam.web.ExceptionFilter] ended request
      2007-07-09 16:51:09,390 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/wcrm].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      javax.faces.FacesException: org.apache.jasper.JasperException
       at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:426)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
       at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
       at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
       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.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       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)
      Caused by: org.apache.jasper.JasperException
       at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
       ... 32 more


        • 1. Re: touble in richface+ajax4jsf+seam
          leon qian Newbie

          where is my fault? tell me more and detailly, man,thanks. and my web.xml

          <?xml version="1.0" encoding="UTF-8"?>
          
          <web-app version="2.5"
           xmlns="http://java.sun.com/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
          
           <!-- Seam -->
          
           <listener>
           <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
           </listener>
          
           <filter>
           <filter-name>Seam Exception Filter</filter-name>
           <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
           </filter>
          
           <filter-mapping>
           <filter-name>Seam Exception Filter</filter-name>
           <url-pattern>*.jsf</url-pattern>
           </filter-mapping>
          
           <!-- MyFaces -->
          
           <listener>
           <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
           </listener>
          
           <context-param>
           <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
           <param-value>client</param-value>
          
           </context-param>
          
           <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
           </servlet>
          
           <servlet-mapping>
           <servlet-name>Faces Servlet</servlet-name>
           <url-pattern>*.jsf</url-pattern>
           </servlet-mapping>
          
          
           <!--ajax-->
          
          
           <display-name>a4jEchoText</display-name>
          
           <filter>
           <display-name>Ajax4jsf Filter</display-name>
           <filter-name>ajax4jsf</filter-name>
           <filter-class>org.ajax4jsf.Filter</filter-class>
           </filter>
          
           <filter-mapping>
           <filter-name>ajax4jsf</filter-name>
           <servlet-name>Faces Servlet</servlet-name>
           <dispatcher>REQUEST</dispatcher>
           <dispatcher>FORWARD</dispatcher>
           <dispatcher>INCLUDE</dispatcher>
           </filter-mapping>
           <!---->
          </web-app>

          and data.txt is a data of treeview. like it:
          leoin moscow dept_big dept2
          gg moscow dept_big dept2
          rewre beijing dept_big dept2
          rewre2 beijing dept_big dept2
          


          "Department" is a table in database and i want to replace the data.txt by it. so i rewirte the initData(), that doesn't work ,tell me why please.


          • 2. Re: touble in richface+ajax4jsf+seam
            Pete Muir Master

            There is an NPE in your initData2 method (for a start you are trying to use injection inside a non-seam component)

            • 3. Re: touble in richface+ajax4jsf+seam
              leon qian Newbie

              hi, thanks, i am a newer for seam. and how can i use injection inside a non-seam component? my component.xml is belows:

              <?xml version="1.0" encoding="UTF-8"?>
              <components xmlns="http://jboss.com/products/seam/components"
               xmlns:core="http://jboss.com/products/seam/core"
               xmlns:security="http://jboss.com/products/seam/security"
               xmlns:drools="http://jboss.com/products/seam/drools"
               xmlns:web="http://jboss.com/products/seam/web"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation=
               "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd
               http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
               http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
               http://jboss.com/products/seam/web http://jboss.com/products/seam/web-1.2.xsd
               http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd">
              
               <component name="org.jboss.seam.core.init">
               <property name="jndiPattern">@jndiPattern@</property>
               </component>
              
               <!-- 120 second conversation timeout -->
               <component name="org.jboss.seam.core.manager">
               <property name="conversationTimeout">120000</property>
               </component>
              
               <component name="entityManager" auto-create="true"
               class="org.jboss.seam.core.ManagedPersistenceContext">
               <property name="persistenceUnitJndiName">java:/wcrmEntityManagerFactory</property>
               </component>
              
               <component class="org.jboss.seam.core.Ejb"
               installed="@embeddedEjb@"/>
              
              
              
               <event type="customerUpdate">
               <action expression="#{customerFinder.refresh}"/>
               </event>
              
               <security:identity authenticate-method="#{authenticator.authenticate}"/>
              
              </components>
              


              if it is no way for my hope to use seam database component inside my Library class?

              • 4. Re: touble in richface+ajax4jsf+seam
                Pete Muir Master

                You can't use injection. You can get at Seam components using Component.getInstance(""), or make your object a Seam component (which is what I would suggest here).

                • 5. Re: touble in richface+ajax4jsf+seam
                  leon qian Newbie

                  thanks , i have got the seam component by the method of ' Component.getInstance("") '. i think my experience is useful for others.