"Milkowski, Andrew" wrote:
> 
> in recent days I have downloaded (from javaapache.org) James-1_0B2.gz,
> during the test runs I discovered that SMTP send mail failed and traced
> the error to getHeaders method, then i made an intrusion in the code
> (commenting offending lines) and got SMTP to work, second I attempted
> to retrieve POP3 mail using javamail-1.1.3 SDK and pop3-1.1.1 POP3 provider
> without much success, I looked in the logs and saw a POP3 command
> TOP 0 1 being last and unsuccessful command being processed, (interestingly
> running Outlook Express client I was able to retrieve POP3 mail, I also
> saw a completely different set of POP3 commands being issued by this
> client!)
> 

I only tested it with both outlook and netscape... POP3 TOP command
should be already fixed in the last CVS... after the loop Excpetion bug
fix it should work.

> Then i turned to the CVS version of James, after getting it from repository
> (on 6/28/2000) I ran ant build, which successfully compiled the project,
> creating appropriate JARS and property xml files.
> 
> After running run.bat: I saw the console popping the following exception:
> 
> Main: Loop! Node JamesObjectStore is already child of node JamesObjectStore
> org.apache.avalon.utils.Circuit$CircuitException: Loop! Node
> JamesObjectStore is
>  already child of node JamesObjectStore
>         at org.apache.avalon.utils.Circuit.link(Circuit.java:62)
> ...
> 

That append becouse I forget to upload my tree on the CVS... :-) sorry. 
Basically the "JamesObjectStore" define a new Repository type "MAIL"
wich uses ObjectRepository and StreamRepository and so need an instance
of a Store. Since I must prevent a Block to have an instance of itself
from the ComponentManager (you can manage it internally but Avalon must
force the block to be aware of it) I've mapped the Store resource needed
by JamesObjectStore to ApacheDefaultStore (and that's le line I foget to
update). 

CircutException Loop happen when a block is provided trought avalon CM
with an instance of itself or is block A has an instance of block B and
B an instance of A or any other loop. 
I can't allow this becouse of initialization problem (if A ask during
initialization for an implementation of interface "alfa" and that
resource is mapped in its servicemap to A, A cannot initialize before
the resource it has asked for is initializad... ) for shutdown problem
(if A uses B I cannot destroy B before A but if A uses A...) and
reconfiguration problem (same as above).

James's children uses an instance of James but this is managed
internally with a private ComponentManager and so avalon is safe for
those loops.

> Any explanation, guidance will be highly appreciated as I want to move on
> and learn more about the product which
> appears to be very interesting alternative to the Exchange Server!
> 
> Cheers! Greetings from NYC!
> 

Federico Barbieri
<[EMAIL PROTECTED]>


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to