VMware Cloud Community
SliwinskaJ
Contributor
Contributor

vCenter 7.0.2 problem with VimConnection

While working on the vcenter plugin, we ran into the following problem:
1. We have appliance with ova using vim25 in 7.0.0 version
2. We have vcenter in version 7.0.2
3. Appliance can not connect with vcenter in logs there is error:
11:34:21.843 [main] INFO vcenter.vim.VimConnection - Connecting to VCenter https://someaddress/sdk May 17, 2021 11:34:21 AM vcenter.vim.VimConnection <init> INFO: Connecting to VCenter https://someaddress/sdk 11:34:29.447 [main] WARN o.a.cxf.phase.PhaseInterceptorChain - Interceptor for {urn:vim25Service}VimService#{urn:vim25}QueryHostConnectionInfo has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"urn:vim25", local:"patchLevel"). Expected elements are <{urn:vim25}licenseProductName>,<{urn:vim25}vendor>,<{urn:vim25}build>,<{urn:vim25}apiVersion>,<{urn:vim25}productLineId>,<{urn:vim25}apiType>,<{urn:vim25}localeBuild>,<{urn:vim25}licenseProductVersion>,<{urn:vim25}osType>,<{urn:vim25}name>,<{urn:vim25}instanceUuid>,<{urn:vim25}version>,<{urn:vim25}localeVersion>,<{urn:vim25}fullName>
4. It should be mentioned that when we use vcenter version 7.0.1 the problem does not occur .
5. What has been change between vCenter version 7.0.1 and 7.0.2 that connection stop working? How to fix it?
1 Reply
fabiotx
Contributor
Contributor

similar behavior, but another property:

UnmarshalException: unexpected element (uri:"urn:vim25", local:"pMemAdmissionControlEnabled"). Expected elements are <{urn:vim25}autoComputePercentages>,<{urn:vim25}failoverLevel>,<{urn:vim25}resourceReductionToToleratePercent>,<{urn:vim25}cpuFailoverResourcesPercent>,<{urn:vim25}memoryFailoverResourcesPercent>
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:712)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:232)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:227)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:94)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:75)
...
(69 additional frame(s) were not displayed)

SAXParseException2: unexpected element (uri:"urn:vim25", local:"pMemAdmissionControlEnabled"). Expected elements are <{urn:vim25}autoComputePercentages>,<{urn:vim25}failoverLevel>,<{urn:vim25}resourceReductionToToleratePercent>,<{urn:vim25}cpuFailoverResourcesPercent>,<{urn:vim25}memoryFailoverResourcesPercent>
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:712)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:232)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:227)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:94)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:75)
...
(69 additional frame(s) were not displayed)

UnmarshalException: None
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:453)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:387)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:364)
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.doUnmarshal(JAXBEncoderDecoder.java:881)
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.access$200(JAXBEncoderDecoder.java:103)
...
(60 additional frame(s) were not displayed)

SOAPFaultException: Unmarshalling Error: unexpected element (uri:"urn:vim25", local:"pMemAdmissionControlEnabled"). Expected elements are <{urn:vim25}autoComputePercentages>,<{urn:vim25}failoverLevel>,<{urn:vim25}resourceReductionToToleratePercent>,<{urn:vim25}cpuFailoverResourcesPercent>,<{urn:vim25}memoryFailoverResourcesPercent> 
    at org.apache.cxf.jaxws.JaxWsClientProxy.mapException(JaxWsClientProxy.java:195)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
    at com.sun.proxy.$Proxy395.retrievePropertiesEx
    at org.company.core.util.vmware.VMware7Connection.retrieveProperties(VMware7Connection.kt:183)
    at org.company.core.util.vmware.VMware7Connection.retrieveProperties(VMware7Connection.kt:175)
...
(36 additional frame(s) were not displayed)

Also using 70U2 vSphere

 

Reply
0 Kudos