james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen McConnell <mcconn...@apache.org>
Subject Re: James under Merlin
Date Sat, 17 Aug 2002 02:09:34 GMT


Noel J. Bergman wrote:

>>What would be really great is if a James wiz could check out the 
>>Merlin/James demo package I've put together and give me some
>>feedback if the sort of things I'm seeing are resonable or not.
>>
>
>What are you seeing?
>

#
# Here is the log with debugging set DEBUG level for the mailstore.
#

$ java -Djava.ext.dirs=.\extensions -jar .\extensions\merlin.jar 
demo\james\james.xml

[INFO   ] (root.james): start: dns, nntp, [store#26644003], 
[datasource#16675983], users, nntp-auth, [threads#17764792], 
[connections#181635
14], [sockets], [null#26174005], nntp-server, mailstore, main, spool, 
smtp-server, remote
[INFO   ] (root.james.dns): DNSServer init...
[INFO   ] (root.james.dns): DNS Servers is: 127.0.0.1
[INFO   ] (root.james.dns): DNS Servers is: 212.198.0.66
[INFO   ] (root.james.dns): DNS Servers is: 212.198.0.67
[INFO   ] (root.james.dns): DNS Servers is: 194.51.32.65
[INFO   ] (root.james.dns): DNSServer ...init end
[INFO   ] (root.james.main): JAMES init...
[INFO   ] (root.james.mailstore): JamesMailStore init...
[INFO   ] (root.james.mailstore): Registering Repository 
org.apache.james.mailrepository.AvalonMailRepository
[INFO   ] (root.james.mailstore): Registered class: 
fileMAIL->org.apache.james.mailrepository.AvalonMailRepository
[INFO   ] (root.james.mailstore): Registering Repository 
org.apache.james.mailrepository.AvalonSpoolRepository
[INFO   ] (root.james.mailstore): Registered class: 
fileSPOOL->org.apache.james.mailrepository.AvalonSpoolRepository
[INFO   ] (root.james.mailstore): Registering Repository 
org.apache.james.mailrepository.JDBCMailRepository
[INFO   ] (root.james.mailstore): Registered class: 
dbMAIL->org.apache.james.mailrepository.JDBCMailRepository
[INFO   ] (root.james.mailstore): Registering Repository 
org.apache.james.mailrepository.JDBCSpoolRepository
[INFO   ] (root.james.mailstore): Registered class: 
dbSPOOL->org.apache.james.mailrepository.JDBCSpoolRepository
[INFO   ] (root.james.mailstore): Registering Repository 
org.apache.james.mailrepository.JDBCMailRepository
[INFO   ] (root.james.mailstore): Registered class: 
dbfileMAIL->org.apache.james.mailrepository.JDBCMailRepository
[INFO   ] (root.james.mailstore): Registering Repository 
org.apache.james.mailrepository.JDBCSpoolRepository
[INFO   ] (root.james.mailstore): Registered class: 
dbfileSPOOL->org.apache.james.mailrepository.JDBCSpoolRepository
[DEBUG  ] (root.james.mailstore): obtained repository: 
org.apache.james.mailrepository.AvalonSpoolRepository to handle: file,SPOOL
[DEBUG  ] (root.james.mailstore): AvalonMailRepository.destinationURL: 
file://var/mail/spool/
[DEBUG  ] (root.james.mailstore): 
org.apache.james.mailrepository.AvalonSpoolRepository created in 
file://var/mail/spool/
[INFO   ] (root.james.mailstore): added repository: 
file://var/mail/spool/SPOOL->org.apache.james.mailrepository.AvalonSpoolRepository
[INFO   ] (root.james.mailstore): SpoolRepository inboundSpool opened: 
19583390
[INFO   ] (root.james.mailstore): James MailStore ...init
[INFO   ] (root.james.main): Local host is: home
[INFO   ] (root.james.main): Handling mail for: home
[INFO   ] (root.james.main): Handling mail for: localhost
[INFO   ] (root.james.main): Handling mail for: home.osm.net
[INFO   ] (root.james.main): Local users repository opened
[DEBUG  ] (root.james.mailstore): obtained repository: 
org.apache.james.mailrepository.AvalonMailRepository to handle: file,MAIL
[DEBUG  ] (root.james.mailstore): AvalonMailRepository.destinationURL: 
file://var/mail/inboxes/
[DEBUG  ] (root.james.mailstore): 
org.apache.james.mailrepository.AvalonMailRepository created in 
file://var/mail/inboxes/
[INFO   ] (root.james.mailstore): added repository: 
file://var/mail/inboxes/MAIL->org.apache.james.mailrepository.AvalonMailRepository
[INFO   ] (root.james.main): Private Repository LocalInbox opened
James 2.1a1-cvs
[INFO   ] (root.james.main): JAMES ...init end
[DEBUG  ] (root.james.mailstore): obtained repository: 
org.apache.james.mailrepository.AvalonMailRepository to handle: file,MAIL
[DEBUG  ] (root.james.mailstore): AvalonMailRepository.destinationURL: 
file://var/mail/error/
[DEBUG  ] (root.james.mailstore): 
org.apache.james.mailrepository.AvalonMailRepository created in 
file://var/mail/error/
[INFO   ] (root.james.mailstore): added repository: 
file://var/mail/error/MAIL->org.apache.james.mailrepository.AvalonMailRepository
[DEBUG  ] (root.james.mailstore): obtained repository: 
org.apache.james.mailrepository.AvalonSpoolRepository to handle: file,SPOOL
[DEBUG  ] (root.james.mailstore): AvalonMailRepository.destinationURL: 
file://var/mail/outgoing/
[DEBUG  ] (root.james.mailstore): 
org.apache.james.mailrepository.AvalonSpoolRepository created in 
file://var/mail/outgoing/
[INFO   ] (root.james.mailstore): added repository: 
file://var/mail/outgoing/SPOOL->org.apache.james.mailrepository.AvalonSpoolRepository
[DEBUG  ] (root.james.mailstore): obtained repository: 
org.apache.james.mailrepository.AvalonMailRepository to handle: file,MAIL
[DEBUG  ] (root.james.mailstore): AvalonMailRepository.destinationURL: 
file://var/mail/spam/
[DEBUG  ] (root.james.mailstore): 
org.apache.james.mailrepository.AvalonMailRepository created in 
file://var/mail/spam/
[INFO   ] (root.james.mailstore): added repository: 
file://var/mail/spam/MAIL->org.apache.james.mailrepository.AvalonMailRepository
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept() called
[DEBUG  ] (root.james.mailstore): Method accept(delay) called
[INFO   ] (root.james.smtp-server): SMTPServer init...
[INFO   ] (root.james.smtp-server): SMTPServer using plain on port 25 at 
null
[INFO   ] (root.james.smtp-server): SMTPServer ...init end
Started SMTP Server plain:25
[INFO   ] (root.james.remote): RemoteManager init...
[INFO   ] (root.james.remote): RemoteManager using plain on port 4555 at 
null
[INFO   ] (root.james.remote): RemoteManager ...init end

#
#  James server and related componets are not all running.  I go over to 
my mail clinet and send myself a message.
# and the following logg entries are generated.
#

[INFO   ] (root.james.smtp-server): Hello Name is: home
[INFO   ] (root.james.smtp-server): Connection from claudel.noos.net 
(212.198.2.83)
Retrieving from: C:\TEMP\Mail1029549462609-036148.m64
Saving to:       file://var/mail/spool//Mail1029549462609-0
Modified: false
[DEBUG  ] (root.james.mailstore): Mail Mail1029549462609-0 stored.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[DEBUG  ] (root.james.mailstore): accept() has locked: Mail1029549462609-0
[DEBUG  ] (root.james.mailstore): Retrieving mail: Mail1029549462609-0
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[ERROR  ] (root.james.mailstore): Exception retrieving mail: 
java.lang.RuntimeException: Exception caught while retrieving an object, 
cause:
 java.io.StreamCorruptedException: unexpected end of block data, so 
we're deleting it... good riddance!
java.lang.RuntimeException: Exception caught while retrieving an object, 
cause: java.io.StreamCorruptedException: unexpected end of block da
ta
        at 
org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Object_Repository.get(File_Persistent_Object_Repository.java:66)

        at 
org.apache.james.mailrepository.AvalonMailRepository.retrieve(AvalonMailRepository.java:260)
        at 
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:268)
        at 
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:47)
        at 
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:80)
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[INFO   ] (root.james.main): Mail Mail1029549462609-0 pushed in spool
[INFO   ] (root.james.smtp-server): Mail sent to Mail Server
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549462609-0 in spool.
[DEBUG  ] (root.james.mailstore): Method accept() called

