Gremilin Console + Neo4j 3.3.0 CE - neo4j

I need to connect with gremlin to my Neo4j 3.3.0 CE instance.
On my gremlin console I had executed this command:
gremlin> :install org.apache.tinkerpop neo4j-gremlin 3.3.0
to install the necessary plugin.
Trying to open the graphdb with this:
gremlin> graph = Neo4jGraph.open("/home/user/neo4j-community-3.3.0/data/databases/graph.db")
I have this error:
Caused by: org.neo4j.kernel.impl.storemigration.UpgradeNotAllowedByConfigurationException: Failed to start Neo4j with an older data store version. To enable automatic upgrade, please set configuration parameter "allow_store_upgrade=true"
at org.neo4j.kernel.impl.storemigration.ConfigMapUpgradeConfiguration.checkConfigurationAllowsAutomaticUpgrade(ConfigMapUpgradeConfiguration.java:39)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:135)
at org.neo4j.kernel.NeoStoreDataSource.upgradeStore(NeoStoreDataSource.java:636)
at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:527)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
I have Neo4J 3.3.0 and I install the 3.3.0 neo4j-gremlin plugin. Wich version of the plugin I must install to connect to my 3.3.0 neo4j instance?
I must upgrade the store?
Thanks

The last released version of the tinkerpop (3.3.0) support is for Neo4j 3.2.3, so it won't work with a newer store. (The version numbers can be misleading)
You can try to build the 3.3 branch of https://github.com/neo4j-contrib/neo4j-tinkerpop-api-impl/tree/3.3 locally and use that resulting jar.

Related

How to connect to neo4j on remote server using cytoscape neo4j plugin

I installed cytoscape 3.8.2 and Cytoscape Neo4j Plugin (http://apps.cytoscape.org/apps/cytoscapeneo4jplugin). I've generated a small neo4j graph, which is situated on a remote server.
When trying to connect to neo4j using the plugin I get following error: "Cannot connect to neo4j"
What am I doing wrong? Is it not possible to connect to neo4j when the instance is situated on a remote server?
It certainly should work, but since Neo4J uses it's own port, which isn't opened by default on most hosts, you may need to tweak your server firewall.
-- scooter

Spring security not working with Grails project on JBoss Application Server

I have a big(multiple custom plugin based) Grails project, which runs perfectly fine on Tomcat server.
Now for a new customer we need to deploy it on JBoss Application server. It seems to deploy fine without any error but when I try to login on the first page which is implemented using Spring Security plugin. It does not log me in. I have tried going to a valid URL to check if its a problem of redirecting but it is not the case.
Please note it is not showing any error on the log. And since it is not properly executable in development environment so each time I need to build a WAR file to test it.
Grails version: 2.4.4
Spring security version: ':spring-security-core:2.0-RC4'
JBoss version: wildfly-9.0.2.Final
I tried some setups, and they all worked as a simple new project.
I used grails 2.4.4 and spring-security 2.0-RC4.
Here are a few things you could try:
Use latest spring-security version 2.0.0
compile "org.grails.plugins:spring-security-core:2.0.0"
Add jboss plugin and generate deployment xmls (this is needed for grails 2.5.4)
build ':jbossas:1.0'
$grails generate-boss-deploy 6
Create a brand new Wildfly install and deploy your app.
I can only think about a infrastructure problem, since I got no problem with the same setup. I running on Mac, with java 8 and Wildfly 9.0.2 final. Tested grails 2.4.4 and 2.5.4, spring security 2.0-RC4 and 2.0.0.
Best,
Eder

Neo4j: Issue updating from 2.0.1 to 2.1.1

Right after updating Neo4j from 2.0.1 to 2.1.1, I got this error:
Starting Neo4j Server failed: Startup failed due to preflight task
[class org.neo4j.server.preflight.PerformUpgradeIfNecessary]: Unable
to upgrade database
(Windows Vista x64)
While store upgrades are not required for the 2.1 update, it may help if you make the following configuration changes.
In the neo4j.properties configuration file, uncomment the second line below.
# Enable this to be able to upgrade a store from an older version
#allow_store_upgrade=true
Make sure you backup your database folder before proceeding to restart the database.

Riak for Grails Plugin

I am trying to use the Grails Riak plugin but I don't succeed.
Maybe I didn't get it, but I expect that the plugin let's me store my domain objects in a riak database: http://springsource.github.com/grails-data-mapping/riak/manual/guide/3.%20Object%20Mapping.html
But it seems since there is still a datasource defined, Grails just maps the object to the normal SQL database.
What am I doing wrong? How do I get the plugin to work?
Update:
uninstalling the Hibernate plugin seems not to work for Grails 2.0.x. After uninstalling, it seems to be automatically reinstalled.
For Grails 1.3.8, it works, but
grails install-plugin riak
will result in an error while downloading and installing it works:
grails install-plugin grails-riak-1.0.0.M4.zip
I've now configured my riak to listen on port 8091 (http://localhost:8091/buckets?buckets=true) and when I connect through a browser, I get a reply. But my Grails App complains java.net.ConnectException: Connection Refused
Update 2:
It seems that the riak plugin ignores my configuration - if a riak instance is configured for port 9098, the plugin manages to connect and works!
If you install the Riak plugin you have to uninstall the Hibernate plugin. Otherwise it will get confused as to which datastore you actually want to store data in.

Grails deployment error

I've manage to deploy my Grails app on my local pc on Tomcat and database is on MySql server but I cant manage to do it on remote server in the same enviroment.
This is the begining of stacktrace:
java.lang.UnsupportedClassVersionError: org/codehaus/groovy/grails/plugins/springsecurity/SpringSecurityUtils : Unsupported major.minor version 51.0 (unable to load class org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils)
Either use the same JVM version on the server as you are using on your local pc OR use a higher version on the server. Typically, that should solve your problem
You're compiling and running with different JVM versions.
The JDK version on your computer should be the same that is installed on the remote server.

Resources