Error "Unable to Create Jaxbcontext" Occurs When Calling "JobService.getJobPort"
(Doc ID 2297410.1)
Last updated on FEBRUARY 27, 2023
Applies to:
Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 18.8 and laterPrimavera Web Services - Version 18.8 and later
Information in this document applies to any platform.
Symptoms
When attempting to run any Job Services operation using P6 Web Services, the following error occurs.
ERROR
-----------------------
javax.xml.ws.WebServiceException: Unable to create JAXBContext
at com.primavera.ws.p6.job.JobService.getJobPort(JobService.java:62)
Caused by: java.security.PrivilegedActionException: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
javax.xml.ws.Response is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at javax.xml.ws.Response
at public javax.xml.ws.Response com.primavera.ws.p6.job.jaxws.GetCurrentJobsAsyncResponse._return
at com.primavera.ws.p6.job.jaxws.GetCurrentJobsAsyncResponse
Two classes have the same XML type name "{http://xmlns.oracle.com/Primavera/P6/WS/Job/V2}GetCurrentJobsResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
this problem is related to the following location:
at com.primavera.ws.p6.job.GetCurrentJobsResponse
at public javax.xml.bind.JAXBElement com.primavera.ws.p6.job.ObjectFactory.createGetCurrentJobsResponse(com.primavera.ws.p6.job.GetCurrentJobsResponse)
at com.primavera.ws.p6.job.ObjectFactory
this problem is related to the following location:
at com.primavera.ws.p6.job.jaxws.GetCurrentJobsAsyncResponse
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Schedule a project using P6 Web Services
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |