32 Replies Latest reply on May 4, 2008 12:57 AM by HowardTreisman

    How to configure an email endpoint

    Ruytero Level 1
      Hi,

      I am trying to configure an emailendpoint for my process but I'm having trouble with retrieving some email information.
      Is this documented somewhere?
      One problem at the moment is to retrieve the SendDate or ReceiveDate from an email. How do I make the mappings for this?

      The other one is when I configure the emailendpoint to retrieve Attachments, I did this by mapping *.* to an Map-collection. Now I can get the attachments stored in the Map-collection, this works fine. But when there are no attachments at the email I keep getting an NullPointerException and my process is not invoked. But my process needs to be invoked with or without attachments.

      Thanks in advance,
        • 1. Re: How to configure an email endpoint
          Ruytero Level 1
          Nobody???

          Grz,

          RonnyR
          • 2. Re: How to configure an email endpoint
            Jasmin Charbonneau Level 4
            You probably get a NPE because in your process you're extracting the value from the map but the map is null when there is no attachment.

            You'll probably need to get the size of the map first and then execute your code only if the size is greater than 0. There is a get-size (or something like that) under the Collection functions section in the xPath builder that can help you with that.

            I think your process gets invoked, but it stalls on one of the operation.

            Jasmin
            • 3. Re: How to configure an email endpoint
              Ruytero Level 1
              Thanks Jasmin.

              I will try that but I even get that NPE when the only component in my process is a Variable Logger. And I only whant to display the values of my email in the log file. So I'm not actualy using my map yet and I'm already getting that error.

              Have you got any idea on how to get the SendDate or ReceiveDate from an email?

              Regards,

              RonnyR
              • 4. Re: How to configure an email endpoint
                Jasmin Charbonneau Level 4
                Can you check from the adminui (under Services/Process Management) if the item is stalled and on which step. I've done that before and that worked even if I didn't have attachments.

                I'm not sure about the SendDate and ReceiveDate.

                I'll do some more investigations.

                Jasmin
                • 5. Re: How to configure an email endpoint
                  Level 1
                  For whatever reason (probably a bug); dropping the variable-logger in ES onto your process and not configuring it to log to anything will always throw a NPE. To prevent this you need to configure the logger properties to either log to either system-logger, standard-out, or to directory.

                  Cheers,

                  Lachlan

                  http://www.avoka.com
                  • 6. Re: How to configure an email endpoint
                    Ruytero Level 1
                    The variable-logger is configured to system-logger and directory.

                    When I don't try and retrieve the attachments and only retrieve the subject I do not get the NPE-error. Only when I try and retrieve the attachments and there are non in the email.

                    Grz,
                    • 7. Re: How to configure an email endpoint
                      Ruytero Level 1
                      Jasmin,

                      Nothing is shown in Process Management.

                      Lachlan,

                      I even deleted the variable-logger and only had a set-value component in my process wiche did nothing with the map and I still get the error.

                      Grz,

                      RonnyR
                      • 8. Re: How to configure an email endpoint
                        Ruytero Level 1
                        Hi,

                        Is there nobody who can help me?

                        RonnyR
                        • 9. Re: How to configure an email endpoint
                          Jasmin Charbonneau Level 4
                          Can you post the exact error from the application server log.

                          Jasmin
                          • 10. Re: How to configure an email endpoint
                            Level 1
                            There is a retrieved email attrributes tab in the receive email component. This has the receive date/send date amongst others. There is a attribute called attachment count, you branch based on this attributes value IE if this is greater than 0 then continue with your process
                            Hope this helps
                            • 11. Re: How to configure an email endpoint
                              Ruytero Level 1
                              Hi WorkflowUser,

                              I know about the retrieve email component, I am using it at the moment.
                              But we need to make our process so that it uses the emailendpoint and not the retrieve email component.

                              Because our proces needs to trigger every 30 seconds to read emails we would need to use the emailendpoint. If we use the emailretrieve component we need to make a java-application that trigger our process every 30 seconds. The problem is that our client don't want a java code. They want the entire process to work using only Livecycle components.

                              Therefore it is importend for us to get the emailendpoint working.

                              Grz,
                              • 12. Re: How to configure an email endpoint
                                Jasmin Charbonneau Level 4
                                Any update on that stack trace?

                                Jasmin
                                • 13. Re: How to configure an email endpoint
                                  Ruytero Level 1
                                  Jasmin,

                                  I'm working on side at a costumer this week. I will get one as soon as I'm back in the office.

                                  Grz,

                                  RonnyR
                                  • 14. Re: How to configure an email endpoint
                                    Ruytero Level 1
                                    Jasmin,

                                    Did you get it working?

                                    Grz,
                                    • 15. Re: How to configure an email endpoint
                                      Jasmin Charbonneau Level 4
                                      I haven't tried it in a while, but I had something similar working a while ago.

                                      Jasmin
                                      • 16. Re: How to configure an email endpoint
                                        Ruytero Level 1
                                        Jasmin,<br /><br />Below the server log with the NPE:<br /><br />2007-12-17 09:52:22,563 INFO  [STDOUT] java.lang.NullPointerException<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.service.email.impl.EmailConfigurationReader.getDocumentMap(Ema ilConfigurationReader.java:163)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.service.email.impl.EmailConfigurationReader.readJobConfigurati on(EmailConfigurationReader.java:112)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.service.email.impl.EmailConfigurationReader.<init>(EmailConfig urationReader.java:61)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.service.email.impl.scan.EmailScanJobImpl.createInputParamMap(E mailScanJobImpl.java:430)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.service.email.impl.scan.EmailScanJobImpl.processInputs(EmailSc anJobImpl.java:147)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.service.email.impl.scan.EmailScanJobImpl.execute(EmailScanJobI mpl.java:98)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at sun.reflect.GeneratedMethodAccessor6211.invoke(Unknown Source)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at java.lang.reflect.Method.invoke(Method.java:585)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:181)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:134)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:336)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:212)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at sun.reflect.GeneratedMethodAccessor375.invoke(Unknown Source)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at java.lang.reflect.Method.invoke(Method.java:585)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) <br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:363)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.Container.invoke(Container.java:873)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)< br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)<b r />2007-12-17 09:52:22,563 INFO  [STDOUT]      at $Proxy200.doSupports(Unknown Source)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:88)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:88)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 0)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:87)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)<br />2007-12-17 09:52:22,563 INFO  [STDOUT]      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)<br />2007-12-17 09:52:23,547 INFO  [com.adobe.idp.dsc.provider.service.email.impl.EmailWriterImpl] EmailWriterImpl error : Could not connect to SMTP host: localhost, port: 25;<br />  nested exception is:<br />     java.net.ConnectException: Connection refused: connect<br />2007-12-17 09:52:23,547 INFO  [STDOUT] javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;<br />  nested exception is:<br />     java.net.ConnectException: Connection refused: connect<br />2007-12-17 09:52:23,547 INFO  [STDOUT]      at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1008)<br />2007-12-17 09:52:23,547 INFO  [STDOUT]      at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:197)<br />2007-12-17 09:52:23,547 INFO  [STDOUT]      at javax.mail.Service.connect(Service.java:233)<br />2007-12-17 09:52:23,547 INFO  [STDOUT]      at javax.mail.Service.connect(Service.java:134)<br />2007-12-17 09:52:23,547 INFO  [STDOUT]      at com.adobe.idp.dsc.provider.service.email.impl.EmailWriterImpl.send(EmailWriterImpl.
                                        • 17. Re: How to configure an email endpoint
                                          Ruytero Level 1
                                          2007-12-17 09:52:23,547 INFO [com.adobe.idp.dsc.provider.service.email.impl.EmailWriterImpl] EmailWriterImpl error : Could not connect to SMTP host: localhost, port: 25;
                                          nested exception is:
                                          java.net.ConnectException: Connection refused: connect
                                          2007-12-17 09:52:23,547 INFO [STDOUT] javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
                                          nested exception is:
                                          java.net.ConnectException: Connection refused: connect
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1008)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:197)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at javax.mail.Service.connect(Service.java:233)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at javax.mail.Service.connect(Service.java:134)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.provider.service.email.impl.EmailWriterImpl.send(EmailWriterImpl.java:2 23)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl.handleFailure( EmailResultHandlerImpl.java:398)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl.handleFailure( EmailResultHandlerImpl.java:342)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.provider.service.email.impl.scan.EmailScanJobImpl.handleFailure(EmailSc anJobImpl.java:604)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.provider.service.email.impl.scan.EmailScanJobImpl.execute(EmailScanJobI mpl.java:115)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor6211.invoke(Unknown Source)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:181)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:134)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:336)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:212)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor375.invoke(Unknown Source)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:363)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:873)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at $Proxy200.doSupports(Unknown Source)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:88)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:88)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 0)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:87)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
                                          2007-12-17 09:52:23,547 INFO [STDOUT] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
                                          2007-12-17 09:52:23,547 ERROR [com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl] Internal error.
                                          2007-12-17 09:52:32,516 INFO [com.adobe.idp.dsc.provider.service.email.impl.EmailReaderImpl] unlock EmailSource : testacc@ws03-exchange.iconos.be
                                          • 18. Re: How to configure an email endpoint
                                            Ruytero Level 1
                                            As you can see in this error log, I also always get an error about SMTP connection failure. Is there something that can be done to prevent this error? I only want to work with pop3.

                                            Thanks in advance,

                                            RonnyR
                                            • 19. Re: How to configure an email endpoint
                                              Level 1
                                              from the dos prompt can you type in the mail server name and see what happens?
                                              • 20. Re: How to configure an email endpoint
                                                Ruytero Level 1
                                                WorkflowUser,

                                                How do you mean?
                                                • 21. Re: How to configure an email endpoint
                                                  Level 1
                                                  Hi Ronny
                                                  I had posted the dos prompt for some one else who could not connect to the mail server,were you able to solve your problem,if not let me know may be I can help
                                                  • 22. Re: How to configure an email endpoint
                                                    Ruytero Level 1
                                                    Hi WorkflowUser,

                                                    My problem is not the connection to the mailserver. The connection works fine only have I got problems when I map the emailattachments with '*.*' to an Map/List variable in my process and there are no attachments to the email.
                                                    I then get a NullPointerException. This NPE only occurs when I try to retrieve the attachments and there are non. In my process I don't do anything yet with the variables. I only have a variable logger that print the variables to the system logger and to the filesystem.

                                                    Regards
                                                    • 23. Re: How to configure an email endpoint
                                                      Ruytero Level 1
                                                      Hi,

                                                      is there absolutly nobody that can help me? nobody ever done this before?
                                                      this seems like a very basic functionality that would be used a lot.

                                                      Regards,
                                                      • 24. Re: How to configure an email endpoint
                                                        Hi All,

                                                        I am running my application on Linux Env and it is not able to process the emails which are coming to configured email account. EndPoint is defined properly. Mails which I am sending are coming to Inbox of Outlook, however application is not able to process them. Following is the error which I am seeing in the log file. Help pls.

                                                        r> <IDPSchedulerService_Worker-15> <<anonymous>> <> <> <1205775909030> <000000> <Input params are --------->
                                                        ####<Mar 17, 2008 1:45:09 PM EDT> <Info> <com.adobe.idp.dsc.provider.service.scheduler.scan.impl.AbstractScanJob> <Server Name> <NHDev-Mgserver> <IDPSchedulerService_Worker-15> <<anonymous>> <> <> <1205775909030> <000000> <{Application Package.pdf=<document state="passive" senderVersion="0" persistent="false" senderPersistent="false" passivated="true" senderPassivated="false" deserialized="false" senderHostId="null" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="0" contentType="application/pdf" length="-1"><cacheId/><localBackendId><DocumentFileID fileName="/opt/apm/newhire/adobe/temp/AdobeDocumentStorage/local/docm1205775908318/10c4c7 407426b14ed2bc7823d084b475"/><localBackendId/><globalBackendId/><senderLocalBackendId/><se nderGlobalBackendId/><inline/><senderPullServantJndiName/><attributes file="Application Package.pdf" JKFileOrder="2"/></document>}>
                                                        ####<Mar 17, 2008 1:45:09 PM EDT> <Info> <com.adobe.workflow.AWS> <Server Name> <NHDev-Mgserver> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-07437255F3806B51C843> <> <1205775909426> <000000> <Invoking action synchronously>
                                                        ####<Mar 17, 2008 1:45:09 PM EDT> <Info> <com.adobe.workflow.AWS> <Server Name> <NHDev-Mgserver> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-07437255F3806B51C843> <> <1205775909437> <000000> <Invoking action synchronously>
                                                        ####<Mar 17, 2008 1:45:09 PM EDT> <Info> <com.adobe.workflow.AWS> <Server Name> <NHDev-Mgserver> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-07437255F3806B51C843> <> <1205775909627> <000000> <Invoking action synchronously>
                                                        ####<Mar 17, 2008 1:45:09 PM EDT> <Info> <com.adobe.idp.dsc.provider.service.email.impl.EmailWriterImpl> <Server Name> <NHDev-Mgserver> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1205775909971> <000000> <EmailWriterImpl error : Illegal character in local name>
                                                        ####<Mar 17, 2008 1:45:09 PM EDT> <Info> <com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl> <Server Name> <NHDev-Mgserver> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1205775909990> <000000> <Failed to send email Error = Internal error.>
                                                        ####<Mar 17, 2008 1:45:09 PM EDT> <Error> <com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl> <> <NHDev-Mg
                                                        • 25. Re: How to configure an email endpoint
                                                          HowardTreisman Level 1
                                                          I'd like to offer a couple of comments:
                                                          1. You DO have a connection problem:
                                                          >>Could not connect to SMTP host: localhost, port: 25;
                                                          Are you running your smtp server on localhost? I doubt it. You may want to configure your server and port correctly.
                                                          2. You can use Email Receiver without Java code. You simply set up a singleton process, that checks for an email, waits for a while, and loops forever.
                                                          3. See this thread...
                                                          http://www.adobeforums.com/webx?128@@.3bc459d6

                                                          Howard
                                                          http://www.avoka.com
                                                          • 26. Re: How to configure an email endpoint
                                                            Ruytero Level 1
                                                            Hi Howard,

                                                            1. For the second time I do not have a connection problem. Why would I need to configure SMTP when I don't want to use it. It is not mandatory and only used to send results or error messages to.

                                                            2. A couple of weeks a go I recieved a patch from Adobe Support regarding this issue, they confirmed th eproblem of NullPointerException when there are no attachments to an email and there is a mapping made to retrieve them. And after installing this patch I don't get the NullPointerException anymore.

                                                            3. I use the Email Receiver now because I also needed to retrieve HTML-body from the emails and the Email Endpoint does not support this, but this brings along another problem:
                                                            every time this Email Reciever wants to read an email and there is none on the mailserver it throughs an error and wrights a record into the database. This is pretty annoying because when we poll the email every 15 seconds with 3 or 4 process instances running for different emailaccounts the database just keeps growing and growing while the application does not do anything. Still waiting for an awnser from Adobe Support on this one.

                                                            Regards,
                                                            • 27. Re: How to configure an email endpoint
                                                              Ruytero Level 1
                                                              Hi Howard,

                                                              Maybe a little apologies towards you. I haven't been following this thread some time now and I forgot that I mentioned the SMTP error.
                                                              So, sorry for my last reply.

                                                              But then again, if I don't want to use SMTP and the configuration is not mandatory why does it throw an error if I don't configure it?

                                                              My initial problem was the NullPointerException when retrieving the attachments and when there are none in the email and I was replying towards that.
                                                              This is solved by a patch I got from Adobe Support.

                                                              Regards,

                                                              Ronny
                                                              • 28. Re: How to configure an email endpoint
                                                                Level 1
                                                                Can anybody help with my problem what I am facing? I have pasted the logs. Or is it related to same problem what you are discussing with Adobe patch?

                                                                Thanks in advance.
                                                                • 29. Re: How to configure an email endpoint
                                                                  Level 1
                                                                  Hi All,<br /><br />I am facing another issue. I am seeing below info message in my log file, since it started coming.. Application is not able to receive any email and not able to process as well. Has any one got this problem and do you know the fix for this?<br /><br />####<Mar 20, 2008 5:04:48 PM EDT> <Info> <com.adobe.idp.dsc.provider.service.email.impl.EmailReaderImpl> <prdweb329> <ProdMgr> <IDPSchedulerService_Worker-15> <<anonymous>> <> <> <1206047088459> <000000> <EmailSource is Locked: newemailid@app01exchange>
                                                                  • 30. Re: How to configure an email endpoint
                                                                    Ruytero Level 1
                                                                    Hi pavyak,

                                                                    No idea what the problem is.
                                                                    EmailSource is Locked: maybe your email account is locked by the Outlook that you are using? or username or password is wrong?

                                                                    Regards,

                                                                    Ronny Ruyters
                                                                    • 31. Re: How to configure an email endpoint
                                                                      Level 1
                                                                      Ronny,

                                                                      Email account is working fine and even the userid/password are correct one. Once I restart the server, application starts behaving normally. I have seen this issue already twice and the only solution is to restart the servers.
                                                                      • 32. Re: How to configure an email endpoint
                                                                        HowardTreisman Level 1
                                                                        Hi Ronny
                                                                        Sorry about late reply, I missed this thread.
                                                                        You're correct, using EmailReceiver in a looping process does have the downside that a lot of data ends up being written into the audit trails.
                                                                        I've heard that there is a feature request for adding a "Timer" end-point to a workflow. If this is implemented (and I have no idea whether it will), this will allow you to set up a short-lived process to do the email polling, and then you can use EmailReceive without a whole lot of unnecessary rows in the database.

                                                                        This might be a good one to log with Adobe support, to try to add a voice to getting this implemented soon.

                                                                        The issue with SMTP - the underlying reason for that might be that when a process stalls, LiveCycle tries to send an email to the administator - that might be the real cause of the exception???

                                                                        Howard