James Server
  1. James Server
  2. JAMES-970

LocalJamesUsersRepository should check instanceof implementation


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-M1, 3.0.0, Trunk
    • Fix Version/s: 3.0-M1
    • Labels:


      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


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1m 47s 1 Norman Maurer 19/Feb/10 17:13
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12566790 ] jira [ 12581877 ]
        Mark Thomas made changes -
        Workflow jira [ 12499509 ] Default workflow, editable Closed status [ 12566790 ]
        Norman Maurer made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Norman Maurer created issue -


          • Assignee:
            Norman Maurer
            Norman Maurer
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: