How can I run a Java app, created with the Java bindings, against a ledger deployed on Daml Hub?

The Java bindings docs say (Java bindings — Daml SDK 1.18.1 documentation):

The Java bindings library lets you connect to a Daml Ledger via a secure connection. The builders created by DamlLedgerClient.newBuilder default to a plaintext connection, but you can invoke withSslContext to pass an SslContext . Using the default plaintext connection is useful only when connecting to a locally running Sandbox for development purposes.

Secure connections to a Daml Ledger must be configured to use client authentication certificates, which can be provided by a Ledger Operator.

How can I obtain the certificate for that? I haven’t found any info about that in the Daml Hub docs.

1 Like

The certificate used on hub.daml.com and *.daml.app are provided by Let’s Encrypt, and its root certs are commonly pre-installed on system trust stores. As such, you don’t actually need to specify any cert at all, although you still need to specify that you want to use TLS.

In the Java quickstart, change these lines:

DamlLedgerClient client =
    DamlLedgerClient.newBuilder(ledgerhost, ledgerport)
        .build();

to

DamlLedgerClient client =
    DamlLedgerClient.newBuilder(ledgerhost, ledgerport)
        // use the roots of trust already present on the system,
        // ledgers running on *.daml.app domains use certs
        // provided by Let's Encrypt
        .withSslContext(GrpcSslContexts.forClient().build())
        // on Daml Hub, you will still need an access token;
        // it can be supplied here or per operation
        .withAccessToken(accessToken)
        .build();

General notes on TLS and gRPC

  • A few of the daml commands are built on top of the Haskell/C++ bindings, which unfortunately do not utilize the system trust store. In this case, you are required to re-supply the publicly available root CA cert for these gRPC clients that do not utilize the trust store, even though Daml Hub’s cert is otherwise available. The documentation for that is here: https://hub.daml.com/docs/api/#section/Authentication-and-Client-Configuration. A link to the current CA cert is there, and can be supplied to clients that require it.

  • If you are using JVM gRPC libraries, there is much better cross-platform support for using the system trust store. If Daml Hub changes certificate providers or Let’s Encrypt makes material changes to the way that they generate certificates (note that this has happened recently), you will need to re-download the CA cert and redeploy wherever you used this cert. For this reason, we do not recommend supplying this cert explicitly when using Daml Hub unless you are forced to by a client library.

  • Daml Hub does not use mutual TLS, so regardless if your client supports the system trust store or not, you do not supply a key file.

2 Likes

I have implemented the above and am getting “io.grpc.StatusRuntimeException: INTERNAL: Received unexpected EOS on empty DATA frame from server”.

Steps taken:

  1. Tried a couple different party access tokens - assume it wouldn’t matter for just creating the client but never know.
  2. Called the API via postman using the access token to make sure the ledger could be hit and hit using the access token.
  3. Added logging to see exactly where it was throwing it. It is on "client.connect();

private static DamlLedgerClient getDamlLedgerClient() throws SSLException{
System.out.println(“Before creating client”);
DamlLedgerClient client = DamlLedgerClient.newBuilder(hostIp, hostPort)
.withSslContext(GrpcSslContexts.forClient().build())
.withAccessToken(accessToken)
.build();
System.out.println(“After Creating Client, before connecting”);
client.connect();
System.out.println(“After connecting”);
return client;
}

Now I have this error with the IOU Quickstart tutorial:

gyorgybalazsi@BGY quickstart % mvn exec:java@run-quickstart -X
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/apache-maven/apache-maven-3.6.3
Java version: 11.0.9, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Default locale: en_HU, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: javax.annotation.* < plexus.core
[DEBUG]   Imported: javax.annotation.security.* < plexus.core
[DEBUG]   Imported: javax.enterprise.inject.* < plexus.core
[DEBUG]   Imported: javax.enterprise.util.* < plexus.core
[DEBUG]   Imported: javax.inject.* < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG]   Imported: org.eclipse.aether.* < plexus.core
[DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core
[DEBUG]   Imported: org.eclipse.aether.collection < plexus.core
[DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core
[DEBUG]   Imported: org.eclipse.aether.graph < plexus.core
[DEBUG]   Imported: org.eclipse.aether.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.installation < plexus.core
[DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG]   Imported: org.eclipse.aether.repository < plexus.core
[DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core
[DEBUG]   Imported: org.eclipse.aether.spi < plexus.core
[DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core
[DEBUG]   Imported: org.eclipse.aether.version < plexus.core
[DEBUG]   Imported: org.fusesource.jansi.* < plexus.core
[DEBUG]   Imported: org.slf4j.* < plexus.core
[DEBUG]   Imported: org.slf4j.event.* < plexus.core
[DEBUG]   Imported: org.slf4j.helpers.* < plexus.core
[DEBUG]   Imported: org.slf4j.spi.* < plexus.core
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Message scheme: color
[DEBUG] Message styles: debug info warning error success failure strong mojo project
[DEBUG] Reading global settings from /usr/local/apache-maven/apache-maven-3.6.3/conf/settings.xml
[DEBUG] Reading user settings from /Users/gyorgybalazsi/.m2/settings.xml
[DEBUG] Reading global toolchains from /usr/local/apache-maven/apache-maven-3.6.3/conf/toolchains.xml
[DEBUG] Reading user toolchains from /Users/gyorgybalazsi/.m2/toolchains.xml
[DEBUG] Using local repository at /Users/gyorgybalazsi/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/gyorgybalazsi/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project quickstart:daml-quickstart-java:jar:1.0.0: (none)
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix exec from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix exec to org.codehaus.mojo:exec-maven-plugin from POM quickstart:daml-quickstart-java:jar:1.0.0
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: quickstart:daml-quickstart-java:jar:1.0.0
[DEBUG] Tasks:   [exec:java@run-quickstart]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO] 
[INFO] ------------------< quickstart:daml-quickstart-java >-------------------
[INFO] Building daml-quickstart-java 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[DEBUG] Resolving plugin prefix exec from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix exec to org.codehaus.mojo:exec-maven-plugin from POM quickstart:daml-quickstart-java:jar:1.0.0
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       quickstart:daml-quickstart-java:1.0.0
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [test]
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins)     : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.codehaus.mojo:exec-maven-plugin:1.6.0:java (run-quickstart)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <addOutputToClasspath default-value="true">${addOutputToClasspath}</addOutputToClasspath>
  <addResourcesToClasspath default-value="false">${addResourcesToClasspath}</addResourcesToClasspath>
  <arguments>
    <argument>localhost</argument>
    <argument>6865</argument>
    <argument>Alice</argument>
    <argument>8080</argument>${exec.arguments}</arguments>
  <classpathScope default-value="runtime">${exec.classpathScope}</classpathScope>
  <cleanupDaemonThreads default-value="true">${exec.cleanupDaemonThreads}</cleanupDaemonThreads>
  <commandlineArgs>${exec.args}</commandlineArgs>
  <daemonThreadJoinTimeout default-value="15000">${exec.daemonThreadJoinTimeout}</daemonThreadJoinTimeout>
  <includePluginDependencies default-value="false">${exec.includePluginsDependencies}</includePluginDependencies>
  <includeProjectDependencies default-value="true">${exec.includeProjectDependencies}</includeProjectDependencies>
  <keepAlive default-value="false">${exec.keepAlive}</keepAlive>
  <killAfter default-value="-1">${exec.killAfter}</killAfter>
  <localRepository default-value="${localRepository}"/>
  <mainClass>com.daml.quickstart.iou.IouMain</mainClass>
  <pluginDependencies default-value="${plugin.artifacts}"/>
  <project default-value="${project}"/>
  <remoteRepositories default-value="${project.remoteArtifactRepositories}"/>
  <skip default-value="false">${exec.skip}</skip>
  <sourceRoot>${sourceRoot}</sourceRoot>
  <stopUnresponsiveDaemonThreads default-value="false">${exec.stopUnresponsiveDaemonThreads}</stopUnresponsiveDaemonThreads>
  <testSourceRoot>${testSourceRoot}</testSourceRoot>
</configuration>
[DEBUG] =======================================================================
[DEBUG] Could not find metadata io.grpc:grpc-api/maven-metadata.xml in local (/Users/gyorgybalazsi/.m2/repository)
[DEBUG] Skipped remote request for io.grpc:grpc-api/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata io.grpc:grpc-core/maven-metadata.xml in local (/Users/gyorgybalazsi/.m2/repository)
[DEBUG] Skipped remote request for io.grpc:grpc-core/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1781154, ConflictMarker.markTime=1071936, ConflictMarker.nodeCount=173, ConflictIdSorter.graphTime=1185835, ConflictIdSorter.topsortTime=797880, ConflictIdSorter.conflictIdCount=58, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=14656989, ConflictResolver.conflictItemCount=142, DefaultDependencyCollector.collectTime=566210331, DefaultDependencyCollector.transformTime=22259788}
[DEBUG] quickstart:daml-quickstart-java:jar:1.0.0
[DEBUG]    com.daml:bindings-rxjava:jar:1.18.1:compile
[DEBUG]       com.daml:bindings-java:jar:1.18.1:compile
[DEBUG]          com.google.code.findbugs:jsr305:jar:3.0.2:compile
[DEBUG]          com.google.guava:guava:jar:29.0-jre:compile
[DEBUG]             com.google.guava:failureaccess:jar:1.0.1:compile
[DEBUG]             com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[DEBUG]             org.checkerframework:checker-qual:jar:2.11.1:compile
[DEBUG]             com.google.j2objc:j2objc-annotations:jar:1.3:compile
[DEBUG]       com.daml:ledger-api-auth-client:jar:1.18.1:compile
[DEBUG]       com.daml:rs-grpc-bridge:jar:1.18.1:compile
[DEBUG]          org.reactivestreams:reactive-streams:jar:1.0.2:compile
[DEBUG]       com.google.api.grpc:proto-google-common-protos:jar:2.0.1:compile
[DEBUG]       com.google.protobuf:protobuf-java:jar:3.17.3:compile
[DEBUG]       io.grpc:grpc-api:jar:1.41.0:compile
[DEBUG]          io.grpc:grpc-context:jar:1.41.0:compile
[DEBUG]          com.google.errorprone:error_prone_annotations:jar:2.9.0:compile
[DEBUG]       io.grpc:grpc-core:jar:1.41.0:compile
[DEBUG]          com.google.android:annotations:jar:4.1.1.4:runtime
[DEBUG]          org.codehaus.mojo:animal-sniffer-annotations:jar:1.19:runtime
[DEBUG]          io.perfmark:perfmark-api:jar:0.23.0:runtime
[DEBUG]       io.grpc:grpc-netty:jar:1.41.0:compile
[DEBUG]          io.netty:netty-codec-http2:jar:4.1.52.Final:compile
[DEBUG]             io.netty:netty-codec-http:jar:4.1.52.Final:compile
[DEBUG]          io.netty:netty-handler-proxy:jar:4.1.52.Final:runtime
[DEBUG]             io.netty:netty-codec-socks:jar:4.1.52.Final:runtime
[DEBUG]       io.grpc:grpc-protobuf:jar:1.41.0:compile
[DEBUG]          io.grpc:grpc-protobuf-lite:jar:1.41.0:compile
[DEBUG]       io.grpc:grpc-stub:jar:1.41.0:compile
[DEBUG]       io.netty:netty-handler:jar:4.1.67.Final:compile
[DEBUG]          io.netty:netty-common:jar:4.1.67.Final:compile
[DEBUG]          io.netty:netty-resolver:jar:4.1.67.Final:compile
[DEBUG]          io.netty:netty-buffer:jar:4.1.67.Final:compile
[DEBUG]          io.netty:netty-transport:jar:4.1.67.Final:compile
[DEBUG]          io.netty:netty-codec:jar:4.1.67.Final:compile
[DEBUG]       io.reactivex.rxjava2:rxjava:jar:2.2.1:compile
[DEBUG]       org.checkerframework:checker:jar:2.5.4:compile
[DEBUG]       org.pcollections:pcollections:jar:2.1.3:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.26:compile
[DEBUG]    ch.qos.logback:logback-classic:jar:1.2.3:compile
[DEBUG]       ch.qos.logback:logback-core:jar:1.2.3:compile
[DEBUG]    com.sparkjava:spark-core:jar:2.7.2:compile
[DEBUG]       org.eclipse.jetty:jetty-server:jar:9.4.8.v20171121:compile
[DEBUG]          javax.servlet:javax.servlet-api:jar:3.1.0:compile
[DEBUG]          org.eclipse.jetty:jetty-http:jar:9.4.8.v20171121:compile
[DEBUG]             org.eclipse.jetty:jetty-util:jar:9.4.8.v20171121:compile
[DEBUG]          org.eclipse.jetty:jetty-io:jar:9.4.8.v20171121:compile
[DEBUG]       org.eclipse.jetty:jetty-webapp:jar:9.4.8.v20171121:compile
[DEBUG]          org.eclipse.jetty:jetty-xml:jar:9.4.8.v20171121:compile
[DEBUG]          org.eclipse.jetty:jetty-servlet:jar:9.4.8.v20171121:compile
[DEBUG]             org.eclipse.jetty:jetty-security:jar:9.4.8.v20171121:compile
[DEBUG]       org.eclipse.jetty.websocket:websocket-server:jar:9.4.8.v20171121:compile
[DEBUG]          org.eclipse.jetty.websocket:websocket-common:jar:9.4.8.v20171121:compile
[DEBUG]          org.eclipse.jetty.websocket:websocket-client:jar:9.4.8.v20171121:compile
[DEBUG]             org.eclipse.jetty:jetty-client:jar:9.4.8.v20171121:compile
[DEBUG]       org.eclipse.jetty.websocket:websocket-servlet:jar:9.4.8.v20171121:compile
[DEBUG]          org.eclipse.jetty.websocket:websocket-api:jar:9.4.8.v20171121:compile
[DEBUG]    com.google.code.gson:gson:jar:2.8.6:compile
[INFO] 
[INFO] --- exec-maven-plugin:1.6.0:java (run-quickstart) @ daml-quickstart-java ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=352238, ConflictMarker.markTime=146059, ConflictMarker.nodeCount=94, ConflictIdSorter.graphTime=209076, ConflictIdSorter.topsortTime=49799, ConflictIdSorter.conflictIdCount=40, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1444015, ConflictResolver.conflictItemCount=79, DefaultDependencyCollector.collectTime=309127424, DefaultDependencyCollector.transformTime=2361071}
[DEBUG] org.codehaus.mojo:exec-maven-plugin:jar:1.6.0
[DEBUG]    com.daml:codegen-java:jar:1.18.1:runtime
[DEBUG]    org.apache.maven:maven-toolchain:jar:2.2.1:compile
[DEBUG]    org.apache.maven:maven-project:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-settings:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-profile:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
[DEBUG]       org.codehaus.plexus:plexus-interpolation:jar:1.11:compile
[DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          junit:junit:jar:4.12:test (scope managed from default) (version managed from default)
[DEBUG]             org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG]    org.apache.maven:maven-model:jar:2.2.1:compile
[DEBUG]    org.apache.maven:maven-artifact:jar:2.2.1:compile
[DEBUG]    org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.2.1:compile
[DEBUG]       backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[DEBUG]    org.apache.maven:maven-core:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile
[DEBUG]       org.slf4j:slf4j-jdk14:jar:1.5.6:runtime
[DEBUG]          org.slf4j:slf4j-api:jar:1.5.6:runtime
[DEBUG]       org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime
[DEBUG]       org.apache.maven.reporting:maven-reporting-api:jar:2.2.1:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile
[DEBUG]          org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile
[DEBUG]       org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile
[DEBUG]       commons-cli:commons-cli:jar:1.2:compile
[DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile
[DEBUG]       org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]       org.apache.maven:maven-monitor:jar:2.2.1:compile
[DEBUG]       classworlds:classworlds:jar:1.1:compile
[DEBUG]       org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG]          org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:2.2.1:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:3.0.20:compile
[DEBUG]    org.apache.commons:commons-exec:jar:1.3:compile
[DEBUG] Created new class realm plugin>org.codehaus.mojo:exec-maven-plugin:1.6.0
[DEBUG] Importing foreign packages into class realm plugin>org.codehaus.mojo:exec-maven-plugin:1.6.0
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>org.codehaus.mojo:exec-maven-plugin:1.6.0
[DEBUG]   Included: org.codehaus.mojo:exec-maven-plugin:jar:1.6.0
[DEBUG]   Included: com.daml:codegen-java:jar:1.18.1
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.11
[DEBUG]   Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
[DEBUG]   Included: org.slf4j:slf4j-jdk14:jar:1.5.6
[DEBUG]   Included: org.slf4j:jcl-over-slf4j:jar:1.5.6
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:2.2.1
[DEBUG]   Included: org.apache.maven.doxia:doxia-sink-api:jar:1.1
[DEBUG]   Included: org.apache.maven.doxia:doxia-logging-api:jar:1.1
[DEBUG]   Included: commons-cli:commons-cli:jar:1.2
[DEBUG]   Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0.20
[DEBUG]   Included: org.apache.commons:commons-exec:jar:1.3
[DEBUG] Configuring mojo org.codehaus.mojo:exec-maven-plugin:1.6.0:java from plugin realm ClassRealm[plugin>org.codehaus.mojo:exec-maven-plugin:1.6.0, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@277050dc]
[DEBUG] Configuring mojo 'org.codehaus.mojo:exec-maven-plugin:1.6.0:java' with basic configurator -->
[DEBUG]   (f) addOutputToClasspath = true
[DEBUG]   (f) addResourcesToClasspath = false
[DEBUG]   (f) arguments = [localhost, 6865, Alice, 8080]
[DEBUG]   (f) classpathScope = runtime
[DEBUG]   (f) cleanupDaemonThreads = true
[DEBUG]   (f) daemonThreadJoinTimeout = 15000
[DEBUG]   (f) includePluginDependencies = false
[DEBUG]   (f) includeProjectDependencies = true
[DEBUG]   (f) keepAlive = false
[DEBUG]   (f) killAfter = -1
[DEBUG]   (f) localRepository =       id: local
      url: file:///Users/gyorgybalazsi/.m2/repository/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]

