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 "Michael Saladin (JIRA)" <se...@james.apache.org> on 2012/08/03 11:14:02 UTC

[jira] [Created] (IMAP-369) NPE when connecting to apache-james-3.0-beta4 using incorrect user

Michael Saladin created IMAP-369:
------------------------------------

             Summary: NPE when connecting to apache-james-3.0-beta4 using incorrect user
                 Key: IMAP-369
                 URL: https://issues.apache.org/jira/browse/IMAP-369
             Project: JAMES Imap
          Issue Type: Bug
          Components: Protocol
            Reporter: Michael Saladin


{code:title=Bar.java|borderStyle=solid}

Affects version:
./lib/james-server-protocols-imap4-3.0-beta4.jar

When I connect to the James server using Thunderbird 11.0.1 as client with a wrong username, and set the logging level of the James server to TRACE, I get the following:

<code>
INFO  09:49:53,815 | james.imapserver | ID=553374 Connection established from 127.0.0.1
DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <tag>: 1
DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <command>: capability
DEBUG 09:49:53,817 | james.imapserver | ID=553374 No mailbox selected
DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <tag>: 2
DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <command>: authenticate
DEBUG 09:49:56,931 | james.imapserver | ID=553374 Got <tag>: 4
DEBUG 09:49:56,932 | james.imapserver | ID=553374 Got <command>: login
DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <tag>: 6
DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <command>: authenticate
INFO  09:49:59,849 | james.imapserver | ID=553374 Too many authentication failures. Closing connection.
DEBUG 09:49:59,853 | james.imapserver | ID=553374 Error while processing imap request
java.lang.NullPointerException
        at org.apache.james.imapserver.netty.ImapRequestFrameDecoder.createCumulationDynamicBuffer(ImapRequestFrameDecoder.java:211)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.cumulation(FrameDecoder.java:367)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:210)
        at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
INFO  09:49:59,855 | james.imapserver | ID=553374 Connection closed for 127.0.0.1
INFO  09:49:59,887 | james.imapserver | ID=12914246 Connection established from 127.0.0.1
DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <tag>: 1
DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <command>: capability
DEBUG 09:49:59,889 | james.imapserver | ID=12914246 No mailbox selected
DEBUG 09:49:59,889 | james.imapserver | ID=12914246 Got <tag>: 2
DEBUG 09:49:59,890 | james.imapserver | ID=12914246 Got <command>: authenticate
DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <tag>: 4
DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <command>: login
INFO  09:50:03,090 | james.imapserver | ID=12914246 Connection closed for 127.0.0.1
INFO  09:53:26,765 | james.imapserver | Dispose IMAP Service
INFO  09:53:26,769 | james.imapserver | Dispose IMAP Service done
</code>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.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] (IMAP-369) NPE when connecting to apache-james-3.0-beta4 using incorrect user

Posted by "Michael Saladin (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/IMAP-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427927#comment-13427927 ] 

Michael Saladin commented on IMAP-369:
--------------------------------------

Mailing list thread:

Such NPE should really not occur.

Using an unkown user, I've got a authentication failure without NPE, which is normal, so I can't reproduce it.

But if NPE is the behavior, JIRA and patch are needed.

Thx, Eric

On 08/03/2012 09:52 AM, Michael Saladin wrote:
> It seems to happen only when I connect to the IMAP server with a wrong
> username, e.g.:
> Username:    bob@localhost
> Wrong username:    bob
>
> It happens only when I connect with "bob" instead of the
> "bob@localhost", so this is not really a problem, so I won't open a
> ticket. I tried it with Thunderbird 11.0.1.
>
> Best regards
> Michael
>
>
> On 07/27/12 16:11, Eric Charles wrote:
>> Strange, never saw that.
>>
>> I suppose you can send via SMTP to your server?
>> Which mailbox do you use? Any special config/change?
>> Do you use command line or a real client to read the folder?
>>
>> Can you double check, and if it still occurs, please open a JIRA
>> (https://issues.apache.org/jira/browse/IMAP).
>>
>> Thx, Eric
>>
>>
>> On 07/27/2012 09:37 AM, Michael Saladin wrote:
>>> Hi all,
>>>
>>> I have installed James 3.0-beta4 and I keep getting the following
>>> exception when I try to connect to a users account using IMAP. I thought
>>> that it might be a bug when the account is empty, but it keeps occuring
>>> even when there is mail in the account. I created the user using the
>>> james-cli.sh command line tool like this:
>>>
>>> ./james-cli.sh -h localhost -p 9999 adduser bob@localhost bob
>>>
>>> and I use a non standard port for IMAP (1143). And it happens for all
>>> the users, and I really have nothing fancy configured. It seems to me
>>> that there is a bug in method createCumulationDynamicBuffer, but I did
>>> not dvelve into the source code:
>>>
>>> ----------------------------------------------------
>>> protected ChannelBuffer [More ...]
>>> createCumulationDynamicBuffer(ChannelHandlerContext ctx) {
>>> Map<String, Object> attachment = (Map<String, Object>)
>>> ctx.getAttachment();
>>> int size = (Integer) attachment.get(NEEDED_DATA);
>>> ----------------------------------------------------
>>>
>>> Anybody experiences the same issues?
>>> Thanks & regards
>>> Michael
>>>
>>> Taken from imapserver.log
>>> ----------------------------------------------------
>>> INFO 09:23:54,521 | james.imapserver | ID=19884216 Connection
>>> established from 127.0.0.1
>>> DEBUG 09:23:54,565 | james.imapserver | ID=19884216 Got <tag>: 1
>>> DEBUG 09:23:54,565 | james.imapserver | ID=19884216 Got <command>:
>>> capability
>>> DEBUG 09:23:54,569 | james.imapserver | ID=19884216 No mailbox selected
>>> DEBUG 09:23:54,576 | james.imapserver | ID=19884216 Got <tag>: 2
>>> DEBUG 09:23:54,576 | james.imapserver | ID=19884216 Got <command>:
>>> authenticate
>>> DEBUG 09:23:54,602 | james.imapserver | ID=19884216 Got <tag>: 4
>>> DEBUG 09:23:54,602 | james.imapserver | ID=19884216 Got <command>: login
>>> DEBUG 09:23:57,391 | james.imapserver | ID=19884216 Got <tag>: 6
>>> DEBUG 09:23:57,391 | james.imapserver | ID=19884216 Got <command>:
>>> authenticate
>>> INFO 09:23:57,394 | james.imapserver | ID=19884216 Too many
>>> authentication failures. Closing connection.
>>> INFO 09:23:57,418 | james.imapserver | ID=19884216 Connection closed
>>> for 127.0.0.1
>>> DEBUG 09:23:57,418 | james.imapserver | ID=19884216 Error while
>>> processing imap request
>>> java.lang.NullPointerException
>>> at
>>> org.apache.james.imapserver.netty.ImapRequestFrameDecoder.createCumulationDynamicBuffer(ImapRequestFrameDecoder.java:211)
>>>
>>>
>>> at
>>> org.jboss.netty.handler.codec.frame.FrameDecoder.cumulation(FrameDecoder.java:367)
>>>
>>>
>>> at
>>> org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:210)
>>>
>>>
>>> at
>>> org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
>>>
>>>
>>> at
>>> org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
>>>
>>>
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>
>>>
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>
>>>
>>> at java.lang.Thread.run(Thread.java:662)
>>> INFO 09:23:57,423 | james.imapserver | ID=15729601 Connection
>>> established from 127.0.0.1
>>> DEBUG 09:23:57,426 | james.imapserver | ID=15729601 Got <tag>: 1
>>> DEBUG 09:23:57,426 | james.imapserver | ID=15729601 Got <command>:
>>> capability
>>> DEBUG 09:23:57,427 | james.imapserver | ID=15729601 No mailbox selected
>>> DEBUG 09:23:57,428 | james.imapserver | ID=15729601 Got <tag>: 2
>>> DEBUG 09:23:57,428 | james.imapserver | ID=15729601 Got <command>:
>>> authenticate
>>> DEBUG 09:23:57,431 | james.imapserver | ID=15729601 Got <tag>: 4
>>> DEBUG 09:23:57,431 | james.imapserver | ID=15729601 Got <command>: login
>>> ----------------------------------------------------
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>


-- 
eric | http://about.echarles.net | @echarles


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org

                
> NPE when connecting to apache-james-3.0-beta4 using incorrect user
> ------------------------------------------------------------------
>
>                 Key: IMAP-369
>                 URL: https://issues.apache.org/jira/browse/IMAP-369
>             Project: JAMES Imap
>          Issue Type: Bug
>          Components: Protocol
>            Reporter: Michael Saladin
>         Attachments: adnjames_conf_folder.tar
>
>
> {code:title=Bar.java|borderStyle=solid}
> Affects version (I could not choose this version in the Affects version dropdown):
> ./lib/james-server-protocols-imap4-3.0-beta4.jar
> When I connect to the James server using Thunderbird 11.0.1 as client with a wrong username, and set the logging level of the James server to TRACE, I get the following:
> {code}
> INFO  09:49:53,815 | james.imapserver | ID=553374 Connection established from 127.0.0.1
> DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <tag>: 1
> DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <command>: capability
> DEBUG 09:49:53,817 | james.imapserver | ID=553374 No mailbox selected
> DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <tag>: 2
> DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <command>: authenticate
> DEBUG 09:49:56,931 | james.imapserver | ID=553374 Got <tag>: 4
> DEBUG 09:49:56,932 | james.imapserver | ID=553374 Got <command>: login
> DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <tag>: 6
> DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <command>: authenticate
> INFO  09:49:59,849 | james.imapserver | ID=553374 Too many authentication failures. Closing connection.
> DEBUG 09:49:59,853 | james.imapserver | ID=553374 Error while processing imap request
> java.lang.NullPointerException
>         at org.apache.james.imapserver.netty.ImapRequestFrameDecoder.createCumulationDynamicBuffer(ImapRequestFrameDecoder.java:211)
>         at org.jboss.netty.handler.codec.frame.FrameDecoder.cumulation(FrameDecoder.java:367)
>         at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:210)
>         at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> INFO  09:49:59,855 | james.imapserver | ID=553374 Connection closed for 127.0.0.1
> INFO  09:49:59,887 | james.imapserver | ID=12914246 Connection established from 127.0.0.1
> DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <tag>: 1
> DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <command>: capability
> DEBUG 09:49:59,889 | james.imapserver | ID=12914246 No mailbox selected
> DEBUG 09:49:59,889 | james.imapserver | ID=12914246 Got <tag>: 2
> DEBUG 09:49:59,890 | james.imapserver | ID=12914246 Got <command>: authenticate
> DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <tag>: 4
> DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <command>: login
> INFO  09:50:03,090 | james.imapserver | ID=12914246 Connection closed for 127.0.0.1
> INFO  09:53:26,765 | james.imapserver | Dispose IMAP Service
> INFO  09:53:26,769 | james.imapserver | Dispose IMAP Service done
> {code}
> This happens with a very easy default configuration:
> Correct username: bob@localhost
> Wrong username: bob
> It happens when connecting to the IMAP server using the wrong username (bob). See attached TAR for whole configuration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.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] (IMAP-369) NPE when connecting to apache-james-3.0-beta4 using incorrect user

