[JBoss jBPM] - Modifying a process already in progress
by lfelser
This isn't a normal thing to do I realize, but I want to be able to modify the unreached parts of a process which is already part-way done.
This process includes tasknodes that have been reached, with some tasks created and ended and some created but not ended and some of course not yet created because the task node has not been reached.
My thought is to copy the running process instance's process definition and dummy up the nodes to look like they've reached the state of the process instance I want to modify. The tasks present a bit of a problem and I was thinking that I could just unhook the module instance that is the taskmanagementinstance from the old process and hook it to the new processinstance modeule instances. Does this sound like a bad idea?
Is there a better way in general to modify a running process?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078902#4078902
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078902
18Â years, 8Â months
[JBoss Seam] - Binding not responsive using s:fileUpload
by jerryeads52
I am trying to get <s:fileUpload to work and yet my backing bean is never being called, is there something wrong with my bindings or configuration? I am using jboss-seam-1.2.1.GA and jboss-4.0.4.GA. The log.info messages never get called but the component is rendering and acting correctly. There is no error associated with its usage in the server.log?
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">
|
| <!-- Ajax4jsf (must come first!) -->
| <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>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
| </context-param>
|
| <!-- RichFaces -->
| <context-param>
| <param-name>org.ajax4jsf.SKIN</param-name>
| <param-value>blueSky</param-value>
| </context-param>
|
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| <dispatcher>REQUEST</dispatcher>
| <dispatcher>FORWARD</dispatcher>
| <dispatcher>INCLUDE</dispatcher>
| </filter-mapping>
|
| <!-- Seam -->
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <servlet>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <url-pattern>/seam/resource/*</url-pattern>
| </servlet-mapping>
|
| <filter>
| <filter-name>Seam Filter</filter-name>
| <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| <filter>
| <filter-name>Seam Multipart Filter</filter-name>
| <filter-class>org.jboss.seam.web.MultipartFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Multipart Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| <!-- JSF -->
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</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>*.seam</url-pattern>
| </servlet-mapping>
|
| <!-- MyFaces -->
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
|
| <!-- JSF RI -->
| <!--
| <listener>
| <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
| </listener>
| -->
|
| <session-config>
| <session-timeout>30</session-timeout>
| </session-config>
|
| </web-app>
|
|
uploadPDF.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:ui="http://java.sun.com/jsf/facelets"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| xmlns:fn="http://java.sun.com/jsp/jstl/functions">
| <head>
|
| </head>
| <body>
| <ui:composition template="/WEB-INF/OBBRTemplate.xhtml">
| <ui:define name="body">
| <f:view>
| <script type="text/javascript">
| </script>
| <h:form id="uploadPDF"
| enctype="multipart/form-data">
| <div>
| <a4j:region>
| <a4j:outputPanel ajaxRendered="true">
| <h:messages showSummary="false"
| showDetail="true"
| style="margin: 0; padding: 0; color:red"/>
| </a4j:outputPanel>
| </a4j:region>
| <div style="border-bottom: 2px solid black; margin-top: .5em; margin-bottom: 1em;">
| <h3 style="padding-bottom: 0; margin-bottom: 0;">
| <h:outputText id="paperStudyDetails"
| value="#{msgs.uploadPDFTitle}"
| rendered="true"/>
| </h3>
| </div>
| <h:messages showSummary="false" showDetail="true" style="margin: 0; padding: 0; color:red"/>
| <!-- Paper details -->
| <table cellpadding="0"
| cellspacing="0"
| border="0"
| width="570">
| <tr>
| <td colspan="4"
| style="padding-bottom: 1em;">
| <!-- Paper title & id -->
| <table cellpadding="0"
| cellspacing="0"
| border="0">
| <tr>
| <td nowrap="nowrap"
| style="padding-top: .5em; vertical-align: top;">
| <label for="paperTitle">
| <h:outputText value="#{msgs.paperTitle}"/>
| </label>
| </td>
| <td style="padding-left: 1em; padding-top: .5em;">
| <h:outputText id="publishedPaperTitle"
| value="#{paper.title}"/>
| </td>
| </tr>
| </table>
| </td>
| </tr>
| <tr>
| <td colspan="4">
| <div style="margin-top: .5em;">
| <s:fileUpload id="upload"
| style="width: 350px;"
| accept="application/pdf"
| data="#{editunpublishedpaper.uploadedFile}"
| fileName="#{editunpublishedpaper.fileName}"/>
| </div>
| </td>
| </tr>
| <tr>
| <!-- back buttons -->
| <td style="padding-top: 1em; text-align: center;">
| <s:button view="/addEditUnpublishedPaper.xhtml"
| onclick="submit()"
| id="backBtn"
| value="#{msgs.backButton}">
| </s:button>
| </td>
| </tr>
| </table>
| </div>
| </h:form>
| </f:view>
| </ui:define>
| </ui:composition>
| </body>
| </html>
|
|
|
|
|
EditUnpublishedPaperAction.java relevant portion
| @Stateful
| @Name("editunpublishedpaper")
| public class EditUnpublishedPaperAction
| implements EditUnpublishedPaper
| {
| @Out(scope=ScopeType.CONVERSATION,required=false)
| String fileName;
|
| @Out(scope=ScopeType.CONVERSATION,required=false)
| byte[] uploadedFile;
|
| //
| // PDF file uploaded
| @Begin(join=true)
| public void setUploadedFile(byte[] file)
| {
| log.info("$$$$$$$$$$$$$$$$$$setUploadedFile I'm here!!");
| this.uploadedFile=file;
| }
| @Begin(join=true)
| public byte[] getUploadedFile()
| {
| return this.uploadedFile;
| }
|
| //
| // Client name of PDF file uploaded
| @Begin(join=true)
| public void setFileName(String name)
| {
| log.info("$$$$$$$$$$$$$$$$$$setFileName I'm here!!");
| if (name != null && name.length() > 0) name = name.substring(name.lastIndexOf("\\")+1);
| if (name != null && name.length() > 0) this.fileName = name;
| }
|
| @Begin(join=true)
| public String getFileName()
| {
| return this.fileName;
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078900#4078900
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078900
18Â years, 8Â months
[JBoss Seam] - Re: Calling Seam's component from MDB thew java.lang.Illegal
by tonylmai
Here is the stack trace:
anonymous wrote :
| java.lang.IllegalStateException: Do not start long-running conversations in direct calls to EJBs
| at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:75)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:117)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
| at sun.reflect.GeneratedMethodAccessor361.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
| at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:112)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:245)
| at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
| at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
| at $Proxy291.onMessage(Unknown Source)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
| at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
| at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
| at org.jboss.mq.SpySession.run(SpySession.java:323)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:237)
| at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
| at java.lang.Thread.run(Unknown Source)
Is this a Seam's related issue (bug)?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078894#4078894
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078894
18Â years, 8Â months
[Messaging, JMS & JBossMQ] - Re: org.jboss.mq.SpyJMSException: Exiting on IOE
by acollazzo
I am having the same exact problem! I would appreciate any help on this problem. Everything I've read, says I have the program setup correctly to open everything and then in a while loop waiting for messages do the send of the message. When a message finally came in (in my case it can be 30 minutes or more) and I tried to forward on to a JBoss topic, I got this error:
org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested throwable: (java.io.IOException: Client is not connected)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:57)
at org.jboss.mq.Connection.sendToServer(Connection.java:922)
at org.jboss.mq.SpySession.sendMessage(SpySession.java:924)
at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:272)
at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:206)
at org.jboss.mq.SpyTopicPublisher.publish(SpyTopicPublisher.java:62)
at ptotx.DCMQReceiver.main(Unknown Source)
Caused by: java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:264)
at org.jboss.mq.il.uil2.SocketManager.sendMessage(SocketManager.java:220)
at org.jboss.mq.il.uil2.UILServerIL.addMessage(UILServerIL.java:245)
at org.jboss.mq.Connection.sendToServer(Connection.java:918)
... 5 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078893#4078893
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078893
18Â years, 8Â months