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 "Robert Burrell Donkin (JIRA)" <se...@james.apache.org> on 2006/11/18 21:41:37 UTC
[jira] Created: (JAMES-707) [PATCH] Fix for NullPointerException in
SimpleMessageAttributes
[PATCH] Fix for NullPointerException in SimpleMessageAttributes
----------------------------------------------------------------
Key: JAMES-707
URL: http://issues.apache.org/jira/browse/JAMES-707
Project: James
Issue Type: Bug
Affects Versions: Trunk
Reporter: Robert Burrell Donkin
logger is not set on SimpleMessageAttributes. whenever a message has to be logged (for example, when there is an issue loading a mime part) this results in a null pointer with the stack trace below
java.lang.NullPointerException
at org.apache.james.imapserver.store.SimpleMessageAttributes.parseMimePart(SimpleMessageAttributes.java:248)
at org.apache.james.imapserver.store.SimpleMessageAttributes.setAttributesFor(SimpleMessageAttributes.java:115)
at org.apache.james.imapserver.store.SimpleMessageAttributes.<init>(SimpleMessageAttributes.java:100)
at org.apache.james.imapserver.commands.FetchCommand.outputMessage(FetchCommand.java:154)
at org.apache.james.imapserver.commands.FetchCommand.doProcess(FetchCommand.java:102)
at org.apache.james.imapserver.commands.UidCommand.doProcess(UidCommand.java:53)
at org.apache.james.imapserver.commands.CommandTemplate.process(CommandTemplate.java:66)
at org.apache.james.imapserver.ImapRequestHandler.doProcessRequest(ImapRequestHandler.java:129)
at org.apache.james.imapserver.ImapRequestHandler.handleRequest(ImapRequestHandler.java:74)
at org.apache.james.imapserver.ImapHandler.handleNextRequest(ImapHandler.java:297)
at org.apache.james.imapserver.ImapHandler.handleConnection(ImapHandler.java:244)
at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:468)
at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
--
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-707) [PATCH] Fix for NullPointerException
in SimpleMessageAttributes
Posted by "Joachim Draeger (JIRA)" <se...@james.apache.org>.
[ http://issues.apache.org/jira/browse/JAMES-707?page=all ]
Joachim Draeger resolved JAMES-707.
-----------------------------------
Fix Version/s: Next Major
Resolution: Fixed
applied to trunk
> [PATCH] Fix for NullPointerException in SimpleMessageAttributes
> ---------------------------------------------------------------
>
> Key: JAMES-707
> URL: http://issues.apache.org/jira/browse/JAMES-707
> Project: James
> Issue Type: Bug
> Affects Versions: Trunk
> Reporter: Robert Burrell Donkin
> Assigned To: Joachim Draeger
> Fix For: Next Major
>
> Attachments: james-imap-null-pointer.patch, james-imap-null-pointer.patch
>
>
> logger is not set on SimpleMessageAttributes. whenever a message has to be logged (for example, when there is an issue loading a mime part) this results in a null pointer with the stack trace below
> java.lang.NullPointerException
> at org.apache.james.imapserver.store.SimpleMessageAttributes.parseMimePart(SimpleMessageAttributes.java:248)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.setAttributesFor(SimpleMessageAttributes.java:115)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.<init>(SimpleMessageAttributes.java:100)
> at org.apache.james.imapserver.commands.FetchCommand.outputMessage(FetchCommand.java:154)
> at org.apache.james.imapserver.commands.FetchCommand.doProcess(FetchCommand.java:102)
> at org.apache.james.imapserver.commands.UidCommand.doProcess(UidCommand.java:53)
> at org.apache.james.imapserver.commands.CommandTemplate.process(CommandTemplate.java:66)
> at org.apache.james.imapserver.ImapRequestHandler.doProcessRequest(ImapRequestHandler.java:129)
> at org.apache.james.imapserver.ImapRequestHandler.handleRequest(ImapRequestHandler.java:74)
> at org.apache.james.imapserver.ImapHandler.handleNextRequest(ImapHandler.java:297)
> at org.apache.james.imapserver.ImapHandler.handleConnection(ImapHandler.java:244)
> at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:468)
> at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
> at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
--
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] Commented: (JAMES-707) [PATCH] Fix for NullPointerException
in SimpleMessageAttributes
Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
[ http://issues.apache.org/jira/browse/JAMES-707?page=comments#action_12451064 ]
Robert Burrell Donkin commented on JAMES-707:
---------------------------------------------
This is an IMAP bug but I can't edit the component now :-/
> [PATCH] Fix for NullPointerException in SimpleMessageAttributes
> ---------------------------------------------------------------
>
> Key: JAMES-707
> URL: http://issues.apache.org/jira/browse/JAMES-707
> Project: James
> Issue Type: Bug
> Affects Versions: Trunk
> Reporter: Robert Burrell Donkin
>
> logger is not set on SimpleMessageAttributes. whenever a message has to be logged (for example, when there is an issue loading a mime part) this results in a null pointer with the stack trace below
> java.lang.NullPointerException
> at org.apache.james.imapserver.store.SimpleMessageAttributes.parseMimePart(SimpleMessageAttributes.java:248)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.setAttributesFor(SimpleMessageAttributes.java:115)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.<init>(SimpleMessageAttributes.java:100)
> at org.apache.james.imapserver.commands.FetchCommand.outputMessage(FetchCommand.java:154)
> at org.apache.james.imapserver.commands.FetchCommand.doProcess(FetchCommand.java:102)
> at org.apache.james.imapserver.commands.UidCommand.doProcess(UidCommand.java:53)
> at org.apache.james.imapserver.commands.CommandTemplate.process(CommandTemplate.java:66)
> at org.apache.james.imapserver.ImapRequestHandler.doProcessRequest(ImapRequestHandler.java:129)
> at org.apache.james.imapserver.ImapRequestHandler.handleRequest(ImapRequestHandler.java:74)
> at org.apache.james.imapserver.ImapHandler.handleNextRequest(ImapHandler.java:297)
> at org.apache.james.imapserver.ImapHandler.handleConnection(ImapHandler.java:244)
> at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:468)
> at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
> at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
--
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-707) [PATCH] Fix for NullPointerException in
SimpleMessageAttributes
Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
[ http://issues.apache.org/jira/browse/JAMES-707?page=all ]
Robert Burrell Donkin updated JAMES-707:
----------------------------------------
Attachment: james-imap-null-pointer.patch
sorry - spoke too soon
It happens in the constructor so the last patch is no good. This one seems better. Been running for a while without the problem reoccuring.
> [PATCH] Fix for NullPointerException in SimpleMessageAttributes
> ---------------------------------------------------------------
>
> Key: JAMES-707
> URL: http://issues.apache.org/jira/browse/JAMES-707
> Project: James
> Issue Type: Bug
> Affects Versions: Trunk
> Reporter: Robert Burrell Donkin
> Attachments: james-imap-null-pointer.patch, james-imap-null-pointer.patch
>
>
> logger is not set on SimpleMessageAttributes. whenever a message has to be logged (for example, when there is an issue loading a mime part) this results in a null pointer with the stack trace below
> java.lang.NullPointerException
> at org.apache.james.imapserver.store.SimpleMessageAttributes.parseMimePart(SimpleMessageAttributes.java:248)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.setAttributesFor(SimpleMessageAttributes.java:115)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.<init>(SimpleMessageAttributes.java:100)
> at org.apache.james.imapserver.commands.FetchCommand.outputMessage(FetchCommand.java:154)
> at org.apache.james.imapserver.commands.FetchCommand.doProcess(FetchCommand.java:102)
> at org.apache.james.imapserver.commands.UidCommand.doProcess(UidCommand.java:53)
> at org.apache.james.imapserver.commands.CommandTemplate.process(CommandTemplate.java:66)
> at org.apache.james.imapserver.ImapRequestHandler.doProcessRequest(ImapRequestHandler.java:129)
> at org.apache.james.imapserver.ImapRequestHandler.handleRequest(ImapRequestHandler.java:74)
> at org.apache.james.imapserver.ImapHandler.handleNextRequest(ImapHandler.java:297)
> at org.apache.james.imapserver.ImapHandler.handleConnection(ImapHandler.java:244)
> at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:468)
> at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
> at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
--
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] Assigned: (JAMES-707) [PATCH] Fix for NullPointerException
in SimpleMessageAttributes
Posted by "Joachim Draeger (JIRA)" <se...@james.apache.org>.
[ http://issues.apache.org/jira/browse/JAMES-707?page=all ]
Joachim Draeger reassigned JAMES-707:
-------------------------------------
Assignee: Joachim Draeger
> [PATCH] Fix for NullPointerException in SimpleMessageAttributes
> ---------------------------------------------------------------
>
> Key: JAMES-707
> URL: http://issues.apache.org/jira/browse/JAMES-707
> Project: James
> Issue Type: Bug
> Affects Versions: Trunk
> Reporter: Robert Burrell Donkin
> Assigned To: Joachim Draeger
> Attachments: james-imap-null-pointer.patch, james-imap-null-pointer.patch
>
>
> logger is not set on SimpleMessageAttributes. whenever a message has to be logged (for example, when there is an issue loading a mime part) this results in a null pointer with the stack trace below
> java.lang.NullPointerException
> at org.apache.james.imapserver.store.SimpleMessageAttributes.parseMimePart(SimpleMessageAttributes.java:248)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.setAttributesFor(SimpleMessageAttributes.java:115)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.<init>(SimpleMessageAttributes.java:100)
> at org.apache.james.imapserver.commands.FetchCommand.outputMessage(FetchCommand.java:154)
> at org.apache.james.imapserver.commands.FetchCommand.doProcess(FetchCommand.java:102)
> at org.apache.james.imapserver.commands.UidCommand.doProcess(UidCommand.java:53)
> at org.apache.james.imapserver.commands.CommandTemplate.process(CommandTemplate.java:66)
> at org.apache.james.imapserver.ImapRequestHandler.doProcessRequest(ImapRequestHandler.java:129)
> at org.apache.james.imapserver.ImapRequestHandler.handleRequest(ImapRequestHandler.java:74)
> at org.apache.james.imapserver.ImapHandler.handleNextRequest(ImapHandler.java:297)
> at org.apache.james.imapserver.ImapHandler.handleConnection(ImapHandler.java:244)
> at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:468)
> at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
> at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
--
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-707) [PATCH] Fix for NullPointerException in
SimpleMessageAttributes
Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
[ http://issues.apache.org/jira/browse/JAMES-707?page=all ]
Robert Burrell Donkin updated JAMES-707:
----------------------------------------
Attachment: james-imap-null-pointer.patch
Sets logger and prevents null pointer exception
> [PATCH] Fix for NullPointerException in SimpleMessageAttributes
> ---------------------------------------------------------------
>
> Key: JAMES-707
> URL: http://issues.apache.org/jira/browse/JAMES-707
> Project: James
> Issue Type: Bug
> Affects Versions: Trunk
> Reporter: Robert Burrell Donkin
> Attachments: james-imap-null-pointer.patch
>
>
> logger is not set on SimpleMessageAttributes. whenever a message has to be logged (for example, when there is an issue loading a mime part) this results in a null pointer with the stack trace below
> java.lang.NullPointerException
> at org.apache.james.imapserver.store.SimpleMessageAttributes.parseMimePart(SimpleMessageAttributes.java:248)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.setAttributesFor(SimpleMessageAttributes.java:115)
> at org.apache.james.imapserver.store.SimpleMessageAttributes.<init>(SimpleMessageAttributes.java:100)
> at org.apache.james.imapserver.commands.FetchCommand.outputMessage(FetchCommand.java:154)
> at org.apache.james.imapserver.commands.FetchCommand.doProcess(FetchCommand.java:102)
> at org.apache.james.imapserver.commands.UidCommand.doProcess(UidCommand.java:53)
> at org.apache.james.imapserver.commands.CommandTemplate.process(CommandTemplate.java:66)
> at org.apache.james.imapserver.ImapRequestHandler.doProcessRequest(ImapRequestHandler.java:129)
> at org.apache.james.imapserver.ImapRequestHandler.handleRequest(ImapRequestHandler.java:74)
> at org.apache.james.imapserver.ImapHandler.handleNextRequest(ImapHandler.java:297)
> at org.apache.james.imapserver.ImapHandler.handleConnection(ImapHandler.java:244)
> at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:468)
> at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
> at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
--
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