ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Failed to call init() method in connector(Email Adapter)

Post new topic  Reply to topic
 Failed to call init() method in connector(Email Adapter) « View previous topic :: View next topic » 
Author Message
Vinayak.Satapute
PostPosted: Wed Apr 09, 2008 1:32 am    Post subject: Failed to call init() method in connector(Email Adapter) Reply with quote

Acolyte

Joined: 20 Dec 2006
Posts: 70

Hi,

I am implementing Email adapter to poll for incoming mails using IMAP protocol.I have created an account in outlook express and using an sample IMAP server to poll for the new mails.

I am running the following commnad to start the adatpter instance,

"RecvMail.bat RecvMail WMQI -cRecvMail.cfg"

But I am receiving the following error in my log entry.
**********************************************************
Time: 2008/04/09 15:43:44.450] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294427271)] [Type: Trace] [MsgID: 17016] [Mesg: Initializing connector RecvMail, Version = 5.5.1, Connector Framework version = 4.3.0, CDK version = 4.3.0.]
[Time: 2008/04/09 15:43:44.951] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294427271)] javax.mail.FolderNotFoundException
[Time: 2008/04/09 15:43:44.951] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294427271)] [Type: Error] [MsgID: 32000] [Mesg: RecvMail::init() encountered an error. Please fix the problem and restart the connector. ]
[Time: 2008/04/09 15:43:44.951] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294427271)] [Type: Fatal Error] [MsgID: 17050] [Mesg: The call to method init() in the application connector failed.]
[Time: 2008/04/09 15:43:44.951] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294427271)] [Type: Fatal Error] [MsgID: 17518] [Mesg: Exhausted the configured number of 1 restart retries for serial connector agent RecvMail. Shutting down.]
**********************************************************

If have any clue please update.

Regards,
Vinayak Satapute
Back to top
View user's profile Send private message
Gaya3
PostPosted: Wed Apr 09, 2008 1:44 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

1. Hope you have configured your adaper properly well
2. did you create the BO for the same and imported


The error messages looks like its not configured properly

Verify the classpath etc etc

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Vinayak.Satapute
PostPosted: Wed Apr 09, 2008 11:20 pm    Post subject: Reply with quote

Acolyte

Joined: 20 Dec 2006
Posts: 70

Hi Gayatri,

I have run my configuration file under debug mode set to TRUE and I can see that it it is connecting to the IMAP server to poll for new mails(Alos BO's are also in place).Hence I assume that my adapter is configured properly.


***********************Ddebug Mode Details*********************
DEBUG: JavaMail version 1.4.1
DEBUG: not loading file: C:\IBM\WebSphereAdapters\AdapterJRE\lib\javamail.providers
DEBUG: java.io.FileNotFoundException: C:\IBM\WebSphereAdapters\AdapterJRE\lib\javamail.providers (The system cannot find the file specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: not loading file: C:\IBM\WebSphereAdapters\AdapterJRE\lib\javamail.address.map
DEBUG: java.io.FileNotFoundException: C:\IBM\WebSphereAdapters\AdapterJRE\lib\javamail.address.map (The system cannot find the file specified)
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "127.0.0.1", port 25, isSSL false
220 Welcome to QK SMTP Server 3
DEBUG SMTP: connected to host "127.0.0.1", port: 25

EHLO IBM-KPZANKL
250-Hello IBM-KPZANKL
250-AUTH LOGIN
250-ENHANCEDSTATUSCODES
250 PIPELINING
DEBUG SMTP: Found extension "AUTH", arg "LOGIN"
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Attempt to authenticate
AUTH LOGIN
334 VXNlcm5hbWU6
dmluYXlhaw==
334 UGFzc3dvcmQ6
YXBhcjIzNDU=
235 2.7.0 welcome vinayak
DEBUG: setDebug: JavaMail version 1.4.1
DEBUG: setDebug: JavaMail version 1.4.1
DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
DEBUG: mail.imap.fetchsize: 16384
* OK Hi..Welcome to IMAP Server
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 CHILDREN
A0 OK CAPABILITY completed
DEBUG: protocolConnect login, host=127.0.0.1, user=test@IBM-KPZANKL.my.ibm.com, password=<non-null>
A1 LOGIN test@IBM-KPZANKL.my.ibm.com test
A1 OK LOGIN completed
A2 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 CHILDREN
A2 OK CAPABILITY completed
A3 LIST "" Inbox
A3 OK LIST completed
************************************************************
But in Log details I still see : -
--------------------------Log Details--------------------------------------------
[Time: 2008/04/10 14:59:25.673] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294860408)] [Type: Trace] [MsgID: 17016] [Mesg: Initializing connector RecvMail, Version = 5.5.1, Connector Framework version = 4.3.0, CDK version = 4.3.0.]
[Time: 2008/04/10 14:59:25.783] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294860408)] javax.mail.FolderNotFoundException
[Time: 2008/04/10 14:59:25.783] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294860408)] [Type: Error] [MsgID: 32000] [Mesg: RecvMail::init() encountered an error. Please fix the problem and restart the connector. ]
[Time: 2008/04/10 14:59:25.783] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294860408)] [Type: Fatal Error] [MsgID: 17050] [Mesg: The call to method init() in the application connector failed.]
[Time: 2008/04/10 14:59:25.783] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1294860408)] [Type: Fatal Error] [MsgID: 17518] [Mesg: Exhausted the configured number of 1 restart retries for serial connector agent RecvMail. Shutting down.]
-----------------------------------------------------------------------------------

Please provide your suggestion.

Thanks,
Vinayak Satapute.
Back to top
View user's profile Send private message
Vinayak.Satapute
PostPosted: Wed Apr 16, 2008 7:40 pm    Post subject: Reply with quote

Acolyte

Joined: 20 Dec 2006
Posts: 70

Hi,

The previously highlighted error details have been rectified.

It was in one of Bussines Object where I was passing the Poll folder as "Inbox" which supposed to be "INBOX" and rest "Archive" and "Fail" are fine with there case sensitivity.

Now a new error has cropped up.

When I want to poll for a mail from INBOX, Email adapter instance should fetch that mail and arhive the same to "Arhive" folder which is not happening.

***************Log Error Details*******************
[Time: 2008/04/16 19:07:46.302] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1293267507)] [Type: Error] [MsgID: 30012] [Mesg: Found processed message. Message details: LogError -Attempting to Archive from PollLocation: Location1 PollFolder: INBOX to ArchiveFolder: Sent date: Wed Apr 16 19:06:15 SGT 2008 From: VinayakSatapute <vinayak.satapute@IBM-KPZANKL.my.ibm.com>; To: "test@IBM-KPZANKL.my.ibm.com" <test@IBM-KPZANKL.my.ibm.com>; Subject: Hi]
[Time: 2008/04/16 19:07:46.312] [System: ConnectorAgent] [SS: RecvMail] [Thread: wbia_main (#1293267507)] [Type: Info] [MsgID: 17066] [Mesg: Application state is connected]
**************************************************

I am supposed to receive the fetched mail as BO message to a queue so that Integration Broker can proceed further for processing.

Your suggestion and help appreciated.

Thank you.
Vinayak Satapute.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Failed to call init() method in connector(Email Adapter)
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.