Hi all,
Some of SMEs in Aragon are using NAT (put their
servENTs behind a router).
If we search for a service deployed in a servENT with
NAT, directly in the destination servENT, we have some
problems. If we search for this service in a local
servENT that it is connected to the NAT one, it works.
That is the problem we have if we search directly:
The url is
http://217.125.42.136:2728/CLIENT/find?timeout=10000&hops=10&entries=gabiloshotel|
java.lang.NegativeArraySizeException
at
org.dbe.toolkit.pa.di.SerializationProtocolAdapter.invoke(SerializationProtocolAdapter.java:189)
at
org.dbe.toolkit.pa.di.SerializationProtocolAdapter.invoke(SerializationProtocolAdapter.java:81)
at
org.dbe.toolkit.pa.di.APAImpl.invoke(APAImpl.java:47)
at
org.dbe.toolkit.proxyframework.Workspace.invoke(Workspace.java:63)
at org.sun.dbe.Invoker.invoke(Invoker.java:64)
at $Proxy0.searchAccommodation(Unknown Source)
at
org.dbe.service.hotel.client.ScenarioClient1.requestScenary1(ScenarioClient1.java:183)
at
org.dbe.service.hotel.client.ScenarioClient1.main(ScenarioClient1.java:925)
Thanks in advance,
Aragon Institute of Technology
Logged In: YES
user_id=616583
If you are in a LAN, you **cannot** connect directly to
your external IP. You can try this if you try to telnet
that IP using the 2728 port.
You can solve this problem if you have two differents IPs
for the same machine (external and internal). In this case
you must use the "name" of the machine and you should
configure your DNS to provide externalIP if the request
comes from outside or the internalIP if the request comes
from the LAN.
Logged In: NO
We are not in a LAN.
The IP 217.125.42.136 belongs to one of our regional SMEs.
Other one is trying to consume a service, but is has no
servENT installed, so they try to connect directly using
ClientHelper.
In this case, Exception given is thrown.
If we add ITA servENT (dbe.ita.es) as a neighbor of
217.125.42.136, and the ClientHelper searchs the service
in dbe.ita.es, it works.