[Installation, Configuration & Deployment] - Re: javax.naming.NameNotFoundException
by ccc7919
I forgot to show the entire exception stack trace:
|
| 12:19:06,406 INFO [STDOUT] JNDI name : PromotionLocal
| 12:19:06,406 INFO [STDOUT] Name:ChequeDataLocal==> CLASS NAME:$Proxy96
| 12:19:06,406 INFO [STDOUT] Name:RegionCodeLocal==> CLASS NAME:$Proxy93
| 12:19:06,406 INFO [STDOUT] Name:ValidateSubscriberLocal==> CLASS NAME:$Proxy102
| 12:19:06,437 INFO [STDOUT] Name:PricePlanLocal==> CLASS NAME:$Proxy104
| 12:19:06,437 INFO [STDOUT] Name:QueueConnectionFactory==> CLASS NAME:org.jboss.naming.LinkRefPair
| 12:19:06,437 INFO [STDOUT] javax.naming.Context:::Name:HAPartition==> CLASS NAME:org.jnp.interfaces.NamingContext
| 12:19:06,437 INFO [STDOUT] Name:CreditAppliedLocal==> CLASS NAME:$Proxy112
| 12:19:06,437 INFO [STDOUT] Name:ManfDescriptionLocal==> CLASS NAME:$Proxy97
| 12:19:06,437 INFO [STDOUT] Name:ValidateSubplanLocal==> CLASS NAME:$Proxy105
| 12:19:06,437 INFO [STDOUT] Name:XAConnectionFactory==> CLASS NAME:org.jboss.mq.SpyXAConnectionFactory
| 12:19:06,437 INFO [STDOUT] javax.naming.Context:::Name:queue==> CLASS NAME:org.jnp.interfaces.NamingContext
| 12:19:06,437 INFO [STDOUT] Name:PhoneCodeLocal==> CLASS NAME:$Proxy107
| 12:19:06,437 INFO [STDOUT] Name:Treo600DataPlanLocal==> CLASS NAME:$Proxy106
| 12:19:06,453 INFO [STDOUT] Name:UUIDKeyGeneratorFactory==> CLASS NAME:org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory
| 12:19:06,453 INFO [STDOUT] Name:HiLoKeyGeneratorFactory==> CLASS NAME:org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory
| 12:19:06,453 INFO [STDOUT] Name:StagingBlackberryLocal==> CLASS NAME:$Proxy92
| 12:19:06,453 INFO [STDOUT] Name:UIL2ConnectionFactory==> CLASS NAME:javax.naming.LinkRef
| 12:19:06,453 INFO [STDOUT] Name:UserTransactionSessionFactory==> CLASS NAME:$Proxy52
| 12:19:06,453 INFO [STDOUT] Name:CouponsLocal==> CLASS NAME:$Proxy115
| 12:19:06,453 INFO [STDOUT] Name:UILXAConnectionFactory==> CLASS NAME:javax.naming.LinkRef
| 12:19:06,453 INFO [STDOUT] Name:PrecustomerLocal==> CLASS NAME:$Proxy101
| 12:19:06,453 INFO [STDOUT] Name:UndeliverableLocal==> CLASS NAME:$Proxy98
| 12:19:06,468 INFO [STDOUT] Name:CouponLocal==> CLASS NAME:$Proxy108
| 12:19:06,468 INFO [STDOUT] javax.naming.Context:::Name:console==> CLASS NAME:org.jnp.interfaces.NamingContext
| 12:19:06,468 INFO [STDOUT] Name:UpdateLocal==> CLASS NAME:$Proxy95
| 12:19:06,468 INFO [STDOUT] Name:HTTPXAConnectionFactory==> CLASS NAME:org.jboss.mq.SpyXAConnectionFactory
| 12:19:06,468 INFO [STDOUT] Name:ValidatorHelperLocal==> CLASS NAME:$Proxy113
| 12:19:06,468 INFO [STDOUT] javax.naming.Context:::Name:topic==> CLASS NAME:org.jnp.interfaces.NamingContext
| 12:19:06,468 INFO [STDOUT] Name:StagingLocal==> CLASS NAME:$Proxy110
| 12:19:06,468 INFO [STDOUT] Name:SequenceSessionLocal==> CLASS NAME:$Proxy114
| 12:19:06,468 INFO [STDOUT] Name:RogerspriceplanLocal==> CLASS NAME:$Proxy89
| 12:19:06,468 INFO [STDOUT] Name:RebateMailDateLocal==> CLASS NAME:$Proxy99
| 12:19:06,468 INFO [STDOUT] Name:ProvinceLocal==> CLASS NAME:$Proxy100
| 12:19:06,468 INFO [STDOUT] Name:UserTransaction==> CLASS NAME:org.jboss.tm.usertx.client.ClientUserTransaction
| 12:19:06,468 INFO [STDOUT] Name:HTTPConnectionFactory==> CLASS NAME:org.jboss.mq.SpyConnectionFactory
| 12:19:06,468 INFO [STDOUT] Name:CustomerLocal==> CLASS NAME:$Proxy103
| 12:19:06,468 INFO [STDOUT] Name:SequenceLocal==> CLASS NAME:$Proxy94
| 12:19:06,484 INFO [STDOUT] javax.naming.Context:::Name:HASessionState==> CLASS NAME:org.jnp.interfaces.NamingContext
| 12:19:06,484 INFO [STDOUT] Name:UIL2XAConnectionFactory==> CLASS NAME:javax.naming.LinkRef
| 12:19:06,484 INFO [STDOUT] Name:NoteLocal==> CLASS NAME:$Proxy111
| 12:19:06,484 INFO [STDOUT] Name:PromoCodeLocal==> CLASS NAME:$Proxy109
| 12:19:06,484 INFO [STDOUT] javax.naming.Context:::Name:invokers==> CLASS NAME:org.jnp.interfaces.NamingContext
| 12:19:06,484 INFO [STDOUT] Name:EventDispatcher==> CLASS NAME:org.jboss.ws.eventing.mgmt.DispatcherDelegate
| 12:19:06,484 INFO [STDOUT] Name:UILConnectionFactory==> CLASS NAME:javax.naming.LinkRef
| 12:19:06,484 INFO [STDOUT] javax.naming.Context:::Name:jmx==> CLASS NAME:org.jnp.interfaces.NamingContext
| 12:19:06,484 INFO [STDOUT] Name:PromotionLocal==> CLASS NAME:$Proxy116
| 12:19:06,484 INFO [STDOUT] Name:AccountLocal==> CLASS NAME:$Proxy90
| 12:19:06,500 INFO [STDOUT] Name:ConnectionFactory==> CLASS NAME:org.jboss.mq.SpyConnectionFactory
| 12:19:06,500 INFO [STDOUT] Name:TopicConnectionFactory==> CLASS NAME:org.jboss.naming.LinkRefPair
| 12:19:06,500 INFO [STDOUT] Name:StatusCodeLocal==> CLASS NAME:$Proxy91
| 12:19:06,531 WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.ClassCastException
| 12:19:06,531 ERROR [[action]] Servlet.service() for servlet action threw exception
| java.lang.ClassCastException
| at rpc.services.promotion.util.PromotionUtil.getLocalHome(PromotionUtil.java:59)
| at rpc.de.web.struts.action.BaseAction.getPromotion(BaseAction.java:69)
| at rpc.de.web.struts.action.signon.LoginAction.doExecute(LoginAction.java:41)
| at rpc.de.web.struts.action.BaseAction.execute(BaseAction.java:64)
| at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
| at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
| at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
| at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:534)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962237#3962237
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962237
18 years, 5 months
[JBoss jBPM] - Re: A timer associated to a process instance ?
by biggef
Well thanks.
I followed the example of code in CreateTimerAction and CancelTimerAction (and switched from jbpm 3.0.2 to 3.1.2) and now I can see my timers in the DB. But when I try to set an Action to be called when the timer fires, I got an error.
Here is my related code:
anonymous wrote : Action timerAction = new Action();
| Delegation delegation = new Delegation();
| delegation.setClassName("logique.alerte.TimerHandler");
| timerAction.setActionDelegation(delegation);
| String sDueDate = "5 minutes";
| String sTimerName = "bob";
| Date dDueDate = businessCalendar.add( new Date(), duration );
|
| Timer timer = new Timer(executionContext.getToken());
| timer.setName(sTimerName);
| timer.setDueDate(dDueDate);
| timer.setAction(timerAction);
| timer.setGraphElement(executionContext.getEventSource());
|
| SchedulerService schedulerService = (SchedulerService) Services.getCurrentService(Services.SERVICENAME_SCHEDULER);
| schedulerService.createTimer(timer);
And here is the error:
anonymous wrote : org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:172)
| at org.jbpm.svc.Services.close(Services.java:211)
| at org.jbpm.JbpmContext.close(JbpmContext.java:139)
| at logique.JbpmManager.closeSession(JbpmManager.java:36)
| at servlet.NouveauDossier.postRequest(NouveauDossier.java:94)
| at logique.servlet.ServletContenu.traiterRequete(ServletContenu.java:132)
| at logique.servlet.ServletContenu.doPost(ServletContenu.java:163)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at logique.ihm.XsltFilter.doFilter(XsltFilter.java:81)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.jbpm.graph.def.Action
| at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:216)
| at org.hibernate.type.EntityType.getIdentifier(EntityType.java:108)
| at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:221)
| at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:476)
| at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:2785)
| at org.hibernate.event.def.DefaultFlushEntityEventListener.dirtyCheck(DefaultFlushEntityEventListener.java:457)
| at org.hibernate.event.def.DefaultFlushEntityEventListener.isUpdateNecessary(DefaultFlushEntityEventListener.java:180)
| at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:104)
| at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
| at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:877)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:344)
| at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:162)
| ... 28 more
So how can I save the Action before closing the session ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962234#3962234
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962234
18 years, 5 months
[JBoss jBPM] - BPEL: ServiceGeneratorTask WebDeployTask cannot be found
by KVAK_TNT
Hi there!
I have downloaded the BPEL for jBPM. Now I have a small but "therefore system not working" Problem...
Following (original) Code:
doc/examples/process.template.xml
| <!-- ======================== -->
| <!-- === TASK DEFINITIONS === -->
| <!-- ======================== -->
|
| <taskdef name="webdeploy" classname="org.jbpm.bpel.ant.WebDeployTask">
| <classpath refid="webtask.classpath" />
| </taskdef>
| <taskdef name="servicegen" classname="org.jbpm.bpel.ant.ServiceGeneratorTask">
| <classpath refid="servicegen.classpath" />
| </taskdef>
|
Resulting Error:
taskdef class org.jbpm.bpel.ant.WebDeployTask cannot be found
| taskdef class org.jbpm.bpel.ant.WebDeployTask cannot be found
next Code:
doc/examples/build.xml
| <taskdef name="webdbschema" classname="org.jbpm.bpel.ant.WebDBSchemaTask">
| <classpath refid="webtask.classpath" />
| </taskdef>
|
taskdef class org.jbpm.bpel.ant.WebDBSchemaTask cannot be found
All of them are big problems, because I cannot build or create a schema
Does anyone know a sollution for this? That would be great!
Thanks in Advance!
Claus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962233#3962233
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962233
18 years, 5 months
[JBoss jBPM] - Re: Creating a timer doesn't save to the database
by brado
Ugh...laptop gone wild. Sorry about the ugly post above. Accidental hit of the return key before I formatted the code. Anyway, here it is in readable form:
| public void execute(ExecutionContext executionContext) throws Exception {
| log.debug("[execute]: Enter.");
|
| try {
| log.debug("[execute]: Getting context variables.");
| String transactionId = (String) executionContext.getVariable(NetworkNode.PVAR_transactionId);
|
| log.debug("[execute]: Creating solicit timer: " + executionContext.getTaskInstance());
| Timer timer = new Timer(executionContext.getToken());
| timer.setName("Solicit: " + transactionId);
| BusinessCalendar businessCalendar = new BusinessCalendar();
| Date dueDate = businessCalendar.findStartOfNextDay(new Date());
| timer.setDueDate(dueDate);
| timer.setTransitionName("solicitQuery");
| timer.setGraphElement(executionContext.getEventSource());
| timer.setTaskInstance(executionContext.getTaskInstance());
| SchedulerService schedulerService = (SchedulerService) Services.getCurrentService(Services.SERVICENAME_SCHEDULER);
| schedulerService.createTimer(timer);
| log.info("[execute]: Solicit timer created: " + timer);
| } catch (Exception ex) {
| if (ex instanceof NodeException) {
| throw ex;
| }
| log.error("[execute]: Error creating solicit timer: " + ex.getMessage());
| throw new NodeException("Error creating solicit timer: " + ex.getMessage(),
| ex, IErrorCode.Code.E_UNKNOWN_ERROR);
| } finally {
| executionContext.leaveNode();
| log.debug("[execute]: Exit.");
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962230#3962230
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962230
18 years, 5 months
[JBoss jBPM] - Creating a timer doesn't save to the database
by brado
Hello,
I am trying to create a timer in a business process, and save it to the scheduler. I get no errors when creating or saving the timer. However, it does not appear that anything is getting saved to the database. The JBPM_TIMER table is empty. Here is the code I am executing inside of my business process ActionHandler's execute method:
public void execute(ExecutionContext executionContext) throws Exception {
log.debug("[execute]: Enter.");
try {
log.debug("[execute]: Getting context variables.");
String transactionId = (String) executionContext
.getVariable(NetworkNode.PVAR_transactionId);
log.debug("[execute]: Creating solicit timer: "
+ executionContext.getTaskInstance());
Timer timer = new Timer(executionContext.getToken());
timer.setName("Solicit: " + transactionId);
BusinessCalendar businessCalendar = new BusinessCalendar();
Date dueDate = businessCalendar.findStartOfNextDay(new Date());
timer.setDueDate(dueDate);
timer.setTransitionName("solicitQuery");
timer.setGraphElement(executionContext.getEventSource());
timer.setTaskInstance(executionContext.getTaskInstance());
SchedulerService schedulerService = (SchedulerService) Services
.getCurrentService(Services.SERVICENAME_SCHEDULER);
schedulerService.createTimer(timer);
log.info("[execute]: Solicit timer created: " + timer);
} catch (Exception ex) {
if (ex instanceof NodeException) {
throw ex;
}
log.error("[execute]: Error creating solicit timer: " + ex.getMessage());
throw new NodeException("Error creating solicit timer: " + ex.getMessage(),
ex, IErrorCode.Code.E_UNKNOWN_ERROR);
} finally {
executionContext.leaveNode();
log.debug("[execute]: Exit.");
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962229#3962229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962229
18 years, 5 months