[ 
https://issues.apache.org/jira/browse/JAMES-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benoit Tellier updated JAMES-2129:
----------------------------------
    Labels: windows  (was: )

> Mails in file repositories cannot be removed
> --------------------------------------------
>
>                 Key: JAMES-2129
>                 URL: https://issues.apache.org/jira/browse/JAMES-2129
>             Project: James Server
>          Issue Type: Bug
>          Components: MailStore & MailRepository
>    Affects Versions: 3.0.0
>         Environment: Windows 7 64 Bit
> JDK 8 Update 111
>            Reporter: Markus Moeller
>            Priority: Major
>              Labels: windows
>
> If a mail is coming in and has matched, we store it in our own file 
> repository to handle the content of the mail later on. If the content is NOT 
> read, it is possible to remove the mail from the repository. After reading 
> the content (method getContent()) the removal is impossible. It causes an 
> exception
> Exception in thread "Thread-10" java.lang.RuntimeException: Exception caught 
> while removing an object: java.io.IOException: Unable to delete file: 
> PathToTheJamesServer\bin..\var\mail\queue\draft\4D61696C313530323238313638303734332D62343337633939352D323963352D343862652D386638312D643066626533313232623533.Repository.FileStreamStore
>       at 
> org.apache.james.repository.file.AbstractFileRepository.remove(AbstractFileRepository.java:274)
>       at 
> org.apache.james.mailrepository.file.FileMailRepository.internalRemove(FileMailRepository.java:257)
>       at 
> org.apache.james.mailrepository.lib.AbstractMailRepository.remove(AbstractMailRepository.java:152)
>       at 
> de.desy.test.james.mailet.DraftMailetProcessor.processMailAlternate(DraftMailetProcessor.java:105)
>       at 
> de.desy.test.james.mailet.DraftMailetProcessor.run(DraftMailetProcessor.java:82)
>       at java.lang.Thread.run(Thread.java:745)
> The java process still holds a file handle to the FileStreamStore file.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to