[Datasource Configuration] - java.lang.RuntimeException: Error obtaining connection: org.jboss.util.NestedSQLException
by Harikrishna S
Harikrishna S [http://community.jboss.org/people/harikrishnas] created the discussion
"java.lang.RuntimeException: Error obtaining connection: org.jboss.util.NestedSQLException"
To view the discussion, visit: http://community.jboss.org/message/645587#645587
--------------------------------------------------------------
Hi ,
We are experiencing production down with the below error. Its happening on Jboss 4.2.2 cluster. However other node is unaffected.
[thread: ajp-0.0.0.0-8009-34] January 9, 2012 2:32:07 PM IST java.lang.RuntimeException: Error obtaining connection: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a620b96:c0f:4f0a7b1f:4f10ba status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a620b96:c0f:4f0a7b1f:4f10ba status: ActionStatus.ABORT_ONLY >))
Regards,
Hari
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645587#645587]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM] - two questions about bpmn2 file
by hong lu
hong lu [http://community.jboss.org/people/luhong] created the discussion
"two questions about bpmn2 file"
To view the discussion, visit: http://community.jboss.org/message/645811#645811
--------------------------------------------------------------
Hi,
*Q1, The suffix of bpmn2 file is .bpmn2 in the jbpm-bpmn2-5.2.0.Final-test.jar. but the suffix of bpmn2 files which are created by BPMN2 visual editor is .bpmn?*
*Q2, In the bpmn2 file of jbpm-bpmn2-5.2.0.Final-test.jar, the process definition tags don't have any namespace and the files couldn't opened by visual editor correctly. as below:*
<process processType="Private" isExecutable="true" id="ScriptTask" name="ScriptTask Process" tns:packageName="com.sample" >
<!-- nodes -->
<startEvent id="_1" name="StartProcess" />
<scriptTask id="_2" name="Hello" scriptFormat=" http://www.java.com/java http://www.java.com/java" >
<script>System.out.println("Hello World");</script>
</scriptTask>
<endEvent id="_3" name="EndProcess" >
<terminateEventDefinition/>
</endEvent>
<!-- connections -->
<sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
<sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" />
</process>
*But in the files created by BPMN2 visual editor, there are namespace bpmn2. as below:*
<bpmn2:process id="com.test.login" name="loginProcess" isClosed="true">
<bpmn2:parallelGateway id="ParallelGateway_1" gatewayDirection="Diverging">
<bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
<bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
</bpmn2:parallelGateway>
<bpmn2:sequenceFlow id="SequenceFlow_2" name="to1" sourceRef="ParallelGateway_1" targetRef="ScriptTask_1"/>
<bpmn2:sequenceFlow id="SequenceFlow_8" name="to2" sourceRef="ParallelGateway_1" targetRef="ScriptTask_2"/>
<bpmn2:startEvent id="StartEvent_1" name="Start">
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="SequenceFlow_3" name="to0" sourceRef="StartEvent_1" targetRef="ParallelGateway_1"/>
<bpmn2:scriptTask id="ScriptTask_2" name="Script Task">
<bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
<bpmn2:script>System.out.println("hello world2");</bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_10" name="to4" sourceRef="ScriptTask_2" targetRef="EndEvent_2"/>
<bpmn2:scriptTask id="ScriptTask_1" name="Script Task" scriptFormat="">
<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
<bpmn2:script>System.out.println("hello world");</bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_6" name="to3" sourceRef="ScriptTask_1" targetRef="EndEvent_1"/>
<bpmn2:endEvent id="EndEvent_1" name="End">
<bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:endEvent id="EndEvent_2" name="End">
<bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
</bpmn2:endEvent>
</bpmn2:process>
*Which one is right?*
*p.s. the bpmn2 visual editor means bpmn2 eclipse plugin. Thanks very much.*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645811#645811]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM] - Problems in using JBPM5
by Estelle Guallar
Estelle Guallar [http://community.jboss.org/people/jbpm2011] created the discussion
"Problems in using JBPM5"
To view the discussion, visit: http://community.jboss.org/message/645050#645050
--------------------------------------------------------------
Hi forums
I'm new in using the jbpm5, i want to fill a process throught out the factory :
RuleFlowProcessFactory factory = RuleFlowProcessFactory.createProcess("org.jbpm.process");
factory
.humanTaskNode(i)
.actorId(participantAttribute.getName())
.taskName(bpmTask.getTask().getBPMTask().getName())
.swimlane(bpmLane.getName())
.comment("c'est une tâche spécifique")
.content(bpmTask.getTask().getDynRoots().toString())
.onEntryAction("java", "script en entree")
.onExitAction("java", "script en sortie")
.inMapping("entry point", bpmTask.getDeclaredEntryStates().toString())
.outMapping("exit point", bpmTask.getDeclaredExitStates().toString())
.skippable(false)
.priority("1")
.waitForCompletion(true)
.done();
As you can see i use to fill this process through another file but i have problems that all the params are string but i want to use somthing else and not string how can i do it?
Also for the task can we have under tasks means step 1 step 2 ... for the same task?
And for the same human task can we add another task or we have only the possibility to add one task for the same human task?
forgive me for my bad english
with best regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645050#645050]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM] - problem with using constranits of split node
by hong lu
hong lu [http://community.jboss.org/people/luhong] created the discussion
"problem with using constranits of split node"
To view the discussion, visit: http://community.jboss.org/message/645612#645612
--------------------------------------------------------------
Hi, I am newbie to jBPM and I am using JBPM5.2.
I want to program a split process and get exception messages:
Exception in thread "main" java.lang.IllegalArgumentException: XOR split could not find at least one valid outgoing connection for split null
at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:98)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:130)
at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1074)
at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:301)
at com.infy.workflow.MainTest.main(MainTest.java:111)
forgive me for my bad english.
Thanks very much.
the source as below:
public class MainTest {
public static void main(String[] args) {
RuleFlowProcess process = new RuleFlowProcess();
process.setId("com.infy.login");
process.setName("login process");
List<Variable> variables = new ArrayList<Variable>();
Variable variable = new Variable();
variable.setName("isLogin");
BooleanDataType isLogin = new BooleanDataType();
isLogin.writeValue(true);
variable.setType(isLogin);
variables.add(variable);
process.getVariableScope().setVariables(variables);
StartNode startNode = new StartNode();
startNode.setName("Start");
startNode.setId(1);
process.addNode(startNode);
Split splitNode = new Split(Split.TYPE_XOR);
splitNode.setId(2);
process.addNode(splitNode);
new ConnectionImpl(startNode, Node.CONNECTION_DEFAULT_TYPE, splitNode, Node.CONNECTION_DEFAULT_TYPE);
ActionNode actionNode = new ActionNode();
actionNode.setName("validUser");
DroolsAction action = new DroolsConsequenceAction("java", null);
action.setMetaData("Action", new Action() {
public void execute(ProcessContext context) throws Exception {
System.out.println("The user is an valid user.");
}
});
actionNode.setAction(action);
actionNode.setId(3);
process.addNode(actionNode);
Connection validFlow = new ConnectionImpl(splitNode, Node.CONNECTION_DEFAULT_TYPE, actionNode,
Node.CONNECTION_DEFAULT_TYPE);
Constraint validConstraint = new RuleConstraintEvaluator();
validConstraint.setDialect("java");
validConstraint.setType("code");
validConstraint.setConstraint("return false;");
splitNode.setConstraint(validFlow, validConstraint);
ActionNode actionNode2 = new ActionNode();
actionNode2.setName("validUser");
DroolsAction action2 = new DroolsConsequenceAction("java", null);
action2.setMetaData("Action", new Action() {
public void execute(ProcessContext context) throws Exception {
System.out.println("The user is an invalid user.");
}
});
actionNode2.setAction(action2);
actionNode2.setId(4);
process.addNode(actionNode2);
Connection invalidFlow = new ConnectionImpl(splitNode, Node.CONNECTION_DEFAULT_TYPE, actionNode2,
Node.CONNECTION_DEFAULT_TYPE);
Constraint invalidConstraint = new RuleConstraintEvaluator();
invalidConstraint.setDialect("java");
invalidConstraint.setType("code");
invalidConstraint.setConstraint("return true;");
splitNode.setConstraint(invalidFlow, invalidConstraint);
EndNode endNode = new EndNode();
endNode.setName("EndNode");
endNode.setId(5);
process.addNode(endNode);
new ConnectionImpl(actionNode, Node.CONNECTION_DEFAULT_TYPE, endNode, Node.CONNECTION_DEFAULT_TYPE);
EndNode endNode2 = new EndNode();
endNode2.setName("EndNode2");
endNode2.setId(6);
process.addNode(endNode2);
new ConnectionImpl(actionNode2, Node.CONNECTION_DEFAULT_TYPE, endNode2, Node.CONNECTION_DEFAULT_TYPE);
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
AbstractRuleBase ruleBase = (AbstractRuleBase) ((InternalKnowledgeBase) kbase).getRuleBase();
ruleBase.addProcess(process);
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ProcessInstance processInstance = ksession.startProcess("com.infy.login");
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645612#645612]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM] - No JTA TransactionManager found using Jpbm5 in a Jee container
by Thomas Nakken
Thomas Nakken [http://community.jboss.org/people/thomastn] created the discussion
"No JTA TransactionManager found using Jpbm5 in a Jee container"
To view the discussion, visit: http://community.jboss.org/message/644843#644843
--------------------------------------------------------------
Hi
When trying to use jbpm5.1 in weblogic with persistance inside a EJB context we get an error like:
[05/01/12 02:13:14:014 CET] DEBUG impl.SessionFactoryImpl: Checking 0 named SQL queries
[05/01/12 02:13:14:014 CET] DEBUG persistence.SingleSessionCommandService: Instantiating JtaTransactionManager
[05/01/12 02:13:14:014 CET] DEBUG jta.JtaTransactionManager: No JTA TransactionManager found at fallback JNDI location [java:comp/TransactionManager]
javax.naming.NameNotFoundException: While trying to look up comp/TransactionManager in /app/ejb/service-3.0.0.jar#ProcessControllerFacadeBean.; remaining name 'comp/TransactionManager'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:144)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
I know we need to setup the TransactionManager but dont know how to do it. Can someone guide us i the right direction?
persistence.xml looks like:
<properties>
<property name=+"hibernate.dialect"+ value=+"org.hibernate.dialect.Oracle10gDialect"+ />
<property name=+"hibernate.connection.autocommit"+ value=+"false"+ />
<property name=+"hibernate.max_fetch_depth"+ value=+"3"+ />
<property name=+"hibernate.hbm2ddl.auto"+ value=+"create"+ />
<property name=+"hibernate.show_sql"+ value=+"true"+ />
<!-- Echo all executed SQL to stdout -->
<property name=+"format_sql"+ value=+"true"+ />
<property name=+"use_sql_comments"+ value=+"true"+ />
<property name=+"hibernate.connection.release_mode"+ value=+"after_statement"+ />
<property name=+"hibernate.transaction.factory_class"+
value=+"org.hibernate.transaction.JTATransactionFactory"+ />
<property name=+"hibernate.transaction.manager_lookup_class"+
value=+"org.hibernate.transaction.WeblogicTransactionManagerLookup"+ />
<property name=+"hibernate.current_session_context_class"+
value=+"org.hibernate.context.JTASessionContext"+ />
<property name=+"hibernate.transaction.auto_close_session"+
value=+"false"+ />
</properties>
and the code (where we maybe need to do something to setup JTA Manager)
EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.session");
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
DO WE NEED THE LINE BELOW? I what shall it conatin in a Weblogic 10.3 EJB 3.0 environment?
//env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
Any hint and examples wold be very helpful!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/644843#644843]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM] - jbpm 5.2 on jboss server 5.1.0 doesn't start
by a_nat
a_nat [http://community.jboss.org/people/a_nat] created the discussion
"jbpm 5.2 on jboss server 5.1.0 doesn't start"
To view the discussion, visit: http://community.jboss.org/message/645029#645029
--------------------------------------------------------------
Hi forum,
I'm trying to run jbpm 52 on jboss as 5.1.0.
To do this, I changed the build.propeties (attached along), then did following.
* ant install.demo.noeclipse
* ant start.demo.no eclipse.
I have some errors in the server.log (attached along) of jboss and needless to say it stops everything fromworking. Can someone please help me with any pointers to overcome this...
+java.lang.ClassNotFoundException: org.jbpm.integration.console.JBPMTransactionManager from BaseClassLoader@d99f4a{VFSClassLoaderPolicy@168f248{name=vfsfile:/D:/JBPM_POC/jBPM5.2/jboss-5.1.0.GA/server/default/conf/jboss-service.xml (mailto:BaseClassLoader@d99f4a{VFSClassLoaderPolicy@168f248{name=vfsfile:/D:/JBPM_POC/jBPM5.2/jboss-5.1.0.GA/server/default/conf/jboss-service.xml) domain=ClassLoaderDomain@18adae2{name=DefaultDomain (http://community.jboss.org/mailto:domain=ClassLoaderDomain@18adae2{name=D... ......+
+2012-01-06 11:59:07,877 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=persistence.unit:unitName=#org.jbpm.persistence.jpa state=Create+
+javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory+
+Caused by: org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup 'org.jbpm.integration.console.JBPMTransactionManager'+
+2012-01-06 11:59:09,468 INFO [STDOUT] (Timer-3) ERROR 06-01 11:59:09,465 (MultiIndex.java:checkFlush:1293) Unable to commit volatile index+ +org.apache.lucene.index.CorruptIndexException: checksum mismatch in segments file+
Thanks and Regards,
Aparna
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645029#645029]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months