I have a application for search the person on database and if not find, insert.
The Java Version is 8.45
the application don't have error, But When will insert happen the error :
class net.ucanaccess.jdbc.UcanaccessSQLException
File marked as read only . Notice que only one process ( one VM ) is team can access in writing mode .
net.ucanaccess.jdbc.UcanaccessPreparedStatement.execute ( UcanaccessPreparedStatement.java:235 )
anyone can help me ?
PS: Sorry my english horrible :)
I Try execute the same application on MAC OSX and i have the same error.
Last edit: Caio César Silva 2015-04-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately not: jackcess and, as consequence, ucanaccess do support this format in read-only. A conversion to a more updated version(even 2000 works fine) may solve your issue.
Last edit: Marco Amadei 2015-04-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For the benefit of the next person who stumbles upon this problem, would it be possible for you to change the wording of that error message to be more helpful than saying that the file is "read only"? The OS says it is not read only, so the error message leads to a lot of tail chasing (spoken by one who has severely bitten his tail on this very problem). E.g., it could say something about Access97 files not being writeable.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a application for search the person on database and if not find, insert.
The Java Version is 8.45
the application don't have error, But When will insert happen the error :
class net.ucanaccess.jdbc.UcanaccessSQLException
File marked as read only . Notice que only one process ( one VM ) is team can access in writing mode .
net.ucanaccess.jdbc.UcanaccessPreparedStatement.execute ( UcanaccessPreparedStatement.java:235 )
anyone can help me ?
PS: Sorry my english horrible :)
I Try execute the same application on MAC OSX and i have the same error.
Last edit: Caio César Silva 2015-04-23
That may happen if you're accessing to a access 97 format, which is supported in read-only.
You can use the following code to check the file format version:
Jet 3.0 (Access 97) :(
Have no way to access the database in this format?
Jet 3.0 (Access 97) :(
Have no way to access the database in this format?
Unfortunately not: jackcess and, as consequence, ucanaccess do support this format in read-only. A conversion to a more updated version(even 2000 works fine) may solve your issue.
Last edit: Marco Amadei 2015-04-24
For the benefit of the next person who stumbles upon this problem, would it be possible for you to change the wording of that error message to be more helpful than saying that the file is "read only"? The OS says it is not read only, so the error message leads to a lot of tail chasing (spoken by one who has severely bitten his tail on this very problem). E.g., it could say something about Access97 files not being writeable.
Thanks.
Yes, this seems to be a common concern. I'll write down a specific message for ACCESS 97.