[jboss-user] [JBoss jBPM] - Re: Token.signal() throws Exception from FieldInstantiator

2007-11-14 Thread mr.lou
Hello,

SidKennedy is my project partner and I have the same problem with this 
exception in a slightly different context. 

@kukeltje
To answer your Question, yes, the Tool declaration is somewhere else.

I think the point is, that there is the XML action configuration that cannot be 
parsed in some kind of way. But I don't understand why. As I remember from the 
user guide, there is no xml schema or something like that that has to be 
validated when inserting the configuration inside of an action declaration in 
the jPDL.

Here is my action declaration:

task-node name=Big Step1
  | task name=design modeling
  | event type=task-create
  | action 
class=org.sureal_projekt.spms.assignment.ResourceAssignmentHandler
  | resourceHooks
  |  role group=PIM /
  |  material group=PIM.design /
  |  tool group=PIM.design /
  | /resourceHooks
  | /action
  | /event
  | /task
  | transition name=design modeling completed to=Big 
Step2/transition
  | /task-node

And here is my Exception:

18:31:31,265 ERROR [FieldInstantiator] couldn't parse set field 'resourceHooks' 
to value 'resourceHooks xmlns=urn:jbpm.org:jpdl-3.2
  | role group=PIM/material group=PIM.design/tool 
group=PIM.design//resourceHooks'
  | java.lang.NullPointerException
  | at 
org.jbpm.instantiation.FieldInstantiator.setPropertyValue(FieldInstantiator.java:70)
  | at 
org.jbpm.instantiation.FieldInstantiator.instantiate(FieldInstantiator.java:61)
  | at 
org.jbpm.instantiation.Delegation.instantiate(Delegation.java:163)
  | at 
org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125)
  | at 
org.jbpm.instantiation.Delegation$$FastClassByCGLIB$$6bae1598.invoke(generated)
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
  | at 
org.jbpm.instantiation.Delegation$$EnhancerByCGLIB$$c441f5db.getInstance(generated)
  | at org.jbpm.graph.def.Action.execute(Action.java:122)
  | at 
org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235)
  | at 
org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
  | at 
org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182)
  | at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166)
  | at org.jbpm.taskmgmt.exe.TaskInstance.create(TaskInstance.java:169)
  | at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:144)
  | at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:167)
  | at org.jbpm.graph.def.Node.enter(Node.java:316)
  | at 
org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(generated)
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
  | at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$af21a19d.enter(generated)
  | at org.jbpm.graph.def.Transition.take(Transition.java:119)
  | at org.jbpm.graph.def.Node.leave(Node.java:383)
  | at org.jbpm.graph.node.StartState.leave(StartState.java:70)
  | at 
org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(generated)
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
  | at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$af21a19d.leave(generated)
  | at org.jbpm.graph.exe.Token.signal(Token.java:174)
  | at org.jbpm.graph.exe.Token.signal(Token.java:145)
  | at 
org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke(generated)
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
  | at 
org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$5bb04831.signal(generated)
  | at 
org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:241)

My Declaration of the invoked ResourceAssignmentHandler is very long, so I 
would like to avoid posting it here. :)
But as I said, I think, that's not the point. And as SidKennedy wrote, the code 
that is invoked by the action does work very well. There is only THIS 
Exception, that crashes my web application.

Do you have any idea what the problem might be?
Thanks in advance.
lou

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4104721#4104721

Reply to the post : 

[jboss-user] [JBoss jBPM] - Re: installing jBPM

2007-08-12 Thread mr.lou
Can you give me the link to the answering post. I asked me the some questions 
some time ago. Would be nice to know how it works.

thx
lou

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073356#4073356

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073356
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: ant task for process archive deploying - Wiki?

2007-08-09 Thread mr.lou
Hello again,

I have created an build.xml that runs correct. At least I got an *BUILD 
SUCCESSFUL*.

The problem first was that the class org.jbpm.ant.DeployParTask doesn't exist 
in jbpm-3.1.2. It's now called DeployProcessTask. And the deploy parameter par 
now is called process. Thanks to the User Guide I wasted 3 hours to find this 
problem.

After that the build still wasn't succesful. I got a *BUILD FAILED* because the 
jbpm tables were not found (i guess). So I put the following additional 
property to my hibernate.cfg.xml file.

  | property name=hibernate.hbm2ddl.autocreate-drop/property
  | 
Now the build runs. I get this *BUILD SUCCESSFUL* message.

But the process definition is still not deployed!! I have checked the 
PUBLIC.JBPM_PROCESSDEFINITION table with the HSQL Database Manager but there is 
still only the websale process deployed.

Does anybody has an idea what to do? I thought it must be easier to do this 
deployment.

thanks
lou

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072437#4072437

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072437
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - ant task for process archive deploying - Wiki?

2007-08-06 Thread mr.lou
Hi at all,

I have the following problem:
I would like to deploy an process archive with an ant task. I have found the
corresponding chapter in the jBPM jPDL 3.2 User Guide and tried to build my own 
build.xml. But I'm not so familiar with this ant stuff and I'm still getting 
the exception that the org.jbpm.ant.DeployParTask cannot be found.

Is there someone out there who can just give me a small ant snippet to solve 
this problem? And wouldn't it be great to have such an ant task in the wiki for 
every people that have the same problem? Maybe the JbpmExampleApplications 
would be the right place.

