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 "barry (JIRA)" <se...@james.apache.org> on 2011/06/08 08:35:58 UTC

[jira] [Created] (JAMES-1266) Found an exception when sending a mail

Found an exception when sending a mail
--------------------------------------

                 Key: JAMES-1266
                 URL: https://issues.apache.org/jira/browse/JAMES-1266
             Project: JAMES Server
          Issue Type: Bug
          Components: Build System
            Reporter: barry


DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
<openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
        at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
        at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
        at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
        at $Proxy55.close(Unknown Source)
        at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
        at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
        at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
        at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
        at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
        at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
        at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
        at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
        at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
        at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
        at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
java.lang.NullPointerException
        at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
        at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
        at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046114#comment-13046114 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

Can you post a few line after and before the stacktraces?
Did you find (grep) other occurences of this in your logs?

(We looked and tried to find the cause, but we are confused about the cause : the jpa, or the netty part ?)

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

barry commented on JAMES-1266:
------------------------------

I just found it once, it is can't be reproduced.

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047052#comment-13047052 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

A way to track it down is to sniff the sent packets between the client and james.
Could you record (via wireshark for example) a communication that produces the exception?

Also, I suppose you are using javamail in a way similar to http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/.
I your code can be published (or at least part of it), we could ensure that nothing needs to be tuned on that side (don't understand it as "we want to see/control what you do", but we want to be sure all chain parts are ok). If you don't want to publish, please double-check your client against another smtp server (your isp server for example).

Tks,
Eric

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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] [Issue Comment Edited] (JAMES-1266) Found an exception when sending a mail

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

Barry edited comment on JAMES-1266 at 6/9/11 9:52 AM:
------------------------------------------------------

No, it not always 09AM, just running enough long time, but I am not sure how long. I made a mistake in encoding the address. the right method encode("白义")+" <yi...@riamb.com>", but I did it as encode("白义 <yi...@riamb.com>"), but I am wondering why the james idles long time, the exception will threw, not every time when sending mail.

I am using javamail in webmail to connect 127.0.0.1 and sending in localhost. the riamb.com is just the domain in James.

      was (Author: grandboy):
    No, it not always 09AM, just running enough long time, but I am not sure how long. I made a mistake in encoding the address. the right method encode("白义")+" <yi...@riamb.com>", but I did it as encode("白义 <yi...@riamb.com>"), but I am wondering why the james idles long time, the exception will threw, not every time when sending mail.

I am using javamail to connect 127.0.0.1 and sending in localhost. the riamb.com is just the domain in James.
  
> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

I found it after a long time james running, usually james throws it in the morning. it is very urgent for me, when the exception is occuring, the mail can't be received. 

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

Hi Eric, this is the error message today as below (it is not same as before, the sender is right now):
DEBUG 09:18:11,468 | james.smtpserver | ID=2836614 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler received: EHLO 192.168.8.108
DEBUG 09:18:11,468 | james.smtpserver | ID=2836614 Lookup command handler for command: EHLO
DEBUG 09:18:11,468 | james.smtpserver | ID=2836614 org.apache.james.protocols.smtp.core.esmtp.EhloCmdHandler: 250 [192.168.8.108 Hello 192.168.8.108 (127.0.0.1 [127.0.0.1]), PIPELINING, ENHANCEDSTATUSCODES, 8BITMIME]
DEBUG 09:18:11,468 | james.smtpserver | ID=2836614 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler disconnect=false
DEBUG 09:18:11,468 | james.smtpserver | ID=2836614 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler received: MAIL FROM:<yi...@riamb.com>
DEBUG 09:18:11,468 | james.smtpserver | ID=2836614 Lookup command handler for command: MAIL
DEBUG 09:18:11,468 | james.smtpserver | ID=2836614 org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender <yi...@riamb.com> OK]
DEBUG 09:18:11,468 | james.smtpserver | ID=2836614 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler disconnect=false
DEBUG 09:18:11,484 | james.smtpserver | ID=2836614 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler received: RCPT TO:<yi...@riamb.com>
DEBUG 09:18:11,484 | james.smtpserver | ID=2836614 Lookup command handler for command: RCPT
DEBUG 09:18:11,484 | james.smtpserver | ID=2836614 executing hook org.apache.james.smtpserver.fastfail.ValidRcptHandler
DEBUG 09:18:11,484 | james.smtpserver | Unable to process request
<openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
        at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
        at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
        at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
        at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
        at $Proxy55.close(Unknown Source)
        at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
        at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
        at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
        at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
        at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
        at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
        at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
        at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
        at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
        at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
        at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
DEBUG 09:18:11,484 | james.smtpserver | Unable to process request
java.lang.NullPointerException
        at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
        at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
        at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

very correct. I am wandering to know whether or not there are some potential problems from this exception. 

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048732#comment-13048732 ] 

Norman Maurer commented on JAMES-1266:
--------------------------------------

So whats the deal with it now @eric ? Do you have a patch ?

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

Javamail got the exception below:

javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        com.sun.mail.smtp.SMTPAddressFailedException: 451 Unable to process request

when the james threw the exception in last mail, could you please check it? 



> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049163#comment-13049163 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

Hi Norman,
To my understanding, the root cause is not in James.
I will implement JAMES-1268 Better log PersistenceException to have better information in the log.
Barry has still to confirm the issue is resolved to close this JIRA.
Tks Eric

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046619#comment-13046619 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

Hi,
So when you send the mail via a program you developed (with javamail api), sometimes it's fine, sometimes it hangs after a long time?
No sure to understand correctly.
Tks,
Eric

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046356#comment-13046356 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

Hi,

First of all, I want to reassure you : the sent mail should not be lost because the SMTP transaction didn't close correctly, so the remote SMTP server will see that and will resend a bit later.

A few questions on your context:
1. Does it occur every day around 09:00 AM?
2. Is it always for the same from/to addresses ? - the last log shows FROM:<=?gbk?B?sNfS5SA8eWkuYmFpQHJpYW1iLmNvbT4=?=>  which is not really legal I think but it should not impact the process, and TO:<yi...@riamb.com> 
3. The SMTP connection is issued from 127.0.0.1. normally it should be a remote SMTP server, not localhost. Is there a proxy?

Now, we need to find a way to reproduce this.

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

The issue is in JPA, I think it is just caused by dbcp pool. I added the configuration as blelow:
    <bean id="datasource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="${database.driverClassName}" />
        <property name="url" value="${database.url}" />
		<property name="minIdle" value="5"/>  
	    <property name="maxIdle" value="10"/>  
		<property name="timeBetweenEvictionRunsMillis" value="10000"/>
		<property name="minEvictableIdleTimeMillis" value="60000"/>
		<property name="testWhileIdle" value="true"/>
        <property name="username" value="${database.username}" />
        <property name="password" value="${database.password}" />
    </bean>

And I am using the Mysql, the exception does NOT exist. I never tested on other type DB. 

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046359#comment-13046359 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

Btw, could it be that the mail giving the issue comes from a cron running on 09AM on your local server?
If such, it will be easier to replicate.

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049652#comment-13049652 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

Hi Barry,
Thank you for your answer.
When you are sure the issue if fixed (with dbcp pool configuration), just click on "Close Issue", so we know everything is OK on your side.
You can also post the working configuration before closing so we can document it on the James web site.
Tks,
- Eric


> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

No, it not always 09AM, just running enough long time, but I am not sure how long. I made a mistake in encoding the address. the right method encode("白义")+" <yi...@riamb.com>", but I did it as encode("白义 <yi...@riamb.com>"), but I am wondering why the james idles long time, the exception will threw, not every time when sending mail.

I am using javamail to connect 127.0.0.1 and sending in localhost. the riamb.com is just the domain in James.

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

I think the problem does't belong to james, just mysql connection pool's problem. I am testing the configuration as below:
    <bean id="datasource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="${database.driverClassName}" />
        <property name="url" value="${database.url}" />
		<property name="minIdle" value="5"/>  
	    <property name="maxIdle" value="10"/>  
<!--added by Barry BEGIN-->
		<property name="timeBetweenEvictionRunsMillis" value="10000"/>
		<property name="minEvictableIdleTimeMillis" value="60000"/>
<!--added by Barry END-->
		<property name="testWhileIdle" value="true"/>
        <property name="username" value="${database.username}" />
        <property name="password" value="${database.password}" />
    </bean>

I think you can guess the problem, just the connection idles long time (default 8 hours), the connection will be interrupted by mysql server. 

I need some time to test, and will give you feedback as soon as I can do. 


> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

Notice, I met this exception when sending the first mail and second one in this morning, the third mail is OK. I never met twice in one day before.

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048243#comment-13048243 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

In the process, the issue could be
1. on the client side
2. on james
3. on the database

