-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with starting embedded server #8285
Comments
I just tested with OrientDB 3.0.1 - issue still there.
|
Hi @hrstoyanov, Are you giving a custom path for the "server.database.path" or are you using a custom storage path ? probably would be easier if you can share the orientdb-server-config.xml that you are using. Another issue could be in the path management, could you try to replace Regards |
Hi @tglman. Indeed, I am using <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
<handlers>
<handler class="com.orientechnologies.orient.server.handler.OServerSideScriptInterpreter">
<parameters>
<parameter value="true" name="enabled"/>
<parameter value="SQL" name="allowedLanguages"/>
</parameters>
</handler>
</handlers>
<network>
<protocols>
<protocol
implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary"
name="binary"/>
</protocols>
<listeners>
<listener protocol="binary" socket="default" port-range="3424-3430" ip-address="0.0.0.0"/>
</listeners>
</network>
<users>
<user resources="*" password="admin" name="admin"/>
</users>
<properties>
<entry value="../../../../../../my.db" name="server.database.path"/>
<entry value="1" name="db.pool.min"/>
<entry value="50" name="db.pool.max"/>
<entry value="true" name="profiler.enabled"/>
<entry value="info" name="log.console.level"/>
<entry value="info" name="log.file.level"/>
</properties>
<isAfterFirstTime>true</isAfterFirstTime> |
@tglman @Laa
Looked at the debug watches I marked in the screenshot debug window. Does this look normal? This might be a clue as to what is wrong. I also traced in the debugger that the storage path picked from the XML server config file is correct. |
@hrstoyanov Thank you for reporting this issue and on detailed explanation. Fix will be part of 3.0.2 version, also it is already merged into development branch |
OrientDB Version: 3.0.0
Java Version: 1.8_172
OS: Windows 7 64-bit
I am trying to start an Embedded server (over a database that I have previously created with
console.bat
) with his piece of code:Expected behavior
I expected the server to start with no issues.
Actual behavior
Instead, this call
embeddedServer.activate();
bombs with the below exception - why is the server trying to create db system files when the database already exists? Also, looking at the database folder, I do see a lot of files, but not OSystem ?When I comment out
//embeddedServer.activate();
(although the ODB documentation clearly shows it is needed for embedded server) I get another exception:Do you guys inspect the codebase with something like FindBugs - such NPEs are pretty easy to catch?
Steps to reproduce
The text was updated successfully, but these errors were encountered: