Hi Luca,
sorry, I rewrite the message (wrongly formatted):
I have added a system.out in catch branch a s you can see below:
* OrientGraphFactory factory; factory =
new OrientGraphFactory("remote:localhost/HRG", "admin", "admin");*
* factory.setupPool(1, 10);
System.err.println("after pool setup"); _hrgGraph =
factory.getTx(); factory.close(); return true;
} catch (Exception e) { System.err.println(e.*
*getMessage()); return false; } finally {
System.err.println("finally"); }*
but I think that it is not Java the problem.
In fact, I have tried to shut down OrientDB server and running the project
and the exception correctly reported is:
*Cannot connect to any configured remote nodes: 127.0.0.1:2424
<http://127.0.0.1:2424>*
traced by the catch branch. Starting the OrientDB server and running the
project, there is no exception and after the execution the trace is only
"finally" and the catch branch is skipped and the execution goes in the
finally branch.
I want to know if the libraries included are right and if the code is
correct from your point of you.
Thanks for your help
Regards
Alessandro
Il giorno lunedì 17 febbraio 2014 18:00:49 UTC+1, Alessandro Remartini ha
scritto:
>
> Hi Luca,
>
> I have added a system.out in catch branch a s you can see below:
>
> OrientGraphFactory factory;
> factory = new OrientGraphFactory("remote:localhost/HRG",
> "admin", "admin");
> factory.setupPool(1, 10);
>
> System.err.println("after pool setup");
>
> _hrgGraph = factory.getTx();
> factory.close();
> return true;
> } catch (Exception e) {
> System.err.println(e.getMessage());
> return false;
> } finally {
> System.err.println("finally");
> }
>
> but I think that it is not Java the problem.
>
> In fact, I have tried to shut down OrientDB server and running the project
> and the exception correctly
>
> reported is
>
> Cannot connect to any configured remote nodes: 127.0.0.1:2424
>
> traced in the catch branch. Starting the OrientDB server and running the
> project, there is no exception
>
> and after the execution the trace is only "finally" and the catch branch
> is skipped and the
>
>
> Il giorno lunedì 17 febbraio 2014 17:30:33 UTC+1, Lvc@ ha scritto:
>>
>> Hi Alessandro,
>> this doesn't depend by OrientDB: it's Java! Try to clean everything or to
>> insert some print, specially in the catch block.
>>
>> Lvc@
>>
>>
>>
>> On 17 February 2014 17:18, Alessandro Remartini
>> <[email protected]>wrote:
>>
>>> 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 <alessandro...@gmail.
>>>>>> com> 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.
>>>
>>
>>
--
---
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.