-
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
Server-side functions not working anymore in v3.2.2 #9690
Comments
Same here. |
@Funky89 have you find a way? |
To deactivate GRAAL you have to use :
All functions have changed. So we have to replace the old ones with the new ones that are here For info my old code:
BECOMES :
|
Hi All, The use of the graal runtime for functions should be fixed from 3.2.6, with more improvements in 3.2.14 please upgrade and test again. Bye |
@tglman I am encountering an exception when attempting to use the getDatabase() function in OrientDB Studio with GraalVM enabled. When I execute the script, The following exception I see: However, when I disable GraalVM using the script.polyglot.useGraal = false option, then I don't get any exception. I am using OrientDB version 3.2.14. Is it possible to use server-side functions with GraalVM, and if so, how can I resolve the error I am experiencing when using getDatabase()? Please let me know if you need any other information. |
Hi, the reason for this error is that the method Regards |
@tglman Thank you, server side script works without any issues. |
Ok, so can I close this issue ? |
@tglman The scripts gets executed without any issues. Whereas we are facing issue while accessing the data received the query result - When we execute the command Is there any handling we need to do explicitly to access the data received after running the command? E.g. If we run the following script by disabling the UseGraal setting, we are getting JSON object with the details of record.
Whereas if we run the same script with only change of replacing orient.getDatabase with db variable and enabling the UseGraal setting, we are getting undefined or null result -
Please let me know if you need any additional details. |
Hi @tglman, will you please provide your inputs on above? If you have need any other details then please let me know. |
Hi @praveen-mamdge , So the command seems to return a result set, so you could return it directly or do:
Regards |
Thanks @tglman. There is one observation, now on db object the commit and rollback methods are not available? Ater enabling the graalVM we can see error for db.commit and db.rollback methods. We are getting following error.
|
Hi, this should be already fixed in 3.2.22, closing, feel free to reopen if you still have problems. Regards |
OrientDB Version: 3.2.2
Java Version: JDK8
OS: Debian 10
Hello everyone
Having updated from version 2.2.31 to 3.2.2
I have currently done several functions but this one no longer works on 3.2.2
For example:
I tried by replacing orient.getGraphNoTx() by orient.getDatabase()
Error on parsing script at position #0: Error on execution of the script\nScript: InsertNewLogin\n------^\r\n\tDB name=\"Totoum\"\norg.graalvm.polyglot.PolyglotException: TypeError: invokeMember (getDatabase) on com.orientechnologies.orient.core.command.script.OScriptOrientWrapper@4956c6ae failed due to: Unknown identifier: getDatabase\nTypeError: invokeMember (getDatabase) on com.orientechnologies.orient.core.command.script.OScriptOrientWrapper@4956c6ae failed due to: Unknown identifier: getDatabase"
I tried to put the value in orientdb-server-config.xml
<entry value="false" name="OGlobalConfiguration.SCRIPT_POLYGLOT_USE_GRAAL" />
But in the logs here is what it returns to me:
Ignored storage configuration because not supported: OGlobalConfiguration.SCRIPT_POLYGLOT_USE_GRAAL = null [OClusterBasedStorageConfiguration]
I also read that the problem could come from TinkerPop which has been removed but honestly I am lost in relation to the documentation. I have not found an alternative on the functions that are no longer present
Do you have any information to provide me on the migration from the old functions to the new ones or any other information ?
Best Regards
The text was updated successfully, but these errors were encountered: