Я работаю с JAIN SLEE Diameter и использую два контейнера docker для тестирования приложения.
Я использую нижнюю часть в jdiameter-config. xml для проверки соединения.
<Network>
<Peers>
<!-- Testsuite -->
<Peer name="aaa://mirror.server:5029" attempt_connect="true" rating="1" />
</Peers>
<Realms>
<Realm name="idr" peers="mirror.server" local_action="LOCAL" dynamic="true" exp_time="1">
<ApplicationID>
<VendorId value="10415" />
<AuthApplId value="16777251" />
<AcctApplId value="0" />
</ApplicationID>
</Realm>
</Realms>
Но я получаю эту ошибку при запуске JBOSS
07:46:58,913 WARN [org.jdiameter.client.impl.controller.PeerTableImpl] (MSC service thread 1-3) Unable to create peer [aaa://mirror.server:5029]: org.jdiameter.client.api.io.TransportException: Unable to retrieve host
at org.jdiameter.client.impl.controller.PeerImpl.<init>(PeerImpl.java:288)
at org.jdiameter.server.impl.PeerImpl.<init>(PeerImpl.java:120)
at org.jdiameter.server.impl.MutablePeerTableImpl.newPeerInstance(MutablePeerTableImpl.java:261)
at org.jdiameter.server.impl.MutablePeerTableImpl.createPeer(MutablePeerTableImpl.java:245)
У меня есть два контейнера и запущен mirror.server: 5029 и dra.client: 3868. Я делаю этот тест со стороны клиента.
Когда я пытаюсь запустить приложение SBB java, я получаю нижнюю ошибку
07:46:58,913 WARN [org.jdiameter.client.impl.controller.PeerTableImpl] (MSC service thread 1-3) Unable to create peer [aaa://mirror.server:5029]: org.jdiameter.client.api.io.TransportException: Unable to retrieve host
at org.jdiameter.client.impl.controller.PeerImpl.<init>(PeerImpl.java:288)
at org.jdiameter.server.impl.PeerImpl.<init>(PeerImpl.java:120)
at org.jdiameter.server.impl.MutablePeerTableImpl.newPeerInstance(MutablePeerTableImpl.java:261)
at org.jdiameter.server.impl.MutablePeerTableImpl.createPeer(MutablePeerTableImpl.java:245)
17:50:24,814 WARN [org.jdiameter.client.impl.controller.PeerTableImpl] (MSC service thread 1-3) Unable to create peer [aaa://mirror.epc.mnc002.mcc413.3gppnetwork.org:5029]: org.jdiameter.client.api.io.TransportException: Unable to retrieve host
at org.jdiameter.client.impl.controller.PeerImpl.<init>(PeerImpl.java:288)
at org.jdiameter.server.impl.PeerImpl.<init>(PeerImpl.java:120)
at org.jdiameter.server.impl.MutablePeerTableImpl.newPeerInstance(MutablePeerTableImpl.java:261)
at org.jdiameter.server.impl.MutablePeerTableImpl.createPeer(MutablePeerTableImpl.java:245)
at org.jdiameter.client.impl.controller.PeerTableImpl.init(PeerTableImpl.java:146)
at org.jdiameter.server.impl.MutablePeerTableImpl.<init>(MutablePeerTableImpl.java:226)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:147)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:332)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:272)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:354)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:692)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:671)
at org.jdiameter.client.impl.helpers.AssemblerImpl.getComponentInstance(AssemblerImpl.java:152)
at org.jdiameter.client.impl.StackImpl.init(StackImpl.java:166)
at org.mobicents.diameter.stack.DiameterStackMultiplexer.initStack(DiameterStackMultiplexer.java:162)
at org.mobicents.diameter.stack.DiameterStackMultiplexer.initStack(DiameterStackMultiplexer.java:151)
at org.mobicents.diameter.stack.DiameterStackMultiplexer.startService(DiameterStackMultiplexer.java:332)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:255)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
at org.mobicents.diameter.extension.DiameterMuxService.start(DiameterMuxService.java:39)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.UnknownHostException:
mirror.epc.mnc002.mcc413.3gppnetwork.org: Name does not resolve
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getAllByName0(InetAddress.java:1277)
at java.net.InetAddress.getAllByName(InetAddress.java:1193)
at java.net.InetAddress.getAllByName(InetAddress.java:1127)
at java.net.InetAddress.getByName(InetAddress.java:1077)
at org.jdiameter.client.impl.controller.PeerImpl.<init>(PeerImpl.java:285)
... 31 more
Нужна помощь в понимании этой ошибки.