Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined when native asami command line -e is missing #179

Open
Jacob-Kroeze opened this issue Jun 25, 2021 · 2 comments
Open

Undefined when native asami command line -e is missing #179

Jacob-Kroeze opened this issue Jun 25, 2021 · 2 comments

Comments

@Jacob-Kroeze
Copy link

What should the native image command line do if -e is missing?
$> asami asami:mem://db-store -f db.edn for me throws
Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: No matching method put found taking 2 args for class java.nio.DirectLongBufferS

@noprompt
Copy link
Contributor

noprompt commented Jul 8, 2021

What should the native image command line do if -e is missing?

For me, using what is currently on main, it hangs waiting on STDIN.

Are you able to provide any more details such that I can attempt to reproduce this issue?

@quoll
Copy link
Contributor

quoll commented Oct 11, 2021

This is very unexpected.
Right now, running that same command line against an EDN file will have it waiting on stdin without prompting you (if you type in a query it will respond). This is so queries can be piped into the program. Using the --interactive flag will prompt you.

The exception that you show is the unexpected part. Asami code does use buffers from java.nio but that only occurs when the database is in the asami:local: scheme, which is not what you specified.

There have been a couple of updates to the asami CLI since this bug was filed. Are you still seeing the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants