It's all about the answers!

Ask a question

[closed] Liberty Exception

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

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/ by org.eclipse.osgi.internal.loader.EquinoxClassLoader@eaeb8095[]) 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/ by
at org.apache.wink.common.internal.registry.metadata.ProviderMetadataCollector.parseAccessibleObject(
at [internal classes]
at org.eclipse.lyo.client.oslc.OslcClient.getResource(
at org.eclipse.lyo.client.oslc.OslcClient.getResource(

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 I FFDC1015I: An FFDC Incident has been created: "java.lang.RuntimeException 529" at ffdc_20.02.25_15.50.17.0.log
[2/25/20 15:50:17:635 EST] 00000045 W CWWKC0044W: An exception occurred while scanning class and annotation data. The exception was java.lang.RuntimeException


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

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.

 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

Ralph Schoon commented Feb 24 '22, 3:22 a.m.

 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.
Can you please try this

1. With the latest Lyo Client ?

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

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 (214) | 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

Ralph Schoon commented Feb 24 '22, 3:23 a.m.

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.