What version of Neo are you running?
And how does OSGI play with singletons? Think you should use the
rc1-SNAPSHOT where we got rid of all the singletons.
-Johan
On Fri, May 30, 2008 at 12:09 PM, Peter Neubauer
<[EMAIL PROTECTED]> wrote:
> Hi folks,
> trying to use the ls command in Newton, I get
>> neo4j-ls 0
> got id: 0
> Exception in thread "Console cmd: neo4j-ls/0"
> java.lang.IllegalArgumentException: XaResourceManager is null
> at
> org.neo4j.impl.transaction.xaframework.XaConnectionHelpImpl.<init>(XaConnectionHelpImpl.java:65)
> at
> org.neo4j.impl.nioneo.xa.NeoStoreXaConnection.<init>(NeoStoreXaConnection.java:62)
> at
> org.neo4j.impl.nioneo.xa.NeoStoreXaDataSource.getXaConnection(NeoStoreXaDataSource.java:243)
> at
> org.neo4j.impl.nioneo.xa.NioNeoDbPersistenceSource$NioNeoDbResourceConnection.<init>(NioNeoDbPersistenceSource.java:121)
> at
> org.neo4j.impl.nioneo.xa.NioNeoDbPersistenceSource.createResourceConnection(NioNeoDbPersistenceSource.java:106)
> at
> org.neo4j.impl.persistence.ResourceBroker.acquireResourceConnection(ResourceBroker.java:104)
> at
> org.neo4j.impl.persistence.PersistenceManager.getResource(PersistenceManager.java:111)
> at
> org.neo4j.impl.persistence.PersistenceManager.loadLightNode(PersistenceManager.java:45)
> at org.neo4j.impl.core.NodeManager.getNodeById(NodeManager.java:240)
> at org.neo4j.api.core.EmbeddedNeo.getNodeById(EmbeddedNeo.java:113)
> at
> org.neo4j.newton.shellcommands.internal.LsCommand.handle(LsCommand.java:39)
> at
> org.cauldron.newton.command.knopflerfish.CommandGroupAdapter.execute(CommandGroupAdapter.java:111)
> at org.knopflerfish.bundle.console.Command$2.run(Command.java:233)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.knopflerfish.bundle.console.Command.run(Command.java:220)
> at java.lang.Thread.run(Thread.java:613)
>
> Using the code for the command:
> public void handle(CommandRequest request, CommandResponse response)
> throws CommandException {
> PrintWriter out = getOut(response);
> System.out.println("got id: " + request.getArgs()[0]);
> StringTokenizer tokens = new
> StringTokenizer(request.getArgs()[0].toString(), " ");
> String id = tokens.nextToken();
> Transaction tx = Transaction.begin();
> Node localnode = neo.getNodeById(Long.parseLong(id));
>
> ......
>
> Any hints on why the XaResourcemanager is null? Neo is initiated it
> seems, the store is there and the service availabe ...
> The NeoService instance is retrieved from another bundle that only
> exports org.neo4j.core.api. That should be sufficient to expose the
> basic operations, and there is no CNFE.
>
> /peter
>
> --
>
> GTalk: neubauer.peter
> Skype peter.neubauer
> ICQ 18762544
> GTalk neubauer.peter
> Phone +46704 106975
> LinkedIn http://www.linkedin.com/in/neubauer
>
> http://www.neo4j.org - New Energy for Data - the Graph Database.
> http://www.ops4j.org - New Energy for OSS Communities - Open
> Participation Software.
> http://www.qi4j.org - New Energy for Java - Domain Driven Development.
> _______________________________________________
> Neo mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user