Re: IMAP Error
Well this one wasn't as difficult as I expected. Turns out during all of the transition and merging I ended up with the conf/META-INF folder from b5. Since that folder contains all of the JPA stuff, 3.3.0 was not at all happy with v3b5 JPA files. Just a note for continuing to document my adventures Once I swapped over the META-INF folder, things initially got much worse. The JPA stuff is used to update all of the table schemas from 3.0 to 3.3 version. In the process of updating, it tries to add foreign keys to JAMES_MAIL_PROPERTY and JAMES_MAIL_USERFLAG tables. Both of those failed miserably. Digging into those database tables, I realized I had 32 million (yup... 32 million) userFlag records with null MAIL_ID and MAIL_UID fields that had no hope of matching up with fields in JAMES_MAIL. And there were four records in JAMES_MAIL_PROPERTY that weren't null, but still didn't have a match in JAMES_MAIL. So after finding and deleting those 4 as well as the 32 million null records, James was able to successfully complete the JPA startup stuff. I guess this is a good thing that I'm forced to clean up problems with the current database. This migration glacier is moving a millimeter at a time On 9/17/2019 1:26 AM, Tellier Benoit wrote: Hi Jerry, To explain it shortly: 1. In OpenJPA NamedQuery are directly attached to the POJO being persited, here AbstractJPAMailboxMessage 2. Using these annotations (named query) openjpa plugin enhance code upon compilation 3. Then the magic happens Here because openjpa do not load correctly persisted objects, it then fails at executing related queries. Why OpenJPA fails loading related metadata? - the log is missing explanation... And of course... - What is the exact James version? - JDBC mysql driver version? - MySQL version? This would enable us to be testing this locally, see if we can reproduce it with basic setup... Cheers, Benoit On 17/09/2019 10:36, Jerry Malcolm wrote: Something that might be relevant to this problem, but the messages make no more sense than the other one... A little earlier in the log, I have a bunch of these messages: 174 James INFO [main] openjpa.Runtime - Starting OpenJPA 3.0.0 207 James INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary". 552 James INFO [main] openjpa.jdbc.JDBC - Connected to MySQL version 5.5 using JDBC driver MySQL Connector Java version mysql-connector-java-5.1.34 ( Revision: jess.bal...@oracle.com-20141014163213-wqbwpf1ok2kvo1om ). 586 James WARN [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 587 James WARN [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 688 James INFO [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 689 James INFO [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 702 James INFO [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. On 9/16/2019 10:28 PM, Jerry Malcolm wrote: The fun just keeps happening I was finally able to bring up the new installation of James 3.3.0 with a sandbox copy of my real database. I created a new test email account in James and configured it in my local Thunderbird instance. So far, so good. But now every time Thunderbird contacts James for an IMAP update, I get the error below in the James log. I'm not really familiar with jpa. I searched through the source and found quite a few places that the "findMessagesInMailbox" name is referenced. So not really sure why it says it isn't defined. Any ideas? This is with the downloaded binaries, not a re-built version. org.apache.openjpa.persistence.ArgumentException: There is no query with the name "findMessagesInMailbox" defined for any of the known persistent classes: [org.apache.james.mailbox.jpa.mail.model.JPAMailbox, org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage, org.apache.james.mailbox.jpa.mail.model.JPAUserFlag, org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage, org.apache.james.domainlist.jpa.model.JPADomain,
Re: IMAP Error
Hi Jerry, To explain it shortly: 1. In OpenJPA NamedQuery are directly attached to the POJO being persited, here AbstractJPAMailboxMessage 2. Using these annotations (named query) openjpa plugin enhance code upon compilation 3. Then the magic happens Here because openjpa do not load correctly persisted objects, it then fails at executing related queries. Why OpenJPA fails loading related metadata? - the log is missing explanation... And of course... - What is the exact James version? - JDBC mysql driver version? - MySQL version? This would enable us to be testing this locally, see if we can reproduce it with basic setup... Cheers, Benoit On 17/09/2019 10:36, Jerry Malcolm wrote: > Something that might be relevant to this problem, but the messages make > no more sense than the other one... A little earlier in the log, I have > a bunch of these messages: > > 174 James INFO [main] openjpa.Runtime - Starting OpenJPA 3.0.0 > 207 James INFO [main] openjpa.jdbc.JDBC - Using dictionary class > "org.apache.openjpa.jdbc.sql.MySQLDictionary". > 552 James INFO [main] openjpa.jdbc.JDBC - Connected to MySQL version > 5.5 using JDBC driver MySQL Connector Java version > mysql-connector-java-5.1.34 ( Revision: > jess.bal...@oracle.com-20141014163213-wqbwpf1ok2kvo1om ). > 586 James WARN [main] openjpa.MetaData - The class > "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in > the openjpa.MetaDataFactory configuration property could not be loaded > by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. > 587 James WARN [main] openjpa.MetaData - The class > "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" > listed in the openjpa.MetaDataFactory configuration property could not > be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. > 688 James INFO [main] openjpa.MetaData - The class > "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in > the openjpa.MetaDataFactory configuration property could not be loaded > by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. > 689 James INFO [main] openjpa.MetaData - The class > "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" > listed in the openjpa.MetaDataFactory configuration property could not > be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. > 702 James INFO [main] openjpa.MetaData - The class > "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in > the openjpa.MetaDataFactory configuration property could not be loaded > by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. > > On 9/16/2019 10:28 PM, Jerry Malcolm wrote: >> The fun just keeps happening I was finally able to bring up the >> new installation of James 3.3.0 with a sandbox copy of my real >> database. I created a new test email account in James and configured >> it in my local Thunderbird instance. So far, so good. But now every >> time Thunderbird contacts James for an IMAP update, I get the error >> below in the James log. I'm not really familiar with jpa. I searched >> through the source and found quite a few places that the >> "findMessagesInMailbox" name is referenced. So not really sure why it >> says it isn't defined. Any ideas? This is with the downloaded >> binaries, not a re-built version. >> >> >> org.apache.openjpa.persistence.ArgumentException: There is no query >> with the name "findMessagesInMailbox" defined for any of the known >> persistent classes: >> [org.apache.james.mailbox.jpa.mail.model.JPAMailbox, >> org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage, >> org.apache.james.mailbox.jpa.mail.model.JPAUserFlag, >> org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage, >> org.apache.james.domainlist.jpa.model.JPADomain, >> org.apache.james.user.jpa.model.JPAUser, >> org.apache.james.mailbox.jpa.mail.model.JPAProperty, >> org.apache.james.mailbox.jpa.user.model.JPASubscription, >> org.apache.james.rrt.jpa.model.JPARecipientRewrite]. >> >> >> - >> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org >> For additional commands, e-mail: server-user-h...@james.apache.org >> > > - > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: IMAP Error
Something that might be relevant to this problem, but the messages make no more sense than the other one... A little earlier in the log, I have a bunch of these messages: 174 James INFO [main] openjpa.Runtime - Starting OpenJPA 3.0.0 207 James INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary". 552 James INFO [main] openjpa.jdbc.JDBC - Connected to MySQL version 5.5 using JDBC driver MySQL Connector Java version mysql-connector-java-5.1.34 ( Revision: jess.bal...@oracle.com-20141014163213-wqbwpf1ok2kvo1om ). 586 James WARN [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 587 James WARN [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 688 James INFO [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 689 James INFO [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 702 James INFO [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. On 9/16/2019 10:28 PM, Jerry Malcolm wrote: The fun just keeps happening I was finally able to bring up the new installation of James 3.3.0 with a sandbox copy of my real database. I created a new test email account in James and configured it in my local Thunderbird instance. So far, so good. But now every time Thunderbird contacts James for an IMAP update, I get the error below in the James log. I'm not really familiar with jpa. I searched through the source and found quite a few places that the "findMessagesInMailbox" name is referenced. So not really sure why it says it isn't defined. Any ideas? This is with the downloaded binaries, not a re-built version. org.apache.openjpa.persistence.ArgumentException: There is no query with the name "findMessagesInMailbox" defined for any of the known persistent classes: [org.apache.james.mailbox.jpa.mail.model.JPAMailbox, org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage, org.apache.james.mailbox.jpa.mail.model.JPAUserFlag, org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage, org.apache.james.domainlist.jpa.model.JPADomain, org.apache.james.user.jpa.model.JPAUser, org.apache.james.mailbox.jpa.mail.model.JPAProperty, org.apache.james.mailbox.jpa.user.model.JPASubscription, org.apache.james.rrt.jpa.model.JPARecipientRewrite]. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
IMAP Error
The fun just keeps happening I was finally able to bring up the new installation of James 3.3.0 with a sandbox copy of my real database. I created a new test email account in James and configured it in my local Thunderbird instance. So far, so good. But now every time Thunderbird contacts James for an IMAP update, I get the error below in the James log. I'm not really familiar with jpa. I searched through the source and found quite a few places that the "findMessagesInMailbox" name is referenced. So not really sure why it says it isn't defined. Any ideas? This is with the downloaded binaries, not a re-built version. org.apache.openjpa.persistence.ArgumentException: There is no query with the name "findMessagesInMailbox" defined for any of the known persistent classes: [org.apache.james.mailbox.jpa.mail.model.JPAMailbox, org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage, org.apache.james.mailbox.jpa.mail.model.JPAUserFlag, org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage, org.apache.james.domainlist.jpa.model.JPADomain, org.apache.james.user.jpa.model.JPAUser, org.apache.james.mailbox.jpa.mail.model.JPAProperty, org.apache.james.mailbox.jpa.user.model.JPASubscription, org.apache.james.rrt.jpa.model.JPARecipientRewrite]. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Fwd: Help IMAP Error
Hello All, And thanks in advance for any help you may be able to provide: We have an issue similar to this thead reported last year http://mail-archives.apache.org/mod_mbox/james-server-user/201408.mbox/%3c53e69cf2.3090...@seelink.org%3E#archives We are runnning apache-james-3.0-beta4 and using Mysql as database. This happens randomly and to resolve it i have to go and delete the email message from the mail table then it goes throught again. Below is the error : DEBUG 13:19:14,840 | james.imapserver | ID=756977038 Error while processing imap request java.lang.NullPointerException at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:106) at org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage.getBodyContent(JPAMessage.java:97) at org.apache.james.mailbox.store.mail.model.AbstractMessage.getFullContent(AbstractMessage.java:118) at org.apache.james.mailbox.store.streaming.InputStreamContent.getInputStream(InputStreamContent.java:65) at org.apache.james.mailbox.store.MessageResultImpl.getMimeDescriptor(MessageResultImpl.java:346) at org.apache.james.imap.processor.fetch.FetchResponseBuilder.build(FetchResponseBuilder.java:178) at org.apache.james.imap.processor.fetch.FetchProcessor.processMessageRanges(FetchProcessor.java:164) at org.apache.james.imap.processor.fetch.FetchProcessor.doProcess(FetchProcessor.java:119) at org.apache.james.imap.processor.fetch.FetchProcessor.doProcess(FetchProcessor.java:54) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:100) at org.apache.james.imap.processor.AbstractMailboxProcessor.process(AbstractMailboxProcessor.java:89) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:83) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:66) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:52) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54) at org.apache.james.imapserver.netty.ImapChannelUpstreamHandler.messageReceived(ImapChannelUpstreamHandler.java:181) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:327) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:305) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:207) at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44) at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) INFO 13:19:14,840 | james.imapserver | ID=756977038 Any help would be highly appreciated.
Imap Error Message
Hello: I'm using the beta five version of James. I'm using Thunderbird for an email client. The problem: Thunderbird is throwing an error saying that the server got disconnected when I request mail delivery. It does so very consistently: Here is what's in the lot: INFO 16:27:16,119 | james.imapserver | ID=1434325079 Connection established from xx.xx.xx.190 WARN 16:27:17,893 | james.imapserver | ID=1434325079 Error while processing imap request: java.lang.NullPointerException - null INFO 16:27:17,895 | james.imapserver | ID=1434325079 Connection closed for xx.xx.xxx=.190 I'm wondering if this error is causing the server to disconnect? I'm learning James so if someone could direct me on how to debug this problem, that would help me contribute in the future. thanks. Lee - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Imap Error Message
https://james.apache.org/server/3/monitor-logging.html set in log4j.properties log4j.logger.james.imapserver=DEBUG, IMAPSERVER and post here the exception. On 08/03/2014 06:42 PM, Lee Chalupa wrote: Hello: I'm using the beta five version of James. I'm using Thunderbird for an email client. The problem: Thunderbird is throwing an error saying that the server got disconnected when I request mail delivery. It does so very consistently: Here is what's in the lot: INFO 16:27:16,119 | james.imapserver | ID=1434325079 Connection established from xx.xx.xx.190 WARN 16:27:17,893 | james.imapserver | ID=1434325079 Error while processing imap request: java.lang.NullPointerException - null INFO 16:27:17,895 | james.imapserver | ID=1434325079 Connection closed for xx.xx.xxx=.190 I'm wondering if this error is causing the server to disconnect? I'm learning James so if someone could direct me on how to debug this problem, that would help me contribute in the future. thanks. Lee - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: IMAP Error When Using ActiveDirectory Configuration
Hi, There has been recently commits that allow a lost LDAP connection to be re initiated. Not sure this will solve this issue, but if you want to give a try to the james server snapshot to be downloaded from https://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/3.0-beta4-SNAPSHOT/ Thx, Eric On 12/02/12 20:14, Atherton, Cynthia wrote: Hi! First time poster, so I hope I'm doing this correctly. I have configured apache-james-3.0-beta2 to connect to an Active Directory instance. Everything seems to work correctly until I try to log in to my mail server (SquirrelMail) as a user that is stored in the Active Directory. At that point, I get the following in the james-server.log. I'm sure it's something that I have configured incorrectly in the userrepository.xml file. But, does anyone have any idea why it would throw a NullPointerException when processing the imap request? DEBUG 12:01:26,842 | james.imapserver | ID=28556801 Gotcommand: LOGIN DEBUG 12:01:26,864 | james.imapserver | ID=28556801 Error while processing imap request java.lang.NullPointerException at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.buildUser(ReadOnlyUsersLDAPRepository.java:359) at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.buildUserCollection(ReadOnlyUsersLDAPRepository.java:330) at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.getUserByName(ReadOnlyUsersLDAPRepository.java:428) at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.test(ReadOnlyUsersLDAPRepository.java:531) at org.apache.james.adapter.mailbox.store.UserRepositoryAuthenticator.isAuthentic(UserRepositoryAuthenticator.java:53) at org.apache.james.mailbox.store.StoreMailboxManager.login(StoreMailboxManager.java:228) at org.apache.james.mailbox.store.StoreMailboxManager.login(StoreMailboxManager.java:236) at org.apache.james.imap.processor.AbstractAuthProcessor.doAuth(AbstractAuthProcessor.java:56) at org.apache.james.imap.processor.LoginProcessor.doProcess(LoginProcessor.java:53) at org.apache.james.imap.processor.LoginProcessor.doProcess(LoginProcessor.java:36) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:90) at org.apache.james.imap.processor.AbstractMailboxProcessor.process(AbstractMailboxProcessor.java:79) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:73) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:56) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:55) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at
IMAP Error When Using ActiveDirectory Configuration
Hi! First time poster, so I hope I'm doing this correctly. I have configured apache-james-3.0-beta2 to connect to an Active Directory instance. Everything seems to work correctly until I try to log in to my mail server (SquirrelMail) as a user that is stored in the Active Directory. At that point, I get the following in the james-server.log. I'm sure it's something that I have configured incorrectly in the userrepository.xml file. But, does anyone have any idea why it would throw a NullPointerException when processing the imap request? DEBUG 12:01:26,842 | james.imapserver | ID=28556801 Got command: LOGIN DEBUG 12:01:26,864 | james.imapserver | ID=28556801 Error while processing imap request java.lang.NullPointerException at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.buildUser(ReadOnlyUsersLDAPRepository.java:359) at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.buildUserCollection(ReadOnlyUsersLDAPRepository.java:330) at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.getUserByName(ReadOnlyUsersLDAPRepository.java:428) at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.test(ReadOnlyUsersLDAPRepository.java:531) at org.apache.james.adapter.mailbox.store.UserRepositoryAuthenticator.isAuthentic(UserRepositoryAuthenticator.java:53) at org.apache.james.mailbox.store.StoreMailboxManager.login(StoreMailboxManager.java:228) at org.apache.james.mailbox.store.StoreMailboxManager.login(StoreMailboxManager.java:236) at org.apache.james.imap.processor.AbstractAuthProcessor.doAuth(AbstractAuthProcessor.java:56) at org.apache.james.imap.processor.LoginProcessor.doProcess(LoginProcessor.java:53) at org.apache.james.imap.processor.LoginProcessor.doProcess(LoginProcessor.java:36) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:90) at org.apache.james.imap.processor.AbstractMailboxProcessor.process(AbstractMailboxProcessor.java:79) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:73) at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:56) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:55) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) at