Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] OslcCompactRdfProvider is not proxyable

Confirmed it is working removing final, these are my last log entries with change applied:

16:56:16,667 INFO  [com.koneksys.oslc.dynamic.web.AdapterInitializer] (ServerService Thread Pool -- 22) Context Initialized
16:56:16,690 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 22) WFLYUT0021: Registered web context: '/dynamic-oslc' for server 'default-server'
16:56:16,734 INFO  [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0010: Deployed "dynamic-oslc.war" (runtime-name : "dynamic-oslc.war")

I've also created the change request at https://github.com/eclipse/lyo.core/pull/27

I cannot point you to anywhere, but I think you're right, it is just WELD trying to create a proxy, nothing else.

Regards,


2018-08-02 16:13 GMT-05:00 Andrii Berezovskyi <andriib@xxxxxx>:
Ricardo, I have no objection to removing the final modifier.

  1. Could you confirm that removing ‘final’ fixes the issue for you under Weld, please?
  2. Could you create a Pull Request, please?
  3. Could you point me somewhere to the official docs saying that MessageBody* implementors or Provider-annotated classes must be non-final? I looked up the definition of a CDI 1.1 bean in my Java EE book and it does not mention anything about final modifiers. UPD: seems like the problem is not with injection but with the fact that Weld wants to create a proxy class and add some code around our bean’s method calls. Still, I am open to dropping the modifier if it helps.

–Andrew.
(Eclipse Lyo project lead)

2018-08-02  kl. 22:57 skrev Ricardo Javier Herrera Ledesma <neormx@xxxxxxxxx>:

Hello community, I'm trying to use oslc4j-jena-provider (2.3.0) on a wildfly server and I'm getting this exception when application is tried to be deployed:

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: RESTEASY003940: Unable to instantiate MessageBodyReader
    Caused by: java.lang.RuntimeException: RESTEASY003940: Unable to instantiate MessageBodyReader
    Caused by: org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001437: Bean type class org.eclipse.lyo.oslc4j.provider.jena.OslcCompactRdfProvider is not proxyable because it is final


Is there a reason why this provider is final? Could it be changed? Do you have a workaround?


I have not verified whether I'm using last version of oslc4j-jena-provider, what really happens is I'm trying to use https://github.com/eclipse/lyo.validation and oslc4j-jena-provider(2.3.0) is a dependency for the version 2.3.0 of lyo.validation.


Regards,

--
I.S.C. Ricardo J. Herrera
SUN Certified JAVA Programmer (SCJP)
Oracle Certified Professional, Java SE 6 Programmer
_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/lyo-dev


_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/lyo-dev



--
I.S.C. Ricardo J. Herrera
SUN Certified JAVA Programmer (SCJP)
Oracle Certified Professional, Java SE 6 Programmer

Back to the top