Failure on Neo4j Import #740

Closed
9b opened this Issue Feb 7, 2013 · 9 comments

Projects

None yet

8 participants

@9b
9b commented Feb 7, 2013

Gephi 0.8.2, Neo4j 1.8, Java 1.6.0_37

Tested on Mac OS X and Windows XP

I have generated a simple database with 30 some nodes and 60 connections. When I import this into Gephi I see no errors, but instead a blank screen with no graph. I have tailed the logs and have noticed that there is almost always no error in the message log. Sometimes I will see the following, but this error is not helpful:

SEVERE:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
at org.gephi.neo4j.plugin.impl.Neo4jDelegateProviderImpl.getNodeAttributeValue(Neo4jDelegateProviderImpl.java:37)
at org.gephi.data.attributes.AttributeValueImpl.getValue(AttributeValueImpl.java:81)
at org.gephi.data.attributes.AttributeValueImpl.equals(AttributeValueImpl.java:103)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:153)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:141)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:128)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:110)
at org.gephi.neo4j.plugin.impl.GraphModelImportConverter.fillGephiNodeDataWithNeoNodeData(GraphModelImportConverter.java:160)
at org.gephi.neo4j.plugin.impl.GraphModelImportConverter.createGephiNodeFromNeoNode(GraphModelImportConverter.java:135)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.processNode(Neo4jImporterImpl.java:181)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importNodes(Neo4jImporterImpl.java:175)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importGraph(Neo4jImporterImpl.java:153)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.doImport(Neo4jImporterImpl.java:137)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importDatabase(Neo4jImporterImpl.java:131)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importDatabase(Neo4jImporterImpl.java:77)
at org.gephi.desktop.neo4j.Neo4jMenuAction$FullImportMenuAction$1.run(Neo4jMenuAction.java:238)
[catch] at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:251)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

@eduramiba
Gephi member

Hi,
This is the same bug as #707

It was recently fixed. Can you try to update your Gephi 0.8.2 in the update center (Menu Tools - Plugins), and import it again?

@9b
9b commented Feb 10, 2013

Maybe it has not pushed to the update center because it is showing no updates for the plug-in. I removed and reinstalled, but it was still on the same version and there is still no graph loading on import.

@eduramiba
Gephi member

Oh I see. It should have been pushed by now.
I will email you the update file.

@mgokhanbakal

I have the same error. My error stack trace is like following: I hope it will be fixed as soon as possible.
Note: The version of application is Gephi 0.8.2 and the plug-in is updated.

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
at org.gephi.neo4j.plugin.impl.Neo4jDelegateProviderImpl.getNodeAttributeValue(Neo4jDelegateProviderImpl.java:37)
at org.gephi.data.attributes.AttributeValueImpl.getValue(AttributeValueImpl.java:81)
at org.gephi.data.attributes.AttributeValueImpl.equals(AttributeValueImpl.java:103)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:153)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:141)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:128)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:110)
at org.gephi.neo4j.plugin.impl.GraphModelImportConverter.fillGephiNodeDataWithNeoNodeData(GraphModelImportConverter.java:160)
at org.gephi.neo4j.plugin.impl.GraphModelImportConverter.createGephiNodeFromNeoNode(GraphModelImportConverter.java:135)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.processNode(Neo4jImporterImpl.java:181)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importNodes(Neo4jImporterImpl.java:175)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importGraph(Neo4jImporterImpl.java:153)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.doImport(Neo4jImporterImpl.java:137)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importDatabase(Neo4jImporterImpl.java:131)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importDatabase(Neo4jImporterImpl.java:77)
at org.gephi.desktop.neo4j.Neo4jMenuAction$FullImportMenuAction$1.run(Neo4jMenuAction.java:238)
[catch] at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:251)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

@lamoros

I have the same error... I hope a fixed solution soon.

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
at org.gephi.neo4j.plugin.impl.Neo4jDelegateProviderImpl.getNodeAttributeValue(Neo4jDelegateProviderImpl.java:37)
at org.gephi.data.attributes.AttributeValueImpl.getValue(AttributeValueImpl.java:81)
at org.gephi.data.attributes.AttributeValueImpl.equals(AttributeValueImpl.java:103)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:153)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:141)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:128)
at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:110)
at org.gephi.neo4j.plugin.impl.GraphModelImportConverter.fillGephiNodeDataWithNeoNodeData(GraphModelImportConverter.java:160)
at org.gephi.neo4j.plugin.impl.GraphModelImportConverter.createGephiNodeFromNeoNode(GraphModelImportConverter.java:135)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.processNode(Neo4jImporterImpl.java:181)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importNodes(Neo4jImporterImpl.java:175)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importGraph(Neo4jImporterImpl.java:153)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.doImport(Neo4jImporterImpl.java:137)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importDatabase(Neo4jImporterImpl.java:131)
at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importDatabase(Neo4jImporterImpl.java:77)
at org.gephi.desktop.neo4j.Neo4jMenuAction$FullImportMenuAction$1.run(Neo4jMenuAction.java:238)
[catch] at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:251)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

@christopherhelf

is there any update on this issue? I have the same error and it doesn't seem that any update has been pushed so far.

@eduramiba
Gephi member

Sorry, the update is ready but not pushed yet.
You can install it manually with this file https://dl.dropbox.com/u/916968/Gephi/attributes-0.8.2.nbm
This is done in menu Tools - Plugins - Downloaded

@datariot

Thanks for the link @eduramiba, works now!

@occasl

Works now...thanks! Closed referenced ticket.

@sheymann sheymann closed this Apr 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment