#266 Cannot make connection by Java based CIM Browser

Performance
closed-fixed
Adrian
sfcb (1090)
5
2006-01-15
2005-11-14
twotails
No

I can enumerate class by using command like 'wbemcli
ec http://192.168.252.55/root/cimv2'. But it generate
" Failed to complete connection
info:CIM_ERR_FAILED(IO terminated in HTTP headers)"
error.

and the program stop at funtion"static int doHttpRequest
(CommHndl conn_fd)" in httpAdapter.c, the position is
[rc=getHdrs(conn_fd, &inBuf,"POST ");
if (rc==1) genError(conn_fd, &inBuf, 501, "Not
Implemented", NULL);
if (rc==2) genError(conn_fd, &inBuf, 400, "Bad
Request", NULL);
if (rc==3) {
fprintf(stderr,"-#- Waited too long for data after
accept - request rejected\n");
genError(conn_fd, &inBuf, 400, "Bad Request",
NULL);
}]

I find that the the return value from function"static int
getHdrs(CommHndl conn_fd, Buffer * b, char *cmd)" is
1,so rc=1.

I expect where is the problem. Of course the solution is
best.
Thanks.

Discussion

  • Adrian
    Adrian
    2005-11-20

    Logged In: YES
    user_id=230251

    Problem was caused because sfcb incorrectly handeled M-POST
    request and had no support for the __Namespace class. Both
    problems has been fixed. However __Namespace objects are
    only supported for enumerateInstanceNames requests. sfcb now
    can work with the SNIA and Pegasus cimbrowser.

     
  • Adrian
    Adrian
    2005-11-20

    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=1198711

    Reopening the problem as the fix was not correct. In fact,
    the problem lies in the Pegasus Java CIM Browser as this one
    is not correctly handling the situation where the server is
    closing the connection (which it MAY do). The solution is
    either to apply the attached patch to the Pegasus CIM
    client, or to configure sfcb to maintain persistent
    connections (via sfcb.cfg).

     
    • status: closed-fixed --> open-fixed
     
  • Patch for Pegasus CIM Client for Connection: close recovery

     
  • Logged In: YES
    user_id=1198711

    Have added a few enhancements to httpAdapter.c. Still, the
    client must comply to HTTP in order to work properly.

     
    • status: open-fixed --> pending-fixed
     
  • Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-fixed --> closed-fixed