Then i run json api:
daml json-api --ledger-host localhost --ledger-port 6865 --http-port 7575
I try to create my contracts with my Java aplication and i get this error:
HTTP 500 Internal Server Error
However, when i dont use persistence (following commands), i can create contracts, with my java aplication, and view them in navigator. RESPONSE: HTTP 200 OK
Can you share the logs for both daml on SQL and for the JSON API?
Note also that 1.17.1 is fairly old at this point. I recommend switch to 2.1 although your setup should work on 1.17 as wlel.
Ah right that’s expected, you need to upload the package first. I believe if you look at the full error returned by the JSON API it should tell you that it couldn’t find the template or something along those lines.