[JBoss Portal] New message: "CMS stops working after some time running non-stop"
by Javier Alperte
User development,
A new message was posted in the thread "CMS stops working after some time running non-stop":
http://community.jboss.org/message/529658#529658
Author : Javier Alperte
Profile : http://community.jboss.org/people/xalperte
Message:
--------------------------------------------------------------
I do not know exactly what happens but the CMS stops working after some time running non-stop throwing the following exception:
{code}java.io.FileNotFoundException: /tmp/bin2831724358387901893.tmp (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.apache.jackrabbit.core.value.BLOBInTempFile.getStream(BLOBInTempFile.java:153)
at org.apache.jackrabbit.core.value.InternalValue.toJCRValue(InternalValue.java:366)
at org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:469)
at org.apache.jackrabbit.core.PropertyImpl.getStream(PropertyImpl.java:482)
at org.jboss.portal.cms.impl.jcr.command.ContentGetCommand.execute(ContentGetCommand.java:160)
at org.jboss.portal.cms.impl.jcr.JCRCommandContext.execute(JCRCommandContext.java:73)
at org.jboss.portal.cms.impl.jcr.command.FileGetCommand.execute(FileGetCommand.java:113)
at org.jboss.portal.cms.impl.jcr.JCRCMS$1.invoke(JCRCMS.java:120)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
at org.jboss.portal.cms.impl.interceptors.ApprovalWorkflowInterceptor.invoke(ApprovalWorkflowInterceptor.java:105)
at org.jboss.portal.cms.CMSInterceptor.invoke(CMSInterceptor.java:36)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.cms.impl.interceptors.ACLInterceptor.invoke(ACLInterceptor.java:254)
at org.jboss.portal.cms.CMSInterceptor.invoke(CMSInterceptor.java:36)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
at org.jboss.portal.cms.impl.jcr.JCRCMS.executeCommand(JCRCMS.java:524)
at org.jboss.portal.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:430)
at org.jboss.portal.core.cms.CMSObjectCommandFactoryService.getFile(CMSObjectCommandFactoryService.java:120)
at org.jboss.portal.core.cms.CMSObjectCommandFactoryService.doMapping(CMSObjectCommandFactoryService.java:135)
at org.jboss.portal.core.controller.command.mapper.CommandFactoryDelegate.doMapping(CommandFactoryDelegate.java:87)
at org.jboss.portal.core.controller.command.mapper.DelegatingCommandFactoryService.doMapping(DelegatingCommandFactoryService.java:142)
at org.jboss.portal.core.model.portal.DefaultPortalCommandFactory.doMapping(DefaultPortalCommandFactory.java:69)
at org.jboss.portal.core.controller.Controller.handle(Controller.java:252)
at org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
at org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:47)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.core.aspects.server.PortalContextPathInterceptor.invoke(PortalContextPathInterceptor.java:45)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at com.rudder.commons.i18n.jboss.LocaleInterceptor.invoke(LocaleInterceptor.java:141)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:96)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:196)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.server.aspects.server.SignOutInterceptor.invoke(SignOutInterceptor.java:98)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.core.impl.api.user.UserEventBridgeTriggerInterceptor.invoke(UserEventBridgeTriggerInterceptor.java:65)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.core.aspects.server.IdentityCacheInterceptor.invoke(IdentityCacheInterceptor.java:68)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253)
at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:69)
at org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:130)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:252)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:151)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619){code}
`
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529658#529658
16 years, 1 month
[jBPM] New message: "Re: Creating tasks in a loop with JBPM 4.3"
by null null
User development,
A new message was posted in the thread "Creating tasks in a loop with JBPM 4.3":
http://community.jboss.org/message/529655#529655
Author : null null
Profile : http://community.jboss.org/people/ustone
Message:
--------------------------------------------------------------
hmmm..ok...that's not the thing i want to hear ;-)
so i played around and tried something...
Here is my xml ..(java classes are omitted because calls are selfdescribing):
------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<process key="LOOP" name="Loop" xmlns="http://jbpm.org/4.0/jpdl">
<start g="274,7,48,48" name="startNode">
<transition g="-45,-18" name="to initialdecideForkAgain" to="decideForkAgain"/>
</start>
<end g="281,755,48,48" name="endNode"/>
<java class="my.jbpm.loop.TestActivity" g="63,316,92,52" method="sayHello" name="sayHello">
<transition g="-61,-18" name="to joinHello" to="joinHello"/>
</java>
<java class="my.jbpm.loop.TestActivity" g="78,155,92,52" method="decreaseForkCounter" name="decreaseForkCounter" var="request">
<arg>
<object expr="#{request}"/>
</arg>
<transition g="-43,-18" name="to forkHello" to="forkHello"/>
</java>
<decision g="279,118,48,48" name="decideForkAgain">
<handler class="my.jbpm.loop.ForkAgainHandler" />
<transition g="-37,-18" name="FORK_AGAIN" to="decreaseForkCounter"/>
<transition g="746,372:-58,-18" name="FORK_NOT_AGAIN" to="decideJoinAgain"/>
</decision>
<fork g="280,213,48,48" name="forkHello">
<transition g="-45,-18" name="to sayHello" to="sayHello"/>
<transition g="-77,-18" name="to decideForkAgain" to="decideForkAgain"/>
</fork>
<join g="278,399,48,48" name="joinHello">
<transition g="-61,-18" name="to increaseJoinCounter" to="increaseJoinCounter"/>
</join>
<java class="my.jbpm.loop.TestActivity" g="66,474,92,52" method="increaseJoinCounter" name="increaseJoinCounter" var="request">
<arg>
<object expr="#{request}"/>
</arg>
<transition g="-68,-18" name="to decideJoinAgain" to="decideJoinAgain"/>
</java>
<decision g="277,606,48,48" name="decideJoinAgain">
<handler class="my.jbpm.loop.JoinAgainHandler" />
<transition g="-61,-18" name="JOIN_NOT_AGAIN" to="endNode"/>
<transition g="-58,-18" name="JOIN_AGAIN" to="joinHello"/>
</decision>
</process>
------------------------------------------------------
The main idea behind this is to count the number of forks and joins to know how often i have to fork and i have to join. Values are saved in the workflow object itself.....
[Join|Fork]AgainHandler do evaluate the values to decide if antother fork/join has to do....
TestAactivity only in/decrease the counter and do some "Hello" output....
I can attach a little zip with the whole project if somebody is interested...
What do you think? Are there any problems with this kind of problem solution.....
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529655#529655
16 years, 1 month
[jBPM] New message: "Re: Unable to set the mail configuration properties in JBPM 4.0"
by ciccio ciccio
User development,
A new message was posted in the thread "Unable to set the mail configuration properties in JBPM 4.0":
http://community.jboss.org/message/529652#529652
Author : ciccio ciccio
Profile : http://community.jboss.org/people/ciccioVega
Message:
--------------------------------------------------------------
Hi guys,
i have the same problem:
my jbpm.mail.properties is
mail.smtps.starttls.enable=true
mail.smtps.auth=true
mail.smtp.host=smtp.gmail.com
mail.smtp.port=465
mail.transport.protocol=smtps
mail.from=my_mail(a)gmail.com
mail.user=my_mail
mail.password=pwd
mail.debug=true
and my mail.jpdl.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<process name="MyMAIL" xmlns="http://jbpm.org/4.3/jpdl">
<start g="126,51,48,48" name="start1">
<transition name="to mail" to="mail" g="-60,-18"/>
</start>
<mail g="122,300,92,52" name="mail">
<from addresses="my_mail(a)gmail.com"/>
<to addresses="my_other_mail(a)gmail.com"/>
<subject>hello</subject>
<text>world</text>
<transition name="to end1" to="end1" g="-42,-18"/>
</mail>
<end name="end1" g="169,444,48,48"/>
</process>
It not works: console:
15:12:09,316 DEBUG [ProcessDefinitionImpl] creating new execution for process 'MyMAIL'
15:12:09,316 DEBUG [DatabaseIdComposer] generated execution id MyMAIL.4160002
15:12:09,316 DEBUG [ExecuteActivity] executing activity(start1)
15:12:09,316 DEBUG [ExecuteActivity] executing activity(moveFile)
15:12:09,332 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTran
sport,Sun Microsystems, Inc]
15:12:09,472 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
15:12:09,472 INFO [STDOUT] DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false
and then i have an Request-timeout exception in jbpm-console.
If i write in jbpm.mail.properties *mail.smtps.host*=smtp.gmail.com instead of *mail.smtp.host*=smtp.gmail.com, in console i see
...trying to connect to host localhost, port 465, isSSL false
I've tried also to write a java appl standalone and made it runs under jbpm process and it works fine.
public class SendMail {
private static final String SMTP_HOST_NAME = "smtp.gmail.com";
private static final int SMTP_HOST_PORT = 465;
private static final String SMTP_AUTH_USER = "my_mail(a)gmail.com";
private static final String SMTP_AUTH_PWD = "pwd";
public static void main(String[] args) throws Exception{
new SendMail().test();
}
public void test() throws Exception{
Properties props = new Properties();
props.put("mail.transport.protocol", "smtps");
props.put("mail.smtps.host", SMTP_HOST_NAME);
props.put("mail.smtps.auth", "true");
// props.put("mail.smtps.quitwait", "false");
Session mailSession = Session.getDefaultInstance(props);
mailSession.setDebug(true);
Transport transport = mailSession.getTransport();
MimeMessage message = new MimeMessage(mailSession);
message.setSubject("Testing SMTP-SSL");
message.setContent("This is a test", "text/plain");
message.addRecipient(Message.RecipientType.TO,
new InternetAddress("my_other_mail(a)gmail.com"));
transport.connect
(SMTP_HOST_NAME, SMTP_HOST_PORT, SMTP_AUTH_USER, SMTP_AUTH_PWD);
transport.sendMessage(message,
message.getRecipients(Message.RecipientType.TO));
transport.close();
}
}
Any idea??
TIA
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529652#529652
16 years, 1 month