[ 
https://issues.apache.org/jira/browse/CXF-7980?focusedWorklogId=212672&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-212672
 ]

ASF GitHub Bot logged work on CXF-7980:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Mar/19 20:46
            Start Date: 13/Mar/19 20:46
    Worklog Time Spent: 10m 
      Work Description: ivanjunckes commented on pull request #523: CXF-7980 
Fixing bean leak
URL: https://github.com/apache/cxf/pull/523
 
 
   This PR fixes the error below. Basically it will avoid beans to leak and 
cause issues when there are multiple apps using the same classes.
   
   Error
   Caused by: org.apache.webbeans.exception.WebBeansException: 
org.apache.webbeans.exception.DuplicateDefinitionException: PassivationCapable 
bean id is not unique: 
br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient 
bean:SiemClassificacaoServiceClient, WebBeansType:THIRDPARTY, 
Name:br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient, 
API 
Types:[br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient],
 
Qualifiers:[javax.enterprise.inject.Default,org.eclipse.microprofile.rest.client.inject.RestClient,javax.enterprise.inject.Any],
 existing: SiemClassificacaoServiceClient, WebBeansType:THIRDPARTY, 
Name:br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient, 
API 
Types:[br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient],
 
Qualifiers:[javax.enterprise.inject.Default,org.eclipse.microprofile.rest.client.inject.RestClient,javax.enterprise.inject.Any]
        at 
org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:371)
        at 
org.apache.webbeans.event.NotificationManager.invokeObserverMethod(NotificationManager.java:818)
        at 
org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:714)
        ... 42 more
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 212672)
            Time Spent: 10m
    Remaining Estimate: 0h

> RestClientExtension leaks
> -------------------------
>
>                 Key: CXF-7980
>                 URL: https://issues.apache.org/jira/browse/CXF-7980
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>            Reporter: Romain Manni-Bucau
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> RestClientExtension uses static variables and never clear it off, moving to 
> instance variable would be way saner and very worse case cleaning the 
> variable sin BeforeShutdown event would be better.
> If deployed in a container (like tomcat/lib folder) then it will be shared by 
> apps so if app1 fails, app2 will fail whatever it does which is also another 
> nasty side effect.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to