derby

how can change derby to READ/WRITE mode

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a Derby database that is giving me a read-only error. The database was working fine, up until last week when disk ran out of space: Caused by: java.io.IOException: No space left on device at java.io.RandomAccessFile.writeBytes0(Native Method) at java.io.RandomAccessFile.writeBytes(RandomAccessFile.java:520) at java.io.RandomAccessFile.write(RandomAccessFile.java:550) at org.apache.derby.impl.store.raw.log.LogAccessFile.writeToLog(Unknown Source) at org.apache.derby.impl.store.raw.log.LogAccessFile.flushDirtyBuffers(Unknown Source) ...

Programmatically setting derby.system.home

好久不见. 提交于 2019-12-03 03:34:36
Need to move the database and log files of JavaDB (derby) db files into deployment directories. The database is working in the application startup directory as JavaDB creates a folder with the name of the database (in my case mydb), but I want to move that dir into a subdir called data/ creating data/mydb. I can do this with the connect call: DriverManager.getConnection("jdbc:derby:data/mydb;create=false"); and this works. But I'd like to programmatically explicitly set the value of derby.system.home=data/ derby.stream.error.file=log/derby.log So I can do: DriverManager.getConnection("jdbc

data sources derby - connection refused

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to connect a database with a java project. After reading some tutorials and the course support, I have understood that I need to make a new data source under the Admin Console. So, I've logged in into the admin console, then navigated to Resources -> JDBC -> Data Sources -> New; filled in the fields and when I am testing the connection, the error I get is this one: Messages The test connection operation failed for data source MyDB on server server1 at node RO2CVG6CNode01 with the following exception: java.sql

Derby or MySQL or…?

…衆ロ難τιáo~ 提交于 2019-12-03 01:49:24
For what type of requirements would you choose Apache Derby (or Java DB) over MySQL (or vice versa)? I looked around and people just compare the two but no one talks about when to consider each one. I am developing a web-based application using Glassfish + Java/Restlet + MySQL. I expect around 100-200 users for this system with a load of about 30-50 concurrent users at a given time - mostly. I was told to look at Derby if I wish to make the web-app downloadable/distributable. But is that the only reason why I would use it? Is it suitable for web-apps? Has anyone used it? What has been your

Sequence's current value advances to next 100 upon reconnection in derby

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having an issue with derby sequences with embedded database. When I first connect to the data base it gives me the correct sequence next value with the following statement. VALUES (NEXT VALUE FOR :seqNm) But when restart my desktop application, there by reconnecting to the database, the next value gives me the next hundredth value. It seems like derby uses some caching for preallocating the sequence numbers. e.g. if my sequence starts with 100, First connection to the data base gives me sequences as 100, 101, 102 and so on. Second

Hibernate4 + c3p0 + Derby - Memory Leak on Tomcat stop or web application reload

匿名 (未验证) 提交于 2019-12-03 01:07:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a very simple application template which includes an embedded apache derby database through hibernate. I have the following configuration: org.hibernate.dialect.DerbyTenSevenDialect org.apache.derby.jdbc.EmbeddedDriver thread 10 org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider 1 5 20 300 3000 50 true update false false org.hibernate.cache.NoCacheProvider false false and a the init method for the SessionFactory is: public static void init(String hibernateConfigurationResource,String connectionUrl) { try {

JDBC Derby driver not found

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've followed the JDBC tutorial at: http://docs.oracle.com/javase/tutorial/jdbc/basics/gettingstarted.html , and managed to build and create my own JDBC database without too much fuss. However now when trying to connect to the database from a java application I'm receiving the exception: java.sql.SQLException: No suitable driver found for jdbc:derby: db directory Then when trying to manually specify the JDBC driver using: Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); I get the following exception error: java.lang

Derby on Intellij

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to setup a derby database on IntelliJ IDEA. I have searched a lot for this issue but I could not find a useful answer. Every time I try to connect to the derby database, I get the following error. Can anyone help me fix this issue? java.sql.SQLException: Failed to create database 'C:/Users/Omar/IdeaProjects/untitled3', see the next exception for details. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby

JavaFX + Hibernate(JPA) persistence + Derby DB

梦想的初衷 提交于 2019-12-03 00:49:55
I'm developing a Java desktop application and was really interested in use JavaFX. I'm planning to use an MVC architecture because I have had some experience with Java EE and the MVC model. I want to store data in a embedded derby database and use Hibernate as persistence layer but I can't find a great tutorial about implementing MVC with hibernate and JavaFX. I have created the persistence file but I am not sure how to make it work with JavaFX. In Java EE I inject EJB services or DAOs but since my app is not server connected I think I can't do that. Can someone explain me how to achieve that?

Why Derby does not use property 'currentShema' from my WAS datasource?

人走茶凉 提交于 2019-12-02 17:03:55
问题 I'd like to know why derby does not take into account property 'currentSchema' defined on a given datasource (WAS for current example) ? My problem is quite the same that Nastya have in this post: Omit schema in the DERBY Query But there is no answer to his/her last comment. So, i have an application working on different datasources (same database but one schema per datasource). I thought that Derby would use the property 'currentSchema' defined on a datasource if i tell him to use this