NodeBuilder.local(true) question


(Ridvan Gyundogan) #1

Hi All,
can someone give me a hint how to fix the following junit test:

I try to connect to a local node, but I always get "No node available
exception".


(Lukáš Vlček) #2

Hi,

when using local node there is no access point exposed to the public. In
other words you can not use TransportClient to connect to a node that is
running locally.

Either use local(false) [I can not recommend this for unit test] or get
client from node using node.client() [I would say that is the way to go for unit tests].

Regards,
Lukas

On Sun, Nov 27, 2011 at 9:27 PM, Ridvan Gyundogan ridvansg@gmail.comwrote:

Hi All,
can someone give me a hint how to fix the following junit test:
https://gist.github.com/1398083

I try to connect to a local node, but I always get "No node available
exception".


(Ridvan Gyundogan) #3

Thanks very very much Lukas, will try with node.client(); .

On Nov 27, 11:36 pm, Lukáš Vlček lukas.vl...@gmail.com wrote:

Hi,

when using local node there is no access point exposed to the public. In
other words you can not use TransportClient to connect to a node that is
running locally.

Either use local(false) [I can not recommend this for unit test] or get
client from node using node.client() [I would say that is the way to go for unit tests].

Regards,
Lukas

On Sun, Nov 27, 2011 at 9:27 PM, Ridvan Gyundogan ridva...@gmail.comwrote:

Hi All,
can someone give me a hint how to fix the following junit test:
https://gist.github.com/1398083

I try to connect to a local node, but I always get "No node available
exception".


(system) #4