title: Problem writting data into opened connection with mysql workbench database
body: <p>Using netbeans, problem occurs when writtinig data into JFrame fields and clicking submit button java pops up window with message:  &quot;java.lang.ClassCastException:class.com.mysql.cj.jdbc.Connectionlmpl cannot be cast to class com.sun.jdi.connect.spi.Connection (com.mysql.jdbc.Connectionlmpl is in unnamed module of loader'app',com.sun.jdi.content.spi.Connection is in module jdk.jdi of loader 'app').
  Mysql-connector-java-8.0.28.jar is added in project libraries.</p>