I looked at james and was not able to find something wrong, this is why I asked you to look at the client side.
The next step would have been to look at the database side.

However, the logged stacktrace are not crystal-clear. Normally, we should better see what the potential problem is from the logged error (it should for example display a jdbc error message).
This comes probably here in the OpenJPA layer, so we can't do much on James level for that...
I hope the configuration can solve the problem, but if your MySQL holds a connection for 8 hours, even if you change the connection settings, it will still hold the connection, which is not normal.


> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

I indeed want to know how to avoid this exception.  I think this problem can be avoided currently via sending heart beat command, but I don't know what command is useful.

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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] [Closed] (JAMES-1266) Found an exception when sending a mail

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

Barry closed JAMES-1266.
------------------------

    Resolution: Fixed

fixed with dbcp pool configuration. 

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

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

Barry commented on JAMES-1266:
------------------------------

INFO  09:16:33,515 | james.smtpserver | ID=18640078 Connection established from 127.0.0.1 (127.0.0.1)
DEBUG 09:16:33,515 | james.smtpserver | ID=18640078 org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
DEBUG 09:16:47,796 | james.smtpserver | ID=18640078 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler received: EHLO 192.168.8.108
DEBUG 09:16:47,796 | james.smtpserver | ID=18640078 Lookup command handler for command: EHLO
DEBUG 09:16:47,796 | james.smtpserver | ID=18640078 org.apache.james.protocols.smtp.core.esmtp.EhloCmdHandler: 250 [192.168.8.108 Hello 192.168.8.108 (127.0.0.1 [127.0.0.1]), PIPELINING, ENHANCEDSTATUSCODES, 8BITMIME]
DEBUG 09:16:47,796 | james.smtpserver | ID=18640078 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler disconnect=false
DEBUG 09:16:47,812 | james.smtpserver | ID=18640078 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler received: MAIL FROM:<=?gbk?B?sNfS5SA8eWkuYmFpQHJpYW1iLmNvbT4=?=>
DEBUG 09:16:47,812 | james.smtpserver | ID=18640078 Lookup command handler for command: MAIL
DEBUG 09:16:47,812 | james.smtpserver | ID=18640078 org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender <=?...@riamb.com> OK]
DEBUG 09:16:47,812 | james.smtpserver | ID=18640078 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler disconnect=false
DEBUG 09:16:47,812 | james.smtpserver | ID=18640078 org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler received: RCPT TO:<yi...@riamb.com>
DEBUG 09:16:47,812 | james.smtpserver | ID=18640078 Lookup command handler for command: RCPT
DEBUG 09:16:47,812 | james.smtpserver | ID=18640078 executing hook org.apache.james.smtpserver.fastfail.ValidRcptHandler
DEBUG 09:16:47,812 | james.smtpserver | Unable to process request
<openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
	at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
	at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
	at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
	at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
	at $Proxy55.close(Unknown Source)
	at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
	at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
	at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
	at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
	at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
	at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
	at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
	at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
	at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
	at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
	at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
	at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
DEBUG 09:16:47,828 | james.smtpserver | Unable to process request
java.lang.NullPointerException
	at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
	at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
	at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
	at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
INFO  09:18:37,265 | james.smtpserver | ID=1751609 Connection established from 127.0.0.1 (127.0.0.1)

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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-1266) Found an exception when sending a mail

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048254#comment-13048254 ] 

Eric Charles commented on JAMES-1266:
-------------------------------------

I think I've got a scenario for the PersistenceException giving the NPE.
If the database holds for 8 hours, JPA will finally give the PersistenceException, but in the meantime, the socket has timed-out, and the protocols sessions is expired, as all it attached fields instances, giving the NPE.
We probably should better log the exceptions in the JPA layer.

> Found an exception when sending a mail
> --------------------------------------
>
>                 Key: JAMES-1266
>                 URL: https://issues.apache.org/jira/browse/JAMES-1266
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Barry
>
> DEBUG 09:02:08,281 | james.smtpserver | Unable to process request
> <openjpa-2.1.0-r422266:1071316 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.
>         at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4304)
>         at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1346)
>         at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1284)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
>         at $Proxy55.close(Unknown Source)
>         at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:119)
>         at org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:152)
>         at org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:49)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:249)
>         at org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:39)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:92)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:59)
>         at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:40)
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> DEBUG 09:02:08,453 | james.smtpserver | Unable to process request
> java.lang.NullPointerException
>         at org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:140)
>         at org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:122)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
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