thanks in advance
lou

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071284#4071284

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071284
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.NoClassDefFoundError: javax/transaction/Synchr

2007-08-03 Thread mr.lou
It works!!

I finally changed the tutorial code the following way.
The problem was how the JbpmConfiguration was created. In the tutorial there 
was parsed an hard coded xml string to generate the configuration:

  | jbpmConfiguration = JbpmConfiguration.parseXmlString(
  |   jbpm-configuration +
  |
  | jbpm-context +
  |   service name='persistence'  +
  |
factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' / + 
  | /jbpm-context +
  | (...)
  | 
But when I changed this part to a simple invokation of the getInstance() 
methode everything worked fine.

  | jbpmConfiguration = JbpmConfiguration.getInstance();
  | 
I wonder if the tutorial code is really buggy at this point. That would be 
pretty bad!! Or if I did something different so that the configuration 
initialisation went wrong.

@dleerob
thank again! :)

bye, lou

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070504#4070504

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070504
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.NoClassDefFoundError: javax/transaction/Synchr

2007-08-01 Thread mr.lou
Thanks for this first help.

The NoClassDefFoundError is gone and the class seems to run some seconds 
longer. But another exception occurs - as usual. :-/

The exception:
anonymous wrote : 
  | Table not found in statement [select top ? processdef0_.ID_ as ID1_4_, 
processdef0_.NAME_ as NAME3_4_, processdef0_.DESCRIPTION_ as DESCRIPT4_4_, 
processdef0_.VERSION_ as VERSION5_4_, processdef0_.ISTERMINATIONIMPLICIT_ as 
ISTERMIN6_4_, processdef0_.STARTSTATE_ as STARTSTATE7_4_ from 
JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by 
processdef0_.VERSION_ desc]
  | 
  | org.hibernate.exception.SQLGrammarException: could not execute query
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | at org.hibernate.loader.Loader.doList(Loader.java:2223)
  | (...)
  | 
Seems like there is a problem with the database, but I don't know where. I 
thought i read that the tables would be created automatically. Is that right?
Can someone help me with this issue.

BTW:
I'm of course using the config files hibernate.cfg.xml and jbpm.cfg.xml from 
the /config folder of the jbpm-jpdl-3.2.1 download. I think that should be all 
right.

thanks again
lou

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069592#4069592

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069592
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.NoClassDefFoundError: javax/transaction/Synchr

2007-08-01 Thread mr.lou
Hmm, right.

The database tables are not created autmatically. At least not until you write 
an additional property to the hibernate.cfg.xml file. I have found a smal 
section about this in the User Guide.

7.6.2. The jBPM DB schema:
http://docs.jboss.com/jbpm/v3/userguide/persistence.html#thejbpmdbschema; 

So far so good.
I have added this property and ran the class again. The deployment seems to 
work. There is no exception at this point any longer. But now - I got another 
exception (Of course!) and I don't know what to do. It allways occurses when I 
try to close a JBPMContext in the following way: jbpmContext.close();

The exception:
anonymous wrote : 
  | problem closing service 'persistence'
  | org.jbpm.JbpmException: no jbpm tx service configured
  | at 
org.jbpm.persistence.db.DbPersistenceService.isRollbackOnly(DbPersistenceService.java:390)
  | at 
org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:212)
  | at org.jbpm.svc.Services.close(Services.java:222)
  | at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | 
Seems like there is something wrong with that 'tx service'. I have investigated 
a long time, but still have no idea what this tx service is about.  I found a 
class called org.jbpm.tx.TxService but there is no real description about this 
class or even the hole package.

Maybe there is someone out there who can tell me how to fix this problem and 
what this tx service is about. I really would like to know! :)

thank!
lou

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069691#4069691

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069691
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - java.lang.NoClassDefFoundError: javax/transaction/Synchroniz

2007-07-31 Thread mr.lou
Hello,

I'm trying to run an example from the jBPM jPDL 3.2 User Guide. I have changed 
the database example a little bit so that the jUnit assertions are just some 
System.out.println and the program is starting by an public static void main.

Nice so far. But the main problem is to get all the necessary libraries to run 
this simple class. I have added a lot of jars now, but there is still an 
exception occurring.

The following exception occurs when i try to deploy the process definition with 
the following code:

  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  |   jbpmContext.deployProcessDefinition(processDefinition);
  | } finally {
  |   jbpmContext.close();
  | }
  | 

The exception:

  | Exception in thread main java.lang.NoClassDefFoundError: 
javax/transaction/Synchronization
  | at org.hibernate.impl.SessionImpl.init(SessionImpl.java:213)
  | at 
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:473)
  | at 
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:497)
  | at 
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:505)
  | at 
org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:97)
  | at 
org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:234)
  | at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:539)
  | at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
  | at scr.own.ProcessWork.deploy(ProcessWork.java:91)
  | at scr.own.ProcessWork.testProcess(ProcessWork.java:71)
  | at scr.own.ProcessWork.main(ProcessWork.java:37)
  | 

It would be great if someone can tell me what to do!! Or is there somebody who 
just can tell me what libs I need to run this tutorial example?

thanks in advance
lou

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069240#4069240

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069240
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user