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 "Joachim Draeger (JIRA)" <se...@james.apache.org> on 2006/12/02 20:35:21 UTC
[jira] Created: (JAMES-721) MBoxMailRepository.remove(String key)
does not work
MBoxMailRepository.remove(String key) does not work
---------------------------------------------------
Key: JAMES-721
URL: http://issues.apache.org/jira/browse/JAMES-721
Project: James
Issue Type: Bug
Components: MailStore & MailRepository
Affects Versions: Trunk
Reporter: Joachim Draeger
Fix For: Next Major
It calls
ArrayList keys = new ArrayList();
keys.add(key);
this.remove(keys);
although remove(Collection) expects Mail objects
02/12/06 20:25:14 ERROR pop3server: Some deleted messages were not removed: java.lang.String
java.lang.ClassCastException: java.lang.String
at org.apache.james.mailrepository.MBoxMailRepository$3.messageAction(MBoxMailRepository.java:702)
at org.apache.james.mailrepository.MBoxMailRepository.parseMboxFile(MBoxMailRepository.java:277)
at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:691)
at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:767)
public void remove(Mail mail) {
// Convert the message into a key
Vector delVec = new Vector();
delVec.addElement(mail);
remove(delVec);
}
Works, but the comment is wrong.
--
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
[jira] Updated: (JAMES-721) MBoxMailRepository.remove(String key)
causes ClassCastException
Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/JAMES-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer updated JAMES-721:
--------------------------------
Fix Version/s: (was: Next Major)
2.3.1-dev
Affects Version/s: (was: Trunk)
2.2.0
2.3.0a1
2.3.0a2
2.3.0a3
2.3.0b1
2.3.0b2
2.3.0b3
2.3.0rc1
2.3.0rc2
2.3.0rc3
2.3.0rc4
2.3.0rc5
2.3.0
> MBoxMailRepository.remove(String key) causes ClassCastException
> ---------------------------------------------------------------
>
> Key: JAMES-721
> URL: https://issues.apache.org/jira/browse/JAMES-721
> Project: James
> Issue Type: Bug
> Components: MailStore & MailRepository
> Affects Versions: 2.2.0, 2.3.0a1, 2.3.0a2, 2.3.0a3, 2.3.0b1, 2.3.0b2, 2.3.0b3, 2.3.0rc1, 2.3.0rc2, 2.3.0rc3, 2.3.0rc4, 2.3.0rc5, 2.3.0
> Reporter: Joachim Draeger
> Assigned To: Norman Maurer
> Fix For: 2.3.1-dev
>
>
> It calls
> ArrayList keys = new ArrayList();
> keys.add(key);
> this.remove(keys);
> although remove(Collection) expects Mail objects
> 02/12/06 20:25:14 ERROR pop3server: Some deleted messages were not removed: java.lang.String
> java.lang.ClassCastException: java.lang.String
> at org.apache.james.mailrepository.MBoxMailRepository$3.messageAction(MBoxMailRepository.java:702)
> at org.apache.james.mailrepository.MBoxMailRepository.parseMboxFile(MBoxMailRepository.java:277)
> at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:691)
> at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:767)
> public void remove(Mail mail) {
> // Convert the message into a key
> Vector delVec = new Vector();
> delVec.addElement(mail);
> remove(delVec);
> }
> Works, but the comment is wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Updated: (JAMES-721) MBoxMailRepository.remove(String key)
causes ClassCastException
Posted by "Joachim Draeger (JIRA)" <se...@james.apache.org>.
[ http://issues.apache.org/jira/browse/JAMES-721?page=all ]
Joachim Draeger updated JAMES-721:
----------------------------------
Summary: MBoxMailRepository.remove(String key) causes ClassCastException (was: MBoxMailRepository.remove(String key) does not work)
> MBoxMailRepository.remove(String key) causes ClassCastException
> ---------------------------------------------------------------
>
> Key: JAMES-721
> URL: http://issues.apache.org/jira/browse/JAMES-721
> Project: James
> Issue Type: Bug
> Components: MailStore & MailRepository
> Affects Versions: Trunk
> Reporter: Joachim Draeger
> Fix For: Next Major
>
>
> It calls
> ArrayList keys = new ArrayList();
> keys.add(key);
> this.remove(keys);
> although remove(Collection) expects Mail objects
> 02/12/06 20:25:14 ERROR pop3server: Some deleted messages were not removed: java.lang.String
> java.lang.ClassCastException: java.lang.String
> at org.apache.james.mailrepository.MBoxMailRepository$3.messageAction(MBoxMailRepository.java:702)
> at org.apache.james.mailrepository.MBoxMailRepository.parseMboxFile(MBoxMailRepository.java:277)
> at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:691)
> at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:767)
> public void remove(Mail mail) {
> // Convert the message into a key
> Vector delVec = new Vector();
> delVec.addElement(mail);
> remove(delVec);
> }
> Works, but the comment is wrong.
--
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
[jira] Resolved: (JAMES-721) MBoxMailRepository.remove(String key)
causes ClassCastException
Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/JAMES-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer resolved JAMES-721.
---------------------------------
Resolution: Fixed
Assignee: Norman Maurer
Fixed in trunk
> MBoxMailRepository.remove(String key) causes ClassCastException
> ---------------------------------------------------------------
>
> Key: JAMES-721
> URL: https://issues.apache.org/jira/browse/JAMES-721
> Project: James
> Issue Type: Bug
> Components: MailStore & MailRepository
> Affects Versions: Trunk
> Reporter: Joachim Draeger
> Assigned To: Norman Maurer
> Fix For: Next Major
>
>
> It calls
> ArrayList keys = new ArrayList();
> keys.add(key);
> this.remove(keys);
> although remove(Collection) expects Mail objects
> 02/12/06 20:25:14 ERROR pop3server: Some deleted messages were not removed: java.lang.String
> java.lang.ClassCastException: java.lang.String
> at org.apache.james.mailrepository.MBoxMailRepository$3.messageAction(MBoxMailRepository.java:702)
> at org.apache.james.mailrepository.MBoxMailRepository.parseMboxFile(MBoxMailRepository.java:277)
> at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:691)
> at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:767)
> public void remove(Mail mail) {
> // Convert the message into a key
> Vector delVec = new Vector();
> delVec.addElement(mail);
> remove(delVec);
> }
> Works, but the comment is wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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