[jBPM] - Unable to open a process in designer
by Rahul Agrawal
Rahul Agrawal [https://community.jboss.org/people/rahulamt] created the discussion
"Unable to open a process in designer"
To view the discussion, visit: https://community.jboss.org/message/798328#798328
--------------------------------------------------------------
After I created process in Guvnor repos and tried to open it the editor gave the following exception.
2013-02-19 18:05:52,821 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/designer].[EditorHandler]] (http-0.0.0.0-8180-10) Servlet.service() for servlet EditorHandler threw exception
java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.copy(Ljava/io/InputStream;Ljava/io/Writer;Ljava/lang/String;)V
at com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit.getWorkitemConfigContent(JbpmPreprocessingUnit.java:244)
at com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit.preprocess(JbpmPreprocessingUnit.java:137)
at org.oryxeditor.server.EditorHandler.doGet(EditorHandler.java:299)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
I am using Drools guvnor 5.3.1 war and designer-2.0-jboss7.war and depoloying them in jboss 5.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/798328#798328]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[jBPM] - jBPM 5.4: Structure of table ProcessInstanceInfo; invalid column "ID"
by whabelitz
whabelitz [https://community.jboss.org/people/whabelitz] created the discussion
"jBPM 5.4: Structure of table ProcessInstanceInfo; invalid column "ID""
To view the discussion, visit: https://community.jboss.org/message/796337#796337
--------------------------------------------------------------
Hi,
We use jBPM 5.4 on a JBoss 7.1.1 server together with an Oracle database. We use JPA2 and put the necessary persistence configurations file inside our ejb.jar (persistence.xml (derived from jbpm-persistence-JPA2.xml) and JBPMorm-JPA2, ProcessInstanceInfoMapping-JPA2.xml, ExtraIndexes.hbm.xml from jbpm-persistence-jpa.jar)
We create the schema for jbpm by using the sql script which was created from the ant task "jbpm.schemaexport".
Inside these script the table ProcessInstanceInfo has the columns InstanceId, OPTLOCK, processId, startDate, lastReadDate, lastModificationDate, state, processInstanceByteArray.
This matches the description inside ProcessInstanceInfoMapping-JPA2.xml.
When working with processes, the following errors occurs:
INFO [stdout] (http-localhost-127.0.0.1-8080-1) Hibernate: insert into ProcessInstanceInfo (id, lastModificationDate, lastReadDate, processId, processInstanceByteArray, startDate, state, OPTLOCK, InstanceId) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-localhost-127.0.0.1-8080-1) SQL Error: 904, SQLState: 42000
ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-localhost-127.0.0.1-8080-1) ORA-00904: "ID": invalid identifier
There is no column ID inside the table and no field with this name defined inside the mapping but there are get and set methods inside the corresponding class which referres to the field processInstanceId.
Any idea why this error occurrs and how to fix it?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/796337#796337]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[JNDI and Naming] - How to connect to remote queue?
by Haitham Safi
Haitham Safi [https://community.jboss.org/people/haithamnor] created the discussion
"How to connect to remote queue?"
To view the discussion, visit: https://community.jboss.org/message/799447#799447
--------------------------------------------------------------
Hi
i'm trying to run JMS Java Application(Jboss4.2.3) on Remote server that grant permission to me so I wrote the following code:
package test;
import java.io.IOException;
import java.util.Properties;
import javax.jms.DeliveryMode;
import javax.jms.JMSException;
import javax.jms.MapMessage;
import javax.jms.Queue;
import javax.jms.QueueConnection;
import javax.jms.QueueConnectionFactory;
import javax.jms.QueueSender;
import javax.jms.QueueSession;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.net.UnknownHostException;
public class QueueProduce {
public static void main(String[] args)throws JMSException,NamingException
{
try
{
System.out.println(">>>>>>> Begain Producer ..... >>>>>>>>");
Context context =QueueProduce.getInitialContext();
QueueConnectionFactory queueconnectionfactory = (QueueConnectionFactory) context.lookup ("ConnectionFactory");
Queue queue =(Queue) context.lookup("queue/D");
queueConnection queueconnection = queueconnectionfactory.createQueueConnection("un","pwd");
QueueSession queuesession = queueconnection.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE);
queueconnection.start();
QueueProduce queueproducer =new QueueProduce();
queueproducer.sendmessage(".this message send for from queue testing " ,queuesession,queue);
System.out.println(">>>>>>Testing Message has been sent >>>>>>>>>");
}
catch (JMSException e)
{
e.printStackTrace();
}
}
this method to send message:
public void sendmessage (String text,QueueSession queuesession ,Queue queue)throws JMSException
{
QueueSender queuesender = queuesession.createSender(queue);
TextMessage textmessage = queuesession.createTextMessage(text);
queuesender.setDeliveryMode(DeliveryMode.PERSISTENT);
queuesender.send(textmessage );
queuesender.close();
}
public static Context getInitialContext () throws JMSException,NamingException
{
Properties prop = new Properties();
prop.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
prop.setProperty("java.naming.factory.url.pkgs", "org.jnp.interfaces");
prop.setProperty("java.naming.provider.url", "jnp://192.150.50.20:1099");
Context context = new InitialContext(prop);
return context;
}
}
But I got this exception:
Exception in thread "main" javax.naming.communicationException
[root java.lang.ClassNotfoundException:org.jboss.jms.client.jbossconnection
<no security manager:RMI class loader disable>]
at org.jnp.interfaces.NamingContext.lookup
coused by: java.lang.ClassNotFoundException: org.jboss.jms.client.jbossconnectionFactory<no security manager:RMI class loader disable>
at sun.rmi,security.loaderhandler.loadclass
at java.io.ObjectInputStream.readnoproxydesc
at java.io.ObjectInputStream.readclassDesc
at org.jnp.interfacesmarshalledvaluepair.get
So any help?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799447#799447]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[jBPM] - Guvnor cannot convert my decision table into web- guided editor
by John Joel Boss
John Joel Boss [https://community.jboss.org/people/jjsaguit] created the discussion
"Guvnor cannot convert my decision table into web- guided editor"
To view the discussion, visit: https://community.jboss.org/message/799770#799770
--------------------------------------------------------------
Hi All,
I successfully uploaded the decision table (xls file) to guvnor and my package and jbpm workflow runs well with it, however if I try to convert the uploaded xls file into a web - guided editor in guvnor, it doesnt show the correct output and my package cannot compile as well.
Attached is the decision table I made.
| | RuleSet | com.softskills.rule | | %1,3% |
| | RULEFLOW-GROUP | verifyrule | | | | |
| | Import | java.lang.Boolean, org.drools.runtime.process.WorkflowProcessInstance, java.math.BigDecimal | | | | |
| | Notes | This decision table is for working out some basic prices and pretending actuaries don't exist | | | | |
| | RuleTable Account Rules | | | |
| | CONDITION | CONDITION | ACTION | ACTION |
| | %1,2% $pr: WorkflowProcessInstance()
$bd: BigDecimal() from (BigDecimal)$pr.getVariable("ccrisExposure"); | | |
| | $bd.compareTo(new BigDecimal($1)) >= 0 | $bd.compareTo(new BigDecimal($1)) <= 0 | $pr.setVariable("isRisky",$param); | System.out.println("$param"); |
| Base pricing rules | Lower ccrisExposure Bracket | Upper ccrisExposure Bracket | print | print |
| Young risky package | 0 | 10000 | TRUE | risky true |
| Young risky | 10001 | 999999 | FALSE | risky false |
Using jBPM 5.4 with drools 5.5.0
Thanks,
John
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799770#799770]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months