Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

[Exception [EclipseLink-50001]

former_member838174
Discoverer
0 Kudos

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

  • SAP Managed Tags:
2 REPLIES 2

colmrourke327
Member
0 Kudos

Did you find a solution to this?

  • SAP Managed Tags:

former_member838174
Discoverer
0 Kudos

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?

  • SAP Managed Tags: