ebics-java-client icon indicating copy to clipboard operation
ebics-java-client copied to clipboard

Ebics Internal Error while sending ini request

Open joemanix opened this issue 2 months ago • 5 comments

Hi

I'm trying to send the certificate to the bank. Unfortunately, it crash on "--ini" command A concern with the bank ? (a French one )

2025-11-17 17:06:46,403 INFO - Configuration initialization 2025-11-17 17:06:46,405 INFO - Loading user xxxxx 2025-11-17 17:06:46,416 INFO - The user xxxxx was loaded successfully 2025-11-17 17:06:46,416 INFO - Sending the signature certificate for user xxxxx 2025-11-17 17:06:46,993 ERROR - The signature certificate cannot be sent for the xxxxx user org.kopi.ebics.exception.EbicsException: Internal EBICS error at org.kopi.ebics.exception.ReturnCode.throwException(ReturnCode.java:59) at org.kopi.ebics.xml.DefaultResponseElement.checkReturnCode(DefaultResponseElement.java:73) at org.kopi.ebics.xml.DefaultResponseElement.report(DefaultResponseElement.java:68) at org.kopi.ebics.xml.KeyManagementResponseElement.build(KeyManagementResponseElement.java:76) at org.kopi.ebics.client.KeyManagement.sendINI(KeyManagement.java:87) at org.kopi.ebics.client.EbicsClient.sendINIRequest(EbicsClient.java:295) at org.kopi.ebics.client.EbicsClient.main(EbicsClient.java:639) Exception in thread "main" org.kopi.ebics.exception.EbicsException: Internal EBICS error at org.kopi.ebics.exception.ReturnCode.throwException(ReturnCode.java:59) at org.kopi.ebics.xml.DefaultResponseElement.checkReturnCode(DefaultResponseElement.java:73) at org.kopi.ebics.xml.DefaultResponseElement.report(DefaultResponseElement.java:68) at org.kopi.ebics.xml.KeyManagementResponseElement.build(KeyManagementResponseElement.java:76) at org.kopi.ebics.client.KeyManagement.sendINI(KeyManagement.java:87) at org.kopi.ebics.client.EbicsClient.sendINIRequest(EbicsClient.java:295) at org.kopi.ebics.client.EbicsClient.main(EbicsClient.java:639)

joemanix avatar Nov 17 '25 16:11 joemanix

can you check which EBICS version your bank supports? this library is currently EBICS 2.5 which is outdated. I am working on EBICS 3 currently and will update it this week

uwemaurer avatar Nov 17 '25 16:11 uwemaurer

I will let you know

Please note also a strange behaviour. If I set languageCode to fr and Country Code to FR I have a different exception. It seems that it cannot find the 061099 error code in the property file

2025-11-17 17:55:32,026  INFO - Envoie du certificat de signature pour l'utilisateur 5B319795
Exception in thread "main" 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:295)
	at org.kopi.ebics.client.EbicsClient.main(EbicsClient.java:639)
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:170)
	at org.kopi.ebics.exception.ReturnCode.<clinit>(ReturnCode.java:164)
	... 4 more
Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key 091115
	at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:570)
	at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:527)
	at org.kopi.ebics.messages.Messages.getString(Messages.java:69)
	... 6 more

joemanix avatar Nov 17 '25 16:11 joemanix

Hi Uwe The bank waits for Ebics 2.4

joemanix avatar Nov 18 '25 16:11 joemanix

Are you sure about this? EBICS 2.4 is discontinued and not supported anymore by banks since November 2023. This library here is for EBICS 2.5. Now in November 2025 the banks will stop supporting EBICS 2.5, this is why I am currently working on changing the library to EBICS 3.0.

uwemaurer avatar Nov 18 '25 19:11 uwemaurer

They said 2.4, I double check with them

joemanix avatar Nov 19 '25 07:11 joemanix

Hi Uwe

They confirm 2.4 🙁 3.0 is not currently planned

Is the current code compatible with 2.4 ?

joemanix avatar Nov 21 '25 10:11 joemanix

This is very unfortunate that they stay on this old version. The current code of this library is EBICS 3.0 (library release 2.0.0). I decided to not support multiple versions in the library as this would complicate the code a lot. I made one more release (1.3) with the library using EBICS 2.5, maybe this can be adapted to work with your bank.

uwemaurer avatar Nov 21 '25 12:11 uwemaurer

Thanks for helping. I checkout 1.3 tag. I still have the issue, how could I debug ?

[main] ERROR org.kopi.ebics.client.EbicsClient - The signature certificate cannot be sent for the 5B319795 user
org.kopi.ebics.exception.EbicsException: Internal EBICS error

joemanix avatar Nov 21 '25 14:11 joemanix

You can go into the DefaultResponseElement class in parse and just print the document, then you can see exactly what comes back from the API and then see if there is a more detailed error message in there.

sometimes it also helps to print the requests

uwemaurer avatar Nov 21 '25 14:11 uwemaurer

mmm not sure it helps, as the error seems to raised on the bank side

`

<header authenticate="true">
            
    <static/>
            
    <mutable>
                    
        <ReturnCode>061099</ReturnCode>
                    
        <ReportText>[EBICS_INTERNAL_ERROR] Internal EBICS error</ReportText>
                
    </mutable>
        
</header>
    
<body>
            
    <ReturnCode authenticate="true">061099</ReturnCode>
        
</body>

`

joemanix avatar Nov 21 '25 14:11 joemanix

I'm going to send the XML request and response to the bank for a diagnostic. I will keep you inform

joemanix avatar Nov 21 '25 15:11 joemanix

The bank customer agent cannot help. It seems, I'm stuck.

joemanix avatar Nov 25 '25 15:11 joemanix

Sorry to hear, this is frustrating. Maybe they can recommend some alternative software which can work with their EBICS system.

uwemaurer avatar Nov 26 '25 09:11 uwemaurer

Unfortunately an old release (fork from the source forge original code) was able to deal with 2.4, but apparently failed with certificate. I'm having a look on other solutions However thanks for your help.

joemanix avatar Nov 27 '25 08:11 joemanix