Primavera P6 Web Services Cloud Error " Unexpected Character" After Upgrading to Version 18

(Doc ID 2395821.1)

Last updated on JUNE 20, 2018

Applies to:

Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 18.1 and later
Information in this document applies to any platform.

Symptoms

When attempting to create UserService, the following error occurs.

ERROR
-----------------------
Processing Error
javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
  at org.apache.cxf.jaxws.ServiceImpl.initialize(ServiceImpl.java:162)
  at org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:129)
  at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:82)
  at javax.xml.ws.Service.(Service.java:77)
  at com.primavera.ws.p6.user.UserService.(UserService.java:39)
  at au.com.koanga.ipmsync.p6.UserManager.(UserManager.java:21)
  at au.com.koanga.ipmsync.p6.P6Session.(P6Session.java:59)
  at au.com.koanga.ipmsync.Context.getP6Session(Context.java:85)
  at au.com.koanga.ipmsync.util.CodeTypes.(CodeTypes.java:32)
  at au.com.koanga.ipmsync.Context.open(Context.java:70)
  at au.com.koanga.ipmsync.Launcher.main(Launcher.java:35)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
  at org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:87)
  at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:217)
  at org.apache.cxf.jaxws.ServiceImpl.initialize(ServiceImpl.java:160)
  ... 10 more
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col,system-id]: [1,50,"https://nokia-p6.oracleindustry.com/p6ws-token/services/UserService?WSDL"]
  at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:228)
  at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:163)
  at org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:85)
  ... 12 more
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col,system-id]: [1,50,"https://nokia-p6.oracleindustry.com/p6ws-token/services/UserService?WSDL"]
  at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:647)
  at com.ctc.wstx.sr.BasicStreamReader.startDTD(BasicStreamReader.java:2489)
  at com.ctc.wstx.sr.BasicStreamReader.nextFromPrologBang(BasicStreamReader.java:2405)
  at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2065)
  at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1131)
  at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:1369)
  at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:1263)
  at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:1191)
  at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:219)

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms