Hi all,
somebody (unfortunately i don't know his SDN user account) contacted me by mail, since he had a problem using a Message Server destination he created in the SLD in the WD content admin. Just before the step, where the msg server destinations can be selected in the dropdown list, he's got the following exception:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1444)
at
com.sap.tc.webdynpro.tools.sld.MessageServerConnectionDefinition.updateSelec
tion(MessageServerConnectionDefinition.java:300)
at
com.sap.tc.webdynpro.tools.sld.MessageServerConnectionDefinition.wdDoInit(Me
ssageServerConnectionDefinition.java:168)
at
com.sap.tc.webdynpro.tools.sld.wdp.InternalMessageServerConnectionDefinition
.wdDoInit(InternalMessageServerConnectionDefinition.java:830)
at
com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingVi
ew.java:71)
at (more, not repeated here)
The reason for the exception is, that the "Caption" property of the BC_MessageServer instance must contain at least one space, like in "C12 Demosystem" or "I12 Integrationsystem". The WD content admin uses the characters from the beginning to the first space for displaying a system name, so these would result in "C12" or "I12" respectively for the samples.
Is that a documented and wanted behaviour? Why is the caption used for the list? Isn't the instance name the unique entry for the instance and shouldn't be used for displaying system names?
Best regards
Stefan