OrientGraph graph = factory.getTx();
        List<Object> dataList = new LinkedList();
        graph.command( new OSQLAsynchQuery<OrientVertex>("select from user",
            new OCommandResultListener() {
              int resultCount =0;
              @Override
              public boolean result(Object iRecord) {
                resultCount++;
                  OrientVertex doc = graph.getVertex( iRecord );
               return resultCount < 100;
              }

            @Override
            public void end() {
                //do nothing
            }
            } ).execute());



the error is  

Caused by: java.lang.NullPointerException
    at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.command(ODatabaseDocumentTx.java:654)
    ... 2 more

it caused while trying to parse result as  execute command  for return .... 


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to