Closed evanswappf closed 1 month ago
@evanswappf I am providing answers to all your questions posted through various GitHub issues (https://github.com/OxalisCommunity/Oxalis-AS4/issues/259, https://github.com/OxalisCommunity/oxalis/issues/685 and this https://github.com/OxalisCommunity/Oxalis-AS4/issues/261) at same place.
When sending using Oxalis standalone, different cmdline parameters will be used depending upon whether you are sending 1. "point-to-point" (when you want to send to some specific AS4 endpoint instead of retrieving it with SMP lookup) or via 2. "proper SML/SMP lookup". The way you specified parameters in all above mentioned issues, it is for point-to-point connection. You can also see that with warning message in log "Endpoint was set by caller not retrieved from SMP, make sure this is intended behaviour.",
Example command for point-to-point (For internal testing only):
java -classpath "oxalis-distribution-6.7.0-distro/bin/*;oxalis-as4-6.7.0-dist/*" eu.sendregning.oxalis.Main -f .\sample.xml -cert .\cert.cer --protocol peppol-transport-as4-v2_0 -u https://peppol-ap-testbed.appfuxion.com/as4
Here -cert is public key of your AP certificate and URL mentioned with -u is fixed AP URL e.g. https://peppol-ap-testbed.appfuxion.com/as4 . NOTE that you can use point-to-point connection only for internal testing. For production, always send message with proper SML/SMP lookup.
Example command with proper SML/SMP lookup:
java -classpath "oxalis-distribution-6.7.0-distro/bin/*;oxalis-as4-6.7.0-dist/*" eu.sendregning.oxalis.Main -f .\sample.xml
That's it. No need to define certificate, URL, protocol etc, Oxalis automatically take care of that through lookup.
Answer of your additional question and general suggestion for all issue those are posted via GitHub (I will add this as template) :
Hi @aaron-kumar thanks for the reply. I tested using this command with proper SML/SMP lookup
java -classpath "oxalis-distribution-6.7.0-distro/bin/*;oxalis-as4-6.7.0-dist/*" eu.sendregning.oxalis.Main -f .\sample.xml
but got this error instead
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Oxalis> java -classpath "oxalis-distribution-6.7.0-distro/bin/*;oxalis-as4-6.7.0-dist/*" eu.sendregning.oxalis.Main -f .\sample.xml
2024-10-11 10:46:24,554 INFO [network.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'C:\Oxalis\oxalis_home\'.
2024-10-11 10:46:24,556 INFO [network.oxalis.commons.filesystem.FileSystemModule] Home folder: C:\Oxalis\oxalis_home
2024-10-11 10:46:24,557 INFO [network.oxalis.commons.filesystem.FileSystemModule] Configuration folder: C:\Oxalis\oxalis_home
2024-10-11 10:46:24,557 INFO [network.oxalis.commons.config.ConfigModule] Configuration file: C:\Oxalis\oxalis_home\oxalis.conf
2024-10-11 10:46:24,561 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2024-10-11 10:46:24,563 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: /var/peppol/IN
2024-10-11 10:46:24,563 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: oxalis-plugin
2024-10-11 10:46:24,778 INFO [network.oxalis.as4.util.OxalisAlgorithmSuiteLoader] Registering OxalisAlgorithmSuite on bus cxf55755528
Oct 11, 2024 10:46:24 AM com.sun.xml.bind.v2.runtime.reflect.opt.Injector <clinit>
SEVERE: null
java.security.PrivilegedActionException: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:573)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.<clinit>(Injector.java:166)
at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:51)
at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:157)
at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:255)
at com.sun.xml.bind.v2.runtime.property.ArrayProperty.<init>(ArrayProperty.java:38)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.<init>(ArrayERProperty.java:58)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.<init>(ArrayElementProperty.java:70)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.<init>(ArrayElementNodeProperty.java:32)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:99)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:150)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:493)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:310)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1142)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:141)
at com.sun.xml.bind.v2.JAXBContextFactory.createContext(JAXBContextFactory.java:35)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:358)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
at org.apache.xml.security.stax.config.Init.init(Init.java:54)
at org.apache.wss4j.stax.setup.WSSec.<clinit>(WSSec.java:62)
at org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor.<init>(WSS4JStaxOutInterceptor.java:94)
at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JStaxOutInterceptor.<init>(PolicyBasedWSS4JStaxOutInterceptor.java:45)
at org.apache.cxf.ws.security.policy.interceptors.WSSecurityInterceptorProvider.<init>(WSSecurityInterceptorProvider.java:65)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.registerProviders(WSSecurityPolicyLoader.java:300)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.<init>(WSSecurityPolicyLoader.java:108)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:218)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:198)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:333)
at org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl.loadDynamic(PolicyInterceptorProviderRegistryImpl.java:93)
at org.apache.cxf.extension.RegistryImpl.get(RegistryImpl.java:57)
at org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl.register(PolicyInterceptorProviderRegistryImpl.java:75)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.registerProviders(WSSecurityPolicyLoader.java:299)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.<init>(WSSecurityPolicyLoader.java:108)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:218)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:198)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:333)
at org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.loadDynamic(AssertionBuilderRegistryImpl.java:96)
at org.apache.neethi.AssertionBuilderFactoryImpl.registerBuilder(AssertionBuilderFactoryImpl.java:95)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.register(OxalisAlgorithmSuiteLoader.java:68)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.lambda$new$0(OxalisAlgorithmSuiteLoader.java:48)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.<init>(OxalisAlgorithmSuiteLoader.java:40)
at network.oxalis.as4.common.As4CommonModule.configure(As4CommonModule.java:62)
at com.google.inject.AbstractModule.configure(AbstractModule.java:66)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:409)
at com.google.inject.spi.Elements.getElements(Elements.java:108)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:66)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
Caused by: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
at java.base/java.lang.Class.getMethod(Class.java:2227)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$3.run(Injector.java:170)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$3.run(Injector.java:166)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
... 69 more
Oct 11, 2024 10:46:24 AM org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader <init>
WARNING: Could not load or register WS-SecurityPolicy related classes. Please check that (the correct version of) Apache WSS4J is on the classpath: null
Oct 11, 2024 10:46:24 AM org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader <init>
WARNING: Could not load or register WS-SecurityPolicy related classes. Please check that (the correct version of) Apache WSS4J is on the classpath: Could not initialize class org.apache.wss4j.stax.setup.WSSec
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'C:\Oxalis\oxalis_home\'.
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.filesystem.FileSystemModule] Home folder: C:\Oxalis\oxalis_home
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.filesystem.FileSystemModule] Configuration folder: C:\Oxalis\oxalis_home
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.config.ConfigModule] Configuration file: C:\Oxalis\oxalis_home\oxalis.conf
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TOTAL: 20
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_MAX_ROUTE: 2
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_VALIDATE_AFTER_INACTIVITY: 1000
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TIME_TO_LIVE: 30
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_CONNECT: 0
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_READ: 0
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_SOCKET: 0
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Error => TRACKER: quiet
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] AS2 => NOTIFICATION: not.in.use@difi.no
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: /var/peppol/IN
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: oxalis-plugin
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Identifiers => HOSTNAME:
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Identifiers => MSGID_GENERATOR: default
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => PATH: cert.p12
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => PASSWORD: ************
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => KEY_ALIAS: cert
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => KEY_PASSWORD: ************
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Header => PARSER: sbdh
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => PAYLOAD: default
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => RECEIPT: default
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => EXCEPTION: default
2024-10-11 10:46:25,074 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => HANDLER: default
2024-10-11 10:46:25,082 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => REPORTER: noop
2024-10-11 10:46:25,082 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => HTTP: <null>
2024-10-11 10:46:25,082 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => TRACER: noop
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Executor => DEFAULT: 50
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Executor => STATISTICS: 50
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Tag => GENERATOR: noop
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Timestamp => SERVICE: system
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Evidence => SERVICE: rem
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Transformer => DETECTOR: noop
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Transformer => WRAPPER: xml
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Statistics => SERVICE: noop
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] Transmission => VERIFIER: default
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => HOSTNAME:
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => MSGID_GENERATOR: default
2024-10-11 10:46:25,083 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => TYPE: peppol
2024-10-11 10:46:25,085 INFO [network.oxalis.commons.settings.SettingsBuilder] Logging => CONFIG: logback.xml
2024-10-11 10:46:25,085 INFO [network.oxalis.commons.settings.SettingsBuilder] Logging => SERVICE: logback
2024-10-11 10:46:25,085 INFO [network.oxalis.commons.logging.LoggingHandler] Logging service: logback
Configuring Logback with configuration: C:\Oxalis\oxalis_home\logback.xml
2024-10-11 10:46:25,127 INFO [network.oxalis.commons.security.CertificateModule] Certificate subject: CN=PMY000676, OU=PEPPOL TEST AP, O=Appfuxion Consulting Sdn. Bhd., C=MY
2024-10-11 10:46:25,127 INFO [network.oxalis.commons.security.CertificateModule] Certificate issuer: CN=PEPPOL ACCESS POINT TEST CA - G2, OU=FOR TEST ONLY, O=OpenPEPPOL AISBL, C=BE
2024-10-11 10:46:25,218 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] Prioritized list of transport profiles:
2024-10-11 10:46:25,218 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => peppol-transport-as4-v2_0
2024-10-11 10:46:25,219 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => bdxr-transport-ebms3-as4-v1p0
2024-10-11 10:46:25,219 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0r1
2024-10-11 10:46:25,219 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver2p0
2024-10-11 10:46:25,219 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0
2024-10-11 10:46:25,225 ERROR [network.oxalis.commons.guice.GuiceModuleLoader] Unable to detect mode.
network.oxalis.api.lang.OxalisLoadingException: Unable to detect mode.
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:77)
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:49)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:60)
at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:59)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:66)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
Caused by: network.oxalis.vefa.peppol.common.lang.PeppolLoadingException: Unable to initiate 'class network.oxalis.vefa.peppol.security.util.DifiCertificateValidator'
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:125)
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:94)
at network.oxalis.vefa.peppol.security.ModeDetector.detect(ModeDetector.java:46)
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:75)
... 16 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:112)
... 19 common frames omitted
Caused by: java.lang.ExceptionInInitializerError: null
at network.oxalis.commons.certvalidator.ValidatorLoader.build(ValidatorLoader.java:46)
at network.oxalis.vefa.peppol.security.util.DifiCertificateValidator.<init>(DifiCertificateValidator.java:53)
... 25 common frames omitted
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Method.invoke(Object, Object[])" because "com.sun.xml.bind.v2.runtime.reflect.opt.Injector.defineClass" is null
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:294)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:66)
at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:57)
at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:157)
at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:255)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.<init>(TransducedAccessor.java:207)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAccessor.java:147)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.calcTransducer(RuntimeClassInfoImpl.java:215)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getTransducer(RuntimeClassInfoImpl.java:189)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.link(RuntimeClassInfoImpl.java:166)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.link(ModelBuilder.java:424)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.link(RuntimeModelBuilder.java:103)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:448)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:282)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1142)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:141)
at com.sun.xml.bind.v2.JAXBContextFactory.createContext(JAXBContextFactory.java:35)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:358)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
at network.oxalis.commons.certvalidator.ValidatorLoaderParser.<clinit>(ValidatorLoaderParser.java:32)
... 27 common frames omitted
Exception in thread "main" network.oxalis.api.lang.OxalisLoadingException: Unable to load Oxalis due to errors during loading.
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:76)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
can u help on this? Thanks. Best regards
@evanswappf : I think you are using Java 17 or higher. Java 17 & higher strongly encapsulate all internal elements of the JDK so illegal reflective accesses will not function properly. We are fixing this in upcoming release. Until then, please use following as workaround solution:
Either add Environment Variable:
JDK_JAVA_OPTIONS= --add-opens=java.base/java.lang=ALL-UNNAMED
OR
VM Parameters:
VMARGS=--add-opens java.base/java.lang=ALL-UNNAMED
Hi @aaron-kumar thanks for the reply
I added the environment variable here using
set JDK_JAVA_OPTIONS=--add-opens=java.base/java.lang=ALL-UNNAMED
but still hitting this error
PS C:\Oxalis> set JDK_JAVA_OPTIONS=--add-opens=java.base/java.lang=ALL-UNNAMED
PS C:\Oxalis> java -classpath "oxalis-distribution-6.7.0-distro/bin/*;oxalis-as4-6.7.0-dist/*" eu.sendregning.oxalis.Main -f .\sample.xml -cert .\cert.cer --protocol peppol-transport-as4-v2_0
2024-10-11 16:54:30,732 INFO [network.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'C:\Oxalis\oxalis_home\'.
2024-10-11 16:54:30,734 INFO [network.oxalis.commons.filesystem.FileSystemModule] Home folder: C:\Oxalis\oxalis_home
2024-10-11 16:54:30,735 INFO [network.oxalis.commons.filesystem.FileSystemModule] Configuration folder: C:\Oxalis\oxalis_home
2024-10-11 16:54:30,736 INFO [network.oxalis.commons.config.ConfigModule] Configuration file: C:\Oxalis\oxalis_home\oxalis.conf
2024-10-11 16:54:30,739 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2024-10-11 16:54:30,740 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: /var/peppol/IN
2024-10-11 16:54:30,740 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: oxalis-plugin
2024-10-11 16:54:30,985 INFO [network.oxalis.as4.util.OxalisAlgorithmSuiteLoader] Registering OxalisAlgorithmSuite on bus cxf1835778392
Oct 11, 2024 4:54:31 PM com.sun.xml.bind.v2.runtime.reflect.opt.Injector <clinit>
SEVERE: null
java.security.PrivilegedActionException: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:573)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.<clinit>(Injector.java:166)
at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:51)
at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:157)
at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:255)
at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.<init>(SingleElementNodeProperty.java:64)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:99)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:150)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:493)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:310)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1142)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:141)
at com.sun.xml.bind.v2.JAXBContextFactory.createContext(JAXBContextFactory.java:35)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:358)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
at org.apache.xml.security.stax.config.Init.init(Init.java:54)
at org.apache.wss4j.stax.setup.WSSec.<clinit>(WSSec.java:62)
at org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor.<init>(WSS4JStaxOutInterceptor.java:94)
at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JStaxOutInterceptor.<init>(PolicyBasedWSS4JStaxOutInterceptor.java:45)
at org.apache.cxf.ws.security.policy.interceptors.WSSecurityInterceptorProvider.<init>(WSSecurityInterceptorProvider.java:65)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.registerProviders(WSSecurityPolicyLoader.java:300)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.<init>(WSSecurityPolicyLoader.java:108)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:218)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:198)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:333)
at org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl.loadDynamic(PolicyInterceptorProviderRegistryImpl.java:93)
at org.apache.cxf.extension.RegistryImpl.get(RegistryImpl.java:57)
at org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl.register(PolicyInterceptorProviderRegistryImpl.java:75)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.registerProviders(WSSecurityPolicyLoader.java:299)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.<init>(WSSecurityPolicyLoader.java:108)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:218)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:198)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:333)
at org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.loadDynamic(AssertionBuilderRegistryImpl.java:96)
at org.apache.neethi.AssertionBuilderFactoryImpl.registerBuilder(AssertionBuilderFactoryImpl.java:95)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.register(OxalisAlgorithmSuiteLoader.java:68)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.lambda$new$0(OxalisAlgorithmSuiteLoader.java:48)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.<init>(OxalisAlgorithmSuiteLoader.java:40)
at network.oxalis.as4.common.As4CommonModule.configure(As4CommonModule.java:62)
at com.google.inject.AbstractModule.configure(AbstractModule.java:66)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:409)
at com.google.inject.spi.Elements.getElements(Elements.java:108)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:66)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
Caused by: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
at java.base/java.lang.Class.getMethod(Class.java:2227)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$3.run(Injector.java:170)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$3.run(Injector.java:166)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
... 66 more
Oct 11, 2024 4:54:31 PM org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader <init>
WARNING: Could not load or register WS-SecurityPolicy related classes. Please check that (the correct version of) Apache WSS4J is on the classpath: null
Oct 11, 2024 4:54:31 PM org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader <init>
WARNING: Could not load or register WS-SecurityPolicy related classes. Please check that (the correct version of) Apache WSS4J is on the classpath: Could not initialize class org.apache.wss4j.stax.setup.WSSec
2024-10-11 16:54:31,306 INFO [network.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'C:\Oxalis\oxalis_home\'.
2024-10-11 16:54:31,306 INFO [network.oxalis.commons.filesystem.FileSystemModule] Home folder: C:\Oxalis\oxalis_home
2024-10-11 16:54:31,307 INFO [network.oxalis.commons.filesystem.FileSystemModule] Configuration folder: C:\Oxalis\oxalis_home
2024-10-11 16:54:31,307 INFO [network.oxalis.commons.config.ConfigModule] Configuration file: C:\Oxalis\oxalis_home\oxalis.conf
2024-10-11 16:54:31,308 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TOTAL: 20
2024-10-11 16:54:31,310 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_MAX_ROUTE: 2
2024-10-11 16:54:31,310 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_VALIDATE_AFTER_INACTIVITY: 1000
2024-10-11 16:54:31,310 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TIME_TO_LIVE: 30
2024-10-11 16:54:31,310 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_CONNECT: 0
2024-10-11 16:54:31,310 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_READ: 0
2024-10-11 16:54:31,310 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_SOCKET: 0
2024-10-11 16:54:31,311 INFO [network.oxalis.commons.settings.SettingsBuilder] Error => TRACKER: quiet
2024-10-11 16:54:31,311 INFO [network.oxalis.commons.settings.SettingsBuilder] AS2 => NOTIFICATION: not.in.use@difi.no
2024-10-11 16:54:31,311 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2024-10-11 16:54:31,311 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: /var/peppol/IN
2024-10-11 16:54:31,311 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: oxalis-plugin
2024-10-11 16:54:31,312 INFO [network.oxalis.commons.settings.SettingsBuilder] Identifiers => HOSTNAME:
2024-10-11 16:54:31,312 INFO [network.oxalis.commons.settings.SettingsBuilder] Identifiers => MSGID_GENERATOR: default
2024-10-11 16:54:31,312 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => PATH: cert.p12
2024-10-11 16:54:31,312 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => PASSWORD: ************
2024-10-11 16:54:31,314 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => KEY_ALIAS: cert
2024-10-11 16:54:31,314 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => KEY_PASSWORD: ************
2024-10-11 16:54:31,314 INFO [network.oxalis.commons.settings.SettingsBuilder] Header => PARSER: sbdh
2024-10-11 16:54:31,314 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => PAYLOAD: default
2024-10-11 16:54:31,314 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => RECEIPT: default
2024-10-11 16:54:31,314 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => EXCEPTION: default
2024-10-11 16:54:31,315 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => HANDLER: default
2024-10-11 16:54:31,315 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => REPORTER: noop
2024-10-11 16:54:31,315 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => HTTP: <null>
2024-10-11 16:54:31,315 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => TRACER: noop
2024-10-11 16:54:31,315 INFO [network.oxalis.commons.settings.SettingsBuilder] Executor => DEFAULT: 50
2024-10-11 16:54:31,315 INFO [network.oxalis.commons.settings.SettingsBuilder] Executor => STATISTICS: 50
2024-10-11 16:54:31,316 INFO [network.oxalis.commons.settings.SettingsBuilder] Tag => GENERATOR: noop
2024-10-11 16:54:31,316 INFO [network.oxalis.commons.settings.SettingsBuilder] Timestamp => SERVICE: system
2024-10-11 16:54:31,316 INFO [network.oxalis.commons.settings.SettingsBuilder] Evidence => SERVICE: rem
2024-10-11 16:54:31,316 INFO [network.oxalis.commons.settings.SettingsBuilder] Transformer => DETECTOR: noop
2024-10-11 16:54:31,316 INFO [network.oxalis.commons.settings.SettingsBuilder] Transformer => WRAPPER: xml
2024-10-11 16:54:31,316 INFO [network.oxalis.commons.settings.SettingsBuilder] Statistics => SERVICE: noop
2024-10-11 16:54:31,316 INFO [network.oxalis.commons.settings.SettingsBuilder] Transmission => VERIFIER: default
2024-10-11 16:54:31,317 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => HOSTNAME:
2024-10-11 16:54:31,317 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => MSGID_GENERATOR: default
2024-10-11 16:54:31,317 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => TYPE: peppol
2024-10-11 16:54:31,317 INFO [network.oxalis.commons.settings.SettingsBuilder] Logging => CONFIG: logback.xml
2024-10-11 16:54:31,317 INFO [network.oxalis.commons.settings.SettingsBuilder] Logging => SERVICE: logback
2024-10-11 16:54:31,317 INFO [network.oxalis.commons.logging.LoggingHandler] Logging service: logback
Configuring Logback with configuration: C:\Oxalis\oxalis_home\logback.xml
2024-10-11 16:54:31,374 INFO [network.oxalis.commons.security.CertificateModule] Certificate subject: CN=PMY000676, OU=PEPPOL TEST AP, O=Appfuxion Consulting Sdn. Bhd., C=MY
2024-10-11 16:54:31,375 INFO [network.oxalis.commons.security.CertificateModule] Certificate issuer: CN=PEPPOL ACCESS POINT TEST CA - G2, OU=FOR TEST ONLY, O=OpenPEPPOL AISBL, C=BE
2024-10-11 16:54:31,466 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] Prioritized list of transport profiles:
2024-10-11 16:54:31,466 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => peppol-transport-as4-v2_0
2024-10-11 16:54:31,466 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => bdxr-transport-ebms3-as4-v1p0
2024-10-11 16:54:31,467 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0r1
2024-10-11 16:54:31,467 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver2p0
2024-10-11 16:54:31,467 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0
2024-10-11 16:54:31,474 ERROR [network.oxalis.commons.guice.GuiceModuleLoader] Unable to detect mode.
network.oxalis.api.lang.OxalisLoadingException: Unable to detect mode.
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:77)
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:49)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:60)
at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:59)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:66)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
Caused by: network.oxalis.vefa.peppol.common.lang.PeppolLoadingException: Unable to initiate 'class network.oxalis.vefa.peppol.security.util.DifiCertificateValidator'
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:125)
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:94)
at network.oxalis.vefa.peppol.security.ModeDetector.detect(ModeDetector.java:46)
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:75)
... 16 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:112)
... 19 common frames omitted
Caused by: java.lang.ExceptionInInitializerError: null
at network.oxalis.commons.certvalidator.ValidatorLoader.build(ValidatorLoader.java:46)
at network.oxalis.vefa.peppol.security.util.DifiCertificateValidator.<init>(DifiCertificateValidator.java:53)
... 25 common frames omitted
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Method.invoke(Object, Object[])" because "com.sun.xml.bind.v2.runtime.reflect.opt.Injector.defineClass" is null
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:294)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:66)
at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:57)
at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:157)
at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:255)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.<init>(TransducedAccessor.java:207)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAccessor.java:147)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.calcTransducer(RuntimeClassInfoImpl.java:215)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getTransducer(RuntimeClassInfoImpl.java:189)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.link(RuntimeClassInfoImpl.java:166)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.link(ModelBuilder.java:424)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.link(RuntimeModelBuilder.java:103)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:448)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:282)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1142)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:141)
at com.sun.xml.bind.v2.JAXBContextFactory.createContext(JAXBContextFactory.java:35)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:358)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
at network.oxalis.commons.certvalidator.ValidatorLoaderParser.<clinit>(ValidatorLoaderParser.java:32)
... 27 common frames omitted
Exception in thread "main" network.oxalis.api.lang.OxalisLoadingException: Unable to load Oxalis due to errors during loading.
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:76)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
PS C:\Oxalis> set JDK_JAVA_OPTIONS=--add-opens=java.base/java.lang=ALL-UNNAMED
PS C:\Oxalis> java -classpath "oxalis-distribution-6.7.0-distro/bin/*;oxalis-as4-6.7.0-dist/*" eu.sendregning.oxalis.Main -f .\sample.xml -cert .\cert.cer --protocol peppol-transport-as4-v2_0
2024-10-11 16:54:50,265 INFO [network.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'C:\Oxalis\oxalis_home\'.
2024-10-11 16:54:50,267 INFO [network.oxalis.commons.filesystem.FileSystemModule] Home folder: C:\Oxalis\oxalis_home
2024-10-11 16:54:50,268 INFO [network.oxalis.commons.filesystem.FileSystemModule] Configuration folder: C:\Oxalis\oxalis_home
2024-10-11 16:54:50,268 INFO [network.oxalis.commons.config.ConfigModule] Configuration file: C:\Oxalis\oxalis_home\oxalis.conf
2024-10-11 16:54:50,272 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2024-10-11 16:54:50,274 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: /var/peppol/IN
2024-10-11 16:54:50,274 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: oxalis-plugin
2024-10-11 16:54:50,502 INFO [network.oxalis.as4.util.OxalisAlgorithmSuiteLoader] Registering OxalisAlgorithmSuite on bus cxf1835778392
Oct 11, 2024 4:54:50 PM com.sun.xml.bind.v2.runtime.reflect.opt.Injector <clinit>
SEVERE: null
java.security.PrivilegedActionException: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:573)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.<clinit>(Injector.java:166)
at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:51)
at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:157)
at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:255)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.<init>(TransducedAccessor.java:207)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAccessor.java:147)
at com.sun.xml.bind.v2.runtime.property.ValueProperty.<init>(ValueProperty.java:51)
at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:81)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:150)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:493)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:310)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1142)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:141)
at com.sun.xml.bind.v2.JAXBContextFactory.createContext(JAXBContextFactory.java:35)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:358)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
at org.apache.xml.security.stax.config.Init.init(Init.java:54)
at org.apache.wss4j.stax.setup.WSSec.<clinit>(WSSec.java:62)
at org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor.<init>(WSS4JStaxOutInterceptor.java:94)
at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JStaxOutInterceptor.<init>(PolicyBasedWSS4JStaxOutInterceptor.java:45)
at org.apache.cxf.ws.security.policy.interceptors.WSSecurityInterceptorProvider.<init>(WSSecurityInterceptorProvider.java:65)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.registerProviders(WSSecurityPolicyLoader.java:300)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.<init>(WSSecurityPolicyLoader.java:108)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:218)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:198)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:333)
at org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl.loadDynamic(PolicyInterceptorProviderRegistryImpl.java:93)
at org.apache.cxf.extension.RegistryImpl.get(RegistryImpl.java:57)
at org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl.register(PolicyInterceptorProviderRegistryImpl.java:75)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.registerProviders(WSSecurityPolicyLoader.java:299)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.<init>(WSSecurityPolicyLoader.java:108)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:218)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:198)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:333)
at org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.loadDynamic(AssertionBuilderRegistryImpl.java:96)
at org.apache.neethi.AssertionBuilderFactoryImpl.registerBuilder(AssertionBuilderFactoryImpl.java:95)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.register(OxalisAlgorithmSuiteLoader.java:68)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.lambda$new$0(OxalisAlgorithmSuiteLoader.java:48)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at network.oxalis.as4.util.OxalisAlgorithmSuiteLoader.<init>(OxalisAlgorithmSuiteLoader.java:40)
at network.oxalis.as4.common.As4CommonModule.configure(As4CommonModule.java:62)
at com.google.inject.AbstractModule.configure(AbstractModule.java:66)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:409)
at com.google.inject.spi.Elements.getElements(Elements.java:108)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:66)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
Caused by: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
at java.base/java.lang.Class.getMethod(Class.java:2227)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$3.run(Injector.java:170)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$3.run(Injector.java:166)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
... 63 more
Oct 11, 2024 4:54:50 PM org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader <init>
WARNING: Could not load or register WS-SecurityPolicy related classes. Please check that (the correct version of) Apache WSS4J is on the classpath: null
Oct 11, 2024 4:54:50 PM org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader <init>
WARNING: Could not load or register WS-SecurityPolicy related classes. Please check that (the correct version of) Apache WSS4J is on the classpath: Could not initialize class org.apache.wss4j.stax.setup.WSSec
2024-10-11 16:54:50,757 INFO [network.oxalis.commons.filesystem.detector.EnvironmentHomeDetector] Using Oxalis folder specified as environment variable 'OXALIS_HOME' with value 'C:\Oxalis\oxalis_home\'.
2024-10-11 16:54:50,758 INFO [network.oxalis.commons.filesystem.FileSystemModule] Home folder: C:\Oxalis\oxalis_home
2024-10-11 16:54:50,758 INFO [network.oxalis.commons.filesystem.FileSystemModule] Configuration folder: C:\Oxalis\oxalis_home
2024-10-11 16:54:50,758 INFO [network.oxalis.commons.config.ConfigModule] Configuration file: C:\Oxalis\oxalis_home\oxalis.conf
2024-10-11 16:54:50,760 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TOTAL: 20
2024-10-11 16:54:50,760 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_MAX_ROUTE: 2
2024-10-11 16:54:50,760 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_VALIDATE_AFTER_INACTIVITY: 1000
2024-10-11 16:54:50,760 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => POOL_TIME_TO_LIVE: 30
2024-10-11 16:54:50,760 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_CONNECT: 0
2024-10-11 16:54:50,760 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_READ: 0
2024-10-11 16:54:50,760 INFO [network.oxalis.commons.settings.SettingsBuilder] HTTP => TIMEOUT_SOCKET: 0
2024-10-11 16:54:50,762 INFO [network.oxalis.commons.settings.SettingsBuilder] Error => TRACKER: quiet
2024-10-11 16:54:50,762 INFO [network.oxalis.commons.settings.SettingsBuilder] AS2 => NOTIFICATION: not.in.use@difi.no
2024-10-11 16:54:50,762 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => CONF:
2024-10-11 16:54:50,762 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => INBOUND: /var/peppol/IN
2024-10-11 16:54:50,762 INFO [network.oxalis.commons.settings.SettingsBuilder] File system => PLUGIN: oxalis-plugin
2024-10-11 16:54:50,762 INFO [network.oxalis.commons.settings.SettingsBuilder] Identifiers => HOSTNAME:
2024-10-11 16:54:50,762 INFO [network.oxalis.commons.settings.SettingsBuilder] Identifiers => MSGID_GENERATOR: default
2024-10-11 16:54:50,762 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => PATH: cert.p12
2024-10-11 16:54:50,763 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => PASSWORD: ************
2024-10-11 16:54:50,763 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => KEY_ALIAS: cert
2024-10-11 16:54:50,763 INFO [network.oxalis.commons.settings.SettingsBuilder] Key store => KEY_PASSWORD: ************
2024-10-11 16:54:50,763 INFO [network.oxalis.commons.settings.SettingsBuilder] Header => PARSER: sbdh
2024-10-11 16:54:50,764 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => PAYLOAD: default
2024-10-11 16:54:50,764 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => RECEIPT: default
2024-10-11 16:54:50,764 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => EXCEPTION: default
2024-10-11 16:54:50,764 INFO [network.oxalis.commons.settings.SettingsBuilder] Persister => HANDLER: default
2024-10-11 16:54:50,764 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => REPORTER: noop
2024-10-11 16:54:50,765 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => HTTP: <null>
2024-10-11 16:54:50,765 INFO [network.oxalis.commons.settings.SettingsBuilder] Tracing => TRACER: noop
2024-10-11 16:54:50,765 INFO [network.oxalis.commons.settings.SettingsBuilder] Executor => DEFAULT: 50
2024-10-11 16:54:50,765 INFO [network.oxalis.commons.settings.SettingsBuilder] Executor => STATISTICS: 50
2024-10-11 16:54:50,766 INFO [network.oxalis.commons.settings.SettingsBuilder] Tag => GENERATOR: noop
2024-10-11 16:54:50,766 INFO [network.oxalis.commons.settings.SettingsBuilder] Timestamp => SERVICE: system
2024-10-11 16:54:50,766 INFO [network.oxalis.commons.settings.SettingsBuilder] Evidence => SERVICE: rem
2024-10-11 16:54:50,766 INFO [network.oxalis.commons.settings.SettingsBuilder] Transformer => DETECTOR: noop
2024-10-11 16:54:50,767 INFO [network.oxalis.commons.settings.SettingsBuilder] Transformer => WRAPPER: xml
2024-10-11 16:54:50,767 INFO [network.oxalis.commons.settings.SettingsBuilder] Statistics => SERVICE: noop
2024-10-11 16:54:50,767 INFO [network.oxalis.commons.settings.SettingsBuilder] Transmission => VERIFIER: default
2024-10-11 16:54:50,767 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => HOSTNAME:
2024-10-11 16:54:50,768 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => MSGID_GENERATOR: default
2024-10-11 16:54:50,768 INFO [network.oxalis.commons.settings.SettingsBuilder] AS4 => TYPE: peppol
2024-10-11 16:54:50,768 INFO [network.oxalis.commons.settings.SettingsBuilder] Logging => CONFIG: logback.xml
2024-10-11 16:54:50,768 INFO [network.oxalis.commons.settings.SettingsBuilder] Logging => SERVICE: logback
2024-10-11 16:54:50,769 INFO [network.oxalis.commons.logging.LoggingHandler] Logging service: logback
Configuring Logback with configuration: C:\Oxalis\oxalis_home\logback.xml
2024-10-11 16:54:50,826 INFO [network.oxalis.commons.security.CertificateModule] Certificate subject: CN=PMY000676, OU=PEPPOL TEST AP, O=Appfuxion Consulting Sdn. Bhd., C=MY
2024-10-11 16:54:50,826 INFO [network.oxalis.commons.security.CertificateModule] Certificate issuer: CN=PEPPOL ACCESS POINT TEST CA - G2, OU=FOR TEST ONLY, O=OpenPEPPOL AISBL, C=BE
2024-10-11 16:54:50,920 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] Prioritized list of transport profiles:
2024-10-11 16:54:50,920 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => peppol-transport-as4-v2_0
2024-10-11 16:54:50,920 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => bdxr-transport-ebms3-as4-v1p0
2024-10-11 16:54:50,921 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0r1
2024-10-11 16:54:50,921 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver2p0
2024-10-11 16:54:50,921 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] => busdox-transport-as2-ver1p0
2024-10-11 16:54:50,929 ERROR [network.oxalis.commons.guice.GuiceModuleLoader] Unable to detect mode.
network.oxalis.api.lang.OxalisLoadingException: Unable to detect mode.
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:77)
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:49)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:60)
at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:59)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:66)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
Caused by: network.oxalis.vefa.peppol.common.lang.PeppolLoadingException: Unable to initiate 'class network.oxalis.vefa.peppol.security.util.DifiCertificateValidator'
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:125)
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:94)
at network.oxalis.vefa.peppol.security.ModeDetector.detect(ModeDetector.java:46)
at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:75)
... 16 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at network.oxalis.vefa.peppol.mode.Mode.initiate(Mode.java:112)
... 19 common frames omitted
Caused by: java.lang.ExceptionInInitializerError: null
at network.oxalis.commons.certvalidator.ValidatorLoader.build(ValidatorLoader.java:46)
at network.oxalis.vefa.peppol.security.util.DifiCertificateValidator.<init>(DifiCertificateValidator.java:53)
... 25 common frames omitted
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Method.invoke(Object, Object[])" because "com.sun.xml.bind.v2.runtime.reflect.opt.Injector.defineClass" is null
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:294)
at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:66)
at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:57)
at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:157)
at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:255)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.<init>(TransducedAccessor.java:207)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAccessor.java:147)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.calcTransducer(RuntimeClassInfoImpl.java:215)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getTransducer(RuntimeClassInfoImpl.java:189)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.link(RuntimeClassInfoImpl.java:166)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.link(ModelBuilder.java:424)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.link(RuntimeModelBuilder.java:103)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:448)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:282)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1142)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:141)
at com.sun.xml.bind.v2.JAXBContextFactory.createContext(JAXBContextFactory.java:35)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:358)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
at network.oxalis.commons.certvalidator.ValidatorLoaderParser.<clinit>(ValidatorLoaderParser.java:32)
... 27 common frames omitted
Exception in thread "main" network.oxalis.api.lang.OxalisLoadingException: Unable to load Oxalis due to errors during loading.
at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:76)
at network.oxalis.outbound.OxalisOutboundComponent.<init>(OxalisOutboundComponent.java:45)
at eu.sendregning.oxalis.Main.main(Main.java:117)
can u help on this? Thanks. Best regards
No, environment variable was Not set correctly, otherwise the first statement would be:
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED
On Windows PowerShell, you can set it as: $Env:JDK_JAVA_OPTIONS='--add-opens=java.base/java.lang=ALL-UNNAMED'
On Windows Command Prompt, you can set it as: set JDK_JAVA_OPTIONS=--add-opens=java.base/java.lang=ALL-UNNAMED
This will solve your issue.
But additionally in logs I found " bdxr-transport-ebms3-as4-v1p0" in "Prioritized list of transport profiles". It is Not there in standard Oxalis 6.7.0 released version. Did you modified something?
Hi @aaron-kumar thanks for the reply
for the "bdxr-transport-ebms3-as4-v1p0" is there because I modified the .conf file.
As for the testbed after setting the env variable, I can send the message already. Thanks for that. But I want to ask another question. Does oxalis have its own built in message validation. If have how do I implement it? Because I currently testing the last test case here and the oxalis standalone cannot validate the invalid message.
Can u help on this? Thanks. Best regards.
Note that "bdxr-transport-ebms3-as4-v1p0" is Not supported in Peppol.
No, Oxalis do Not support validation of outgoing message. This is something outside the scope of Oxalis. But you can use other Open Source library/tools for validating outgoing messages.
Closing this issue now.
Hi I encountered issue while sending xml message to testbed using oxalis-standalone by running this command
java -classpath "oxalis-distribution-6.7.0-distro/api/*;oxalis-as4-6.7.0-dist/*;oxalis-distribution-6.7.0-distro/bin/*" eu.sendregning.oxalis.Main -f .\sample.xml -cert .\cert.cer --protocol peppol-transport-as4-v2_0 -u https://peppol-ap-testbed.appfuxion.com/as4
Here are the steps I run to send
but seems the testbed didnt receive my xml message. can anyone help on this? thanks. Best regards.