Posted by "Michael Saladin (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/IMAP-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Saladin updated IMAP-369:
---------------------------------

    Description: 
{code:title=Bar.java|borderStyle=solid}

Affects version (I could not choose this version in the Affects version dropdown):
./lib/james-server-protocols-imap4-3.0-beta4.jar

When I connect to the James server using Thunderbird 11.0.1 as client with a wrong username, and set the logging level of the James server to TRACE, I get the following:

{code}
INFO  09:49:53,815 | james.imapserver | ID=553374 Connection established from 127.0.0.1
DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <tag>: 1
DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <command>: capability
DEBUG 09:49:53,817 | james.imapserver | ID=553374 No mailbox selected
DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <tag>: 2
DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <command>: authenticate
DEBUG 09:49:56,931 | james.imapserver | ID=553374 Got <tag>: 4
DEBUG 09:49:56,932 | james.imapserver | ID=553374 Got <command>: login
DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <tag>: 6
DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <command>: authenticate
INFO  09:49:59,849 | james.imapserver | ID=553374 Too many authentication failures. Closing connection.
DEBUG 09:49:59,853 | james.imapserver | ID=553374 Error while processing imap request
java.lang.NullPointerException
        at org.apache.james.imapserver.netty.ImapRequestFrameDecoder.createCumulationDynamicBuffer(ImapRequestFrameDecoder.java:211)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.cumulation(FrameDecoder.java:367)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:210)
        at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
INFO  09:49:59,855 | james.imapserver | ID=553374 Connection closed for 127.0.0.1
INFO  09:49:59,887 | james.imapserver | ID=12914246 Connection established from 127.0.0.1
DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <tag>: 1
DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <command>: capability
DEBUG 09:49:59,889 | james.imapserver | ID=12914246 No mailbox selected
DEBUG 09:49:59,889 | james.imapserver | ID=12914246 Got <tag>: 2
DEBUG 09:49:59,890 | james.imapserver | ID=12914246 Got <command>: authenticate
DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <tag>: 4
DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <command>: login
INFO  09:50:03,090 | james.imapserver | ID=12914246 Connection closed for 127.0.0.1
INFO  09:53:26,765 | james.imapserver | Dispose IMAP Service
INFO  09:53:26,769 | james.imapserver | Dispose IMAP Service done
{code}

