You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Norman Maurer <nm...@byteaction.de> on 2006/05/27 20:57:18 UTC
Re: [jira] Updated: (JAMES-461) Javamail Store based
MailRepository support (was: Maildir support)
I just installed it an run a test. I get the follow execption:
27/05/06 20:46:00 INFO James.Mailet: Error while storing mail.
java.lang.RuntimeException: Error in
getUserInbox.org.apache.avalon.framework.se
rvice.ServiceException: Cannot find or init repository (Key='')
at org.apache.james.James.getUserInbox(James.java:543)
at
org.apache.james.transport.mailets.ToMultiRepository.getRepository(To
MultiRepository.java:293)
at
org.apache.james.transport.mailets.ToMultiRepository.storeMail(ToMult
iRepository.java:219)
at
org.apache.james.transport.mailets.ToMultiRepository.service(ToMultiR
epository.java:151)
at
org.apache.james.transport.mailets.LocalDelivery.service(LocalDeliver
y.java:64)
at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.ja
va:429)
at
org.apache.james.transport.StateAwareProcessorList.service(StateAware
ProcessorList.java:160)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
va:191)
at java.lang.Thread.run(Thread.java:595)
27/05/06 20:46:03 INFO James.Mailet: ToRepository: Storing mail
Mail11487555606
54-1 in file://var/mail/error/
Have you test it with the current trunk ? I also noticed that it create
a dir on the wrong place
("james-2.4-dev/apps/james/apps/james/var/derbydb). Maybe its a general
option.
bye
Norman
Am Samstag, den 27.05.2006, 18:19 +0000 schrieb Joachim Draeger (JIRA):
> [ http://issues.apache.org/jira/browse/JAMES-461?page=all ]
>
> Joachim Draeger updated JAMES-461:
> ----------------------------------
>
> Attachment: JavamailStoreMailRepository2.zip
>
>
> This proposal has no other dependencies than Javamail (i think even before 1.4) and James.
>
> HashJavamailStoreMailRepository should work with every JavamailStore implementation that has deterministic
> message content. (checksum save). Performance could be quite good because after storing/listing it tries to get the messages by the last seen message number.
>
> UIDPlusFolderMailRepository depends on javamail Folders that have a public long[] addUIDMessages(Message[] msgs); method which returns the uids of the added messages. This method is called via reflection, and in the future even the message name might be configureable form config.xml.
> At the moment there is no known Javamail store implementation that provides such a method, but it should come soon.
>
> The Javamail store url is not configureable in the unit tests at the moment. Nearly all tests depend on getNativeMessageCount(), and getNativeMessages() at the moment. I plan to write a few more general tests in the future.
>
> This implementation should be considered as EXPERIMENTAL, but I think it's not so far from being stable.
>
> Joachim
>
> > Javamail Store based MailRepository support (was: Maildir support)
> > ------------------------------------------------------------------
> >
> > Key: JAMES-461
> > URL: http://issues.apache.org/jira/browse/JAMES-461
> > Project: James
> > Type: New Feature
>
> > Components: MailStore & MailRepository
> > Reporter: Norman Maurer
> > Fix For: 2.4.0
> > Attachments: JavamailStoreMailRepository.java, JavamailStoreMailRepository2.zip, MaildirMailRepository.java, MaildirMailRepository.java, UIDPlusFolderMailRepository1.zip
> >
> > Add support for Javamail Stores as MailRepositories
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>
>
Re: [jira] Updated: (JAMES-461) Javamail Store based MailRepository
support
Posted by Joachim Draeger <jd...@joachim-draeger.de>.
At first I have to clarify there are issues with javamaildir-0.6.2. It
has problems in storing many mails per (milli)second. I am working on a
release of javamaildir fixing that and offering uid plus capabilities.
For those who are curios I could send an unofficial zip by private email.
Norman Maurer wrote:
> I just installed it an run a test. I get the follow execption:
>
> 27/05/06 20:46:00 INFO James.Mailet: Error while storing mail.
> java.lang.RuntimeException: Error in
> getUserInbox.org.apache.avalon.framework.se
> rvice.ServiceException: Cannot find or init repository (Key='')
Mmmhh, that stacktrace doesn't contain any of the JavamailStore related
classes.
> Have you test it with the current trunk ?
I have to admit that I used the unit tests most of the time. But I just
tried it with
trunk, HashJavamailStoreMailRepository, javamaildir-0.6.2
trunk, UIDPlusFolderMailRepository, modified javamaildir
trunk, HashJavamailStoreMailRepository, modified javamaildir
and had no issues except for that the postfix config attribute does not
work.
> I also noticed that it create
> a dir on the wrong place
> ("james-2.4-dev/apps/james/apps/james/var/derbydb). Maybe its a general
> option.
Where should it get that directory? But I noticed that some times a
derby directory layout is created under dist/apps/james/var/derbydb. Do
you think that is related to JavamailStoreMailrepository? I can't
imagine how...
Anyway. Could you please provide the excerpt for the corresponding
<James><inboxRepository> and <mailstore><repositories><repository
class=... section from config.xml
Also putting
<category name="mailstore" log-level="DEBUG">
<log-target id-ref="mailstore-target"/>
</category>
in enviroment.xml would help. There should be verbose logging in
mailstore-x.log.
Another important question is, where did you put the javamaildir.jar? At
the moment I create a jar from JavamailStoreMailrepository files and
inject it together with the javamaildir.jar directly into the james.sar
file in the SAR-INF/lib directory. To be honest, I don't know what would
be the correct way. Maybe modifying the build.xml. Any hints?
Joachim
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: [jira] Updated: (JAMES-461) Javamail Store based MailRepository
support
Posted by Stefano Bagnara <ap...@bago.org>.
Unfortunately at James.java:543 we have a catch that does not log the
catched exception! Arg...
I just added the exteption both to the log.error call and to the
RuntimeException (as we now require Java 1.4) and committed the change.
Can you retry so we'll see the real exception?
Stefano
Norman Maurer wrote:
> I just installed it an run a test. I get the follow execption:
>
> 27/05/06 20:46:00 INFO James.Mailet: Error while storing mail.
> java.lang.RuntimeException: Error in
> getUserInbox.org.apache.avalon.framework.se
> rvice.ServiceException: Cannot find or init repository (Key='')
> at org.apache.james.James.getUserInbox(James.java:543)
> at
> org.apache.james.transport.mailets.ToMultiRepository.getRepository(To
> MultiRepository.java:293)
> at
> org.apache.james.transport.mailets.ToMultiRepository.storeMail(ToMult
> iRepository.java:219)
> at
> org.apache.james.transport.mailets.ToMultiRepository.service(ToMultiR
> epository.java:151)
> at
> org.apache.james.transport.mailets.LocalDelivery.service(LocalDeliver
> y.java:64)
> at
> org.apache.james.transport.LinearProcessor.service(LinearProcessor.ja
> va:429)
> at
> org.apache.james.transport.StateAwareProcessorList.service(StateAware
> ProcessorList.java:160)
> at
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
> va:191)
> at java.lang.Thread.run(Thread.java:595)
> 27/05/06 20:46:03 INFO James.Mailet: ToRepository: Storing mail
> Mail11487555606
> 54-1 in file://var/mail/error/
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: [jira] Updated: (JAMES-461) Javamail Store
based MailRepository support
Posted by Norman Maurer <nm...@byteaction.de>.
Am Samstag, den 27.05.2006, 23:53 +0200 schrieb Joachim Draeger:
> At first I have to clarify there are issues with javamaildir-0.6.2. It
> has problems in storing many mails per (milli)second. I am working on a
> release of javamaildir fixing that and offering uid plus capabilities.
> For those who are curios I could send an unofficial zip by private email.
>
Maybe the better way is to try to contact the author. OR like you said
to create your own implementation under an asl friendly license.
> Norman Maurer wrote:
> > I just installed it an run a test. I get the follow execption:
> >
> > 27/05/06 20:46:00 INFO James.Mailet: Error while storing mail.
> > java.lang.RuntimeException: Error in
> > getUserInbox.org.apache.avalon.framework.se
> > rvice.ServiceException: Cannot find or init repository (Key='')
>
> Mmmhh, that stacktrace doesn't contain any of the JavamailStore related
> classes.
Yeah. And that is what confuse me. But maybe its a local change on the
james source i did here. Will make a clean checkout tomorrow and test
again
>
> > Have you test it with the current trunk ?
>
> I have to admit that I used the unit tests most of the time. But I just
> tried it with
>
> trunk, HashJavamailStoreMailRepository, javamaildir-0.6.2
> trunk, UIDPlusFolderMailRepository, modified javamaildir
> trunk, HashJavamailStoreMailRepository, modified javamaildir
>
> and had no issues except for that the postfix config attribute does not
> work.
>
> > I also noticed that it create
> > a dir on the wrong place
> > ("james-2.4-dev/apps/james/apps/james/var/derbydb). Maybe its a general
> > option.
>
> Where should it get that directory? But I noticed that some times a
> derby directory layout is created under dist/apps/james/var/derbydb. Do
> you think that is related to JavamailStoreMailrepository? I can't
> imagine how...
After a bit of thinking about i whould say no!
>
> Anyway. Could you please provide the excerpt for the corresponding
> <James><inboxRepository> and <mailstore><repositories><repository
> class=... section from config.xml
>
> Also putting
> <category name="mailstore" log-level="DEBUG">
> <log-target id-ref="mailstore-target"/>
> </category>
> in enviroment.xml would help. There should be verbose logging in
> mailstore-x.log.
Your right.
>
> Another important question is, where did you put the javamaildir.jar? At
> the moment I create a jar from JavamailStoreMailrepository files and
> inject it together with the javamaildir.jar directly into the james.sar
> file in the SAR-INF/lib directory. To be honest, I don't know what would
> be the correct way. Maybe modifying the build.xml. Any hints?
>
> Joachim
I put the javmaildir.jar in lib/ and move your other classes directly to
james src. After that i build james. Maybe i should try it again on a
clean checkout. Maybe i forget to revert some changes i made, cause im
working on a few things by now (RCPT fastfail and GreyListing). I will
test it again tomorrow. To lazy now ;-)
bye
Norman
Re: [jira] Updated: (JAMES-461) Javamail Store
based MailRepository support
Posted by Norman Maurer <nm...@byteaction.de>.
After this patches i found the problem.. shame on me. It was a linebreak
which appears after the cut and paste. Anyway now we have better logging
anyway.
So this problem is gone.
Now i have to test it ;-)
Thx Stefano
Am Sonntag, den 28.05.2006, 16:42 +0200 schrieb Stefano Bagnara:
> Unfortunately at James.java:543 we have a catch that does not log the
> catched exception! Arg...
>
> I just added the exteption both to the log.error call and to the
> RuntimeException (as we now require Java 1.4) and committed the change.
>
> Can you retry so we'll see the real exception?
>
> Stefano
>
> Norman Maurer wrote:
> > I just installed it an run a test. I get the follow execption:
> >
> > 27/05/06 20:46:00 INFO James.Mailet: Error while storing mail.
> > java.lang.RuntimeException: Error in
> > getUserInbox.org.apache.avalon.framework.se
> > rvice.ServiceException: Cannot find or init repository (Key='')
> > at org.apache.james.James.getUserInbox(James.java:543)
> > at
> > org.apache.james.transport.mailets.ToMultiRepository.getRepository(To
> > MultiRepository.java:293)
> > at
> > org.apache.james.transport.mailets.ToMultiRepository.storeMail(ToMult
> > iRepository.java:219)
> > at
> > org.apache.james.transport.mailets.ToMultiRepository.service(ToMultiR
> > epository.java:151)
> > at
> > org.apache.james.transport.mailets.LocalDelivery.service(LocalDeliver
> > y.java:64)
> > at
> > org.apache.james.transport.LinearProcessor.service(LinearProcessor.ja
> > va:429)
> > at
> > org.apache.james.transport.StateAwareProcessorList.service(StateAware
> > ProcessorList.java:160)
> > at
> > org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
> > va:191)
> > at java.lang.Thread.run(Thread.java:595)
> > 27/05/06 20:46:03 INFO James.Mailet: ToRepository: Storing mail
> > Mail11487555606
> > 54-1 in file://var/mail/error/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
> !EXCUBATOR:1,4479b88237021790529747!