ebics-java / ebics-java-client

Java open source EBICS client - Support for French, German and Swiss banks
GNU Lesser General Public License v2.1
36 stars 35 forks source link

Error in ReturnCode.java , blocks sending INI-HIA request #13

Closed gesteur closed 3 years ago

gesteur commented 3 years ago

Hello, many thanks for sharing this framework .

I was trying to get a connection and stumbled across an issue while sending the INI request as per the HOW-TO. after debugging it seems that the following line https://github.com/uwemaurer/ebics-java-client/blob/ee19d758a9ad3ecdd7f0b7cebcdf5bd4c822e0a4/src/main/java/org/kopi/ebics/exception/ReturnCode.java#L189 is causing the issue. The issue is with this code messages.getString(code) , without it the initialisation process completed successfully.

Below the error msg

[WARNING] java.lang.ExceptionInInitializerError at org.kopi.ebics.xml.KeyManagementResponseElement.build (KeyManagementResponseElement.java:79) at org.kopi.ebics.client.KeyManagement.sendINI (KeyManagement.java:87) at org.kopi.ebics.client.EbicsClient.sendINIRequest (EbicsClient.java:288) at org.kopi.ebics.client.EbicsClient.main (EbicsClient.java:634) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254) at java.lang.Thread.run (Thread.java:748) Caused by: java.lang.NullPointerException at org.kopi.ebics.exception.ReturnCode.create (ReturnCode.java:193) at org.kopi.ebics.exception.ReturnCode. (ReturnCode.java:162) at org.kopi.ebics.xml.KeyManagementResponseElement.build (KeyManagementResponseElement.java:79) at org.kopi.ebics.client.KeyManagement.sendINI (KeyManagement.java:87) at org.kopi.ebics.client.EbicsClient.sendINIRequest (EbicsClient.java:288) at org.kopi.ebics.client.EbicsClient.main (EbicsClient.java:634) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254) at java.lang.Thread.run (Thread.java:748)

uwemaurer commented 3 years ago

Thank you for reporting this. I can reproduce this issue and have a fix for it