Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Example App throws exception [JNA bindings] #3757

Closed
tucek opened this issue Apr 8, 2021 · 2 comments · Fixed by #3889
Closed

Example App throws exception [JNA bindings] #3757

tucek opened this issue Apr 8, 2021 · 2 comments · Fixed by #3889
Assignees

Comments

@tucek
Copy link
Contributor

tucek commented Apr 8, 2021

Steps to Reproduce the Problem

cd examples/external/java/read-keys-example
gradle run

or

cd examples/external/java/read-keys-example
mvn compile exec:java

Expected Result

Example running without throwing an exception.

Actual Result

Example started
Reading following keys:
server/port
spring/profiles/active
spring/datasource/type
spring/datasource/url
spring/datasource/username
spring/datasource/password
spring/jpa/database-platform
spring/jpa/database
spring/mail/host
spring/mail/port
jhipster/mail/from
jhipster/mail/base-url
Invalid name:  (in keyVNew at src/libs/elektra/key.c:238)
org.libelektra.exception.InternalException: Sorry, module (null) issued error C01310:
Sorry, could not map error number '(null)'. Please report this incident at https://issues.libelektra.org/
Configfile: user:/temporary/errorkey

        at org.libelektra.exception.mapper.ExceptionMapperService.getMappedException(ExceptionMapperService.java:60)
        at org.libelektra.KDB.open(KDB.java:39)
        at org.libelektra.app.App.readKeys(App.java:59)
        at org.libelektra.app.App.loadConfigurationSettings(App.java:45)
        at org.libelektra.app.App.main(App.java:20)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:254)
        at java.base/java.lang.Thread.run(Thread.java:834)
Result:
null
Example terminated

System Information

  • Elektra Version: master
  • Operating System: wsl2

Further Log Files and Output

@tucek tucek self-assigned this Apr 8, 2021
@tucek tucek added the lang/java label Apr 8, 2021
@tucek tucek mentioned this issue Apr 8, 2021
6 tasks
@markus2330
Copy link
Contributor

Thank you for reporting this problem! The error is probably some local problem, but its perfect that you have this problem, as it seems the error mapping in the Java binding is broken (it is probably untested as many errors like broken installation usually do not happen on the build server). Maybe you can find out via kdb what the error is and why this error code is not mapped.

@tucek
Copy link
Contributor Author

tucek commented Jul 28, 2021

I'll check whether this bug still exists

tucek pushed a commit to tucek/libelektra that referenced this issue Aug 9, 2021
@tucek tucek linked a pull request Aug 9, 2021 that will close this issue
20 tasks
tucek pushed a commit to tucek/libelektra that referenced this issue Aug 12, 2021
tucek pushed a commit to tucek/libelektra that referenced this issue Aug 12, 2021
tucek pushed a commit to tucek/libelektra that referenced this issue Aug 12, 2021
tucek pushed a commit to tucek/libelektra that referenced this issue Aug 16, 2021
tucek pushed a commit to tucek/libelektra that referenced this issue Aug 22, 2021
tucek pushed a commit to tucek/libelektra that referenced this issue Aug 25, 2021
tucek pushed a commit to tucek/libelektra that referenced this issue Aug 26, 2021
tucek pushed a commit to tucek/libelektra that referenced this issue Aug 26, 2021
lawli3t pushed a commit to lawli3t/libelektra that referenced this issue Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants