Re: [Neo4j] neoclipse ubuntu 10.04 problem

2011-03-19 Thread Peter Neubauer
Matej,
Are you sure your database is shut down properly from your java code
before opening it with Neoclipse ?

Try to just open and close it and make sure there are no exceptions.


HTH

/peter

On Saturday, March 19, 2011, Matěj Plch plchm...@fit.cvut.cz wrote:
 Hi,
 I'm running Ubuntu 10.04 (2.6.32-30) 32bit and have problem with
 neoclipse. I downloaded neoclipse. I wanted to open some db made from
 Java application, but I got some errors. So I set path to new db and
 clicked to connect/start database. And got:
 ./neoclipse
 19.3.2011 2:02:27 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
 INFO: Starting GraphDbServiceManager
 19.3.2011 2:02:41 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
 INFO: trying to start/connect ...
 19.3.2011 2:02:41 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
 INFO: connected to embedded neo4j
 java.util.concurrent.ExecutionException:
 java.lang.IllegalStateException: Can't start new database: the old one
 isn't shutdown properly.

 In the info window:
 java.lang.IllegalStateException: Can't start new database: the old one
 isn't shutdown properly.: Can't start new database: the old one isn't
 shutdown properly.

 There are no errors in messages.log. The db was created.

 How can I get rid of this problem?

 Running neo4j and also neoclipse version 1.2.

 $ java -version
 java version 1.6.0_24
 Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
 Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

 Best regards
 Matěj Plch.

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] neoclipse ubuntu 10.04 problem

2011-03-19 Thread Matěj Plch
Sure,
ok when Im working with db created with Java API, just call:

private static void getNode() {
  int ticketId1 = 1;

  GraphDatabaseService graphDb = new 
EmbeddedGraphDatabase(var1/graphdb);
  Transaction tx = graphDb.beginTx();
  try {
Node node = graphDb.getNodeById(ticketId1);
int id = Integer.parseInt(node.getProperty(id).toString());
System.out.println(node1 id:  + id);
  } finally {
tx.finish();
graphDb.shutdown();
  }
}

Get right result...

Wanted to open it with neoclipse, get that error. Wanted to open it with 
Gephi with neo4j support get error with version of neo4j library problem 
(tried with 1.03.M4 and the same error)...

But it I get error with also when I'm creating absilutelz new database 
from Neoclipse... There can be only one neo4j db instance in system? How 
can I see, if its open or not? Netstat, ps aux?
Thank you for your support...

Dne 19.3.2011 09:15, Peter Neubauer napsal(a):
 Matej,
 Are you sure your database is shut down properly from your java code
 before opening it with Neoclipse ?

 Try to just open and close it and make sure there are no exceptions.


 HTH

 /peter

 On Saturday, March 19, 2011, Matěj Plchplchm...@fit.cvut.cz  wrote:
 Hi,
 I'm running Ubuntu 10.04 (2.6.32-30) 32bit and have problem with
 neoclipse. I downloaded neoclipse. I wanted to open some db made from
 Java application, but I got some errors. So I set path to new db and
 clicked to connect/start database. And got:
 ./neoclipse
 19.3.2011 2:02:27 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
 INFO: Starting GraphDbServiceManager
 19.3.2011 2:02:41 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
 INFO: trying to start/connect ...
 19.3.2011 2:02:41 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
 INFO: connected to embedded neo4j
 java.util.concurrent.ExecutionException:
 java.lang.IllegalStateException: Can't start new database: the old one
 isn't shutdown properly.

 In the info window:
 java.lang.IllegalStateException: Can't start new database: the old one
 isn't shutdown properly.: Can't start new database: the old one isn't
 shutdown properly.

 There are no errors in messages.log. The db was created.

 How can I get rid of this problem?

 Running neo4j and also neoclipse version 1.2.

 $ java -version
 java version 1.6.0_24
 Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
 Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

 Best regards
 Matěj Plch.

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] neoclipse ubuntu 10.04 problem

2011-03-18 Thread Matěj Plch
Hi,
I'm running Ubuntu 10.04 (2.6.32-30) 32bit and have problem with
neoclipse. I downloaded neoclipse. I wanted to open some db made from
Java application, but I got some errors. So I set path to new db and
clicked to connect/start database. And got:
./neoclipse
19.3.2011 2:02:27 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
INFO: Starting GraphDbServiceManager
19.3.2011 2:02:41 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
INFO: trying to start/connect ...
19.3.2011 2:02:41 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
INFO: connected to embedded neo4j
java.util.concurrent.ExecutionException:
java.lang.IllegalStateException: Can't start new database: the old one
isn't shutdown properly.

In the info window:
java.lang.IllegalStateException: Can't start new database: the old one
isn't shutdown properly.: Can't start new database: the old one isn't
shutdown properly.

There are no errors in messages.log. The db was created.

How can I get rid of this problem?

Running neo4j and also neoclipse version 1.2.

$ java -version
java version 1.6.0_24
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

Best regards
Matěj Plch.

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user