Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-970

LocalJamesUsersRepository should check instanceof implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0-M1, 3.0.0, Trunk
    • 3.0-M1
    • None

    Description

      Have a test set up on a FreeBSD 7.2-RELEASE-p6 server with Java version 1.6.0_07 and virtual hosting enabled.

      Have created five test domains with one user each.

      When a test message is sent to a user, for example, postmaster@localhost, one copy of the message is correctly stored in "var/mail/inboxes/localhost/postmaster/" and a second copy is stored in "var/mail/error".

      The corresponding mailet.log entry is:
      --------------------------------------------------------------------
      INFO 11:03:58,837 | james.mailetcontext | Error while storing mail.
      java.lang.ClassCastException:org.apache.james.server.jpa.JPAUsersRepository cannot be cast to org.apache.james.impl.jamesuser.JamesUsersRepository
      at org.apache.james.impl.jamesuser.LocalJamesUsersRepository.getMappings(LocalJamesUsersRepository.java:62)
      at org.apache.james.transport.mailets.UsersRepositoryAliasingForwarding.processMail(UsersRepositoryAliasingForwarding.java:103)
      at org.apache.james.transport.mailets.AbstractVirtualUserTableMailet.service(AbstractVirtualUserTableMailet.java:68)
      at org.apache.james.transport.mailets.LocalDelivery.service(LocalDelivery.java:93)
      at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:456)
      at org.apache.james.container.spring.StateAwareProcessorList.service(StateAwareProcessorList.java:127)
      at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:164)
      at java.lang.Thread.run(Thread.java:619)
      INFO 11:03:58,847 | james.mailetcontext | Storing mail Mail1266595438838-14 in file://var/mail/error
      --------------------------------------------------------------------

      Any ideas?

      Thank you

      Attachments

        Activity

          People

            norman Norman Maurer
            norman Norman Maurer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: