element36-io / ebics-java-client

Ebics java library adaption from element36.io. Also spring boot integration is available.
https://www.element36.io
GNU Lesser General Public License v2.1
5 stars 5 forks source link

ISSUE in Step mvn exec:java -Dexec.mainClass=org.kopi.ebics.client.EbicsClient -Dexec.args="--ini --hia" #7

Open wassimd opened 2 years ago

wassimd commented 2 years ago

Hello,

Version 1.2 commit baea41a (but tested many commits and having other issues)

I am getting the belw issue when executing the command mvn exec:java -Dexec.mainClass=org.kopi.ebics.client.EbicsClient -Dexec.args="--ini --hia" I am not sure if this is a bug missing librairy or I missed a step.

It may be the

2021-11-26 18:52:37,822 DEBUG - http-outgoing-0 << "<?xml version="1.0" encoding="UTF-8" standalone="no"?><ebicsKeyManagementResponse xmlns="http://www.ebics.org/H003" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Revision="1" Version="H003" xsi:schemaLocation="http://www.ebics.org/H003 http://www.ebics.org/H003/ebics_keymgmt_response.xsd"><header authenticate="true"><static/><mutable><ReturnCode>091217</ReturnCode><ReportText>[EBICS_ONLY_X509_SUPPORT] The bank system only support the evaluation of X.509 data</ReportText></mutable></header><body><ReturnCode authenticate="true">000000</ReturnCode></body></ebicsKeyManagementResponse>"

Seems the bank uses only X509. Is there any idea to resolve the issue ?

[WARNING] java.lang.ExceptionInInitializerError at org.kopi.ebics.xml.KeyManagementResponseElement.build (KeyManagementResponseElement.java:75) at org.kopi.ebics.client.KeyManagement.sendINI (KeyManagement.java:87) at org.kopi.ebics.client.EbicsClient.sendINIRequest (EbicsClient.java:287) at org.kopi.ebics.client.EbicsClient.main (EbicsClient.java:642) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254) at java.lang.Thread.run (Thread.java:748) Caused by: java.lang.RuntimeException: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key 091115 at org.kopi.ebics.messages.Messages.getString (Messages.java:71) at org.kopi.ebics.exception.ReturnCode.create (ReturnCode.java:193) at org.kopi.ebics.exception.ReturnCode. (ReturnCode.java:186) at org.kopi.ebics.xml.KeyManagementResponseElement.build (KeyManagementResponseElement.java:75) at org.kopi.ebics.client.KeyManagement.sendINI (KeyManagement.java:87) at org.kopi.ebics.client.EbicsClient.sendINIRequest (EbicsClient.java:287) at org.kopi.ebics.client.EbicsClient.main (EbicsClient.java:642) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254) at java.lang.Thread.run (Thread.java:748) Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key 091115 at java.util.ResourceBundle.getObject (ResourceBundle.java:450) at java.util.ResourceBundle.getString (ResourceBundle.java:407) at org.kopi.ebics.messages.Messages.getString (Messages.java:69) at org.kopi.ebics.exception.ReturnCode.create (ReturnCode.java:193) at org.kopi.ebics.exception.ReturnCode. (ReturnCode.java:186) at org.kopi.ebics.xml.KeyManagementResponseElement.build (KeyManagementResponseElement.java:75) at org.kopi.ebics.client.KeyManagement.sendINI (KeyManagement.java:87) at org.kopi.ebics.client.EbicsClient.sendINIRequest (EbicsClient.java:287) at org.kopi.ebics.client.EbicsClient.main (EbicsClient.java:642) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254) at java.lang.Thread.run (Thread.java:748)

Thanks

wstrametz commented 2 years ago

Hi @wassimd - do you know which Ebics version your bank uses? Which bank and - if international - which country does it operate? thx

wassimd commented 2 years ago

Hi, I am testing with free bank simulator https://software.elcimai.com/efs/accueil-qualif.jsp We used different bank versions 2.4, 2.5 et 3.0 It is a French standard image