This happens with a very easy default configuration:
Correct username: bob@localhost
Wrong username: bob

It happens when connecting to the IMAP server using the wrong username (bob). See attached TAR for whole configuration.

  was:
{code:title=Bar.java|borderStyle=solid}

Affects version:
./lib/james-server-protocols-imap4-3.0-beta4.jar

When I connect to the James server using Thunderbird 11.0.1 as client with a wrong username, and set the logging level of the James server to TRACE, I get the following:

<code>
INFO  09:49:53,815 | james.imapserver | ID=553374 Connection established from 127.0.0.1
DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <tag>: 1
DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <command>: capability
DEBUG 09:49:53,817 | james.imapserver | ID=553374 No mailbox selected
DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <tag>: 2
DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <command>: authenticate
DEBUG 09:49:56,931 | james.imapserver | ID=553374 Got <tag>: 4
DEBUG 09:49:56,932 | james.imapserver | ID=553374 Got <command>: login
DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <tag>: 6
DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <command>: authenticate
INFO  09:49:59,849 | james.imapserver | ID=553374 Too many authentication failures. Closing connection.
DEBUG 09:49:59,853 | james.imapserver | ID=553374 Error while processing imap request
java.lang.NullPointerException
        at org.apache.james.imapserver.netty.ImapRequestFrameDecoder.createCumulationDynamicBuffer(ImapRequestFrameDecoder.java:211)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.cumulation(FrameDecoder.java:367)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:210)
        at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
INFO  09:49:59,855 | james.imapserver | ID=553374 Connection closed for 127.0.0.1
INFO  09:49:59,887 | james.imapserver | ID=12914246 Connection established from 127.0.0.1
DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <tag>: 1
DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <command>: capability
DEBUG 09:49:59,889 | james.imapserver | ID=12914246 No mailbox selected
DEBUG 09:49:59,889 | james.imapserver | ID=12914246 Got <tag>: 2
DEBUG 09:49:59,890 | james.imapserver | ID=12914246 Got <command>: authenticate
DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <tag>: 4
DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <command>: login
INFO  09:50:03,090 | james.imapserver | ID=12914246 Connection closed for 127.0.0.1
INFO  09:53:26,765 | james.imapserver | Dispose IMAP Service
INFO  09:53:26,769 | james.imapserver | Dispose IMAP Service done
</code>


    
> NPE when connecting to apache-james-3.0-beta4 using incorrect user
> ------------------------------------------------------------------
>
>                 Key: IMAP-369
>                 URL: https://issues.apache.org/jira/browse/IMAP-369
>             Project: JAMES Imap
>          Issue Type: Bug
>          Components: Protocol
>            Reporter: Michael Saladin
>         Attachments: adnjames_conf_folder.tar
>
>
> {code:title=Bar.java|borderStyle=solid}
> Affects version (I could not choose this version in the Affects version dropdown):
> ./lib/james-server-protocols-imap4-3.0-beta4.jar
> When I connect to the James server using Thunderbird 11.0.1 as client with a wrong username, and set the logging level of the James server to TRACE, I get the following:
> {code}
> INFO  09:49:53,815 | james.imapserver | ID=553374 Connection established from 127.0.0.1
> DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <tag>: 1
> DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <command>: capability
> DEBUG 09:49:53,817 | james.imapserver | ID=553374 No mailbox selected
> DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <tag>: 2
> DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <command>: authenticate
> DEBUG 09:49:56,931 | james.imapserver | ID=553374 Got <tag>: 4
> DEBUG 09:49:56,932 | james.imapserver | ID=553374 Got <command>: login
> DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <tag>: 6
> DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <command>: authenticate
> INFO  09:49:59,849 | james.imapserver | ID=553374 Too many authentication failures. Closing connection.
> DEBUG 09:49:59,853 | james.imapserver | ID=553374 Error while processing imap request
> java.lang.NullPointerException
>         at org.apache.james.imapserver.netty.ImapRequestFrameDecoder.createCumulationDynamicBuffer(ImapRequestFrameDecoder.java:211)
>         at org.jboss.netty.handler.codec.frame.FrameDecoder.cumulation(FrameDecoder.java:367)
>         at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:210)
>         at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> INFO  09:49:59,855 | james.imapserver | ID=553374 Connection closed for 127.0.0.1
> INFO  09:49:59,887 | james.imapserver | ID=12914246 Connection established from 127.0.0.1
> DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <tag>: 1
> DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <command>: capability
> DEBUG 09:49:59,889 | james.imapserver | ID=12914246 No mailbox selected
> DEBUG 09:49:59,889 | james.imapserver | ID=12914246 Got <tag>: 2
> DEBUG 09:49:59,890 | james.imapserver | ID=12914246 Got <command>: authenticate
> DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <tag>: 4
> DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <command>: login
> INFO  09:50:03,090 | james.imapserver | ID=12914246 Connection closed for 127.0.0.1
> INFO  09:53:26,765 | james.imapserver | Dispose IMAP Service
> INFO  09:53:26,769 | james.imapserver | Dispose IMAP Service done
> {code}
> This happens with a very easy default configuration:
> Correct username: bob@localhost
> Wrong username: bob
> It happens when connecting to the IMAP server using the wrong username (bob). See attached TAR for whole configuration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.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] (IMAP-369) NPE when connecting to apache-james-3.0-beta4 using incorrect user