#
# Any subsequent attempts to send a email to the server result in the 
same exception condition - StreamCorruptedException
# If I attempt to send a message to another account using the SMTP 
server I get the following:
#

[INFO   ] (root.james.smtp-server): Hello Name is: home
[INFO   ] (root.james.smtp-server): Connection from localhost (127.0.0.1)
Retrieving from: C:\TEMP\Mail1029549805531-136149.m64
Saving to:       file://var/mail/spool//Mail1029549805531-1
Modified: false
[DEBUG  ] (root.james.mailstore): Mail Mail1029549805531-1 stored.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): accept() has locked: Mail1029549805531-1
[DEBUG  ] (root.james.mailstore): Retrieving mail: Mail1029549805531-1
[ERROR  ] (root.james.mailstore): Exception retrieving mail: 
java.lang.RuntimeException: Exception caught while retrieving an object, 
cause:
 java.io.StreamCorruptedException: unexpected end of block data, so 
we're deleting it... good riddance!
java.lang.RuntimeException: Exception caught while retrieving an object, 
cause: java.io.StreamCorruptedException: unexpected end of block da
ta
        at 
org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Object_Repository.get(File_Persistent_Object_Repository.java:66)

        at 
org.apache.james.mailrepository.AvalonMailRepository.retrieve(AvalonMailRepository.java:260)
        at 
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:268)
        at 
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:47)
        at 
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:80)
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[INFO   ] (root.james.main): Mail Mail1029549805531-1 pushed in spool
[INFO   ] (root.james.smtp-server): Mail sent to Mail Server
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): Found item Mail1029549805531-1 in spool.
[DEBUG  ] (root.james.mailstore): Method accept() called

#
# So as you can see - in both cases the File_Persistent_Object_Repository
# get( String ) method is throwing the StreamCorruptedException when
# attempting to read the stream based on the supplied key.
#

Cheers, Steve.

-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net




--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message