Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by Blaise Doughan

    Your current object model and mappings do not match the XML content. Check your JAXB annotations.

Solutions on the web

via Atlassian JIRA by Mark Chaimungkalanont, 1 year ago
via Atlassian JIRA by Mark Chaimungkalanont, 1 year ago
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{http://ls.amazonaws.com/doc/2008-04-28/}ActivateDesktopProduct>,<{http://ls.amazonaws.com/doc/2008-04-28/}ActivateDesktopProductResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}ActivateDesktopProductResult>,<{http://ls.amazonaws.com/doc/2008-04-28/}ActivateHostedProduct>,<{http://ls.amazonaws.com/doc/2008-04-28/}ActivateHostedProductResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}ActivateHostedProductResult>,<{http://queue.amazonaws.com/doc/2007-05-01/}AddGrant>,<{http://queue.amazonaws.com/doc/2007-05-01/}AddGrantResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}AllocateAddress>,<{http://ec2.amazonaws.com/doc/2008-05-05/}AllocateAddressResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}AssociateAddress>,<{http://ec2.amazonaws.com/doc/2008-05-05/}AssociateAddressResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}AttachVolume>,<{http://ec2.amazonaws.com/doc/2008-05-05/}AttachVolumeResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}AttributedValue>,<{http://ec2.amazonaws.com/doc/2008-05-05/}AuthorizeSecurityGroupIngress>,<{http://ec2.amazonaws.com/doc/2008-05-05/}AuthorizeSecurityGroupIngressResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}ChangeMessageVisibility>,<{http://queue.amazonaws.com/doc/2007-05-01/}ChangeMessageVisibilityResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}ConfirmProductInstance>,<{http://ec2.amazonaws.com/doc/2008-05-05/}ConfirmProductInstanceResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}CreateKeyPair>,<{http://ec2.amazonaws.com/doc/2008-05-05/}CreateKeyPairResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}CreateQueue>,<{http://queue.amazonaws.com/doc/2007-05-01/}CreateQueueResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}CreateSecurityGroup>,<{http://ec2.amazonaws.com/doc/2008-05-05/}CreateSecurityGroupResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}CreateSnapshot>,<{http://ec2.amazonaws.com/doc/2008-05-05/}CreateSnapshotResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}CreateVolume>,<{http://ec2.amazonaws.com/doc/2008-05-05/}CreateVolumeResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeleteKeyPair>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeleteKeyPairResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}DeleteMessage>,<{http://queue.amazonaws.com/doc/2007-05-01/}DeleteMessageResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}DeleteQueue>,<{http://queue.amazonaws.com/doc/2007-05-01/}DeleteQueueResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeleteSecurityGroup>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeleteSecurityGroupResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeleteSnapshot>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeleteSnapshotResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeleteVolume>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeleteVolumeResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeregisterImage>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DeregisterImageResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeAddresses>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeAddressesResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeAvailabilityZones>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeAvailabilityZonesResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeImageAttribute>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeImageAttributeResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeImages>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeImagesResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeInstances>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeInstancesResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeKeyPairs>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeKeyPairsResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeSecurityGroups>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeSecurityGroupsResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeSnapshots>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeSnapshotsResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeVolumes>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DescribeVolumesResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DetachVolume>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DetachVolumeResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DisassociateAddress>,<{http://ec2.amazonaws.com/doc/2008-05-05/}DisassociateAddressResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}Error>,<{http://ls.amazonaws.com/doc/2008-04-28/}ErrorResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}GetActiveSubscriptionsByPid>,<{http://ls.amazonaws.com/doc/2008-04-28/}GetActiveSubscriptionsByPidResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}GetActiveSubscriptionsByPidResult>,<{http://ec2.amazonaws.com/doc/2008-05-05/}GetConsoleOutput>,<{http://ec2.amazonaws.com/doc/2008-05-05/}GetConsoleOutputResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}GetQueueAttributes>,<{http://queue.amazonaws.com/doc/2007-05-01/}GetQueueAttributesResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}GetVisibilityTimeout>,<{http://queue.amazonaws.com/doc/2007-05-01/}GetVisibilityTimeoutResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}ListGrants>,<{http://queue.amazonaws.com/doc/2007-05-01/}ListGrantsResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}ListQueues>,<{http://queue.amazonaws.com/doc/2007-05-01/}ListQueuesResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}Message>,<{http://queue.amazonaws.com/doc/2007-05-01/}MessageBody>,<{http://queue.amazonaws.com/doc/2007-05-01/}MessageId>,<{http://ec2.amazonaws.com/doc/2008-05-05/}ModifyImageAttribute>,<{http://ec2.amazonaws.com/doc/2008-05-05/}ModifyImageAttributeResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}PeekMessage>,<{http://queue.amazonaws.com/doc/2007-05-01/}PeekMessageResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}RebootInstances>,<{http://ec2.amazonaws.com/doc/2008-05-05/}RebootInstancesResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}ReceiveMessage>,<{http://queue.amazonaws.com/doc/2007-05-01/}ReceiveMessageResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}RefreshUserToken>,<{http://ls.amazonaws.com/doc/2008-04-28/}RefreshUserTokenResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}RefreshUserTokenResult>,<{http://ec2.amazonaws.com/doc/2008-05-05/}RegisterImage>,<{http://ec2.amazonaws.com/doc/2008-05-05/}RegisterImageResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}ReleaseAddress>,<{http://ec2.amazonaws.com/doc/2008-05-05/}ReleaseAddressResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}RemoveGrant>,<{http://queue.amazonaws.com/doc/2007-05-01/}RemoveGrantResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}ResetImageAttribute>,<{http://ec2.amazonaws.com/doc/2008-05-05/}ResetImageAttributeResponse>,<{}Response>,<{http://ls.amazonaws.com/doc/2008-04-28/}ResponseMetadata>,<{http://queue.amazonaws.com/doc/2007-05-01/}ResponseStatus>,<{http://ec2.amazonaws.com/doc/2008-05-05/}RevokeSecurityGroupIngress>,<{http://ec2.amazonaws.com/doc/2008-05-05/}RevokeSecurityGroupIngressResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}RunInstances>,<{http://ec2.amazonaws.com/doc/2008-05-05/}RunInstancesResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}SendMessage>,<{http://queue.amazonaws.com/doc/2007-05-01/}SendMessageResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}SetQueueAttributes>,<{http://queue.amazonaws.com/doc/2007-05-01/}SetQueueAttributesResponse>,<{http://queue.amazonaws.com/doc/2007-05-01/}SetVisibilityTimeout>,<{http://queue.amazonaws.com/doc/2007-05-01/}SetVisibilityTimeoutResponse>,<{http://ec2.amazonaws.com/doc/2008-05-05/}TerminateInstances>,<{http://ec2.amazonaws.com/doc/2008-05-05/}TerminateInstancesResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}VerifyProductSubscriptionByPid>,<{http://ls.amazonaws.com/doc/2008-04-28/}VerifyProductSubscriptionByPidResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}VerifyProductSubscriptionByPidResult>,<{http://ls.amazonaws.com/doc/2008-04-28/}VerifyProductSubscriptionByTokens>,<{http://ls.amazonaws.com/doc/2008-04-28/}VerifyProductSubscriptionByTokensResponse>,<{http://ls.amazonaws.com/doc/2008-04-28/}VerifyProductSubscriptionByTokensResult>	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:556)	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:962)	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:399)	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:380)	at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:101)	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)	at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:195)	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)	at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)	at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)	at com.xerox.amazonws.common.JAXBuddy.deserializeXMLStream(JAXBuddy.java:80)	at com.xerox.amazonws.common.AWSQueryConnection.createException(AWSQueryConnection.java:449)	at com.xerox.amazonws.common.AWSQueryConnection.makeRequest(AWSQueryConnection.java:358)	at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:1678)