Summary
How to use nsutil with an IPv6 address in the ORBInitRef corbaloc URL.
Environment
VisiBroker 8.5 SP3
All supported operating systems
Question/Problem Description
The corbaloc URL which can be specified in the ORBInitRef has the following format:
corbaloc::<hostname/IPaddress>:<port>/NameService
The above URL can be used for the ORBInitRef parameter for nsutil as follows:
$VBROKERDIR/bin/nsutil -VBJprop ORBInitRef=NameService=corbaloc::<hostname/IP address>:<port>/NameService <nsutil command>
Error Message
org.omg.CORBA.OBJECT_NOT_EXIST: java.net.SocketException: Invalid argument or cannot assign requested address vmcid: 0x56420000 minor code: 1 completed: No
Cause
IPv6 addresses (e.g. fdb0:449b:f30d:59:250:56ff:feb6:21de) contain ":" characters, which conflict with the ":" characters in the corbaloc URL.
Resolution
IPv6 addresses need to be provided in square brackets [<IPv6 address>].
The corbaloc URL needs to be provided as
corbaloc::[<IPv6-address>]:<port>/NameService
The ORBInitRef parameter for nsutil looks as follows:
$VBROKERDIR/bin/nsutil -VBJprop ORBInitRef=NameService=corbaloc::[<IPv6 address>]:<port>/NameService <nsutil command>
e.g.
$VBROKERDIR/bin/nsutil -VBJprop ORBInitRef=NameService=corbaloc::[fdb0:449b:f30d:59:250:56ff:feb6:21de]:<port>/NameService <nsutil command>
Support Incidents
2872624
#VisiBroker
#nsutil
#Security