phax / phase4

phase4 - AS4 client and server for integration into existing systems. Specific support for Peppol and CEF eDelivery built-in.
Apache License 2.0
154 stars 47 forks source link

Failed to create JAXB context for package 'com.helger.peppol.smp' #10

Closed AlexandruCiobanu closed 5 years ago

AlexandruCiobanu commented 5 years ago

Hi Phillip,

I am facing this issue when trying to send a file through the server. Do you have any idea what I could do to solve this one? Below is the log I get when it tries to send the file:

2019-07-21T12:11:03,629]` [ph-as4] [INFO ] [main] Logging initialized @3754ms to org.eclipse.jetty.util.log.Slf4jLog -- org.eclipse.jetty.util.log.Log.initialized(Log.java:193)
WARNING: jetty-runner is deprecated.
         See Jetty Documentation for startup options
         https://www.eclipse.org/jetty/documentation/
[2019-07-21T12:11:03,666] [ph-as4] [INFO ] [main] Runner -- org.eclipse.jetty.runner.Runner.configure(Runner.java:235)
[2019-07-21T12:11:03,894] [ph-as4] [INFO ] [main] jetty-9.4.14.v20181114; built: 2018-11-14T21:20:31.478Z; git: c4550056e785fb5665914545889f21dc136ad9e6; jvm 1.8.0_161-b12 -- org.eclipse.jetty.server.Server.doStart(Server.java:370)
[2019-07-21T12:11:04,101] [ph-as4] [WARN ] [main] Unrecognized ASM version, assuming ASM7 -- org.eclipse.jetty.annotations.AnnotationParser.asmVersion(AnnotationParser.java:125)
[2019-07-21T12:11:04,627] [ph-as4] [INFO ] [main] Scanning elapsed time=524ms -- org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations(AnnotationConfiguration.java:489)
[2019-07-21T12:11:04,924] [ph-as4] [INFO ] [main] DefaultSessionIdManager workerName=node0 -- org.eclipse.jetty.server.session.DefaultSessionIdManager.doStart(DefaultSessionIdManager.java:365)
[2019-07-21T12:11:04,925] [ph-as4] [INFO ] [main] No SessionScavenger set, using defaults -- org.eclipse.jetty.server.session.DefaultSessionIdManager.doStart(DefaultSessionIdManager.java:370)
[2019-07-21T12:11:04,928] [ph-as4] [INFO ] [main] node0 Scavenging every 660000ms -- org.eclipse.jetty.server.session.HouseKeeper.startScavenging(HouseKeeper.java:149)
[2019-07-21T12:11:05,033] [ph-as4] [INFO ] [main] Successfully read AS4 configuration file from as4.properties -- com.helger.as4.servlet.mgr.AS4ServerConfiguration.reinit(AS4ServerConfiguration.java:75)
[2019-07-21T12:11:05,312] [ph-as4] [INFO ] [main] Setting servlet context path to '/ph-as4'! -- com.helger.servlet.ServletContextPathHolder.setServletContextPath(ServletContextPathHolder.java:70)
[2019-07-21T12:11:05,336] [ph-as4] [INFO ] [main] Using 'D:\Business\upwork\Peppolstack\as4\as4-data' as the data path -- com.helger.photon.app.io.WebFileIO.initPaths(WebFileIO.java:92)
[2019-07-21T12:11:05,346] [ph-as4] [INFO ] [main] Using 'D:\Business\upwork\Peppolstack\as4\ph-as4-server-webapp-test\src\main\webapp' as the servlet context path -- com.helger.photon.app.io.WebFileIO.initPaths(WebFileIO.java:99)
[2019-07-21T12:11:05,360] [ph-as4] [INFO ] [main] Setting persistent long ID factory [[WebIOLongIDFactory@0x082ea68c: reserveCount=20; ID=0; lastID=-1]; file=D:\Business\upwork\Peppolstack\as4\as4-data\persistent_id.dat] -- com.helger.commons.id.factory.GlobalIDFactory.lambda$setPersistentLongIDFactory$7(GlobalIDFactory.java:151)
[2019-07-21T12:11:05,361] [ph-as4] [INFO ] [main] Setting persistent int ID factory com.helger.photon.core.servlet.WebAppListener$$Lambda$366/988850650@79dc5318 -- com.helger.commons.id.factory.GlobalIDFactory.lambda$setPersistentIntIDFactory$3(GlobalIDFactory.java:103)
[2019-07-21T12:11:05,362] [ph-as4] [INFO ] [main] Session passivation is now disabled -- com.helger.web.scope.mgr.WebScopeManager.setSessionPassivationAllowed(WebScopeManager.java:99)
[2019-07-21T12:11:05,383] [ph-as4] [INFO ] [main] Default PasswordHashCreator algorithm set to 'PBKDF2_1000_48' -- com.helger.photon.security.password.hash.PasswordHashCreatorManager.setDefaultPasswordHashCreatorAlgorithm(PasswordHashCreatorManager.java:149)
[2019-07-21T12:11:05,384] [ph-as4] [INFO ] [main] Set global password constraints to [PasswordConstraintList@0x74bf1791: constraints=[[PasswordConstraintMinLength@0x54504ecd: minLength=6]]] -- com.helger.photon.security.password.GlobalPasswordSettings.setPasswordConstraintList(GlobalPasswordSettings.java:104)
[2019-07-21T12:11:05,398] [ph-as4] [INFO ] [main] RequestTrackerMonitor was installed successfully. -- com.helger.xservlet.requesttrack.RequestTracker.<init>(RequestTracker.java:122)
[2019-07-21T12:11:05,452] [ph-as4] [INFO ] [main] Moving audit files -- com.helger.photon.audit.AuditManager.<init>(AuditManager.java:157)
[2019-07-21T12:11:05,453] [ph-as4] [INFO ] [main] Finished moving 0 files -- com.helger.photon.audit.AuditManager.<init>(AuditManager.java:169)
[2019-07-21T12:11:05,514] [ph-as4] [INFO ] [main] Trying to initialize DAO XML file 'D:\Business\upwork\Peppolstack\as4\as4-data\audits\2019\07\20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO.lambda$initialRead$a6f1c75c$1(AbstractSimpleDAO.java:281)
[2019-07-21T12:11:05,530] [ph-as4] [INFO ] [AsyncAuditor] Trying to write DAO file 'audits/2019/07/20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO._writeToFile(AbstractSimpleDAO.java:508)
[2019-07-21T12:11:05,570] [ph-as4] [INFO ] [main] Trying to initialize WAL DAO XML file 'D:\Business\upwork\Peppolstack\as4\as4-data\security\users.xml' -- com.helger.dao.wal.AbstractWALDAO.initialRead(AbstractWALDAO.java:469)
[2019-07-21T12:11:05,574] [ph-as4] [INFO ] [main] Trying to initialize WAL DAO XML file 'D:\Business\upwork\Peppolstack\as4\as4-data\security\roles.xml' -- com.helger.dao.wal.AbstractWALDAO.initialRead(AbstractWALDAO.java:469)
[2019-07-21T12:11:05,588] [ph-as4] [INFO ] [main] Trying to initialize WAL DAO XML file 'D:\Business\upwork\Peppolstack\as4\as4-data\security\usergroups.xml' -- com.helger.dao.wal.AbstractWALDAO.initialRead(AbstractWALDAO.java:469)
[2019-07-21T12:11:05,594] [ph-as4] [INFO ] [main] Trying to initialize WAL DAO XML file 'D:\Business\upwork\Peppolstack\as4\as4-data\security\usertokens.xml' -- com.helger.dao.wal.AbstractWALDAO.initialRead(AbstractWALDAO.java:469)
[2019-07-21T12:11:05,597] [ph-as4] [INFO ] [main] PhotonSecurityManager was initialized -- com.helger.photon.security.mgr.PhotonSecurityManager.onAfterInstantiation(PhotonSecurityManager.java:135)
[2019-07-21T12:11:06,994] [ph-as4] [INFO ] [AsyncAuditor] Trying to write DAO file 'audits/2019/07/20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO._writeToFile(AbstractSimpleDAO.java:508)
[2019-07-21T12:11:07,001] [ph-as4] [INFO ] [main] Successfully registered SOAP header element processor for {http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}Messaging -- com.helger.as4.servlet.soap.SOAPHeaderElementProcessorRegistry.registerHeaderElementProcessor(SOAPHeaderElementProcessorRegistry.java:71)
[2019-07-21T12:11:07,008] [ph-as4] [INFO ] [main] Successfully registered SOAP header element processor for {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security -- com.helger.as4.servlet.soap.SOAPHeaderElementProcessorRegistry.registerHeaderElementProcessor(SOAPHeaderElementProcessorRegistry.java:71)
[2019-07-21T12:11:07,010] [ph-as4] [INFO ] [main] Trying to initialize WAL DAO XML file 'D:\Business\upwork\Peppolstack\as4\as4-data\as4-mpc.xml' -- com.helger.dao.wal.AbstractWALDAO.initialRead(AbstractWALDAO.java:469)
[2019-07-21T12:11:07,012] [ph-as4] [INFO ] [main] Trying to write WAL DAO file 'as4-mpc.xml' -- com.helger.dao.wal.AbstractWALDAO._writeToFile(AbstractWALDAO.java:842)
[2019-07-21T12:11:07,012] [ph-as4] [INFO ] [AsyncAuditor] Trying to write DAO file 'audits/2019/07/20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO._writeToFile(AbstractSimpleDAO.java:508)
[2019-07-21T12:11:07,030] [ph-as4] [INFO ] [main] Trying to write WAL DAO file 'as4-mpc.xml' -- com.helger.dao.wal.AbstractWALDAO._writeToFile(AbstractWALDAO.java:842)
[2019-07-21T12:11:07,040] [ph-as4] [INFO ] [main] Trying to initialize WAL DAO XML file 'D:\Business\upwork\Peppolstack\as4\as4-data\as4-pmode.xml' -- com.helger.dao.wal.AbstractWALDAO.initialRead(AbstractWALDAO.java:469)
[2019-07-21T12:11:07,053] [ph-as4] [INFO ] [main] Registered AS4 profile 'cef' -- com.helger.as4.profile.AS4ProfileManager.registerProfile(AS4ProfileManager.java:85)
[2019-07-21T12:11:07,054] [ph-as4] [INFO ] [main] 1 AS4 profile is registered  -- com.helger.as4.profile.AS4ProfileManager._registerAll(AS4ProfileManager.java:66)
[2019-07-21T12:11:07,057] [ph-as4] [INFO ] [main] Trying to initialize WAL DAO XML file 'D:\Business\upwork\Peppolstack\as4\as4-data\as4-duplicate-incoming.xml' -- com.helger.dao.wal.AbstractWALDAO.initialRead(AbstractWALDAO.java:469)
[2019-07-21T12:11:07,058] [ph-as4] [INFO ] [main] MetaAS4Manager was initialized -- com.helger.as4.mgr.MetaAS4Manager.onAfterInstantiation(MetaAS4Manager.java:76)
[2019-07-21T12:11:07,123] [ph-as4] [INFO ] [main] Using default implementation for ThreadExecutor -- com.helger.quartz.impl.StdSchedulerFactory._instantiate(StdSchedulerFactory.java:850)
[2019-07-21T12:11:07,125] [ph-as4] [INFO ] [main] Job execution threads will use class loader of thread: main -- com.helger.quartz.simpl.SimpleThreadPool.initialize(SimpleThreadPool.java:257)
[2019-07-21T12:11:07,152] [ph-as4] [INFO ] [main] QuartzSchedulerThread Inheriting ContextClassLoader of thread: main -- com.helger.quartz.core.QuartzSchedulerThread.<init>(QuartzSchedulerThread.java:98)
[2019-07-21T12:11:07,155] [ph-as4] [INFO ] [main] Initialized Scheduler Signaller of type: class com.helger.quartz.core.SchedulerSignaler -- com.helger.quartz.core.SchedulerSignaler.<init>(SchedulerSignaler.java:47)
[2019-07-21T12:11:07,155] [ph-as4] [INFO ] [main] Mini Quartz Scheduler v.4.0.1 created. -- com.helger.quartz.core.QuartzScheduler.<init>(QuartzScheduler.java:176)
[2019-07-21T12:11:07,156] [ph-as4] [INFO ] [main] JobFactory set to: com.helger.quartz.simpl.SimpleJobFactory@38be305c -- com.helger.quartz.core.QuartzScheduler.setJobFactory(QuartzScheduler.java:2247)
[2019-07-21T12:11:07,157] [ph-as4] [INFO ] [main] RAMJobStore initialized. -- com.helger.quartz.simpl.RAMJobStore.initialize(RAMJobStore.java:121)
[2019-07-21T12:11:07,157] [ph-as4] [INFO ] [main] Scheduler meta-data: Mini Quartz Scheduler (v4.0.1) 'MiniQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'com.helger.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'com.helger.quartz.simpl.SimpleThreadPool' - with 10 threads.
  Using job-store 'com.helger.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
 -- com.helger.quartz.core.QuartzScheduler.initialize(QuartzScheduler.java:185)
[2019-07-21T12:11:07,158] [ph-as4] [INFO ] [main] Quartz scheduler 'MiniQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' -- com.helger.quartz.impl.StdSchedulerFactory._instantiate(StdSchedulerFactory.java:976)
[2019-07-21T12:11:07,158] [ph-as4] [INFO ] [main] Quartz scheduler version: 4.0.1 -- com.helger.quartz.impl.StdSchedulerFactory._instantiate(StdSchedulerFactory.java:978)
[2019-07-21T12:11:07,159] [ph-as4] [INFO ] [main] Scheduler MiniQuartzScheduler_$_NON_CLUSTERED started. -- com.helger.quartz.core.QuartzScheduler.start(QuartzScheduler.java:348)
[2019-07-21T12:11:07,167] [ph-as4] [INFO ] [main] Succesfully scheduled job 'AS4DuplicateCleanupJob-10' with TriggerKey DEFAULT.6da64b5bd2ee-7390bc4c-d75c-4ea5-a7bb-9a5fd2d1dc06 - starting at 2019-07-21T12:11:07.161 -- com.helger.schedule.quartz.GlobalQuartzScheduler.scheduleJob(GlobalQuartzScheduler.java:168)
[2019-07-21T12:11:07,189] [ph-as4] [INFO ] [WatchDir-D:\Business\upwork\Peppolstack\as4\messages\send--1943634661] Start processing directory change events in 'D:\Business\upwork\Peppolstack\as4\messages\send' -- com.helger.commons.io.watchdir.WatchDir.processEvents(WatchDir.java:245)
[2019-07-21T12:11:07,485] [ph-as4] [INFO ] [main] Created PMode with ID 'SIMPLE_ONEWAY' -- com.helger.as4.model.pmode.PModeManager.createPMode(PModeManager.java:70)
[2019-07-21T12:11:07,485] [ph-as4] [INFO ] [AsyncAuditor] Trying to write DAO file 'audits/2019/07/20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO._writeToFile(AbstractSimpleDAO.java:508)
[2019-07-21T12:11:07,492] [ph-as4] [INFO ] [AsyncAuditor] Trying to write DAO file 'audits/2019/07/20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO._writeToFile(AbstractSimpleDAO.java:508)
[2019-07-21T12:11:07,492] [ph-as4] [INFO ] [main] Created PMode with ID 'SIMPLE_TWOWAY' -- com.helger.as4.model.pmode.PModeManager.createPMode(PModeManager.java:70)
[2019-07-21T12:11:07,499] [ph-as4] [INFO ] [AsyncAuditor] Trying to write DAO file 'audits/2019/07/20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO._writeToFile(AbstractSimpleDAO.java:508)
[2019-07-21T12:11:07,499] [ph-as4] [INFO ] [main] Created PMode with ID 'ONEWAY_RETRY' -- com.helger.as4.model.pmode.PModeManager.createPMode(PModeManager.java:70)
[2019-07-21T12:11:07,507] [ph-as4] [INFO ] [AsyncAuditor] Trying to write DAO file 'audits/2019/07/20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO._writeToFile(AbstractSimpleDAO.java:508)
[2019-07-21T12:11:07,506] [ph-as4] [INFO ] [main] Created PMode with ID 'ONEWAY_ONLY_SIGN' -- com.helger.as4.model.pmode.PModeManager.createPMode(PModeManager.java:70)
[2019-07-21T12:11:07,512] [ph-as4] [INFO ] [main] Created PMode with ID 'PING' -- com.helger.as4.model.pmode.PModeManager.createPMode(PModeManager.java:70)
[2019-07-21T12:11:07,512] [ph-as4] [INFO ] [AsyncAuditor] Trying to write DAO file 'audits/2019/07/20190721.xml' -- com.helger.dao.simple.AbstractSimpleDAO._writeToFile(AbstractSimpleDAO.java:508)
[2019-07-21T12:11:07,514] [ph-as4] [INFO ] [main] Servlet 'default' is mapped to [/] -- com.helger.as4.server.servlet.AS4WebAppListener.afterContextInitialized(AS4WebAppListener.java:88)
[2019-07-21T12:11:07,514] [ph-as4] [INFO ] [main] Servlet 'jsp' is mapped to [*.jsp, *.jspf, *.jspx, *.xsp, *.JSP, *.JSPF, *.JSPX, *.XSP] -- com.helger.as4.server.servlet.AS4WebAppListener.afterContextInitialized(AS4WebAppListener.java:88)
[2019-07-21T12:11:07,514] [ph-as4] [INFO ] [main] Servlet 'AS4Servlet' is mapped to [/as4] -- com.helger.as4.server.servlet.AS4WebAppListener.afterContextInitialized(AS4WebAppListener.java:88)
[2019-07-21T12:11:07,515] [ph-as4] [INFO ] [main] Servlet context '/ph-as4' was initialized in 2577 milli seconds -- com.helger.photon.core.servlet.WebAppListener.contextInitialized(WebAppListener.java:692)
[2019-07-21T12:11:07,590] [ph-as4] [INFO ] [main] Started o.e.j.w.WebAppContext@59662a0b{/ph-as4,file:///D:/Business/upwork/Peppolstack/as4/ph-as4-server-webapp-test/src/main/webapp/,AVAILABLE}{file:///D:/Business/upwork/Peppolstack/as4/ph-as4-server-webapp-test/src/main/webapp/} -- org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:855)
[2019-07-21T12:11:07,625] [ph-as4] [INFO ] [main] Started ServerConnector@6a988392{HTTP/1.1,[http/1.1]}{0.0.0.0:8081} -- org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:292)
[2019-07-21T12:11:07,626] [ph-as4] [INFO ] [main] Started @7757ms -- org.eclipse.jetty.server.Server.doStart(Server.java:407)
[2019-07-21T12:11:16,983] [ph-as4] [INFO ] [WAL-Listener-1] Trying to write WAL DAO file 'security/users.xml' -- com.helger.dao.wal.AbstractWALDAO._writeToFile(AbstractWALDAO.java:842)
[2019-07-21T12:11:16,990] [ph-as4] [INFO ] [WAL-Listener-1] Deleted successfully imported WAL file 'D:\Business\upwork\Peppolstack\as4\as4-data\security\users.xml.wal' -- com.helger.dao.wal.AbstractWALDAO._deleteWALFileAfterProcessing(AbstractWALDAO.java:1010)
[2019-07-21T12:11:17,485] [ph-as4] [INFO ] [WAL-Listener-1] Trying to write WAL DAO file 'as4-pmode.xml' -- com.helger.dao.wal.AbstractWALDAO._writeToFile(AbstractWALDAO.java:842)
[2019-07-21T12:11:17,495] [ph-as4] [INFO ] [WAL-Listener-1] Deleted successfully imported WAL file 'D:\Business\upwork\Peppolstack\as4\as4-data\as4-pmode.xml.wal' -- com.helger.dao.wal.AbstractWALDAO._deleteWALFileAfterProcessing(AbstractWALDAO.java:1010)
[2019-07-21T12:13:13,931] [ph-as4] [INFO ] [qtp932285561-14] Static server information set: [StaticServerInfo@0x005ae0a6: scheme=http; serverName=localhost; serverPort=8081; contextPath=/ph-as4; fullServerPath=http://localhost:8081; fullServerAndContextPath=http://localhost:8081/ph-as4] -- com.helger.servlet.StaticServerInfo.init(StaticServerInfo.java:148)
[2019-07-21T12:13:13,959] [ph-as4] [WARN ] [qtp932285561-14] HTTP status code 405 in response to GET 'http://localhost:8081/ph-as4/as4' -- com.helger.xservlet.filter.XServletFilterConsistency.checkStatusCode(XServletFilterConsistency.java:82)
[2019-07-21T12:30:17,964] [ph-as4] [INFO ] [WatchDir-D:\Business\upwork\Peppolstack\as4\messages\send--1943634661] Trying to send D:\Business\upwork\Peppolstack\as4\messages\send\Use Case 1.a_ExampleFile_PEPPOL BIS.xml -- com.helger.as4.server.servlet.DropFolderUserMessage._send(DropFolderUserMessage.java:101)
JAXP: using thread context class loader (WebAppClassLoader=1661123505@6302bbb1) for search
JAXP: Looking up system property 'javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema'
JAXP: The property is undefined.
JAXP: found null in $java.home/jaxp.properties
JAXP: attempting to use the platform default XML Schema validator
JAXP: factory 'com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory' was found for http://www.w3.org/2001/XMLSchema
[2019-07-21T12:30:18,290] [ph-as4] [INFO ] [WatchDir-D:\Business\upwork\Peppolstack\as4\messages\send--1943634661] Creating JAXB context for package org.unece.cefact.namespaces.sbdh using ClassLoader sun.misc.Launcher$AppClassLoader@5910e440 -- com.helger.jaxb.JAXBContextCache.lambda$new$3fed5817$1(JAXBContextCache.java:64)
JAXP: find factoryId =javax.xml.datatype.DatatypeFactory
JAXP: loaded from fallback value: com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl
JAXP: created new instance of class com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl using ClassLoader: null
JAXP: find factoryId =javax.xml.transform.TransformerFactory
JAXP: loaded from fallback value: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
JAXP: created new instance of class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl using ClassLoader: null
JAXP: find factoryId =javax.xml.datatype.DatatypeFactory
JAXP: loaded from fallback value: com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl
JAXP: created new instance of class com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl using ClassLoader: null
[2019-07-21T12:30:19,176] [ph-as4] [INFO ] [WatchDir-D:\Business\upwork\Peppolstack\as4\messages\send--1943634661] Read PEPPOL SMP client properties from smp-client.properties -- com.helger.peppol.smpclient.SMPClientConfiguration.<clinit>(SMPClientConfiguration.java:63)
[2019-07-21T12:30:20,228] [ph-as4] [INFO ] [WatchDir-D:\Business\upwork\Peppolstack\as4\messages\send--1943634661] Creating JAXB context for package com.helger.peppol.smp using ClassLoader sun.misc.Launcher$AppClassLoader@5910e440 -- com.helger.jaxb.JAXBContextCache.lambda$new$3fed5817$1(JAXBContextCache.java:64)
[2019-07-21T12:30:20,322] [ph-as4] [ERROR] [WatchDir-D:\Business\upwork\Peppolstack\as4\messages\send--1943634661] Failed to create JAXB context for package 'com.helger.peppol.smp' using ClassLoader sun.misc.Launcher$AppClassLoader@5910e440: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
There's no ObjectFactory with an @XmlElementDecl for the element {http://www.w3.org/2000/09/xmldsig#}XPath.
    this problem is related to the following location:
        at private java.util.List com.helger.xsds.xmldsig.TransformType.content
        at com.helger.xsds.xmldsig.TransformType
        at private java.util.List com.helger.xsds.xmldsig.TransformsType.transform
        at com.helger.xsds.xmldsig.TransformsType
        at private com.helger.xsds.xmldsig.TransformsType com.helger.xsds.xmldsig.ReferenceType.transforms
        at com.helger.xsds.xmldsig.ReferenceType
        at public javax.xml.bind.JAXBElement com.helger.xsds.xmldsig.ObjectFactory.createReference(com.helger.xsds.xmldsig.ReferenceType)
        at com.helger.xsds.xmldsig.ObjectFactory
        at private java.util.List com.helger.xsds.xmldsig.CanonicalizationMethodType.content
        at com.helger.xsds.xmldsig.CanonicalizationMethodType
        at private com.helger.xsds.xmldsig.CanonicalizationMethodType com.helger.xsds.xmldsig.SignedInfoType.canonicalizationMethod
        at com.helger.xsds.xmldsig.SignedInfoType
        at private com.helger.xsds.xmldsig.SignedInfoType com.helger.xsds.xmldsig.SignatureType.signedInfo
        at com.helger.xsds.xmldsig.SignatureType
        at private com.helger.xsds.xmldsig.SignatureType com.helger.peppol.smp.SignedServiceMetadataType.signature
        at com.helger.peppol.smp.SignedServiceMetadataType
        at public javax.xml.bind.JAXBElement com.helger.peppol.smp.ObjectFactory.createSignedServiceMetadata(com.helger.peppol.smp.SignedServiceMetadataType)
        at com.helger.peppol.smp.ObjectFactory
There's no ObjectFactory with an @XmlElementDecl for the element {http://www.w3.org/2000/09/xmldsig#}HMACOutputLength.
    this problem is related to the following location:
        at private java.util.List com.helger.xsds.xmldsig.SignatureMethodType.content
        at com.helger.xsds.xmldsig.SignatureMethodType
        at private com.helger.xsds.xmldsig.SignatureMethodType com.helger.xsds.xmldsig.SignedInfoType.signatureMethod
        at com.helger.xsds.xmldsig.SignedInfoType
        at private com.helger.xsds.xmldsig.SignedInfoType com.helger.xsds.xmldsig.SignatureType.signedInfo
        at com.helger.xsds.xmldsig.SignatureType
        at private com.helger.xsds.xmldsig.SignatureType com.helger.peppol.smp.SignedServiceMetadataType.signature
        at com.helger.peppol.smp.SignedServiceMetadataType
        at public javax.xml.bind.JAXBElement com.helger.peppol.smp.ObjectFactory.createSignedServiceMetadata(com.helger.peppol.smp.SignedServiceMetadataType)
        at com.helger.peppol.smp.ObjectFactory
There's no ObjectFactory with an @XmlElementDecl for the element {http://www.w3.org/2000/09/xmldsig#}KeyName.
    this problem is related to the following location:
        at private java.util.List com.helger.xsds.xmldsig.KeyInfoType.content
        at com.helger.xsds.xmldsig.KeyInfoType
        at private com.helger.xsds.xmldsig.KeyInfoType com.helger.xsds.xmldsig.SignatureType.keyInfo
        at com.helger.xsds.xmldsig.SignatureType
        at private com.helger.xsds.xmldsig.SignatureType com.helger.peppol.smp.SignedServiceMetadataType.signature
        at com.helger.peppol.smp.SignedServiceMetadataType
        at public javax.xml.bind.JAXBElement com.helger.peppol.smp.ObjectFactory.createSignedServiceMetadata(com.helger.peppol.smp.SignedServiceMetadataType)
        at com.helger.peppol.smp.ObjectFactory
 -- com.helger.jaxb.JAXBContextCache.lambda$new$3fed5817$1(JAXBContextCache.java:89)
[2019-07-21T12:30:20,324] [ph-as4] [ERROR] [WatchDir-D:\Business\upwork\Peppolstack\as4\messages\send--1943634661] Error sending D:\Business\upwork\Peppolstack\as4\messages\send\Use Case 1.a_ExampleFile_PEPPOL BIS.xml -- com.helger.as4.server.servlet.DropFolderUserMessage._send(DropFolderUserMessage.java:206)
com.helger.peppol.smpclient.exception.SMPClientException: Unknown error thrown by SMP server (Failed to create JAXB context for package 'com.helger.peppol.smp' using ClassLoader sun.misc.Launcher$AppClassLoader@5910e440)
    at com.helger.peppol.httpclient.AbstractGenericSMPClient.getConvertedException(AbstractGenericSMPClient.java:473) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.httpclient.AbstractGenericSMPClient.executeGenericRequest(AbstractGenericSMPClient.java:505) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.smpclient.SMPClientReadOnly.getServiceRegistration(SMPClientReadOnly.java:399) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.smpclient.SMPClientReadOnly.getServiceRegistrationOrNull(SMPClientReadOnly.java:477) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.smpclient.SMPClientReadOnly.getEndpoint(SMPClientReadOnly.java:523) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.as4.server.servlet.DropFolderUserMessage._send(DropFolderUserMessage.java:116) ~[classes/:?]
    at com.helger.as4.server.servlet.DropFolderUserMessage.lambda$init$efe07f9b$1(DropFolderUserMessage.java:250) ~[classes/:?]
    at com.helger.commons.io.watchdir.WatchDir.lambda$processEvents$2(WatchDir.java:322) ~[ph-commons-9.3.4.jar:9.3.4]
    at com.helger.commons.callback.CallbackList.forEach(CallbackList.java:190) ~[ph-commons-9.3.4.jar:9.3.4]
    at com.helger.commons.io.watchdir.WatchDir.processEvents(WatchDir.java:322) ~[ph-commons-9.3.4.jar:9.3.4]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
Caused by: java.lang.IllegalArgumentException: Failed to create JAXB context for package 'com.helger.peppol.smp' using ClassLoader sun.misc.Launcher$AppClassLoader@5910e440
    at com.helger.jaxb.JAXBContextCache.lambda$new$3fed5817$1(JAXBContextCache.java:90) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.commons.cache.Cache.getFromCache(Cache.java:206) ~[ph-commons-9.3.4.jar:9.3.4]
    at com.helger.jaxb.JAXBContextCache.getFromCache(JAXBContextCache.java:135) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.GenericJAXBMarshaller._createUnmarshaller(GenericJAXBMarshaller.java:434) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.GenericJAXBMarshaller.read(GenericJAXBMarshaller.java:474) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:327) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:128) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:98) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:153) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:253) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.peppol.httpclient.SMPHttpResponseHandlerSigned.handleEntity(SMPHttpResponseHandlerSigned.java:178) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.httpclient.AbstractSMPResponseHandler.handleResponse(AbstractSMPResponseHandler.java:80) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223) ~[httpclient-4.5.8.jar:4.5.8]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165) ~[httpclient-4.5.8.jar:4.5.8]
    at com.helger.httpclient.HttpClientManager.execute(HttpClientManager.java:192) ~[ph-httpclient-9.1.2.jar:9.1.2]
    at com.helger.peppol.httpclient.AbstractGenericSMPClient.executeRequest(AbstractGenericSMPClient.java:427) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.httpclient.AbstractGenericSMPClient.executeGenericRequest(AbstractGenericSMPClient.java:501) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    ... 9 more
Caused by: javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
There's no ObjectFactory with an @XmlElementDecl for the element {http://www.w3.org/2000/09/xmldsig#}XPath.
    this problem is related to the following location:
        at private java.util.List com.helger.xsds.xmldsig.TransformType.content
        at com.helger.xsds.xmldsig.TransformType
        at private java.util.List com.helger.xsds.xmldsig.TransformsType.transform
        at com.helger.xsds.xmldsig.TransformsType
        at private com.helger.xsds.xmldsig.TransformsType com.helger.xsds.xmldsig.ReferenceType.transforms
        at com.helger.xsds.xmldsig.ReferenceType
        at public javax.xml.bind.JAXBElement com.helger.xsds.xmldsig.ObjectFactory.createReference(com.helger.xsds.xmldsig.ReferenceType)
        at com.helger.xsds.xmldsig.ObjectFactory
        at private java.util.List com.helger.xsds.xmldsig.CanonicalizationMethodType.content
        at com.helger.xsds.xmldsig.CanonicalizationMethodType
        at private com.helger.xsds.xmldsig.CanonicalizationMethodType com.helger.xsds.xmldsig.SignedInfoType.canonicalizationMethod
        at com.helger.xsds.xmldsig.SignedInfoType
        at private com.helger.xsds.xmldsig.SignedInfoType com.helger.xsds.xmldsig.SignatureType.signedInfo
        at com.helger.xsds.xmldsig.SignatureType
        at private com.helger.xsds.xmldsig.SignatureType com.helger.peppol.smp.SignedServiceMetadataType.signature
        at com.helger.peppol.smp.SignedServiceMetadataType
        at public javax.xml.bind.JAXBElement com.helger.peppol.smp.ObjectFactory.createSignedServiceMetadata(com.helger.peppol.smp.SignedServiceMetadataType)
        at com.helger.peppol.smp.ObjectFactory
There's no ObjectFactory with an @XmlElementDecl for the element {http://www.w3.org/2000/09/xmldsig#}HMACOutputLength.
    this problem is related to the following location:
        at private java.util.List com.helger.xsds.xmldsig.SignatureMethodType.content
        at com.helger.xsds.xmldsig.SignatureMethodType
        at private com.helger.xsds.xmldsig.SignatureMethodType com.helger.xsds.xmldsig.SignedInfoType.signatureMethod
        at com.helger.xsds.xmldsig.SignedInfoType
        at private com.helger.xsds.xmldsig.SignedInfoType com.helger.xsds.xmldsig.SignatureType.signedInfo
        at com.helger.xsds.xmldsig.SignatureType
        at private com.helger.xsds.xmldsig.SignatureType com.helger.peppol.smp.SignedServiceMetadataType.signature
        at com.helger.peppol.smp.SignedServiceMetadataType
        at public javax.xml.bind.JAXBElement com.helger.peppol.smp.ObjectFactory.createSignedServiceMetadata(com.helger.peppol.smp.SignedServiceMetadataType)
        at com.helger.peppol.smp.ObjectFactory
There's no ObjectFactory with an @XmlElementDecl for the element {http://www.w3.org/2000/09/xmldsig#}KeyName.
    this problem is related to the following location:
        at private java.util.List com.helger.xsds.xmldsig.KeyInfoType.content
        at com.helger.xsds.xmldsig.KeyInfoType
        at private com.helger.xsds.xmldsig.KeyInfoType com.helger.xsds.xmldsig.SignatureType.keyInfo
        at com.helger.xsds.xmldsig.SignatureType
        at private com.helger.xsds.xmldsig.SignatureType com.helger.peppol.smp.SignedServiceMetadataType.signature
        at com.helger.peppol.smp.SignedServiceMetadataType
        at public javax.xml.bind.JAXBElement com.helger.peppol.smp.ObjectFactory.createSignedServiceMetadata(com.helger.peppol.smp.SignedServiceMetadataType)
        at com.helger.peppol.smp.ObjectFactory

    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146) ~[?:1.8.0_161]
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:335) ~[?:1.8.0_161]
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) ~[?:1.8.0_161]
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:394) ~[?:1.8.0_161]
    at com.helger.jaxb.JAXBContextCache.lambda$new$3fed5817$1(JAXBContextCache.java:80) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.commons.cache.Cache.getFromCache(Cache.java:206) ~[ph-commons-9.3.4.jar:9.3.4]
    at com.helger.jaxb.JAXBContextCache.getFromCache(JAXBContextCache.java:135) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.GenericJAXBMarshaller._createUnmarshaller(GenericJAXBMarshaller.java:434) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.GenericJAXBMarshaller.read(GenericJAXBMarshaller.java:474) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:327) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:128) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:98) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:153) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:253) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.peppol.httpclient.SMPHttpResponseHandlerSigned.handleEntity(SMPHttpResponseHandlerSigned.java:178) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.httpclient.AbstractSMPResponseHandler.handleResponse(AbstractSMPResponseHandler.java:80) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223) ~[httpclient-4.5.8.jar:4.5.8]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165) ~[httpclient-4.5.8.jar:4.5.8]
    at com.helger.httpclient.HttpClientManager.execute(HttpClientManager.java:192) ~[ph-httpclient-9.1.2.jar:9.1.2]
    at com.helger.peppol.httpclient.AbstractGenericSMPClient.executeRequest(AbstractGenericSMPClient.java:427) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.httpclient.AbstractGenericSMPClient.executeGenericRequest(AbstractGenericSMPClient.java:501) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    ... 9 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
    at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106) ~[jaxb-runtime-2.2.11.jar:2.2.11]
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:460) ~[jaxb-runtime-2.2.11.jar:2.2.11]
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:292) ~[jaxb-runtime-2.2.11.jar:2.2.11]
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:139) ~[jaxb-runtime-2.2.11.jar:2.2.11]
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1138) ~[jaxb-runtime-2.2.11.jar:2.2.11]
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:162) ~[jaxb-runtime-2.2.11.jar:2.2.11]
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:286) ~[jaxb-runtime-2.2.11.jar:2.2.11]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) ~[?:1.8.0_161]
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) ~[?:1.8.0_161]
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:335) ~[?:1.8.0_161]
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) ~[?:1.8.0_161]
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:394) ~[?:1.8.0_161]
    at com.helger.jaxb.JAXBContextCache.lambda$new$3fed5817$1(JAXBContextCache.java:80) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.commons.cache.Cache.getFromCache(Cache.java:206) ~[ph-commons-9.3.4.jar:9.3.4]
    at com.helger.jaxb.JAXBContextCache.getFromCache(JAXBContextCache.java:135) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.GenericJAXBMarshaller._createUnmarshaller(GenericJAXBMarshaller.java:434) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.GenericJAXBMarshaller.read(GenericJAXBMarshaller.java:474) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:327) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:128) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:98) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:153) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.jaxb.IJAXBReader.read(IJAXBReader.java:253) ~[ph-jaxb-9.3.4.jar:9.3.4]
    at com.helger.peppol.httpclient.SMPHttpResponseHandlerSigned.handleEntity(SMPHttpResponseHandlerSigned.java:178) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.httpclient.AbstractSMPResponseHandler.handleResponse(AbstractSMPResponseHandler.java:80) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223) ~[httpclient-4.5.8.jar:4.5.8]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165) ~[httpclient-4.5.8.jar:4.5.8]
    at com.helger.httpclient.HttpClientManager.execute(HttpClientManager.java:192) ~[ph-httpclient-9.1.2.jar:9.1.2]
    at com.helger.peppol.httpclient.AbstractGenericSMPClient.executeRequest(AbstractGenericSMPClient.java:427) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    at com.helger.peppol.httpclient.AbstractGenericSMPClient.executeGenericRequest(AbstractGenericSMPClient.java:501) ~[peppol-smp-client-7.0.1.jar:7.0.1]
    ... 9 more
phax commented 5 years ago

@AlexandruCiobanu short questions:

phax commented 5 years ago

My assumption is you followed the rules and just called mvn generate-sources - please call mvn process-sources instead because it deletes some unused left overs from JAXB preprocessor

AlexandruCiobanu commented 5 years ago

You are right on the spot! mvn process-sources fixed the issue. Thank you for the quick response and for this great piece of software.

I am using the latest snapshot, the CEF Module and building sources in Idea. By the way I got an error at some point saying that two Pmode setss were registered but none was set as default. I commented out the registration of E-Sens PMODE set as it was deprecated but maybe there is a more non intrusive way to do that? Btw2: Any chance the nice file storage capability in the as2 peppol server could make its way into the as4 server as well? I am altering the Message processor to save the data into specific files but would love to see your take on that.

Thanks again and congrats for all your work!

phax commented 5 years ago

@AlexandruCiobanu thanks for the quick response. Glad it worked. I already updated the documentation accordingly.

Please do me a favour and add these 2 things as 2 separate issues, otherwise, this all becomes a bit messy ;-) Thanks!

AlexandruCiobanu commented 5 years ago

Done and Done