[DEBUG]   (f) mainClass = com.daml.quickstart.iou.IouMain
[DEBUG]   (f) pluginDependencies = [org.codehaus.mojo:exec-maven-plugin:maven-plugin:1.6.0:, com.daml:codegen-java:jar:1.18.1:runtime, org.apache.maven:maven-toolchain:jar:2.2.1:compile, org.apache.maven:maven-project:jar:2.2.1:compile, org.apache.maven:maven-settings:jar:2.2.1:compile, org.apache.maven:maven-profile:jar:2.2.1:compile, org.apache.maven:maven-plugin-registry:jar:2.2.1:compile, org.codehaus.plexus:plexus-interpolation:jar:1.11:compile, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile, org.apache.maven:maven-model:jar:2.2.1:compile, org.apache.maven:maven-artifact:jar:2.2.1:compile, org.apache.maven:maven-artifact-manager:jar:2.2.1:compile, org.apache.maven:maven-repository-metadata:jar:2.2.1:compile, backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, org.apache.maven:maven-core:jar:2.2.1:compile, org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile, org.slf4j:slf4j-jdk14:jar:1.5.6:runtime, org.slf4j:slf4j-api:jar:1.5.6:runtime, org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime, org.apache.maven.reporting:maven-reporting-api:jar:2.2.1:compile, org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile, org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile, org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile, commons-cli:commons-cli:jar:1.2:compile, org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile, org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile, org.apache.maven:maven-monitor:jar:2.2.1:compile, classworlds:classworlds:jar:1.1:compile, org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexus-cipher:jar:1.4:compile, org.apache.maven:maven-plugin-api:jar:2.2.1:compile, org.codehaus.plexus:plexus-utils:jar:3.0.20:compile, org.apache.commons:commons-exec:jar:1.3:compile]
[DEBUG]   (f) project = MavenProject: quickstart:daml-quickstart-java:1.0.0 @ /Users/gyorgybalazsi/_dobdel/quickstart/pom.xml
[DEBUG]   (f) remoteRepositories = [      id: central
      url: https://repo.maven.apache.org/maven2
   layout: default
snapshots: [enabled => false, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) skip = false
[DEBUG]   (f) stopUnresponsiveDaemonThreads = false
[DEBUG] -- end configuration --
[DEBUG] Invoking : com.daml.quickstart.iou.IouMain.main(localhost, 6865, Alice, 8080)
[DEBUG] Plugin Dependencies will be excluded.
[DEBUG] Project Dependencies will be included.
[DEBUG] Collected project artifacts [com.daml:bindings-rxjava:jar:1.18.1:compile, com.daml:bindings-java:jar:1.18.1:compile, com.google.code.findbugs:jsr305:jar:3.0.2:compile, com.google.guava:guava:jar:29.0-jre:compile, com.google.guava:failureaccess:jar:1.0.1:compile, com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile, org.checkerframework:checker-qual:jar:2.11.1:compile, com.google.j2objc:j2objc-annotations:jar:1.3:compile, com.daml:ledger-api-auth-client:jar:1.18.1:compile, com.daml:rs-grpc-bridge:jar:1.18.1:compile, org.reactivestreams:reactive-streams:jar:1.0.2:compile, com.google.api.grpc:proto-google-common-protos:jar:2.0.1:compile, com.google.protobuf:protobuf-java:jar:3.17.3:compile, io.grpc:grpc-api:jar:1.41.0:compile, io.grpc:grpc-context:jar:1.41.0:compile, com.google.errorprone:error_prone_annotations:jar:2.9.0:compile, io.grpc:grpc-core:jar:1.41.0:compile, com.google.android:annotations:jar:4.1.1.4:runtime, org.codehaus.mojo:animal-sniffer-annotations:jar:1.19:runtime, io.perfmark:perfmark-api:jar:0.23.0:runtime, io.grpc:grpc-netty:jar:1.41.0:compile, io.netty:netty-codec-http2:jar:4.1.52.Final:compile, io.netty:netty-codec-http:jar:4.1.52.Final:compile, io.netty:netty-handler-proxy:jar:4.1.52.Final:runtime, io.netty:netty-codec-socks:jar:4.1.52.Final:runtime, io.grpc:grpc-protobuf:jar:1.41.0:compile, io.grpc:grpc-protobuf-lite:jar:1.41.0:compile, io.grpc:grpc-stub:jar:1.41.0:compile, io.netty:netty-handler:jar:4.1.67.Final:compile, io.netty:netty-common:jar:4.1.67.Final:compile, io.netty:netty-resolver:jar:4.1.67.Final:compile, io.netty:netty-buffer:jar:4.1.67.Final:compile, io.netty:netty-transport:jar:4.1.67.Final:compile, io.netty:netty-codec:jar:4.1.67.Final:compile, io.reactivex.rxjava2:rxjava:jar:2.2.1:compile, org.checkerframework:checker:jar:2.5.4:compile, org.pcollections:pcollections:jar:2.1.3:compile, org.slf4j:slf4j-api:jar:1.7.26:compile, ch.qos.logback:logback-classic:jar:1.2.3:compile, ch.qos.logback:logback-core:jar:1.2.3:compile, com.sparkjava:spark-core:jar:2.7.2:compile, org.eclipse.jetty:jetty-server:jar:9.4.8.v20171121:compile, javax.servlet:javax.servlet-api:jar:3.1.0:compile, org.eclipse.jetty:jetty-http:jar:9.4.8.v20171121:compile, org.eclipse.jetty:jetty-util:jar:9.4.8.v20171121:compile, org.eclipse.jetty:jetty-io:jar:9.4.8.v20171121:compile, org.eclipse.jetty:jetty-webapp:jar:9.4.8.v20171121:compile, org.eclipse.jetty:jetty-xml:jar:9.4.8.v20171121:compile, org.eclipse.jetty:jetty-servlet:jar:9.4.8.v20171121:compile, org.eclipse.jetty:jetty-security:jar:9.4.8.v20171121:compile, org.eclipse.jetty.websocket:websocket-server:jar:9.4.8.v20171121:compile, org.eclipse.jetty.websocket:websocket-common:jar:9.4.8.v20171121:compile, org.eclipse.jetty.websocket:websocket-client:jar:9.4.8.v20171121:compile, org.eclipse.jetty:jetty-client:jar:9.4.8.v20171121:compile, org.eclipse.jetty.websocket:websocket-servlet:jar:9.4.8.v20171121:compile, org.eclipse.jetty.websocket:websocket-api:jar:9.4.8.v20171121:compile, com.google.code.gson:gson:jar:2.8.6:compile]
[DEBUG] Collected project classpath [/Users/gyorgybalazsi/_dobdel/quickstart/target/classes]
[DEBUG] Adding to classpath : file:/Users/gyorgybalazsi/_dobdel/quickstart/target/classes/
[DEBUG] Adding project dependency artifact: bindings-rxjava to classpath
[DEBUG] Adding project dependency artifact: bindings-java to classpath
[DEBUG] Adding project dependency artifact: jsr305 to classpath
[DEBUG] Adding project dependency artifact: guava to classpath
[DEBUG] Adding project dependency artifact: failureaccess to classpath
[DEBUG] Adding project dependency artifact: listenablefuture to classpath
[DEBUG] Adding project dependency artifact: checker-qual to classpath
[DEBUG] Adding project dependency artifact: j2objc-annotations to classpath
[DEBUG] Adding project dependency artifact: ledger-api-auth-client to classpath
[DEBUG] Adding project dependency artifact: rs-grpc-bridge to classpath
[DEBUG] Adding project dependency artifact: reactive-streams to classpath
[DEBUG] Adding project dependency artifact: proto-google-common-protos to classpath
[DEBUG] Adding project dependency artifact: protobuf-java to classpath
[DEBUG] Adding project dependency artifact: grpc-api to classpath
[DEBUG] Adding project dependency artifact: grpc-context to classpath
[DEBUG] Adding project dependency artifact: error_prone_annotations to classpath
[DEBUG] Adding project dependency artifact: grpc-core to classpath
[DEBUG] Adding project dependency artifact: annotations to classpath
[DEBUG] Adding project dependency artifact: animal-sniffer-annotations to classpath
[DEBUG] Adding project dependency artifact: perfmark-api to classpath
[DEBUG] Adding project dependency artifact: grpc-netty to classpath
[DEBUG] Adding project dependency artifact: netty-codec-http2 to classpath
[DEBUG] Adding project dependency artifact: netty-codec-http to classpath
[DEBUG] Adding project dependency artifact: netty-handler-proxy to classpath
[DEBUG] Adding project dependency artifact: netty-codec-socks to classpath
[DEBUG] Adding project dependency artifact: grpc-protobuf to classpath
[DEBUG] Adding project dependency artifact: grpc-protobuf-lite to classpath
[DEBUG] Adding project dependency artifact: grpc-stub to classpath
[DEBUG] Adding project dependency artifact: netty-handler to classpath
[DEBUG] Adding project dependency artifact: netty-common to classpath
[DEBUG] Adding project dependency artifact: netty-resolver to classpath
[DEBUG] Adding project dependency artifact: netty-buffer to classpath
[DEBUG] Adding project dependency artifact: netty-transport to classpath
[DEBUG] Adding project dependency artifact: netty-codec to classpath
[DEBUG] Adding project dependency artifact: rxjava to classpath
[DEBUG] Adding project dependency artifact: checker to classpath
[DEBUG] Adding project dependency artifact: pcollections to classpath
[DEBUG] Adding project dependency artifact: slf4j-api to classpath
[DEBUG] Adding project dependency artifact: logback-classic to classpath
[DEBUG] Adding project dependency artifact: logback-core to classpath
[DEBUG] Adding project dependency artifact: spark-core to classpath
[DEBUG] Adding project dependency artifact: jetty-server to classpath
[DEBUG] Adding project dependency artifact: javax.servlet-api to classpath
[DEBUG] Adding project dependency artifact: jetty-http to classpath
[DEBUG] Adding project dependency artifact: jetty-util to classpath
[DEBUG] Adding project dependency artifact: jetty-io to classpath
[DEBUG] Adding project dependency artifact: jetty-webapp to classpath
[DEBUG] Adding project dependency artifact: jetty-xml to classpath
[DEBUG] Adding project dependency artifact: jetty-servlet to classpath
[DEBUG] Adding project dependency artifact: jetty-security to classpath
[DEBUG] Adding project dependency artifact: websocket-server to classpath
[DEBUG] Adding project dependency artifact: websocket-common to classpath
[DEBUG] Adding project dependency artifact: websocket-client to classpath
[DEBUG] Adding project dependency artifact: jetty-client to classpath
[DEBUG] Adding project dependency artifact: websocket-servlet to classpath
[DEBUG] Adding project dependency artifact: websocket-api to classpath
[DEBUG] Adding project dependency artifact: gson to classpath
[DEBUG] joining on thread Thread[com.daml.quickstart.iou.IouMain.main(),5,com.daml.quickstart.iou.IouMain]
[DEBUG] Setting accessibility to true in order to invoke main().
18:11:56.741 [com.daml.quickstart.iou.IouMain.main()] INFO  com.daml.quickstart.iou.IouMain [  : -  ] - ledger-id: uiqojidksxxsd80v
[WARNING] 
io.grpc.StatusRuntimeException: PERMISSION_DENIED: An error occurred. Please contact the operator and inquire about the request <no-correlation-id>
    at io.grpc.Status.asRuntimeException (Status.java:535)
    at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose (ClientCalls.java:478)
    at io.grpc.internal.ClientCallImpl.closeObserver (ClientCallImpl.java:557)
    at io.grpc.internal.ClientCallImpl.access$300 (ClientCallImpl.java:69)
    at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal (ClientCallImpl.java:738)
    at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext (ClientCallImpl.java:717)
    at io.grpc.internal.ContextRunnable.run (ContextRunnable.java:37)
    at io.grpc.internal.SerializingExecutor.run (SerializingExecutor.java:133)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
    at java.lang.Thread.run (Thread.java:834)
[DEBUG] interrupting thread Thread[grpc-nio-worker-ELG-1-1,5,com.daml.quickstart.iou.IouMain]
[DEBUG] interrupting thread Thread[grpc-default-executor-0,5,com.daml.quickstart.iou.IouMain]
[DEBUG] interrupting thread Thread[grpc-default-executor-1,5,com.daml.quickstart.iou.IouMain]
[DEBUG] interrupting thread Thread[grpc-default-executor-2,5,com.daml.quickstart.iou.IouMain]
[DEBUG] interrupting thread Thread[grpc-nio-worker-ELG-1-2,5,com.daml.quickstart.iou.IouMain]
[DEBUG] interrupting thread Thread[client-0,5,com.daml.quickstart.iou.IouMain]
[DEBUG] joining on thread Thread[grpc-nio-worker-ELG-1-1,5,com.daml.quickstart.iou.IouMain]
[WARNING] thread Thread[grpc-nio-worker-ELG-1-1,5,com.daml.quickstart.iou.IouMain] was interrupted but is still alive after waiting at least 14997msecs
[WARNING] thread Thread[grpc-nio-worker-ELG-1-1,5,com.daml.quickstart.iou.IouMain] will linger despite being asked to die via interruption
[WARNING] thread Thread[grpc-default-executor-0,5,com.daml.quickstart.iou.IouMain] will linger despite being asked to die via interruption
[WARNING] thread Thread[grpc-default-executor-1,5,com.daml.quickstart.iou.IouMain] will linger despite being asked to die via interruption
[WARNING] thread Thread[grpc-default-executor-2,5,com.daml.quickstart.iou.IouMain] will linger despite being asked to die via interruption
[WARNING] thread Thread[grpc-nio-worker-ELG-1-2,5,com.daml.quickstart.iou.IouMain] will linger despite being asked to die via interruption
[WARNING] thread Thread[client-0,5,com.daml.quickstart.iou.IouMain] will linger despite being asked to die via interruption
[WARNING] NOTE: 6 thread(s) did not finish despite being asked to  via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
[WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=com.daml.quickstart.iou.IouMain,maxpri=10]
java.lang.IllegalThreadStateException
    at java.lang.ThreadGroup.destroy (ThreadGroup.java:776)
    at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:321)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  18.782 s
