Hi there,
After upgrading to DAML 2.0 from 1.18.1.
When writing a script in VC under windows , I’m not getting the grey line above which executes the script
Thanks
Hi there,
After upgrading to DAML 2.0 from 1.18.1.
When writing a script in VC under windows , I’m not getting the grey line above which executes the script
Thanks
Can you check which daml extension you have installed? You can find the name and version in the vscode extension settings.
Hi @cocreature
I have the 2.0 extension but i see it has a runtime error (“Connection to server got closed. Server will not be restarted.”).
Maybe i need to install local Canton?
No, that should not be the issue. Can you go back to your daml file and then open View → Output → select “Daml language server” in the drop down at the bottom right and show the output?
Many errors which i wasn’t aware of it:
2022-03-10 18:20:31.75 [DEBUG] [LanguageServer ScenarioService]
Starting scenario service...
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/daml/grpc/adapter/ExecutionSequencerFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass1(Native Method)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.AccessController.doPrivileged(Native Method)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
2022-03-10 18:20:34.67 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at com.daml.lf.scenario.ScenarioServiceMain.main(ScenarioServiceMain.scala)
2022-03-10 18:20:34.67 [INFO] [LanguageServer]
Flushed 0 logs
damlc: user error (Stdout of scenario service terminated before we got the PORT=<port> message)
[Info - 8:20:34 PM] Connection to server got closed. Server will restart.
2022-03-10 18:20:34.77 [DEBUG] [LanguageServer ScenarioService]
Starting scenario service...
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/daml/grpc/adapter/ExecutionSequencerFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass1(Native Method)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.AccessController.doPrivileged(Native Method)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
2022-03-10 18:20:37.68 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
2
2022-03-10 18:20:37.68 [INFO] [LanguageServer]
Flushed 0 logs
damlc: user error (Stdout of scenario service terminated before we got the PORT=<port> message)
[Info - 8:20:37 PM] Connection to server got closed. Server will restart.
2022-03-10 18:20:38.88 [DEBUG] [LanguageServer ScenarioService]
Starting scenario service...
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/daml/grpc/adapter/ExecutionSequencerFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass1(Native Method)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.AccessController.doPrivileged(Native Method)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
2022-03-10 18:20:41.77 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at com.daml.lf.scenario.ScenarioServiceMain.main(ScenarioServiceMain.scala)
2022-03-10 18:20:41.79 [INFO] [LanguageServer]
Flushed 0 logs
damlc: user error (Stdout of scenario service terminated before we got the PORT=<port> message)
[Info - 8:20:41 PM] Connection to server got closed. Server will restart.
2022-03-10 18:20:41.88 [DEBUG] [LanguageServer ScenarioService]
Starting scenario service...
2022-03-10 18:20:45.60 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/daml/grpc/adapter/ExecutionSequencerFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2022-03-10 18:20:45.60 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass1(Native Method)
2022-03-10 18:20:45.60 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
2022-03-10 18:20:45.60 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
2022-03-10 18:20:45.60 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
2022-03-10 18:20:45.60 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
2022-03-10 18:20:45.61 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
2022-03-10 18:20:45.61 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
2022-03-10 18:20:45.61 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.AccessController.doPrivileged(Native Method)
2022-03-10 18:20:45.61 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
2022-03-10 18:20:45.61 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
2022-03-10 18:20:45.61 [ERROR] [LanguageServer ScenarioService]
2022-03-10 18:20:45.61 [INFO] [LanguageServer]
Flushed 0 logs
damlc: user error (Stdout of scenario service terminated before we got the PORT=<port> message)
[Info - 8:20:45 PM] Connection to server got closed. Server will restart.
2022-03-10 18:20:45.72 [DEBUG] [LanguageServer ScenarioService]
Starting scenario service...
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/daml/grpc/adapter/ExecutionSequencerFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass1(Native Method)
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
SCENARIO SERVICE STDERR: at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
2022-03-10 18:20:49.14 [ERROR] [LanguageServer ScenarioService]
2022-03-10 18:20:49.17 [INFO] [LanguageServer]
Flushed 0 logs
damlc: user error (Stdout of scenario service terminated before we got the PORT=<port> message)
[Error - 8:20:49 PM] Connection to server got closed. Server will not be restarted.
I tried re-installing the extension but it didnt help…
I see that i’m running Java 8. I’ll upgrade to 11 and update.
Do you know why the release page state for Oracle and Postgre DB’s local installations? I didn’t have such in 1.18.1 and i’m pretty sure DA wont expect developers to install such for using the SDK
Ok, issue solved after java was upgraded to 11
Thanks @cocreature
@liav The DB requirements are for production usage. When you use the DBs as backing store for your participant node.