[JBoss jBPM] - Re: Error setup with both MySQL and Hypersonic
by dthibau@opencs.net
I have exactly the same error and as Florent I started to install with MySQL then go back to HSQL.
I had to edit hibernate.cfg.xml to change the dialect to org.hibernate.dialect.HSQLDialect
and my -ds.xml is as follows :
<?xml version="1.0" encoding="UTF-8"?>
| <datasources>
|
| <local-tx-datasource>
| <jndi-name>JbpmDS</jndi-name>
|
| <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbpmDB</connection-url>
| <driver-class>org.hsqldb.jdbcDriver</driver-class>
| <user-name>sa</user-name>
| <password></password>
|
| <!-- connection pool parameters -->
| <min-pool-size>1</min-pool-size>
| <max-pool-size>5</max-pool-size>
|
| <!-- disable idle connection removal, hsqldb does not reap threads on closed connections -->
| <idle-timeout-minutes>0</idle-timeout-minutes>
| <!-- check all statements are closed when the connection is returned to the pool -->
| <track-statements />
| <!-- hsqldb benefits from prepared statement caching -->
| <prepared-statement-cache-size>32</prepared-statement-cache-size>
|
| <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
| <metadata>
| <type-mapping>Hypersonic SQL</type-mapping>
| </metadata>
|
| <!-- ensure the datasource is not initialized before the database itself -->
| <depends>jboss:service=Hypersonic,database=jbpmDB</depends>
| </local-tx-datasource>
|
| <mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic,database=jbpmDB">
| <attribute name="Database">jbpmDB</attribute>
| <attribute name="InProcessMode">true</attribute>
| </mbean>
|
| </datasources>
|
Anything else to do ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200505#4200505
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200505
17 years, 2 months
[JBoss jBPM] - Action.java:122 NullPointerException
by plester3738
I am attempting to run this under Mule 2.1.1 Enterprise. We are running MySQL as the database. The source is a JMS Queue running on ActiveMQ. No matter what I place onto the queue, the error occurs and I have confirmed that data is being placed onto the queue.
I am getting the following exception when trying to do a simple business process:
==============process.xml===============
<?xml version="1.0" encoding="UTF-8"?>
<process-definition name="LoanBroker">
xmlns="http://jbpm.org/3/jpdl"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/jpdl-3.1.xsd"
<!-- Request received from customer -->
<start-state name="searchRequest">
</start-state>
SubscriptionRequest
<!-- We could perform additional data validation here
-->
subscriptionRequest
<end-state name="theFunIsDone" />
</process-definition>
===============snippent from mule.cfg==================
<endpoint name="SubscriptionRequest" address="jms://Requests.Subscription" connector-ref="jmsConnector"/>
<bpm:connector name="jBpmConnector" bpms-ref="jbpm"/>
<jms:object-to-jmsmessage-transformer name="Object2JMS"/>
<cxf:inbound-endpoint address="http://localhost:8888/services/Axiom"/>
<inbound-endpoint ref="SubscriptionRequest"/>
<pass-through-router>
<stdio:outbound-endpoint system="OUT"/>
</pass-through-router>
<filtering-router>
<outbound-endpoint ref="SubscriptionProcessEngine" />
</filtering-router>
=============exception =================
ERROR 2009-01-08 15:01:15,795 [jBpmConnector.dispatcher.1] org.jbpm.instantiation.Delegation: couldn't load delegation class 'org.mule.providers.bpm.jbpm.actions.ValidateMessageSource'
java.lang.ClassNotFoundException: class 'org.mule.providers.bpm.jbpm.actions.ValidateMessageSource' could not be found by the process classloader
at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:118)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)
at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.instantiation.Delegation$$EnhancerByCGLIB$$cb0d36ae.getInstance()
at org.jbpm.graph.def.Action.execute(Action.java:121)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
at org.jbpm.graph.def.Node.enter(Node.java:303)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$4d0a8154.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$4d0a8154.leave()
at org.jbpm.graph.exe.Token.signal(Token.java:195)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:271)
at org.mule.transport.bpm.jbpm.Jbpm.startProcess(Jbpm.java:150)
at org.mule.transport.bpm.ProcessMessageDispatcher.processAction(ProcessMessageDispatcher.java:163)
at org.mule.transport.bpm.ProcessMessageDispatcher.doDispatch(ProcessMessageDispatcher.java:69)
at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Unknown Source)
ERROR 2009-01-08 15:01:15,795 [jBpmConnector.dispatcher.1] org.jbpm.instantiation.Delegation: couldn't instantiate delegation class 'org.mule.providers.bpm.jbpm.actions.ValidateMessageSource'
java.lang.NullPointerException
at org.jbpm.instantiation.FieldInstantiator.newInstance(FieldInstantiator.java:105)
at org.jbpm.instantiation.FieldInstantiator.instantiate(FieldInstantiator.java:48)
at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:163)
at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.instantiation.Delegation$$EnhancerByCGLIB$$cb0d36ae.getInstance()
at org.jbpm.graph.def.Action.execute(Action.java:121)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
at org.jbpm.graph.def.Node.enter(Node.java:303)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$4d0a8154.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$4d0a8154.leave()
at org.jbpm.graph.exe.Token.signal(Token.java:195)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:271)
at org.mule.transport.bpm.jbpm.Jbpm.startProcess(Jbpm.java:150)
at org.mule.transport.bpm.ProcessMessageDispatcher.processAction(ProcessMessageDispatcher.java:163)
at org.mule.transport.bpm.ProcessMessageDispatcher.doDispatch(ProcessMessageDispatcher.java:69)
at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Unknown Source)
ERROR 2009-01-08 15:01:15,920 [jBpmConnector.dispatcher.1] org.jbpm.graph.def.GraphElement: action threw exception: null
java.lang.NullPointerException
at org.jbpm.graph.def.Action.execute(Action.java:122)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
at org.jbpm.graph.def.Node.enter(Node.java:303)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$4d0a8154.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$4d0a8154.leave()
at org.jbpm.graph.exe.Token.signal(Token.java:195)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:271)
at org.mule.transport.bpm.jbpm.Jbpm.startProcess(Jbpm.java:150)
at org.mule.transport.bpm.ProcessMessageDispatcher.processAction(ProcessMessageDispatcher.java:163)
at org.mule.transport.bpm.ProcessMessageDispatcher.doDispatch(ProcessMessageDispatcher.java:69)
at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Unknown Source)
ERROR 2009-01-08 15:01:16,029 [jBpmConnector.dispatcher.1] org.mule.DefaultExceptionStrategy: Caught exception in Exception Strategy: null
org.jbpm.graph.def.DelegationException
at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:387)
at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281)
at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
at org.jbpm.graph.def.Node.enter(Node.java:303)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$4d0a8154.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$4d0a8154.leave()
at org.jbpm.graph.exe.Token.signal(Token.java:195)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:271)
at org.mule.transport.bpm.jbpm.Jbpm.startProcess(Jbpm.java:150)
at org.mule.transport.bpm.ProcessMessageDispatcher.processAction(ProcessMessageDispatcher.java:163)
at org.mule.transport.bpm.ProcessMessageDispatcher.doDispatch(ProcessMessageDispatcher.java:69)
at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.jbpm.graph.def.Action.execute(Action.java:122)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
... 30 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200433#4200433
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200433
17 years, 2 months
[JBoss jBPM] - Re: Trying to persist process instances - need some help
by terigox
So it turns out I think I had a couple of things missing/wrong. (Of course :) )
So #1, it seems when trying to load up an external DB and use the jbpm-console there are a couple of things that should be known:
a) The database build scripts located under {jbpm-install}/database do not include any of the authentication tables needed to actually use the jbpm-console web app.
b) When installing jbpm through the jar installer, if you chose hypersonic as your database, it *will* however give you the correct tables needed for jbpm-console (hence why it works out of the box)
So what I ended up doing was copying the SQL out of my {jboss-server}/data/hypersonic/JbpmDB.script that hypersonic was using to create the remaining tables needed for my jbpm-console to work correctly.
Once I was able to get the console working correctly (knowing I had the correct DB settings and hibernate) I was able to then compare/use these settings in my own app.
I'm working closer to getting it working correctly. Now I'm getting what seems to be a more manageable exception :)
org.hibernate.AssertionFailure: null id in org.jbpm.graph.def.ProcessDefinition entry (don't flush the Session after an exception occurs)
I'm happy though that the jbpm-console examples are working and persisting correctly to Mysql!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200413#4200413
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200413
17 years, 2 months
[JBoss jBPM] - problem with eclipse 3.2.2 and jbpm jpdl designer!!
by bonaparte
Hello all,
I'm a newbie with jBPM and just woulk like to start to use it in eclipse.
My banking company uses RSA7, so underlying eclipse 3.2.2 as IDE.
I'vre tried to install many versions of jbpm-jpdl-designer as eclipse plugin, among which 3.1.6, 3.1.5, and 3.1.3.SP2, but unfortunately no one is running well.
More exactly, the installation happens well (except for the documentation feature, as said in an ealier post, that generates an exception) but if i don't choose this option and only jBPM jPDL Tools 3.1.6, all is ok.
The problem is that when i restart the eclipse, i just don't see any File ->New -> Project -> jBPM Project.
What i am exacty doing during installation:
- download eclipse-SDK-3.2.2-win32.zip and extract it in $eclipse-folder.
- download jbpm-jpdl-designer-3.1.6.zip, extract it somewhere and copy feature and plugin folders in $eclipse-folder
- open eclipse
no File->New->Project->Jbpm Project!!!!
although the plugin is well installed. i verify it by Help->Software Update-> Manage Configuration, i can see the item jBPM jPDL Tools 3.1.6!
What's wrong with this way of doing?
Did anyone be successfull on installing designer plugin with eclipse 3.2.2?
By the way, i doesn't seem to work neither with eclipse 3.4!
Having spent about a day searching, reading and testing, I could do with some clues as to where to look next.
I'd very much appreciate your suggestions. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200406#4200406
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200406
17 years, 2 months