IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Wildfly/JBoss Java Discussion :

[jBPM] timer sur une action


Sujet :

Wildfly/JBoss Java

  1. #1
    Membre régulier
    Inscrit en
    Avril 2010
    Messages
    200
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 200
    Points : 111
    Points
    111
    Par défaut [jBPM] timer sur une action
    Bonjour à tous,

    Je suis débutant dans le domaine des moteurs de workflow et plus particulièrement avec jBPM (et nouveau sur le forum ! )

    Je fais des tests depuis 3-4 jours pour comprendre le fonctionnement et là je suis bloqué...
    Voilà mon problème, j'essaie de définir un timer sur une action mais j'obtiens ce message d'erreur :

    10:49:11,613 [main] ERROR GraphElement : action threw exception: service 'scheduler' unavailable
    org.jbpm.svc.JbpmServiceException: service 'scheduler' unavailable
    at org.jbpm.svc.Services.getCurrentService(Services.java:93)
    at org.jbpm.svc.Services.getCurrentService(Services.java:83)
    at org.jbpm.scheduler.def.CreateTimerAction.execute(CreateTimerAction.java:78)
    at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
    at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:215)
    at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:185)
    at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:169)
    at org.jbpm.graph.def.Node.enter(Node.java:302)
    at org.jbpm.graph.def.Transition.take(Transition.java:151)
    at org.jbpm.graph.def.Node.leave(Node.java:393)
    at org.jbpm.graph.node.StartState.leave(StartState.java:70)
    at org.jbpm.graph.exe.Token.signal(Token.java:192)
    at org.jbpm.graph.exe.Token.signal(Token.java:140)
    at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:270)
    at com.sample.SimpleProcessTest.testSimpleProcess(SimpleProcessTest.java:25)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    (j'ai posté que la partie où on voit l'erreur)

    J'ai pris l'exemple simple et connu avec un start-sate, state et end-state et j'essaie d'effectuer un simple System.out.println, pour le moment, qui se répète toutes les 10 secondes...
    Voici le contenu de processdefinition.xml.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    <?xml version="1.0" encoding="UTF-8"?>
     
    <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="simple">
    	<start-state name="start">
    		<transition name="to_state" to="first">
    			<action name="action" class="com.sample.action.MessageActionHandler">
    				<message>Going to the first state!</message>
    			</action>
    		</transition>
    	</start-state>
    	<state name="first">
    		<timer duedate="30 seconds" name="timer" repeat="10 seconds">
    			<action name="action" class="com.sample.action.MessageActionHandler">
    				<message></message>
    			</action>
    		</timer>
    		<transition name="to_end" to="end">
    			<action name="action" class="com.sample.action.MessageActionHandler">
    				<message>About to finish!</message>
    			</action>
    		</transition>
    	</state>
    	<end-state name="end"></end-state>
    </process-definition>
    Mais vu le message d'erreur j'ai l'impression qu'une library ou une config manque, je sais pas...

    Merci d'avance !

    je suis sous eclipse avec jBPM - jPDL 3.2.3

  2. #2
    Membre régulier
    Inscrit en
    Avril 2010
    Messages
    200
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 200
    Points : 111
    Points
    111
    Par défaut
    up s'il vous plaît !

    Il y aurait-il une configuration à faire dans le fichier jbpm.cfg.xml ? Je ne vois pas pourquoi mais on ne sait jamais, je l'ai fait pour les mails...

    S'il y a besoin d'informations en plus, je peux en fournir.

  3. #3
    Membre du Club
    Inscrit en
    Juillet 2006
    Messages
    143
    Détails du profil
    Informations forums :
    Inscription : Juillet 2006
    Messages : 143
    Points : 69
    Points
    69
    Par défaut
    As-tu la ligne suivante dans le fichier jbpm.config.xml ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    <!-- Enables timers and messages. -->
    <job-executor />

  4. #4
    Membre régulier
    Inscrit en
    Avril 2010
    Messages
    200
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 200
    Points : 111
    Points
    111
    Par défaut
    Bonjour djalouk,

    Merci de ta réponse !
    Pour te répondre, honnêtement, ça ne me dit pas grand chose...

    Je me suis penché sur un autre problème pour le moment mais je reviendrai sûrement dessus.

    Je regarderai ça et je te donnerai sûrement des nouvelles !

  5. #5
    Membre régulier
    Inscrit en
    Avril 2010
    Messages
    200
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 200
    Points : 111
    Points
    111
    Par défaut
    Bon je suis de retour, je reviens sur ce problème !

    Après vérification, non je n'ai pas cette ligne. J'ai donc bien évidemment effectuer des recherches sur google, mais je n'ai strictement rien trouvé sur la configuration du job Executor dans le fichier jbm.cgf.xml...
    Je continue de chercher...

    N'aurais-tu pas une piste par hasard s'il te plaît ? Ou alors un exemple au mieux !

    Si je ne trouve pas de solutions, il faudra que je me penche sur un timer fait maison en java mais ce n'est pas très très beau... Un truc qui boucle pour vérifier si le temps est écoulé ou un Thread.sleep(), ce sont des solutions que je préfèrerais éviter.

    A moins que tu ais une autre solution, je suis ouvert à toute proposition ! Toi ou quelqu'un d'autre bien sûr !

  6. #6
    Membre du Club
    Inscrit en
    Juillet 2006
    Messages
    143
    Détails du profil
    Informations forums :
    Inscription : Juillet 2006
    Messages : 143
    Points : 69
    Points
    69
    Par défaut
    Citation Envoyé par Air P-E Voir le message
    Après vérification, non je n'ai pas cette ligne. J'ai donc bien évidemment effectuer des recherches sur google, mais je n'ai strictement rien trouvé sur la configuration du job Executor dans le fichier jbm.cgf.xml...
    D'accord, mais je n'ai pas compris, as-tu essayé d'ajouter cette ligne justement ?

    Sinon ayant repris un projet pré-configuré je ne peux pas vraiment t'en dire plus, pas d'exemple non plus puisqu'il s'agit de code d'entreprise.

    Je peux juste te conseiller de reprendre la configuration, même depuis le début s'il le faut.

    Voir aussi : http://docs.jboss.com/jbpm/v4/devgui...e/#jobexecutor

    Et je te recommande ces deux liens indispensables :

    - user guide : http://docs.jboss.com/jbpm/v4/userguide/html_single/
    - dev guide : http://docs.jboss.com/jbpm/v4/devguide/html_single/

  7. #7
    Membre régulier
    Inscrit en
    Avril 2010
    Messages
    200
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 200
    Points : 111
    Points
    111
    Par défaut
    Excuses-moi si je me suis mal exprimé.

    Oui j'ai essayé de mettre cette ligne

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    <jbpm-configuration>
     
    	<!-- 
    	The default configurations can be found in org/jbpm/default.jbpm.cfg.xml 
        Those configurations can be overwritten by putting this file called 
        jbpm.cfg.xml on the root of the classpath and put in the customized values.
    	-->
     
    	<!-- Enables timers and messages. -->
    	<job-executor />
     
    </jbpm-configuration>
    Mais ça ne fonctionne pas voici l'affichage dans la console :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    15:06:24,009 [main] INFO  JbpmConfiguration : using jbpm configuration resource 'jbpm.cfg.xml'
    15:06:24,009 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
    15:06:24,072 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
    15:06:24,072 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
    15:06:24,072 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
    15:06:24,072 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
    15:06:24,072 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
    15:06:24,072 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.mail.templates'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.smtp.host'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
    15:06:24,088 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.from.address'
    15:06:24,103 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.job.executor'
    15:06:24,103 [main] DEBUG JbpmConfiguration : loading specific configuration...
    et la première ligne d'erreur de la console de JUnit est :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'jbpm.cfg.xml'
    at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:292)
    at etc...
    Merci pour les liens mais j'y ai déjà été !

    J'ai d'ailleurs essayé aussi avec :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <jbpm-configuration>
     
    	<!-- 
    	The default configurations can be found in org/jbpm/default.jbpm.cfg.xml 
        Those configurations can be overwritten by putting this file called 
        jbpm.cfg.xml on the root of the classpath and put in the customized values.
    	-->
     
    	<import resource="jbpm.jobexecutor.cfg.xml" />
     
    </jbpm-configuration>
    Mais sans succès, sachant que j'ai exactement la même erreur que ci-dessus. Seulement il est censé faire l'import de ce fichier à partir d'où ? Parce que ce fichier en question je ne le vois nul part dans mon projet ou ailleurs, est-ce normal ?

    Merci de ton aide quoi qu'il en soit !

  8. #8
    Membre régulier
    Inscrit en
    Avril 2010
    Messages
    200
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 200
    Points : 111
    Points
    111
    Par défaut
    Bon je n'ai continué à chercher mais j'ai pas tellement avancé...

    J'ai essayé avec :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    <jbpm-configuration>
     
    	<!-- 
    	The default configurations can be found in org/jbpm/default.jbpm.cfg.xml 
        Those configurations can be overwritten by putting this file called 
        jbpm.cfg.xml on the root of the classpath and put in the customized values.
    	-->
    	<jbpm-context>
    		<service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
    	    <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
    	    <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
    	    <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
    	    <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
    	    <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
    		</jbpm-context>
     
    	<!-- configuration property used by persistence service impl org.jbpm.persistence.db.DbPersistenceServiceFactory -->
    	<string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" />
     
    	<!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
    	<string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
    	<string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" />
    	<string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
    	<string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
    	<string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
    	<string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
    	<string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" />
    	<string name="resource.mail.templates" value="jbpm.mail.templates.xml" />
     
    	<int    name="jbpm.byte.block.size" value="1024" singleton="true" />
    	<string name="jbpm.mail.smtp.host" value="localhost" />
    	<bean   name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />
    	<bean   name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
    	<bean   name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true" />
     
    	<bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor">
    		<field name="jbpmConfiguration"><ref bean="jbpmConfiguration" /></field>
    	    <field name="name"><string value="JbpmJobExector" /></field>
    	    <field name="nbrOfThreads"><int value="1" /></field>
    	    <field name="idleInterval"><int value="5000" /></field>
    	    <field name="maxIdleInterval"><int value="3600000" /></field> <!-- 1 hour -->
    	    <field name="historyMaxSize"><int value="20" /></field>
    	    <field name="maxLockTime"><int value="600000" /></field> <!-- 10 minutes -->
    	    <field name="lockMonitorInterval"><int value="60000" /></field> <!-- 1 minute -->
    	    <field name="lockBufferTime"><int value="5000" /></field> <!-- 5 seconds -->
    	</bean>
     
    </jbpm-configuration>
    Mais sans succès...

    (J'ai pris cette config dans cette conversation :
    http://www.developpez.net/forums/d33...lication-jbpm/. Ça m'a fait prendre conscience que mon post n'est pas dans le bon forum...)

    Et je retombe sur ma première erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    09:49:46,991 [main] INFO  JbpmConfiguration : using jbpm configuration resource 'jbpm.cfg.xml'
    09:49:46,991 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
    09:49:47,054 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
    09:49:47,054 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
    09:49:47,054 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
    09:49:47,054 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
    09:49:47,054 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
    09:49:47,054 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
    09:49:47,054 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.mail.templates'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.smtp.host'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
    09:49:47,070 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.from.address'
    09:49:47,085 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.job.executor'
    09:49:47,085 [main] DEBUG JbpmConfiguration : loading specific configuration...
    09:49:47,085 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
    09:49:47,085 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
    09:49:47,085 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
    09:49:47,085 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
    09:49:47,085 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
    09:49:47,085 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.mail.templates'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.smtp.host'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
    09:49:47,101 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
    09:49:47,116 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.job.executor'
    09:49:47,116 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpmConfiguration'
    09:49:47,116 [main] INFO  StaleObjectLogConfigurer : stale object exceptions will be hidden from logging
    09:49:47,195 [main] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.2.xsd)
    09:49:47,195 [main] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.2.xsd' resource
    09:49:47,320 [main] DEBUG NodeTypes : node 'page' will not be available. class 'org.jboss.seam.pageflow.Page' couldn't be loaded
    09:49:47,320 [main] DEBUG NodeTypes : node 'start-page' will not be available. class 'org.jboss.seam.pageflow.Page' couldn't be loaded
    09:49:47,366 [main] DEBUG GraphElement : event 'process-start' on 'ProcessDefinition(process)' for 'Token(/)'
    09:49:47,366 [main] DEBUG GraphElement : event 'before-signal' on 'StartState(start)' for 'Token(/)'
    09:49:47,366 [main] DEBUG GraphElement : event 'node-leave' on 'StartState(start)' for 'Token(/)'
    09:49:47,366 [main] DEBUG GraphElement : event 'transition' on 'Transition(1e0ff2f)' for 'Token(/)'
    09:49:47,366 [main] DEBUG GraphElement : event 'node-enter' on 'State(callWebServices)' for 'Token(/)'
    09:49:47,366 [main] DEBUG GraphElement : executing action 'CreateTimerAction(c2ff5)'
    09:49:47,366 [main] DEBUG Token : token[0] is locked by token[0]
    09:49:47,366 [main] DEBUG GraphElement : event 'timer-create' on 'State(callWebServices)' for 'Token(/)'
    09:49:47,382 [main] DEBUG Token : token[0] is unlocked by token[0]
    09:49:47,382 [main] ERROR GraphElement : action threw exception: service 'scheduler' unavailable
    org.jbpm.svc.JbpmServiceException: service 'scheduler' unavailable
    	at org.jbpm.svc.Services.getCurrentService(Services.java:93)
    	at org.jbpm.svc.Services.getCurrentService(Services.java:83)
    	at org.jbpm.scheduler.def.CreateTimerAction.execute(CreateTimerAction.java:78)
    	at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
    	at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:215)
    	at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:185)
    	at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:169)
    	at org.jbpm.graph.def.Node.enter(Node.java:302)
    	at org.jbpm.graph.def.Transition.take(Transition.java:151)
    	at org.jbpm.graph.def.Node.leave(Node.java:393)
    	at org.jbpm.graph.node.StartState.leave(StartState.java:70)
    	at org.jbpm.graph.exe.Token.signal(Token.java:192)
    	at org.jbpm.graph.exe.Token.signal(Token.java:140)
    	at com.cofinoga.jbpm.webservicesbpm.WebServicesProcessTest.testWebServicesProcessProcess(WebServicesProcessTest.java:32)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at junit.framework.TestCase.runTest(TestCase.java:154)
    	at junit.framework.TestCase.runBare(TestCase.java:127)
    	at junit.framework.TestResult$1.protect(TestResult.java:106)
    	at junit.framework.TestResult.runProtected(TestResult.java:124)
    	at junit.framework.TestResult.run(TestResult.java:109)
    	at junit.framework.TestCase.run(TestCase.java:118)
    	at junit.framework.TestSuite.runTest(TestSuite.java:208)
    	at junit.framework.TestSuite.run(TestSuite.java:203)
    	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    Ce qui est plutôt normal vu que la config que j'ai mise est censé être celle de base si le fichier jbpm.cfg.xml est vide donc ça revient au même.

    Je ne sais vraiment plus quoi tester, où chercher...

  9. #9
    Membre régulier
    Inscrit en
    Avril 2010
    Messages
    200
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 200
    Points : 111
    Points
    111
    Par défaut
    Bon j'ai trouvé le même sujet à cette adresse : http://community.jboss.org/message/376818#376818

    Mais je ne comprends pas très bien la partie où il dit :
    Hello,
    The problem that i had was fixed that:
    Each time that you need a transaction, you must use a block that:

    //Out of method
    private static JbpmConfiguration jbpmConfiguration = JbpmConfiguration
    .parseResource("jbpm.cfg.xml");

    public void makeSomething(String strProcessName){
    JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
    try{
    processDefinition = JbpmContext.getCurrentJbpmContext()
    .getGraphSession().findLatestProcessDefinition(
    strProcessName);
    ...
    ...
    }catch(..){
    }finally {
    jbpmContext.close();
    }
    }
    Est-ce que quelqu'un pourrait m'éclairer ? Il faut que je recréé un contexte jbpm ? Comment ?

Discussions similaires

  1. boucle Struts sur une action !
    Par habasque dans le forum Struts 1
    Réponses: 6
    Dernier message: 09/02/2009, 12h00
  2. Timeout sur une action struts
    Par Meunier dans le forum Struts 1
    Réponses: 6
    Dernier message: 15/11/2006, 19h04
  3. redirection sur une action qui ne marche pas
    Par nesbla dans le forum Struts 1
    Réponses: 5
    Dernier message: 04/08/2006, 20h16
  4. Afficher un fond sur une action bouton
    Par lordenzo dans le forum Flash
    Réponses: 6
    Dernier message: 31/03/2006, 12h47
  5. onChange pas déclanché sur une action javascript ?
    Par Oluha dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 27/06/2005, 16h32

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo