[Installation, Configuration & Deployment] - TimerTask Thread stopped
by subramaniam.venkat
Hello All,
In my application i am using JDK's TimerTask class to pool a directory.
But the TimerTask is stopping exactly at 11:59:59 (Noon).
There is no exception is thrown.I took the truss output and found there is
error occurring.
My application is running on JDK version 1.4.2
Solaris version : 5.8
Jboss Version : 3.2.4
Can anyone please tell me what causes the TimerTask to stop in Solaris.
This error only happens only in my production environment and when tried to reproduce the same the issue is not getting reproduced in dev enviroment.
Any comment very much welcome
Thanks & Warm Regards,
Subramaniam V
908.6406 write(14, " 1 1 : 5 9 : 5 9 , 6 0 0".., 150) = 150
| 909.6422 Incurred fault #6, FLTBOUNDS %pc = 0xF9C9EFB0
| siginfo: SIGSEGV SEGV_MAPERR addr=0x00000004
| 909.6428 Received signal #11, SIGSEGV [caught]
| siginfo: SIGSEGV SEGV_MAPERR addr=0x00000004
| 909.6477 Incurred fault #6, FLTBOUNDS %pc = 0xF9815FA8
| siginfo: SIGSEGV SEGV_MAPERR addr=0x00000004
| 909.6481 Received signal #11, SIGSEGV [caught]
| siginfo: SIGSEGV SEGV_MAPERR addr=0x00000004
| 917.6463 read(33, " G E T / w a t c h d o".., 4096) = 51
| 917.6704 Incurred fault #6, FLTBOUNDS %pc = 0xF9C9EFB0
| siginfo: SIGSEGV SEGV_MAPERR addr=0x00000004
| 917.6709 Received signal #11, SIGSEGV [caught]
| siginfo: SIGSEGV SEGV_MAPERR addr=0x00000004
| 917.6765 write(12, " 1 2 : 0 0 : 0 8 , 6 2 9".., 97) = 97
| 917.6786 write(12, " 1 2 : 0 0 : 0 8 , 6 3 8".., 91) = 91
| 917.6804 read(31, " <", 1) = 1
| 917.6809 read(31, " w", 1) = 1
| 917.6814 read(31, " a", 1) = 1
| 917.6818 read(31, " t", 1) = 1
| 917.6825 read(31, " c h d o g >\n < e j".., 2045) = 50
| 917.6844 write(12, " 1 2 : 0 0 : 0 8 , 6 4 3".., 101) = 101
| 917.6862 write(12, " 1 2 : 0 0 : 0 8 , 6 4 5".., 103) = 103
| 917.6867 read(31, 0xAA87DF50, 2047) = 0
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058297#4058297
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058297
18Â years, 10Â months
[JBoss jBPM] - Re: How to use FindTaskInstances in multiple transitions?
by cristian_e
"MindTheGap" wrote : Ok, thats right!
| But in this case, findTaskInstances work?
|
| Thanks!
findTaskInstances(actorID) shows you just the taskInstances who's actorID equals the parameter and that are currently open (not ended). The actual HQL query been done is:
select ti
| from org.jbpm.taskmgmt.exe.TaskInstance as ti
| where ti.actorId = :actorId
| and ti.isOpen = true
(obtained from the source code for TaskMgmtSession and the hibernate.queries.hbm.xml).
As you can see, it is fairly simple. So, if you have played with signalling and directed the token only to the task nodes you want for that user, only the taskInstances created for him will appear as a result of the findTaskInstances function.
Of course you have to take into consideration the difference between assigning a single actor to a taskInstance and assigning a group of them by using a pool of actors, which is essentially different. This function only returns the single actor case.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058294#4058294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058294
18Â years, 10Â months
[JBoss Seam] - Problem in seam-gen reverse engineered database
by dbinder
Hello,
I'm new to jboss-seam and I wanted to demonstrate the power of seam and seam-gen to my co-workers and bosses. I tried reverse engineer a recent application we developped to show the time that should have been spared. but ...
I ended up with exceptions (always of the same kind)
the exceptions seems to take place on relationship tables (thoses things you should simply not CRUD). I admit that the side of the application should be deleted in a real-life project but as I said it's for framework testing purpose;
here are the exception and incriminated beans and jsf.
JSF:
| <s:link view="/CUtiliserOrList.xhtml"
| value="CUtiliserOr List"
| propagation="none"/>
|
exception:
| javax.faces.el.PropertyNotFoundException: Bean: entity.CUtiliserOrList_$$_javassist_259, property: cUtiliserOr
| at org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:483)
| at org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:454)
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:417)
| at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
| at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
| at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
| at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
| at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:69)
| at org.jboss.seam.pages.Param.getValueFromModel(Param.java:93)
| at org.jboss.seam.core.Pages.getPageParameterValue(Pages.java:615)
| at org.jboss.seam.core.Pages.getConvertedParameters(Pages.java:591)
| at org.jboss.seam.ui.HtmlLink.encodeBegin(HtmlLink.java:128)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:280)
| at org.richfaces.renderkit.html.ToolBarRendererBase.encodeChildren(ToolBarRendererBase.java:81)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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(Unknown Source)
|
entity bean:
| package entity;
| // Generated 27 juin 2007 15:28:15 by Hibernate Tools 3.2.0.b9
|
| import javax.persistence.AttributeOverride;
| import javax.persistence.AttributeOverrides;
| import javax.persistence.Column;
| import javax.persistence.EmbeddedId;
| import javax.persistence.Entity;
| import javax.persistence.FetchType;
| import javax.persistence.JoinColumn;
| import javax.persistence.ManyToOne;
| import javax.persistence.Table;
| import org.hibernate.validator.NotNull;
|
| /**
| * CUtiliserOr generated by hbm2java
| */
| @Entity
| @Table(name = "c_utiliser_or", catalog = "besace01")
| public class CUtiliserOr implements java.io.Serializable {
|
| private CUtiliserOrId id;
| private Origine origine;
| private Contrat contrat;
|
| public CUtiliserOr() {
| }
|
| public CUtiliserOr(CUtiliserOrId id, Origine origine, Contrat contrat) {
| this.id = id;
| this.origine = origine;
| this.contrat = contrat;
| }
|
| @EmbeddedId
| @AttributeOverrides({
| @AttributeOverride(name = "fkCContraintOr", column = @Column(name = "fk_c_contraint_or", nullable = false, length = 36)),
| @AttributeOverride(name = "fkCUtiliserOr", column = @Column(name = "fk_c_utiliser_or", nullable = false, length = 36))})
| @NotNull
| public CUtiliserOrId getId() {
| return this.id;
| }
|
| public void setId(CUtiliserOrId id) {
| this.id = id;
| }
| @ManyToOne(fetch = FetchType.LAZY)
| @JoinColumn(name = "fk_c_utiliser_or", nullable = false, insertable = false, updatable = false)
| @NotNull
| public Origine getOrigine() {
| return this.origine;
| }
|
| public void setOrigine(Origine origine) {
| this.origine = origine;
| }
| @ManyToOne(fetch = FetchType.LAZY)
| @JoinColumn(name = "fk_c_contraint_or", nullable = false, insertable = false, updatable = false)
| @NotNull
| public Contrat getContrat() {
| return this.contrat;
| }
|
| public void setContrat(Contrat contrat) {
| this.contrat = contrat;
| }
|
| }
|
session.entity bean
| package entity;
|
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.framework.EntityQuery;
| import java.util.List;
| import java.util.Arrays;
|
| @Name("cUtiliserOrList")
| public class CUtiliserOrList extends EntityQuery {
|
| private static final String[] RESTRICTIONS = {
| "lower(cUtiliserOr.id.fkCContraintOr) like concat(lower(#{cUtiliserOrList.cUtiliserOr.id.fkCContraintOr}),'%')",
| "lower(cUtiliserOr.id.fkCUtiliserOr) like concat(lower(#{cUtiliserOrList.cUtiliserOr.id.fkCUtiliserOr}),'%')",};
|
| private CUtiliserOr cUtiliserOr;
|
| public CUtiliserOrList() {
| cUtiliserOr = new CUtiliserOr();
| cUtiliserOr.setId(new CUtiliserOrId());
| }
|
| @Override
| public String getEjbql() {
| return "select cUtiliserOr from CUtiliserOr cUtiliserOr";
| }
|
| @Override
| public Integer getMaxResults() {
| return 25;
| }
|
| public CUtiliserOr getCUtiliserOr() {
| return cUtiliserOr;
| }
|
| @Override
| public List<String> getRestrictions() {
| return Arrays.asList(RESTRICTIONS);
| }
|
| }
|
Can someone help me find out where the problem comes from ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058286#4058286
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058286
18Â years, 10Â months
[JBoss jBPM] - does not create the instance
by ricardomarques
Hi i'm trying start a new process definition instance, but by something that i don't understand i can't. I get no output on deploy and on creating the new instance, i have'd checked the database, the instance isn't created.
The process definition:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2" name="holiday request standart for ernie">
|
| <start-state name="enter request">
| <task name="request entry">
| <controller>
| <variable name="start date" access="read,write,required"></variable>
| <variable name="duration" access="read,write,required"></variable>
| </controller>
| <assignment expression="user(ernie)"></assignment>
| </task>
| <transition name="" to="evaluate request"></transition>
| </start-state>
| <end-state name="end"></end-state>
| <task-node name="evaluate request">
| <task name="entry evaluation">
| <controller>
| <variable name="start date" access="read"></variable>
| <variable name="duration" access="read"></variable>
| <variable name="info" access="read"></variable>
| <variable name="decision"></variable>
| </controller>
| <assignment expression="user(ernie)"></assignment>
| </task>
| <transition name="More info needed" to="give addition info"></transition>
| <transition name="approve/disapprove" to="end"></transition>
| </task-node>
| <task-node name="give addition info">
| <task name="additional info entry">
| <controller>
| <variable name="start date" access="read"></variable>
| <variable name="duration" access="read"></variable>
| <variable name="info"></variable>
| </controller>
| <assignment expression="user(ernie)"></assignment>
| </task>
| <transition name="" to="evaluate request"></transition>
| </task-node>
|
| </process-definition>
|
I'm creating the instance with:
| cmd = new NewProcessInstanceCommand();
| cmd.setProcessId(Long.parseLong(pid));
| cmd.setActorId(userName);
| cmd.setCreateStartTask(true);
|
| getEjbClient().getCommandService().execute(cmd);
|
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058285#4058285
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058285
18Â years, 10Â months