java - SYSCS_BACKUP_DATABASE and EntityManager/ Backup with JPA -


How to use an EntityManager (also using JPA)?

My recent code is not working properly

  StoredProcedureQuery query = em.createStoredProcedureQuery ( "SYSCS_UTIL.SYSCS_BACKUP_DATABASE") .; Query.registerStoredProcedureParameter (1, java.lang.String.class, parameterMODIN); Query.setParameter (1, "pathToDB backup"); Query.execute (); - 2.5.0.v20130507-3faac2b)  

The error I got the following

  exception [EclipseLink-4002] (Eclipse Persistence Services :. Org .eclipse.persistence.exceptions.DatabaseException internal exception: java.sql.SQLException: Exception can not be cast in 'java.lang.ClassCastException: java.nio.file.NoSuchFileException java.lang.RuntimeException is "evaluating an expression Was thrown. Error code: 20000Calls: call SYSCS_UTIL.SYSCS_BACKUP_DATABASE (?) Bind = & gt; I: Java.nio.file.NoSuchFileException can not be entered in java.lang. On Rentaim Akspesheshn 'was thrown while evaluating an expression org.apache.derby.client.am.SqlException: on org.apache.derby.client.am.SQLExceptionFactory40.getSQLException (Unknown Source) ... because of the exception 'Java.lang.ClassCastException: java.nio File.NoSuchFileException can not be put on java.lang. Rentaim Akspesheshn 'was thrown while evaluating an expression org.apache.derby.client.am.SqlException: Java Exception: on ... because of org.apache.derby.client.am.Statement.completeExecute (Unknown Source ) can not be 'java.nio.file.NoSuchFileException Insert Java.lang.RuntimeException: java.lang.ClassCastException' ...  

Does this work if you specify the full path to the existing directory logic for the process?

NoSuchFileException Point in that direction.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -