You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2015/11/17 15:14:11 UTC

[jira] [Resolved] (OLINGO-761) ODataApplication$MyProvider is not proxyable

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

Christian Amend resolved OLINGO-761.
------------------------------------
       Resolution: Fixed
    Fix Version/s: V2 2.0.6

Hi,

I removed the final modifier for the Provider with this commit: https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=2675f5f4895c0f53798a5e66723908cde496c65a

If it still does not work please reopen the issue.

Best Regards,
Christian

> ODataApplication$MyProvider is not proxyable
> --------------------------------------------
>
>                 Key: OLINGO-761
>                 URL: https://issues.apache.org/jira/browse/OLINGO-761
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 2.0.2, V2 2.0.4
>            Reporter: Eugenio Lentini
>            Assignee: Christian Amend
>             Fix For: V2 2.0.6
>
>         Attachments: OlingoIssue.zip, wildflyScenarioDeployStackTrace1.txt
>
>
> I am trying to deploy a web application into WildFly 8.2.0 along with a service REST written with JAX-RS,there are just a couple of resources and a class extending Application annotated with @ApplicationScoped.
> The application has even a module OData based on Olingo OData 2, version 2.0.2.
> During the deployment I get this exception
> {code:borderStyle=solid}
> Caused by: org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001437: Normal scoped bean class org.apache.olingo.odata2.core.rest.app.ODataApplication$MyProvider is not proxyable because the type is final or it contains a final method class org.apache.olingo.odata2.core.rest.app.ODataApplication$MyProvider - <unknown javax.enterprise.inject.spi.Bean instance>.
> 	at org.jboss.weld.util.Proxies.getUnproxyableClassException(Proxies.java:229)
> 	at org.jboss.weld.util.Proxies.getUnproxyableTypeException(Proxies.java:178)
> {code}
> According to the documentation more or less all the injected beans are proxies, the final modifier prevent the subclass to be created.
> Have you already got experience like that?
> Thanks for the attention.
> Eugenio



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)