AnsweredAssumed Answered

Outbound mail and feed (Don't know where to route call)

Question asked by ado on Jan 23, 2012
Latest reply on Feb 23, 2012 by mrogers
Hi,

I have Alfresco Community 4.b installed on Ubuntu 10.10. Everything seems to be working well, share and alfresco logons, user creation and sites all runnings smoothly. I have configured the outbound smtp settings by making some changes to the following files:

/opt/alfrescox/tomcat/shared/classes/alfresco-global.properties

### E-mail site invitation setting ###
#notification.email.siteinvite=false ### Original
notification.email.siteinvite=true

#Mail Setup
mail.host=smtp.testdom.com
mail.port=25
#mail.username=anonymous
#mail.password=
#please note that you need to get site specific password from your gmail account
mail.encoding=UTF-8

#### New Properties ####
#mail.smtps.starttls.enable=true
mail.smtps.auth=false

##### Test SMTP setup
mail.from.default=cms@testdom.com
#mail.testmessage.send=true
#mail.testmessage.to=admin@testdom.com
#mail.testmessage.subject=mmm
#mail.testmessage.text=ttt.
#mail.from.default=noreply@domain.local


/opt/alfrescox/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/email/OutboundSMTP/outboundSMTP-context.xml

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
    <!–                        –>
    <!– MAIL SERVICE           –>
    <!–                        –>

    <bean id="mailService" class="org.springframework.mail.javamail.JavaMailSenderImpl">
        <property name="host">
            <value>${mail.host}</value>
        </property>
        <property name="port">
            <value>${mail.port}</value>
        </property>
                <property name="protocol">
        <value>${mail.protocol}</value>
    </property>

        <property name="username">
            <value>${mail.username}</value>
        </property>
        <property name="password">
            <value>${mail.password}</value>
        </property>
        <property name="defaultEncoding">
            <value>${mail.encoding}</value>
        </property>
                <property name="javaMailProperties">
        <props>
            <prop key="mail.smtp.auth">${mail.smtp.auth}</prop>
            <prop key="mail.smtp.debug">${mail.smtp.debug}</prop>
            <prop key="mail.smtp.timeout">${mail.smtp.timeout}</prop>
            <prop key="mail.smtp.starttls.enable">${mail.smtp.starttls.enable}</prop>

            <prop key="mail.smtps.auth">${mail.smtps.auth}</prop>
            <prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop>
        </props>
    </property>

    </bean>
</beans>


But I receive the following error in the alfresco.log when starting up and when trying to "invite external users" or "start a workflow". All of the errors seem to be related to this
Don't know where to route call to method public abstract org.alfresco.service.cmr.action.ActionDefinition org.alfresco.repo.action.executer.ActionExecuter.getActionDefinition() error. I have looked through the forums but I am still unable to get any idea what could have caused this.

ERROR [org.alfresco.repo.activities.feed.FeedNotifierImpl] Exception during notification of feeds
java.lang.RuntimeException: Don't know where to route call to method public abstract org.alfresco.service.cmr.action.ActionDefinition org.alfresco.repo.action.executer.ActionExecuter.getActionDefinition()
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory.locateBean(SubsystemProxyFactory.java:154)
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory.access$000(SubsystemProxyFactory.java:38)
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:65)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy224.getActionDefinition(Unknown Source)
        at org.alfresco.repo.action.ActionServiceImpl.getActionDefinition(ActionServiceImpl.java:256)
        at org.alfresco.repo.action.ActionServiceImpl.getTrackStatus(ActionServiceImpl.java:624)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:744)
        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:538)
        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:524)
        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:789)
        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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:146)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy37.executeAction(Unknown Source)
        at org.alfresco.repo.activities.feed.FeedNotifierImpl.sendMail(FeedNotifierImpl.java:483)
        at org.alfresco.repo.activities.feed.FeedNotifierImpl.prepareAndSendEmail(FeedNotifierImpl.java:461)
        at org.alfresco.repo.activities.feed.FeedNotifierImpl$1.execute(FeedNotifierImpl.java:295)
        at org.alfresco.repo.activities.feed.FeedNotifierImpl$1.execute(FeedNotifierImpl.java:292)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.activities.feed.FeedNotifierImpl.executeInternal(FeedNotifierImpl.java:291)
        at org.alfresco.repo.activities.feed.FeedNotifierImpl.execute(FeedNotifierImpl.java:222)
        at org.alfresco.repo.activities.feed.FeedNotifierJob$1.doWork(FeedNotifierJob.java:67)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
        at org.alfresco.repo.activities.feed.FeedNotifierJob.execute(FeedNotifierJob.java:63)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
14:52:17,981 INFO  [org.alfresco.module.vti.VtiServer] Vti server started successfully on port: 7070
14:52:17,981 INFO  [org.alfresco.module.vti.VtiServer] Vti server SessionIdManagerWorkerName: jetty1
14:52:25,998 WARN  [org.springframework.extensions.webscripts.DeclarativeRegistry] Unable to register script classpath:webscripts/org/springframework/extensions/cmis/content.get.desc.xml due to error: 00230000 Web Script document org/sp$
14:52:25,998 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 464 Web Scripts (+1 failed), 731 URLs
14:52:25,998 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
14:52:25,999 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
14:52:26,004 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 7987.1025ms)
14:52:26,014 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl


When trying to start a workflow I get the following error:

org.alfresco.service.cmr.workflow.WorkflowException: 00230035 Failed to start workflow activiti$activitiParallelReview:1:12.

and when trying to invite I get:

Invites sent 0, Failed 1

Sending a test mail with my credentials works when using telnet. Also there is no error with the outbound mail service startup so I do not think it has something to do with these services? I have also checked if there is a invitation template in the repository Company Home > Sites > intranet > Data Dictionary > Email Templates > invite . All of them seem to be there and in order.


Any one have any ideas on how to resolve this? Any help would be greatly appreciated.

Regards

ADO

Outcomes