Guest User

Untitled

a guest
Nov 13th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. public static Object xmlToObject(Element element, Class c, org.apache.logging.log4j.Logger log) {
  2. try {
  3. if (log != null) {
  4. log.debug(element);
  5. log.debug("este es el resultado ");
  6. }
  7. JDOMSource source = new JDOMSource(element);
  8. JAXBContext context = JAXBContext.newInstance(c);
  9. Unmarshaller un = context.createUnmarshaller();
  10. return un.unmarshal(source);
  11. } catch (JAXBException ex) {
  12. java.util.logging.Logger.getLogger(SiodexClient.class.getName()).log(Level.SEVERE, null, ex);
  13. }
  14. return null;
  15. }
  16.  
  17. [Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.6.5.v20170607-b3d05bd): org.eclipse.persistence.exceptions.XMLMarshalException
  18. Exception Description: A descriptor with default root element cod_tipo_operacion was not found in the project]
  19. at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:1110)
  20. at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:335)
  21. at mefp.itg.clws.bcb.siodex.SiodexClient.xmlToObject(SiodexClient.java:216)
  22. at mefp.itg.clws.bcb.spt.SptClient.consumoServicio(SptClient.java:188)
  23. at mefp.itg.clws.bcb.spt.SptClient.respuestaEnvio(SptClient.java:74)
  24. at pag.model.pagosElectronicos.ws.bl.EnvioLotesPagoBL.consumirSWLotes(EnvioLotesPagoBL.java:255)
  25. at pag.model.pagosElectronicos.ws.bl.EnvioLotesPagoBL.procesarEnvio(EnvioLotesPagoBL.java:38)
  26. at pag.model.pagosElectronicos.services.AppModulePagosElectronicosImpl.enviarPagos(AppModulePagosElectronicosImpl.java:204)
  27. at sun.reflect.NativeMethodAccessorImpl
Add Comment
Please, Sign In to add comment