You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Leon (Created) (JIRA)" <ji...@apache.org> on 2011/10/12 07:31:12 UTC

[jira] [Created] (OFBIZ-4469) Load product dimension when and only when the product is created successfully

Load product dimension when and only when the product is created successfully
-----------------------------------------------------------------------------

                 Key: OFBIZ-4469
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4469
             Project: OFBiz
          Issue Type: Bug
          Components: product
    Affects Versions: SVN trunk
            Reporter: Leon
            Priority: Minor
             Fix For: SVN trunk


Service "loadType1ProductInProductDimension" is triggered by "createProduct" service on "commit" events in "async" mode. 

Sometimes, there're too much backend work to do after a product is created and before the whole transaction is commited, as other "sync" mode secas, transaction itself and so on. 

In such situation, the loadType1ProductInProductDimension service cannot get the product info because the new created product has not been truely commited yet, and then it will fail with error message "cannot found product" in log.

Patch: use "global-commit" event instead of "commit" to resolve this problem.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OFBIZ-4469) Load product dimension when and only when the product is created successfully

Posted by "Leon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leon updated OFBIZ-4469:
------------------------

    Attachment: OFBIZ-4469.patch
    
> Load product dimension when and only when the product is created successfully
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-4469
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4469
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4469.patch
>
>
> Service "loadType1ProductInProductDimension" is triggered by "createProduct" service on "commit" events in "async" mode. 
> Sometimes, there're too much backend work to do after a product is created and before the whole transaction is commited, as other "sync" mode secas, transaction itself and so on. 
> In such situation, the loadType1ProductInProductDimension service cannot get the product info because the new created product has not been truely commited yet, and then it will fail with error message "cannot found product" in log.
> Patch: use "global-commit" event instead of "commit" to resolve this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (OFBIZ-4469) Load product dimension when and only when the product is created successfully

Posted by "Jacques Le Roux (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-4469.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Release Branch 11.04
                   Release Branch 10.04
                   Release Branch 09.04
         Assignee: Jacques Le Roux

Thanks Leon (and  Martin for helpful advice),

Your patch is in
trunk r1184999
R11.04 r1185007
R10.04 r1185006
R09.04 r1185008

                
> Load product dimension when and only when the product is created successfully
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-4469
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4469
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Release Branch 09.04, Release Branch 10.04, Release Branch 11.04, SVN trunk
>
>         Attachments: OFBIZ-4469.patch
>
>
> Service "loadType1ProductInProductDimension" is triggered by "createProduct" service on "commit" events in "async" mode. 
> Sometimes, there're too much backend work to do after a product is created and before the whole transaction is commited, as other "sync" mode secas, transaction itself and so on. 
> In such situation, the loadType1ProductInProductDimension service cannot get the product info because the new created product has not been truely commited yet, and then it will fail with error message "cannot found product" in log.
> Patch: use "global-commit" event instead of "commit" to resolve this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OFBIZ-4469) Load product dimension when and only when the product is created successfully

Posted by "Leon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leon updated OFBIZ-4469:
------------------------

    Attachment:     (was: OFBIZ-4469.patch)
    
> Load product dimension when and only when the product is created successfully
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-4469
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4469
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Minor
>             Fix For: SVN trunk
>
>
> Service "loadType1ProductInProductDimension" is triggered by "createProduct" service on "commit" events in "async" mode. 
> Sometimes, there're too much backend work to do after a product is created and before the whole transaction is commited, as other "sync" mode secas, transaction itself and so on. 
> In such situation, the loadType1ProductInProductDimension service cannot get the product info because the new created product has not been truely commited yet, and then it will fail with error message "cannot found product" in log.
> Patch: use "global-commit" event instead of "commit" to resolve this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OFBIZ-4469) Load product dimension when and only when the product is created successfully

Posted by "Leon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leon updated OFBIZ-4469:
------------------------

    Attachment: OFBIZ-4469.patch

use event "global-commit-post-run" instead. thanks Martin's comments in [http://ofbiz.135035.n4.nabble.com/Should-loadSalesInvoiceFact-be-run-on-return-instead-of-commit-td3896289.html]
                
> Load product dimension when and only when the product is created successfully
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-4469
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4469
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4469.patch
>
>
> Service "loadType1ProductInProductDimension" is triggered by "createProduct" service on "commit" events in "async" mode. 
> Sometimes, there're too much backend work to do after a product is created and before the whole transaction is commited, as other "sync" mode secas, transaction itself and so on. 
> In such situation, the loadType1ProductInProductDimension service cannot get the product info because the new created product has not been truely commited yet, and then it will fail with error message "cannot found product" in log.
> Patch: use "global-commit" event instead of "commit" to resolve this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OFBIZ-4469) Load product dimension when and only when the product is created successfully

Posted by "Jacques Le Roux (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128671#comment-13128671 ] 

Jacques Le Roux commented on OFBIZ-4469:
----------------------------------------

Please don't put tabs in you patches but 4 spaces, thanks
                
> Load product dimension when and only when the product is created successfully
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-4469
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4469
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Release Branch 09.04, Release Branch 10.04, Release Branch 11.04, SVN trunk
>
>         Attachments: OFBIZ-4469.patch
>
>
> Service "loadType1ProductInProductDimension" is triggered by "createProduct" service on "commit" events in "async" mode. 
> Sometimes, there're too much backend work to do after a product is created and before the whole transaction is commited, as other "sync" mode secas, transaction itself and so on. 
> In such situation, the loadType1ProductInProductDimension service cannot get the product info because the new created product has not been truely commited yet, and then it will fail with error message "cannot found product" in log.
> Patch: use "global-commit" event instead of "commit" to resolve this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira