<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Problem in timer
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/aneesh.kumar">aneesh kumar CM</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/570938#570938">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>iam using a timer in my appplication with jbpm4.3 with spring 2.5.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min- padding: 0px;">   <state name="waitForNotification"><br/>        <transition name="go on" to="notificationStatusSuccess"/><br/>        <transition name="timeout" to="Timedout"><br/>            <timer duedate="30 seconds"/> <br/>        </transition><br/>    </state></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>in my web.xml i have given setvlet</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><servlet><br/>         <servlet-name>JobExecutorServlet</servlet-name><br/>         <servlet-class>org.jbpm.job.executor.JobExecutorServlet</servlet-class><br/>         <load-on-startup>3</load-on-startup><br/>     </servlet><br/>     <br/>     <servlet-mapping><br/>         <servlet-name>JobExecutorServlet</servlet-name><br/>         <url-pattern>/jobexecutor</url-pattern><br/>     </servlet-mapping></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>my jbpm.cfg.xml is here</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><jbpm-configuration></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <jbpm-context><br/>    <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" /><br/>    <service name="tx" factory="org.jbpm.tx.TxServiceFactory" /><br/>    <service name="message" factory="org.mule.transport.bpm.jbpm.MuleMessageServiceFactory" /><br/>    <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" /><br/>    <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" /><br/>    <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" /><br/>  </jbpm-context></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <string name="resource.jbpm.jobexecutor.cfg.xml" value="jbpm.jobexecutor.cfg.xml" /><br/>  <string name="resource.jbpm.businesscalendar.cfg.xml" value="jbpm.businesscalendar.cfg.xml" /><br/>  <string name="resource.jbpm.tx.hibernate.cfg.xml" value="jbpm.tx.hibernate.cfg.xml" /><br/>  <string name="resource.jbpm.jpdl.cfg.xml" value="jbpm.jpdl.cfg.xml" /></p><p>  <br/>  <!-- configuration property used by persistence service impl org.jbpm.persistence.db.DbPersistenceServiceFactory --><br/>  <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" /><br/>  <br/>   <!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar --><br/>  <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" /><br/>  <string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" /><br/>  <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" /><br/>  <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" /><br/>  <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" /><br/>  <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" /><br/>  <string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <long name="jbpm.msg.wait.timout" value="5000" singleton="true" /><br/>  <int name="jbpm.byte.block.size" value="1024" singleton="true" /><br/>  <string name="mail.smtp.host" value="localhost" /><br/>  <bean name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" /><br/>  <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" /><br/>  <bean name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true" /><br/>  <br/>  <bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor" init-method="start"><br/>    <field name="jbpmConfiguration"><ref bean="jbpmConfiguration" /></field><br/>    <field name="name"><string value="JbpmJobExecutor" /></field><br/>    <field name="nbrOfThreads"><int value="1" /></field><br/>    <field name="idleInterval"><int value="5000" /></field><br/>    <field name="maxIdleInterval"><int value="3600000" /></field> <!-- 1 hour --><br/>    <field name="historyMaxSize"><int value="20" /></field><br/>    <field name="maxLockTime"><int value="600000" /></field> <!-- 10 minutes --><br/>    <field name="lockMonitorInterval"><int value="60000" /></field> <!-- 1 minute --><br/>    <field name="lockBufferTime"><int value="5000" /></field> <!-- 5 seconds --><br/>  </bean><br/>  <br/></jbpm-configuration></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The jbpm version is 4.3. The jbpm dependencies are</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><dependency><br/>        <groupId>javax.annotation</groupId><br/>        <artifactId>jsr250-api</artifactId><br/>        <version>1.0</version><br/>    </dependency><br/>    <dependency><br/>        <groupId>org.jbpm.jbpm4</groupId><br/>        <artifactId>jbpm-test-base</artifactId><br/>        <version>${jbpm.version}</version><br/>    </dependency><br/>    <dependency><br/>        <groupId>org.jbpm.jbpm4</groupId><br/>    <artifactId>jbpm-jpdl</artifactId><br/>        <version>${jbpm.version}</version><br/>    </dependency><br/>    <dependency><br/>        <groupId>org.jbpm.jbpm4</groupId><br/>        <artifactId>jbpm-pvm</artifactId><br/>        <version>${jbpm.version}</version><br/>    </dependency></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>While runnig the application using jetty server it is giving the error given below and also the timer is not fired.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>ERROR: org.jbpm.db.JobSession - org.hibernate.MappingException: Named query not known: JobSession.getFirstAcquirableJob<br/>ERROR: org.jbpm.job.executor.JobExecutorThread - exception in job executor thread. waiting 5000 milliseconds<br/>org.jbpm.JbpmException: couldn't get acquirable jobs<br/>    at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:44)<br/>    at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:114)<br/>    at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)<br/>Caused by: org.hibernate.MappingException: Named query not known: JobSession.getFirstAcquirableJob<br/>    at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:70)<br/>    at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)<br/>    at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:36)<br/>    ... 2 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>can anybody throw some light into this...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>regards</p><p>Aneesh.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/570938#570938">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>