Application Development and Automation 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: 
Read only

[Exception [EclipseLink-50001]

former_member838174
Discoverer
0 Likes
2,200
  • SAP Managed Tags

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

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

2 REPLIES 2
Read only

colmrourke327
Member
0 Likes
1,894
  • SAP Managed Tags

Did you find a solution to this?

Read only

former_member838174
Discoverer
0 Likes
1,894
  • SAP Managed Tags

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?