You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Scott Gray (JIRA)" <ji...@apache.org> on 2006/07/30 04:31:13 UTC

[jira] Created: (OFBIZ-124) Javamail NOTICE displays in log repetitively

Javamail NOTICE displays in log repetitively
--------------------------------------------

                 Key: OFBIZ-124
                 URL: http://issues.apache.org/jira/browse/OFBIZ-124
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Scott Gray
            Priority: Trivial


Every time the PollerTask runs in JavaMailContainer.java a new StoreListener is added to the Store in the checkMessages method.  This means that every time an event is past to the StoreListeners it is displayed in the log for each listener attached to the store, which is increasing with each PollerTask run() call.

Hope that makes some sense?

Regards
Scott

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OFBIZ-124) Javamail NOTICE displays in log repetitively

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-124?page=all ]

Scott Gray updated OFBIZ-124:
-----------------------------

    Attachment: JavaMailContainer.patch

I've moved 
store.addStoreListener(new LoggingStoreListener());
from checkMessages to the start method of the JavaMailContainer.
This way a listener is added to the Store once when it is added to the stores map rather than adding another listener everytime checkMessages is called.

Regards
Scott

> Javamail NOTICE displays in log repetitively
> --------------------------------------------
>
>                 Key: OFBIZ-124
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-124
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Trivial
>         Attachments: JavaMailContainer.patch
>
>
> Every time the PollerTask runs in JavaMailContainer.java a new StoreListener is added to the Store in the checkMessages method.  This means that every time an event is past to the StoreListeners it is displayed in the log for each listener attached to the store, which is increasing with each PollerTask run() call.
> Hope that makes some sense?
> Regards
> Scott

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OFBIZ-124) Javamail NOTICE displays in log repetitively

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-124?page=comments#action_12459239 ] 
            
Scott Gray commented on OFBIZ-124:
----------------------------------

Unless it's normal to attach an additional listener everytime ofbiz checks for new messages, then theres definitely a bug.  I haven't looked at the code lately but I recall a commit that turned off some javamail logs which has effectively hidden this bug.  With the javamail-container commented out this bug is irrelevant, but that doesn't make it invalid.



> Javamail NOTICE displays in log repetitively
> --------------------------------------------
>
>                 Key: OFBIZ-124
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-124
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Trivial
>         Attachments: JavaMailContainer.patch
>
>
> Every time the PollerTask runs in JavaMailContainer.java a new StoreListener is added to the Store in the checkMessages method.  This means that every time an event is past to the StoreListeners it is displayed in the log for each listener attached to the store, which is increasing with each PollerTask run() call.
> Hope that makes some sense?
> Regards
> Scott

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OFBIZ-124) Javamail NOTICE displays in log repetitively

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-124?page=comments#action_12459246 ] 
            
Chris Howe commented on OFBIZ-124:
----------------------------------

I guess my question is then, did you have the javamail-container setup properly or were you running OOTB?  I haven't dug through JavaMailContainer.java in depth enough to confirm if this is accurate, but it appears that the store is created when the poller is run and when the store is closed, is should disappear forever.  It doesn't appear to be adding new listeners that are persisting until the next poller is run.

> Javamail NOTICE displays in log repetitively
> --------------------------------------------
>
>                 Key: OFBIZ-124
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-124
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Trivial
>         Attachments: JavaMailContainer.patch
>
>
> Every time the PollerTask runs in JavaMailContainer.java a new StoreListener is added to the Store in the checkMessages method.  This means that every time an event is past to the StoreListeners it is displayed in the log for each listener attached to the store, which is increasing with each PollerTask run() call.
> Hope that makes some sense?
> Regards
> Scott

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OFBIZ-124) Javamail NOTICE displays in log repetitively

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-124?page=comments#action_12459234 ] 
            
Chris Howe commented on OFBIZ-124:
----------------------------------

Can someone verify this behavior.  I believe the described behavior is due to not having the javamail-container setup properly or not commenting it out.  Since the javamail-container is commented out after this report in SVN this may be invalid.  

> Javamail NOTICE displays in log repetitively
> --------------------------------------------
>
>                 Key: OFBIZ-124
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-124
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Trivial
>         Attachments: JavaMailContainer.patch
>
>
> Every time the PollerTask runs in JavaMailContainer.java a new StoreListener is added to the Store in the checkMessages method.  This means that every time an event is past to the StoreListeners it is displayed in the log for each listener attached to the store, which is increasing with each PollerTask run() call.
> Hope that makes some sense?
> Regards
> Scott

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OFBIZ-124) Javamail NOTICE displays in log repetitively

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-124?page=comments#action_12459248 ] 
            
Scott Gray commented on OFBIZ-124:
----------------------------------

Yeah this issue relates to an instance that has the container setup properly.  The store doesn't disappear on close, only connection is closed and the store is reopened on the next poll run, all listeners remain.

> Javamail NOTICE displays in log repetitively
> --------------------------------------------
>
>                 Key: OFBIZ-124
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-124
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Trivial
>         Attachments: JavaMailContainer.patch
>
>
> Every time the PollerTask runs in JavaMailContainer.java a new StoreListener is added to the Store in the checkMessages method.  This means that every time an event is past to the StoreListeners it is displayed in the log for each listener attached to the store, which is increasing with each PollerTask run() call.
> Hope that makes some sense?
> Regards
> Scott

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira