Re: Issue regarding CIMServerDiscovery.lookup() method

Marek Szermutzky <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <OF63F51EAC.7E854B87-ONC12578BC.003A18EC-C12578BC.003AC701@de.ibm.com>
Hi.

In OpenPegasus 2.11 we introduced an
improved version of the exception you see. It prints data up to the "bad"
point and hex coded some of the following bytes.

Since this is not the case on your side
I assume that you currently use an earlier version of OP. The fix was brought
back to OP 2.10.1 which is not released yet though.

What you could do to identify the URL
is to put the patch from Bug#8813 onto your OP source and go from there.
Please also note the two defines BADUTF8_MAX_CLEAR_CHAR
and BADUTF8_MAX_CHAR_TO_HEX
which allow you to steer how many clear(=clean=okay) characters are printed
and how many of the "bad" characters are encoded into hex chars.
For your specific case I recommend to set #define
BADUTF8_MAX_CLEAR_CHAR to at least
4000 (so you get the entire clear text string).

Mit freundlichen Grüßen / Kind regards

Marek Szermutzky

Software Engineer / OpenPegasus Maintainer (PMC) and z/OS PlatformRep.

IBM Systems &Technology Group, Systems Software Development / z/OS
Capacity Management and Support

-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland

Schoenaicher Str. 220

71032 Boeblingen

Phone: +49-7031-16-5182

E-Mail: [email protected]

-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats:
Martin Jetter

Geschäftsführung: Dirk Wittkopp

Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart,
HRB 243294

From:
"V, Hitha"
<[email protected]>

To:
"[email protected]"
<[email protected]>

Cc:
"CK, Syamlal"
<[email protected]>, "Pandurengan, Ponselvarani" <[email protected]>

Date:
22.06.2011 13:48

Subject:
Issue regarding
CIMServerDiscovery.lookup() method

----------

Hi,

Our application uses Pegasus SLP APIs to
discover the CIMOMs in a network. This method works correctly when invoked
from a Linux machine. However, on some Windows machines it has been seen
that the method throws the exception “The byte sequence starting at
index 3936 is not valid UTF-8 encoding” and subsequently fails to
return the CIMOM list.

When I run “slptool” from Linux (I don’t
have a Windows version of it) and look at the output URL list, I don’t
see any invalid characters.

Has anyone faced a similar issue anytime?
If so, what is the work around? How can we identify the URL which contains
the invalid character, so that we can isolate it from the network and proceed
with testing?

Regards,

Hitha V
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.