Exactly..very strange..the execution of factory.setupPool (1,10) causes the skip of the *_hrgGraph = factory.getTx(); *instruction and also of the followers, and leads to the finally branch of the try..catch block.
I also try to remove the setupPool invocation, but, in the same way, the execution of *_hrgGraph = factory.getTx(); *leads to the finally branch of the try..catch block without exception... It seem that the use of factory object cause this strange behavior... Thanks Alessandro On Mon, Feb 17, 2014 at 5:09 PM, Luca Garulli <[email protected]> wrote: > Hi Alessandro, > I don't understand the problem. You wrote: "because the factory.setupPool > (1,10) statement causes the skip of the next instructions without generate > exception". So the line: > > > *_hrgGraph = factory.getTx();* > > is skipped without an exception? > > Lvc@ > > > On 17 February 2014 17:05, Alessandro Remartini < > [email protected]> wrote: > >> Hi Luca, >> >> the expected result is the creation of an instance of OrientGraph class >> (to manage the graph database HRG). >> >> Thanks >> >> Alessandro >> >> Il giorno lunedì 17 febbraio 2014 16:47:44 UTC+1, Lvc@ ha scritto: >>> >>> Hi, >>> what's the expected result? >>> >>> Lvc@ >>> >>> >>> >>> On 17 February 2014 16:45, Alessandro Remartini <[email protected] >>> > wrote: >>> >>>> Dear all, >>>> >>>> I have included new 1.7-rc1 libraries in my Netbeans web project (I >>>> used 1.6 version) and I have introduced the use of OrientGraphFactory in >>>> the new package orientdb-graphdb-1.7-rc1.jar. The libraries included in my >>>> project are: >>>> >>>> javassist-3.16.1-GA.jar >>>> orient-commons-1.7-rc1.jar >>>> orientdb-core-1.7-rc1.jar >>>> orientdb-client-1.7-rc1.jar >>>> orientdb-enterprise-1.7-rc1.jar >>>> blueprints-core-2.5.0-20140129.150537-29.jar >>>> orientdb-graphdb-1.7-rc1.jar >>>> >>>> and the new code snippet to instantiate the OrientGraph is become: >>>> >>>> >>>> * try{* >>>> >>>> *OrientGraphFactory factory; * >>>> >>>> >>>> >>>> >>>> *factory = new >>>> OrientGraphFactory("remote:localhost/HRG","admin","admin");factory.setupPool(1, >>>> 10);_hrgGraph = factory.getTx();factory.close();* >>>> >>>> *}catch ( Exception e){ * >>>> >>>> *return false;* >>>> *}* >>>> >>>> There is a strange behavior, because the factory.setupPool (1,10) >>>> statement causes the skip of the next instructions without generate >>>> exception. >>>> >>>> Please, anyone can help me? >>>> >>>> Thanks for your help >>>> >>>> Regards >>>> >>>> Alessandro >>>> >>>> >>>> -- >>>> >>>> --- >>>> 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/groups/opt_out. >>>> >>> >>> -- >> >> --- >> 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/groups/opt_out. >> > > -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "OrientDB" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/orient-database/JYcM6mHxbFE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- --- 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/groups/opt_out.