[INFO] Finished at: 2022-01-27T18:12:12+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (run-quickstart) on project daml-quickstart-java: An exception occured while executing the Java class. PERMISSION_DENIED: An error occurred. Please contact the operator and inquire about the request <no-correlation-id> -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (run-quickstart) on project daml-quickstart-java: An exception occured while executing the Java class. PERMISSION_DENIED: An error occurred. Please contact the operator and inquire about the request <no-correlation-id>
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. PERMISSION_DENIED: An error occurred. Please contact the operator and inquire about the request <no-correlation-id>
    at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:339)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: io.grpc.StatusRuntimeException: PERMISSION_DENIED: An error occurred. Please contact the operator and inquire about the request <no-correlation-id>
    at io.grpc.Status.asRuntimeException (Status.java:535)
    at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose (ClientCalls.java:478)
    at io.grpc.internal.ClientCallImpl.closeObserver (ClientCallImpl.java:557)
    at io.grpc.internal.ClientCallImpl.access$300 (ClientCallImpl.java:69)
    at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal (ClientCallImpl.java:738)
    at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext (ClientCallImpl.java:717)
    at io.grpc.internal.ContextRunnable.run (ContextRunnable.java:37)
    at io.grpc.internal.SerializingExecutor.run (SerializingExecutor.java:133)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
    at java.lang.Thread.run (Thread.java:834)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
gyorgybalazsi@BGY quickstart % 

Have you supplied an access token? PERMISSION_DENIED suggests that you’re able to make a connection properly, but the request is getting rejected because the token is either missing or invalid.

Yes, I have, like this:

And now I have a different error:

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>

Is there a chance the Party literal you are sending is incorrect? Please see this post for details: JAVA gRPC request error to DAML Hub

I’m not sure about the 502; If you are consistently getting these please let us know and we’ll look more closely into it. Thanks!

1 Like

As @RyanMedlen and @cocreature could make it work, it must work, I’m looking at it more closely to see what I am doing wrong.