We are deploying our java based application on a server and getting following Exception-
"2023-10-05 03:18:15 ERROR WorkItemWebService:294 - Number of Tasks == 1
2023-10-05 03:18:15 ERROR WorkItemWebService:502 - Mfg Indicator == X
2023-10-05 03:18:15 ERROR WorkItemWebService:300 - Creating Task : Task~AravindGCL~1221683324397709~Modified
2023-10-05 03:18:15 ERROR WorkItemWebService:367 - Create Task Job Started from the web Service call*****************
2023-10-05 03:18:15 ERROR EnoviaHttpClient:262 - OSLCC003: An error occurred processing the root services document. Server location: https://qa-clm.pw.ge.com/ccm.
org.eclipse.lyo.client.exception.RootServicesException: OSLCC003: An error occurred processing the root services document. Server location: https://qa-clm.pw.ge.com/ccm.
at org.eclipse.lyo.client.oslc.jazz.JazzRootServicesHelper.processRootServices(JazzRootServicesHelper.java:193) ~[oslc-java-client-2.1.0.jar:?]
at org.eclipse.lyo.client.oslc.jazz.JazzRootServicesHelper.(JazzRootServicesHelper.java:116) ~[oslc-java-client-2.1.0.jar:?]
at org.eclipse.lyo.oslc4j.enovia.utils.EnoviaUtility.CheckRTCService(EnoviaUtility.java:253) [classes/:?]
at org.eclipse.lyo.oslc4j.enovia.services.WorkItemWebService.createTaskData(WorkItemWebService.java:372) [classes/:?]
at org.eclipse.lyo.oslc4j.enovia.services.WorkItemWebService.getPLMObjectDetails(WorkItemWebService.java:303) [classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) ~[?:1.8.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) ~[?:1.8.0]
at java.lang.reflect.Method.invoke(Method.java:508) ~[?:1.8.0]
at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63) [com.ibm.websphere.appserver.thirdparty.jaxrs_1.0.41.jar:?]
Caused by: org.apache.wink.client.ClientRuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:240) ~[com.ibm.websphere.appserver.thirdparty.jaxrs_1.0.41.jar:?]
"
We have used following code in our application-
JazzRootServicesHelper helper = new JazzRootServicesHelper(cnfprop.getWebContextUrl(),
OSLCConstants.OSLC_CM_V2);
JazzFormAuthClient client = helper.initFormClient(cnfprop.getUser(), cnfprop.getPassword());
- Now from google, I have got an information that initFormClient() method has been deprecated and most probably this initFormClient() method is giving RootServicesException only.
Our concern is that we are using the same initFormClient() method in our production and that can cause an issue in future. So we want information and your help regarding that.?
The JazzRootServicesHelper.java is a part of oslc-java-client-2.1.0.jar and initFormClient() method Creates a form auth client for authenticating with the Jazz server. So, Please confirm if you know that something got changed here?
Also confirm that OSLCConstants.OSLC_CM_V2, id this the right constant to be used here?