[Design of JBoss jBPM] - web console problem
by tom.baeyens@jboss.com
hi david,
could you check out this problem ?
when i do a full build of the jpdl suite from head, i can create and deploy a process from the designer. but when i start a new process instance from this definition, i get the following exception. Could you have a look asap ?
Also, can i just take HEAD to build the 3.2.Beta2 ? (after this problem is fixed ?)
11:37:18,656 DEBUG [Bind] (Re-)binding org.jbpm.webapp.tag.jbpm.ui.Bind@1a99295
| 11:37:18,656 DEBUG [Bind] No request parameter '/common/template.xhtml @60,63 name="tdid": ValueExpression[tdid]' found
| 11:37:18,656 DEBUG [Bind] In restoreState! org.jbpm.webapp.tag.jbpm.ui.Bind@1d694da
| 11:37:18,656 DEBUG [Bind] (Re-)binding org.jbpm.webapp.tag.jbpm.ui.Bind@1d694da
| 11:37:18,656 DEBUG [Bind] No request parameter '/common/template.xhtml @61,74 name="piid": ValueExpression[piid]' found
| 11:37:18,656 DEBUG [Bind] In restoreState! org.jbpm.webapp.tag.jbpm.ui.Bind@c67f69
| 11:37:18,656 DEBUG [Bind] (Re-)binding org.jbpm.webapp.tag.jbpm.ui.Bind@c67f69
| 11:37:18,656 DEBUG [Bind] No request parameter '/common/template.xhtml @62,66 name="pdid": ValueExpression[pdid]' found
| 11:37:18,671 ERROR [STDERR] 29-jan-2007 11:37:18 com.sun.faces.lifecycle.LifecycleImpl phase
| WARNING: executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@54864c) threw exception
| java.lang.IllegalStateException: org.jbpm.webapp.bean.ProcessBean$1
| at javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:98)
| at javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1394)
| at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1260)
| at javax.faces.component.UICommand.restoreState(UICommand.java:332)
| at javax.faces.component.html.HtmlCommandLink.restoreState(HtmlCommandLink.java:876)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1129)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at org.jbpm.webapp.tag.jbpm.ui.Search.processRestoreState(Search.java:126)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:173)
| at org.ajax4jsf.framework.ajax.AjaxStateManager.restoreView(AjaxStateManager.java:76)
| at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
| at org.jbpm.webapp.application.JbpmViewHandler.restoreView(JbpmViewHandler.java:62)
| at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:317)
| at org.ajax4jsf.framework.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:109)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:140)
| at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:142)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| 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:75)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| 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:37:18,671 DEBUG [JbpmPhaseListener] After phase RESTORE_VIEW 1
| 11:37:18,671 DEBUG [AjaxPhaseListener] Process after phase RESTORE_VIEW 1
| 11:37:18,671 ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw exception
| java.lang.IllegalStateException: org.jbpm.webapp.bean.ProcessBean$1
| at javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:98)
| at javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1394)
| at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1260)
| at javax.faces.component.UICommand.restoreState(UICommand.java:332)
| at javax.faces.component.html.HtmlCommandLink.restoreState(HtmlCommandLink.java:876)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1129)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at org.jbpm.webapp.tag.jbpm.ui.Search.processRestoreState(Search.java:126)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1145)
| at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:173)
| at org.ajax4jsf.framework.ajax.AjaxStateManager.restoreView(AjaxStateManager.java:76)
| at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
| at org.jbpm.webapp.application.JbpmViewHandler.restoreView(JbpmViewHandler.java:62)
| at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:317)
| at org.ajax4jsf.framework.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:109)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:140)
| at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:142)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| 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:75)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| 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)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007714#4007714
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007714
19 years, 2 months
[Design of JBoss jBPM] - Re: committing content from our
by tom.baeyens@jboss.com
Java version:
runtime engine of 3.x.x must run on JDK 1.4.2
the next version of the console 3.3+ probably will require java 5
Commands
Having a lot of commands is not a problem. That is in fact the reason why we use the command pattern over the typical session facade.
But you could do similar things like with database connections: provide a base API with which you can send queries and retrieve results. There is one catch however: lazy loading. Together with the query, you should send some instructions on which relations of the retrieved objects should be eager loaded.
When the result is serialized and deserialized on the client, lazy loading will not work.
Another approach to adding eager loading indications is to create commands to navigate the relations: e.g. 1 command to get all the swimlaneInstances for this taskInstance.
If you want more info on these various approaches and their tradeoffs, you can give me a skype.
Exceptions
Use JbpmException or create a specific command exception if you think it is applicable. as long as it inherits from JbpmException and as long as you keep the total number of exception types low.
More important, try to document very carefully the return values of the commands and the exceptions they throw
Where to put the queries
Is this the file you're looking for ?
| jpdl/jar/src/main/java/org/jbpm/db/hibernate.queries.hbm.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007681#4007681
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007681
19 years, 2 months
[Design the new POJO MicroContainer] - Re: Property replacement
by scott.stark@jboss.org
"alesj" wrote : How do we change this:
|
| | <xsd:simpleType name="annotationType">
| | <xsd:annotation>
| | <xsd:documentation>
| | <![CDATA[
| | The annotation type represents a Java5 annotation on the particular join point.
| | ]]>
| | </xsd:documentation>
| | </xsd:annotation>
| | <xsd:restriction base="xsd:string">
| | <xsd:whiteSpace value="collapse"/>
| | </xsd:restriction>
| | </xsd:simpleType>
| |
| anonymous wrote :
| |
| | To allow an attribute on the annotation element, you need to change it to a complexType/simpleContent:
| |
| |
| | | <xsd:complexType name="annotationType">
| | | <xsd:annotation>
| | | <xsd:documentation>
| | | <![CDATA[
| | | The annotation type represents a Java5 annotation on the particular join point.
| | | ]]>
| | | </xsd:documentation>
| | | </xsd:annotation>
| | |
| | | <xsd:simpleContent>
| | | <xsd:extension base="xsd:string">
| | | <xsd:attribute name="replace" type="xsd:boolean" default="false" />
| | | </xsd:extension>
| | | </xsd:simpleContent>
| | | </xsd:complexType>
| | |
| |
| | "alesj" wrote :
| | | Is it ok that we have StringPropertyReplacer in AbstractAnnotationMetaData?
| | | String annString = StringPropertyReplacer.replaceProperties(annotation);
| | | | //FIXME [JBMICROCONT-99] [JBAOP-278] Use the loader for the bean?
| | | | ann = (Annotation)AnnotationCreator.createAnnotation(annString, Thread.currentThread().getContextClassLoader());
| | | |
| | |
| | I guess, but I don't see this as a natural usage. A check of the replace attribute would be needed.
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007381#4007381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007381
19 years, 2 months
[Design of EJB 3.0] - Re: Issues with passivation of nested SFSBs
by bstansberry@jboss.com
Tangentially related to this is the issue of ClusteredStatefulCache.replicate(StatefulBeanContext) for a nested SFSB with no remote interface. This method gets invoked on the return side of a clustered SFSB invocation. Again, in this case, the cached context is a proxy. Replicating the proxy here serves little purpose, as it doesn't result in any bean state being replicated.
Question is, should the *parent context* be replicated in this case? That's what actually holds the child bean's state.
Replicating the parent is more correct, as it ensures the data is replicated. But it can be inefficient -- i.e. imagine a call on the parent that internally results in calls on 3 child beans. That would result in 4 replications of the parent, when 1 would suffice. It could also cause problems, as 3 of the replications would occur while the parent bean is in the middle of the outer invocation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007306#4007306
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007306
19 years, 2 months