Posted by "Michael Saladin (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/IMAP-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Saladin updated IMAP-369:
---------------------------------

    Attachment: adnjames_conf_folder.tar

Configuration folder of james3-beta4 server.
                
> NPE when connecting to apache-james-3.0-beta4 using incorrect user
> ------------------------------------------------------------------
>
>                 Key: IMAP-369
>                 URL: https://issues.apache.org/jira/browse/IMAP-369
>             Project: JAMES Imap
>          Issue Type: Bug
>          Components: Protocol
>            Reporter: Michael Saladin
>         Attachments: adnjames_conf_folder.tar
>
>
> {code:title=Bar.java|borderStyle=solid}
> Affects version (I could not choose this version in the Affects version dropdown):
> ./lib/james-server-protocols-imap4-3.0-beta4.jar
> When I connect to the James server using Thunderbird 11.0.1 as client with a wrong username, and set the logging level of the James server to TRACE, I get the following:
> {code}
> INFO  09:49:53,815 | james.imapserver | ID=553374 Connection established from 127.0.0.1
> DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <tag>: 1
> DEBUG 09:49:53,816 | james.imapserver | ID=553374 Got <command>: capability
> DEBUG 09:49:53,817 | james.imapserver | ID=553374 No mailbox selected
> DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <tag>: 2
> DEBUG 09:49:56,901 | james.imapserver | ID=553374 Got <command>: authenticate
> DEBUG 09:49:56,931 | james.imapserver | ID=553374 Got <tag>: 4
> DEBUG 09:49:56,932 | james.imapserver | ID=553374 Got <command>: login
> DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <tag>: 6
> DEBUG 09:49:59,847 | james.imapserver | ID=553374 Got <command>: authenticate
> INFO  09:49:59,849 | james.imapserver | ID=553374 Too many authentication failures. Closing connection.
> DEBUG 09:49:59,853 | james.imapserver | ID=553374 Error while processing imap request
> java.lang.NullPointerException
>         at org.apache.james.imapserver.netty.ImapRequestFrameDecoder.createCumulationDynamicBuffer(ImapRequestFrameDecoder.java:211)
>         at org.jboss.netty.handler.codec.frame.FrameDecoder.cumulation(FrameDecoder.java:367)
>         at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:210)
>         at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> INFO  09:49:59,855 | james.imapserver | ID=553374 Connection closed for 127.0.0.1
> INFO  09:49:59,887 | james.imapserver | ID=12914246 Connection established from 127.0.0.1
> DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <tag>: 1
> DEBUG 09:49:59,888 | james.imapserver | ID=12914246 Got <command>: capability
> DEBUG 09:49:59,889 | james.imapserver | ID=12914246 No mailbox selected
> DEBUG 09:49:59,889 | james.imapserver | ID=12914246 Got <tag>: 2
> DEBUG 09:49:59,890 | james.imapserver | ID=12914246 Got <command>: authenticate
> DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <tag>: 4
> DEBUG 09:49:59,892 | james.imapserver | ID=12914246 Got <command>: login
> INFO  09:50:03,090 | james.imapserver | ID=12914246 Connection closed for 127.0.0.1
> INFO  09:53:26,765 | james.imapserver | Dispose IMAP Service
> INFO  09:53:26,769 | james.imapserver | Dispose IMAP Service done
> {code}
> This happens with a very easy default configuration:
> Correct username: bob@localhost
> Wrong username: bob
> It happens when connecting to the IMAP server using the wrong username (bob). See attached TAR for whole configuration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.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