It's all about the answers!

Ask a question

[closed] Liberty Exception


Satish Rajanna (135) | asked Feb 26 '20, 4:10 p.m.
closed Feb 24 '22, 3:24 a.m. by Ralph Schoon (63.6k33646)

 Hi,
I have a widget that invokes a servlet that is deployed as war file on IBM Liberty (6.0.6).

When the application was deployed initially, it was not working as expected. Upon further investigation, the following exception was observed in the logs :
[ERROR ] SRVE0777E: Exception thrown by application class 'org.apache.wink.common.internal.registry.metadata.ProviderMetadataCollector.parseAccessibleObject:122'
java.lang.NoSuchMethodError: org/apache/wink/common/internal/utils/GenericsUtils.getClassType(Ljava/lang/reflect/Type;Ljava/lang/Class;)Ljava/lang/Class; (loaded from file:/ngtfs01/IBM/RQM606_Liberty/server/liberty/wlp/lib/../dev/api/third-party/com.ibm.websphere.appserver.thirdparty.jaxrs_1.0.20.jar by org.eclipse.osgi.internal.loader.EquinoxClassLoader@eaeb8095[com.ibm.ws.jaxrs:1.0.20.cl180120180309-2209(id=124)]) called from class org.apache.wink.common.internal.registry.metadata.ProviderMetadataCollector (loaded from file:/ngtfs01/IBM/RQM606_Liberty/server/liberty/servers/clm/workarea/org.eclipse.osgi/82/data/cache/com.ibm.ws.app.manager_63/.cache/WEB-INF/lib/wink-common-1.4.jar by com.ibm.ws.classloading.internal.AppClassLoader@64e52729).
at org.apache.wink.common.internal.registry.metadata.ProviderMetadataCollector.parseAccessibleObject(ProviderMetadataCollector.java:122)
at [internal classes]
at org.eclipse.lyo.client.oslc.OslcClient.getResource(OslcClient.java:233)
at org.eclipse.lyo.client.oslc.OslcClient.getResource(OslcClient.java:204)
at com.gm.jts.helper.

I tried to overcome this exception by including third-party libraries using classloader option in application.xml
<classloader apiTypeVisibility="spec, ibm-api, api, stable, third-party" />

Although the above exception seems to have resolved, there are traces of other exceptions as follows :

[2/25/20 15:50:17:634 EST] 00000045 com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "java.lang.RuntimeException com.ibm.ws.anno.targets.internal.AnnotationTargetsImpl_Targets 529" at ffdc_20.02.25_15.50.17.0.log
[2/25/20 15:50:17:635 EST] 00000045 m.ibm.ws.anno.targets.internal.AnnotationTargetsImpl_Targets W CWWKC0044W: An exception occurred while scanning class and annotation data. The exception was java.lang.RuntimeException

And

000000ee pache.wink.common.internal.application.ApplicationFileLoader E The runtime environment failed to instantiate the org.apache.wink.providers.json4j.JSON4JArrayProvider class. Ensure that the class is not abstract, has a valid constructor, has the right visibility, and is not an inner member class.
java.lang.NoClassDefFoundError: org.apache.wink.json4j.JSONException
….
Caused by: java.lang.ClassNotFoundException: org.apache.wink.json4j.JSONException cannot be found by com.ibm.ws.jaxrs_1.0.20.cl180120180309-2209

Can you kindly help me resolve the above exceptions ?


Thanking You
Satish Rajanna

The question has been closed for the following reason: "The question is answered, right answer was accepted" by rschoon Feb 24 '22, 3:24 a.m.

Accepted answer


permanent link
Muralidhar Rajagopal (10114) | answered Feb 28 '20, 1:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

 I was referring to the Eclipse Lyo client libraries - meant for the oslc-java-client lib.


This question needs to be asked on the eclipse lyo community.  We basically respond on queries pertaining to ELM solutions. 

Ralph Schoon selected this answer as the correct answer

Comments
Ralph Schoon commented Feb 24 '22, 3:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 This appears to be some kind of issue that is not really related to this forum. The question lacks vital information what APIs and frameworks are in use. Assuming it is Eclipse Lyo, I would suggest to ask on the Lyo forums and to provide the details about the implementation needed to understand the context. The person asking the original question did not follow up, so I will close the question now.  

2 other answers



permanent link
Muralidhar Rajagopal (10114) | answered Feb 27 '20, 2:09 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi
Can you please try this

1. With the latest Lyo Client ?

2. And also check ones on the Lyo community??


Comments
Satish Rajanna commented Feb 27 '20, 9:40 a.m.

 Hi Muralidhar,


I updated maven configuration to pull the latest version for OSLC4J and dependencies. I did not get what you meant lyo client, if you were referring to oslc-java-client, I have the latest version. With this build the exceptions are still being thrown.

Thanking You
Satish Rajanna


permanent link
Karthikeyan P (216) | answered Feb 24 '22, 2:57 a.m.

 

Hi Sathish,

Were you able to resolve the issues? I am looking answers for same exception as well. Please let me know if you have any workarounds to fix the issues.

Thanks and Regards,
Karthikeyan P


Comments
Ralph Schoon commented Feb 24 '22, 3:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Please see the accepted answer and my comment. Consider asking in the relevant forum. Otherwise, please create your own question with the required details. Thanks.