2022 Dec 10 4:26 PM
HI,
We are getting Jaxb exception for OrderWSDTO, Bellow is the error.
- with linked exception:
[Exception [EclipseLink-50001] (Eclipse Persistence Services - 2.7.6.v20200131-b7c997804f): org.eclipse.persistence.exceptions.JAXBException
Exception Description: The class de.hybris.platform.core.enums.DeliveryStatus requires a zero argument constructor or a specified factory method. Note that non-static inner classes do not have zero argument constructors and are not supported.]
Caused by: javax.xml.bind.JAXBException:
Exception Description: The class de.hybris.platform.core.enums.DeliveryStatus requires a zero argument constructor or a specified factory method. Note that non-static inner classes do not have zero argument constructors and are not supported.
- with linked exception:
[Exception [EclipseLink-50001] (Eclipse Persistence Services - 2.7.6.v20200131-b7c997804f): org.eclipse.persistence.exceptions.JAXBException
Exception Description: The class de.hybris.platform.core.enums.DeliveryStatus requires a zero argument constructor or a specified factory method. Note that non-static inner classes do not have zero argument constructors and are not supported.]
at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:1180)
at org.eclipse.persistence.jaxb.JAXBContext.<init>(JAXBContext.java:205)
at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:167)
at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:154)
at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:114)
at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:104)
at de.hybris.platform.webservicescommons.jaxb.MoxyJaxbContextFactoryImpl.createJaxbContext(MoxyJaxbContextFactoryImpl.java:66)
at de.hybris.platform.webservicescommons.jaxb.Jaxb2HttpMessageConverter.getJaxbContext(Jaxb2HttpMessageConverter.java:224)
... 142 more
Caused by: Exception [EclipseLink-50001] (Eclipse Persistence Services - 2.7.6.v20200131-b7c997804f): org.eclipse.persistence.exceptions.JAXBException
Exception Description: The class de.hybris.platform.core.enums.DeliveryStatus requires a zero argument constructor or a specified factory method. Note that non-static inner classes do not have zero argument constructors and are not supported.
at org.eclipse.persistence.exceptions.JAXBException.factoryMethodOrConstructorRequired(JAXBException.java:150)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.finalizeProperties(AnnotationsProcessor.java:971)
at org.eclipse.persistence.jaxb.compiler.XMLProcessor.processXML(XMLProcessor.java:470)
at org.eclipse.persistence.jaxb.compiler.Generator.<init>(Generator.java:161)
at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:1176)
... 149 more
2023 Feb 13 1:57 PM
2023 Feb 13 5:09 PM
colmrourke327 , i didn't find any solution for this, but as work around, instead of returning OrderWSDto returning List<OrderWSDto>,
Added OrderWsDto to list and returned.
Do you have any solution for this?