Pages: [1]
  Print  
Author Topic: READ DOCUMENT III (MAIL)  (Read 582 times)
dara
Newbie
*
Posts: 29


« on: July 15, 2013, 09:02:17 AM »

While the Process works on RapidMiner the same process fails in RapidAnalytics every time, while same works in RapidMiner and can login and read the email:

Code:
Jul 15, 2013 12:56:34 AM <unknown> <unknown>
INFO: Process context is: Macros: [_ra_user : dara, _ra_jobID : 113]; Input: []; Output: []
Jul 15, 2013 12:56:34 AM <unknown> <unknown>
INFO: No filename given for result file, using stdout for logging results!
Jul 15, 2013 12:56:34 AM <unknown> <unknown>
INFO: Process //_LOCAL/home/dara/Processes/ITemail starts
Jul 15, 2013 12:56:35 AM <unknown> <unknown>
SEVERE: Process failed: com.rapidminer.operator.UserError: Cannot connect to mailstore: [AUTH] Username and password not accepted.
com.rapidminer.operator.UserError: Cannot connect to mailstore: [AUTH] Username and password not accepted.
at com.rapidminer.operator.text.tools.MailOperatorTools.getStore(MailOperatorTools.java:142)
at com.rapidminer.operator.text.io.MailStoreDocumentLoader.doWork(MailStoreDocumentLoader.java:63)
at com.rapidminer.operator.Operator.execute(Operator.java:855)
at com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
at com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:711)
at com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:379)
at com.rapidminer.operator.Operator.execute(Operator.java:855)
at com.rapidminer.Process.run(Process.java:949)
at com.rapidminer.Process.run(Process.java:873)
at com.rapidminer.Process.run(Process.java:832)
at com.rapidminer.Process.run(Process.java:827)
at de.rapidanalytics.execution.AbstractProcessExecutor.runProcessNow(Unknown Source)
at de.rapidanalytics.execution.SimpleProcessExecutor.execute(Unknown Source)
at de.rapidanalytics.execution.ProcessExecutionDispatcher.dispatch(Unknown Source)
at de.rapidanalytics.ejb.ProcessJobEJBImpl.executeJob(Unknown Source)
at de.rapidanalytics.ejb.ProcessJobEJBImpl.executeJob(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1145.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:72)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
at sun.reflect.GeneratedMethodAccessor402.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_1366714301.invoke(InvocationContextInterceptor_z_fillMethod_1366714301.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_1366714301.invoke(InvocationContextInterceptor_z_setup_1366714301.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.StatelessBMTInterceptor.handleInvocation(StatelessBMTInterceptor.java:106)
at org.jboss.ejb3.tx.BMTInterceptor.invoke(BMTInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(SessionInvocationContextAdapter.java:95)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209)
at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:88)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:75)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.async.impl.interceptor.AsynchronousClientInterceptor.invoke(AsynchronousClientInterceptor.java:143)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at sun.proxy.$Proxy217.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:185)
at sun.proxy.$Proxy216.executeJob(Unknown Source)
at de.rapidanalytics.web.tools.ProcessExecutionJob.execute(ProcessExecutionJob.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: javax.mail.AuthenticationFailedException: [AUTH] Username and password not accepted.
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:158)
at javax.mail.Service.connect(Service.java:291)
at javax.mail.Service.connect(Service.java:172)
at com.rapidminer.operator.text.tools.MailOperatorTools.getStore(MailOperatorTools.java:136)
... 82 more
Jul 15, 2013 12:56:35 AM <unknown> <unknown>
SEVERE: Here:           Process[1] (Process)
           subprocess 'Main Process'
       ==>   +- Gmail[1] (Read Documents (Mail))
             +- Documents to Data[0] (Documents to Data)
             +- decodeSubject[0] (Execute Script)

this is the xml code for the process:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.008">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="5.3.008" expanded="true" name="Process">
    <process expanded="true">
      <operator activated="true" class="text:read_documents_mail" compatibility="5.3.000" expanded="true" height="60" name="Gmail" width="90" x="45" y="210">
        <description>POP3 message store:
http://javamail.kenai.com/nonav/javadocs/com/sun/mail/pop3/package-summary.html</description>
        <parameter key="host" value="pop.gmail.com"/>
        <parameter key="user" value="_USERNAME_"/>
        <parameter key="password" value="_PASSWORD_"/>
        <list key="connection_properties">
          <parameter key="mail.pop3.port" value="995"/>
          <parameter key="mail.pop3.ssl.enable" value="true"/>
          <parameter key="mail.pop3.timeout" value="5000"/>
          <parameter key="mail.pop3.connectiontimeout" value="5000"/>
        </list>
        <parameter key="protocol" value="pop3"/>
        <parameter key="mark_seen" value="false"/>
      </operator>
      <operator activated="true" class="text:documents_to_data" compatibility="5.3.000" expanded="true" height="76" name="Documents to Data" width="90" x="179" y="300">
        <parameter key="text_attribute" value="mail"/>
      </operator>
      <operator activated="false" class="execute_script" compatibility="5.3.008" expanded="true" height="60" name="decodeSubject" width="90" x="313" y="120">
        <parameter key="script" value="import javax.mail.internet.*;&#10;ExampleSet exampleSet = operator.getInput(ExampleSet.class);&#10;for (Example example : exampleSet) {&#10;&#9;example[&quot;Subject&quot;] = MimeUtility.decodeText(example[&quot;Subject&quot;]);&#10;}&#10;return exampleSet; &#10;"/>
      </operator>
      <connect from_op="Gmail" from_port="output" to_op="Documents to Data" to_port="documents 1"/>
      <connect from_op="Documents to Data" from_port="example set" to_port="result 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
    </process>
  </operator>
</process>

EDIT: Removed username/password
« Last Edit: July 17, 2013, 07:54:28 AM by Marco Boeck » Logged
Marius
Administrator
Hero Member
*****
Posts: 1793



WWW
« Reply #1 on: July 22, 2013, 10:25:39 AM »

Hi Dara,

as a first step of diagnosis let me ask which version of RapidMiner and RapidAnalytics you are using?

Best regards,
Marius
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
Please click here before posting.
Pages: [1]
  Print  
 
Jump to: