ObjectDB Database Search

51-100 of 200 results

Attempt to store an instance of a non persistable type java.net.URL

Link(String name, String $ url ) //throws MalformedURLException { this.name = name; try { url = new URL ($ url ); } catch (MalformedURLException ex) { log_error(ex); } }     private URL url ; public URL getUrl() { return url ; } public void setUrl( URL url ) { this. url = url ; } I

Server connection management

The server does not appear to release broken connections . My typical development pattern ... logs: [odb:server:fatal] com.objectdb.o.UserException: Too many open connections (100) at com.objectdb ... setting that would tell the server to close connections after a period of inactivity. Also, how does

Exceeding max connections and crashing

down and database lost connection with the JBOSS AS, several restarts got it up and running finally.  It seems when the database loses network connection it shutdowns but we cant be sure. Usualy database stops once a day with no apperent reason. Second cause we suspect is the number of network connections

Running ObjectDB on a node that does not have internet connectivity

Upon initializing our ObjectDB database on a node that does not have a connection to the outside ... .UnknownHostException: java.sun.com at java.net.PlainSocketImpl. connect (Unknown Source) at java.net.SocksSocketImpl. connect (Unknown Source) at java.net.Socket. connect (Unknown Source) at java.net.Socket. connect

Connection is closed Caused by: java.io.EOFException

after an undetermined period. Caused by: com.objectdb.o.UserException: Connection is closed at com ... out of connections ? Or is there something obvious that I am not seeing? I am using objectdb-2.2.6_03   ... what is written there... com.objectdb.o.UserException: Too many open connections (100) at com.objectdb.o

Connections pool

Hi! Does ObjectDB keeps and reuses a pool of connections as MySQL JDBC driver does? I mean ... . Every EntityManagerFactory instance manages a pool of connections and reuses them when it creates new EntityManager instances. By default the maximum connection pool size is 50. You can change it in

Connection is closed (error 526)

. Exception in thread "main" [ObjectDB 2.2.7_08] javax.persistence.PersistenceException Connection is closed ... .java:308) Caused by: com.objectdb.o.UserException: Connection is closed at com.objectdb.o.MSG.d(MSG ... .PersistenceException Connection is closed (error 526) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery

Many connections possible? and will it makes problem in future?

My questions is about : 1-) Can objectdb server handle 200.000+ connections at the same time concurrently ? Does it have queue and cache ? 2-) is it dangerous to use that system on many online users ... connections , but they are limited by practical factors such as thread numbers (depending on your operating

connect with server

how to connect the data base on a remote server and share odbc in object db eng.ahmed ahmed how to publish the JPA database on  server and make client in the network can share the data base i want to know the right connection string. i used "Map properties = new HashMap ();   properties

unable to connect to remote server using VPN

I am trying to connect to remote server using VPN using user1 However, the server terminated the connection and  emitted below in the server log.  --------------------- [2018-04-14 13:13:33 #2 server] java.lang.ClassCastException: java.base/[Ljava.lang.Object; cannot be cast to [[B  

Retrieving Metamodel without connection

Hello! I use Spring Data JPA. It uses the Metamodel to create repository beans. This triggers a connection to the ObjectDB server. It happens on every start of the Context. If it fails ... until i restart tomcat. Other JPA providers are able to fetch the Metamodel without connecting to the DB

ObjectDB Server Connection Permissions

It would be useful if instead of creating a web service layer on top of a database, I could just set up permissions to entities and entity variables for client connections . This would be beneficial when providing specific raw data where additional business logic is not required. I suppose

Cannot connect with client

Hello I am unable to connect to my remote DB due to this error.  What is the meaning, and how to solve it?  Please see attached. Trianglehead Json Error Make sure that the same ObjectDB version is used on both the server side and the client side. support Support I'm pretty sure

Number of current connections

Is there any way to find out the number of current connections to the DB server? natmaclin Natalia Levine Currently not. You may subscribe to this feature request and update it according to your needs. support Support

explorer fails to connect to embedded server

since a while it is not more possible to connect to our running application with the explorer as we did it before. The error message as shown in the picture appears hgzpincher Hans-Georg Zwicker Usually this error indicates using an Explorer version that is not compatible with the ObjectDB version

Safe to monitor listening port by connect/disconnect?

I wish to monitor our instances of ObjectDB using an automated tool that simply connects and then disconnects from the ObjectDB listening port once per second (frequency is configurable).  Will this cause any issue with the normal operation of ObjectDB? CAPdev CAP Dev It should be fine.  support Support

Connection performace after upgrade to objectdb 2

Connection performace after upgrade to objectdb 2

Invalid/Missing licence when connecting, however correct licence is definitely present

Invalid/Missing licence when connecting, however correct licence is definitely present

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

: 5000 Average X: 499.5 7.) Also, if I start both servers, and change the URL to connect ... described. Switching urls works only when the initial connection is to the master server ... ; which generates the following exception below. What am I doing wrong? It appears the connection manager fails

How to change properties in urls2.xml?

. ( Tomcat says " Connection refused" ) Thanks, Xirt xirt Sylvain You may  disable the url history ... PersistenceManager. Today, copying urls located in urls2.xml allow me to connect to my databases. Unfortunatly ... ... ( when i am watching urls2.xml file ) I am just asking how to have "static" url connection string. Xirt

Failover from Master to Slave

to the replicated database by changing connection url , i.e. by connecting to the replicated database using its own url . In that case, the new connection is an ordinary connection that is not limited to read ... to the replicated database url , switching the master and slave roles (in order to replicate changes in

Eclipse plugin problem (using ObjectDB as a separate bundle)

.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at com.epimss.lab.db. Connection .store( Connection ... ;  new Connection ( ISharedPreference.DB_OBJECTDB, "admin", "admin" ).store ... Please check the update urls and write them here (copy & paste from png doesn't work). I tried the first

Difficulty with the BIRT plugin

Hi, am trying to get the BIRT plugin to work. Firstly: connecting to an odb server doesn't ... is using. Next: connecting directly to a file datasource seems to work, in the sense that I can ping ... url is not accurate and a new empty database (without the type) is created and used. support Support

Master database switching to read-only mode, possibly caused by slave failure

] javax.persistence.PersistenceException Connection is closed (error 526) at com.objectdb.jpa.EMImpl ... ) .............................................................. Caused by: com.objectdb.o.UserException: Connection is closed at com ... ? In that case, if you use a combined master/slave url requests to the master all the requests

How force always recreate database on redeployment.

: Connection URL Parameters To obtain a connection to an empty database (discarding existing content if any ... getting it to work. My connection URL in persistence.xml is: I run the server from /usr/local ... You should be able to drop the entire database if its file is not locked by Glassfish. See the connection

javax.persistence.PersistenceException Attempt to store an instance of a non persistable type java.net.URL

(String name, String $ url ) //throws MalformedURLException     {      ... ;          url = new URL ($ url );      ... ;     log_error(ex);         }     } private URL

Login Error (bad username 'admin' or password)

addition, you should remove blanks from the connection url . support Support Thank you for qiuck response ... .conf on client as one on server. Also, i tried with removing blanks from the connection url ... I am getting following error when i am trying to connect to server: [com.objectdb.o

Replicated cluster recovery

/support/151   hare is the connection url : javax.jdo.option.ConnectionURL=objectdb://localhost ... they are bound to one node and after connection problem application must create new PM via PMF?   br Tomasz ... to another node or they are bound to one node and after connection problem application must create new PM

Changing from client server to embedded mode

to move between the two modes. Your last connection url ( "$objectdb/db/myDB.odb" ) is valid in embedded mode ... an absolute path to that file as a connection url . support Support ... ;    //Gives Failed to connect to server localhost:6136 When I use Persistence

Externalising persistence.xml properties in Glassfish?

the URL for the database. You see I'm trying to create a 'server' and be able to have the datasource 'javax.persistence.jdbc. url ' be supplied by the server. Currently, I'm doing all sorts of tricks ... with the url and another one with the creadentials. If i recall correctly the application should be able

run several embedded systems on one server, problem with double used port

specify a port as part of the connection url . This stack trace should not be generated if the configuration file includes the above line and no port is specified as part of the connection url (with the port= parameter). support Support ... that case you should be able to specify a port to be used when you open a database in the url /path

Cannot save or update entity on Spring App

@Component @Transactional public class LanguageRepository { // Injected database connection ... _NAME_JDBC_ URL , environment.getRequiredProperty("objectdb. url ")); map.put(PROPERTY_NAME_JDBC_USER ... { // Injected database connection : @PersistenceUnit(unitName="pu") EntityManagerFactory

ObjectDB within a resource adapter module and Java EE Connector Architecture

database file name. Under http://www.objectdb.com/java/jpa/start/ connection it is explained ... (which can also be an ObjectDB database url ) in the unitName parameter of @PersistenceContext ... the way that ObjectDB interprets urls as implicit persistence units, and support some syntax

best practice for DB recovery

and have a number of applications connecting to it. I realize that I'm able to stand up read only replications ... a dual url , but by using only the master url and when it fails switching to the slave url by your DAO

ClassRef jakarta.persistence.PersistenceConfiguration

. If PersistenceUnitTransactionType.RESOURCE_LOCAL , database connection properties may be specified via () , or a non-JTA datasource ... . Since: JPA 3.2 JDBC_PASSWORD Password for JDBC authentication. Since: JPA 3.2 JDBC_ URL JDBC URL

InterfaceRef jakarta.persistence.spi.PersistenceUnitInfo

that the provider may use to load any classes, resources, or open URLs . Return: ClassLoader that the provider may use to load any classes, resources, or open URLs Since: JPA 1.0 List getJarFileUrls () Returns a list of URLs for the jar files or exploded jar file directories that the persistence provider

Close() Method of EMF throwing "PersistenceException: Connection is closed" on first attempt to close.

._PersistenceException: Connection is closed due to UserException: Connection is closed com.objectdb.o ... and just writing the condition to a log file, because if the database connection is closed, further attempts to close it are not necessary. support Support

Retrieving Metamodel without Connection

a connection to the ObjectDB server. It happens on every start of the Context. If it fails ... restart tomcat. Other JPA providers are able to fetch the Metamodel without connecting to the DB. I ... getMetmodel works. If invoked before first connection to the server - the persistence unit model is analyzed locally on the client side. support Support

Can not connect to replication node

Hi, I tried to connect the database server using uri.. However the program emits error saying that no such Provider.. The code is below: var uri = "objectdb://10.11.12.3:6136/asli-webmapper/accesslog.odb;user=asli-webmapper;password=admin1"; var emf = Persistence.createEntityManagerFactory(uri

PersistenceUnitInfo.getPersistenceUnitRootUrl() - JPA Method

JPA Method in jakarta.persistence.spi.PersistenceUnitInfo URL getPersistenceUnitRootUrl () Returns the URL for the jar file or directory that is the root of the persistence unit. (If the persistence unit is rooted in the WEB-INF/classes directory, this is the URL of that directory.) The URL

InterfaceRef jakarta.persistence.EntityManager

EntityManagerFactory Since: JPA 1.0 The Database Connection using JPA article explains how to use EntityManager ... and return its result using the database connection underlying this EntityManager . Usually, the connection is a JDBC connection , but a provider might support some other native connection type

PersistenceUnitInfo.getJarFileUrls() - JPA Method

of URLs for the jar files or exploded jar file directories that the persistence provider must examine for managed classes of the persistence unit. Each URL corresponds to a jar-file element in the persistence.xml file. A URL will either be a file: URL referring to a jar file or referring

InterfaceRef jakarta.persistence.ConnectionConsumer

JPA Interface ConnectionConsumer Type Parameters: - the connection type, usually {@code java.sql. Connection } An executable action which makes use of a native database connection . The connection is usually a JDBC connection . See Also: ConnectionFunction EntityManager.runWithConnection Since: JPA 3

InterfaceRef jakarta.persistence.ConnectionFunction

JPA Interface ConnectionFunction Type Parameters: - the connection type, usually {@code java.sql. Connection } A function which makes use of a native database connection to compute a result. The connection is usually a JDBC connection . See Also: ConnectionConsumer EntityManager.callWithConnection

EntityManager.runWithConnection(action) - JPA Method

; ConnectionConsumer  action ) Execute the given action using the database connection underlying this EntityManager . Usually, the connection is a JDBC connection , but a provider might support some other native connection type, and is not required to support java.sql. Connection . If this EntityManager

EntityManager.callWithConnection(function) - JPA Method

; ConnectionFunction  function ) Call the given function and return its result using the database connection underlying this EntityManager . Usually, the connection is a JDBC connection , but a provider might support some other native connection type, and is not required to support java.sql. Connection

PersistenceUnitInfo.getClassLoader() - JPA Method

JPA Method in jakarta.persistence.spi.PersistenceUnitInfo ClassLoader getClassLoader () Returns ClassLoader that the provider may use to load any classes, resources, or open URLs . Return: ClassLoader that the provider may use to load any classes, resources, or open URLs Since: JPA 1.0

Automatic Switch to Replicated Server Limitations

ObjectDB supports master-slave replication, with the ability to switch connections automatically to another server when a server goes down, by specifying a composite url . Currently this feature has the following limitations: The first server in the composite url has to be available

Query fails with failed to read

the explorer in client/server mode connecting to the database via our core module (which is using ... ObjectDB from explorer with the C/S connection on port 3333 hgzwicker Hans-Georg Zwicker Connection url objectdb://localhost:3333/? Another question, do you use the Explorer only to view data or

PersistenceUnitInfo.getNewTempClassLoader() - JPA Method

JPA Method in jakarta.persistence.spi.PersistenceUnitInfo ClassLoader getNewTempClassLoader () Return a new instance of a ClassLoader that the provider may use to temporarily load any classes, resources, or open URLs . The scope and classpath of this loader is exactly the same as that of the loader