[jira] [Created] (BEANUTILS-399) In case of Memory Leak MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (BEANUTILS-399) In case of Memory Leak MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does

Gilles (Jira)
In case of Memory Leak MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does
-------------------------------------------------------------------------------------------------------------------

                 Key: BEANUTILS-399
                 URL: https://issues.apache.org/jira/browse/BEANUTILS-399
             Project: Commons BeanUtils
          Issue Type: Bug
          Components: Bean / Property Utils
    Affects Versions: 1.8.3
         Environment: OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
            Reporter: Oliver Sauder
            Priority: Critical
             Fix For: 1.8.4


In case the MappedMethodReference has lost its reference due to garbage collection the reconstruction only works for methods which have the exact parameter types. In other cases a RuntimeException is thrown.

However when MappedPropertyDescriptor creates such a MappedMethodReference it also finds methods which are compatible for given types.

Marking critical as under high load this bug can occur and stop the system from working as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (BEANUTILS-399) In case of Memory Leak MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does

Gilles (Jira)

     [ https://issues.apache.org/jira/browse/BEANUTILS-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Sauder updated BEANUTILS-399:
------------------------------------

    Attachment: fix-reconstruction-of-lost-method.patch

Tried to also create a unit test for this. However I failed to produce a memory leak with MemoryLeakTestCase with my JVM.

> In case of Memory Leak MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-399
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-399
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3
>         Environment: OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Oliver Sauder
>            Priority: Critical
>             Fix For: 1.8.4
>
>         Attachments: fix-reconstruction-of-lost-method.patch
>
>
> In case the MappedMethodReference has lost its reference due to garbage collection the reconstruction only works for methods which have the exact parameter types. In other cases a RuntimeException is thrown.
> However when MappedPropertyDescriptor creates such a MappedMethodReference it also finds methods which are compatible for given types.
> Marking critical as under high load this bug can occur and stop the system from working as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (BEANUTILS-399) MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does

Gilles (Jira)
In reply to this post by Gilles (Jira)

     [ https://issues.apache.org/jira/browse/BEANUTILS-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Sauder updated BEANUTILS-399:
------------------------------------

    Summary: MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does  (was: In case of Memory Leak MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does)

> MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does
> --------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-399
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-399
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3
>         Environment: OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Oliver Sauder
>            Priority: Critical
>             Fix For: 1.8.4
>
>         Attachments: fix-reconstruction-of-lost-method.patch
>
>
> In case the MappedMethodReference has lost its reference due to garbage collection the reconstruction only works for methods which have the exact parameter types. In other cases a RuntimeException is thrown.
> However when MappedPropertyDescriptor creates such a MappedMethodReference it also finds methods which are compatible for given types.
> Marking critical as under high load this bug can occur and stop the system from working as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (BEANUTILS-399) MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does

Gilles (Jira)
In reply to this post by Gilles (Jira)

     [ https://issues.apache.org/jira/browse/BEANUTILS-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Sauder updated BEANUTILS-399:
------------------------------------

    Attachment: fix-reconstruction-of-lost-method-with-test.patch

Adjusted SomeMappedPojo.java so MemoryLeakTestCase.testMappedPropertyDescriptor_MappedMethodReference1 will reproduce this issue.

> MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does
> --------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-399
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-399
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3
>         Environment: OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Oliver Sauder
>            Priority: Critical
>             Fix For: 1.8.4
>
>         Attachments: fix-reconstruction-of-lost-method-with-test.patch, fix-reconstruction-of-lost-method.patch
>
>
> In case the MappedMethodReference has lost its reference due to garbage collection the reconstruction only works for methods which have the exact parameter types. In other cases a RuntimeException is thrown.
> However when MappedPropertyDescriptor creates such a MappedMethodReference it also finds methods which are compatible for given types.
> Marking critical as under high load this bug can occur and stop the system from working as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (BEANUTILS-399) MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does

Gilles (Jira)
In reply to this post by Gilles (Jira)

     [ https://issues.apache.org/jira/browse/BEANUTILS-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Sauder updated BEANUTILS-399:
------------------------------------

    Attachment:     (was: fix-reconstruction-of-lost-method.patch)

> MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does
> --------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-399
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-399
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3
>         Environment: OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Oliver Sauder
>            Priority: Critical
>             Fix For: 1.8.4
>
>         Attachments: fix-reconstruction-of-lost-method-with-test.patch
>
>
> In case the MappedMethodReference has lost its reference due to garbage collection the reconstruction only works for methods which have the exact parameter types. In other cases a RuntimeException is thrown.
> However when MappedPropertyDescriptor creates such a MappedMethodReference it also finds methods which are compatible for given types.
> Marking critical as under high load this bug can occur and stop the system from working as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (BEANUTILS-399) MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does

Gilles (Jira)
In reply to this post by Gilles (Jira)

     [ https://issues.apache.org/jira/browse/BEANUTILS-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Sauder updated BEANUTILS-399:
------------------------------------

    Comment: was deleted

(was: Tried to also create a unit test for this. However I failed to produce a memory leak with MemoryLeakTestCase with my JVM.)

> MappedMethodReference does not reconstruct method the same way MappedPropertyDescriptor does
> --------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-399
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-399
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3
>         Environment: OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Oliver Sauder
>            Priority: Critical
>             Fix For: 1.8.4
>
>         Attachments: fix-reconstruction-of-lost-method-with-test.patch
>
>
> In case the MappedMethodReference has lost its reference due to garbage collection the reconstruction only works for methods which have the exact parameter types. In other cases a RuntimeException is thrown.
> However when MappedPropertyDescriptor creates such a MappedMethodReference it also finds methods which are compatible for given types.
> Marking critical as under high load this bug can occur and stop the system from working as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira