You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by ji...@apache.org on 2004/03/25 17:00:58 UTC

[jira] Created: (AXISCPP-45) Fatal Error in XMLStreamHandler; Unterminated entity reference

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXISCPP-45

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXISCPP-45
    Summary: Fatal Error in XMLStreamHandler; Unterminated entity reference
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis-C++
 Components: 
             Transport (Client)
   Versions:
             Alpha

   Assignee: 
   Reporter: Nadine Maloney

    Created: Thu, 25 Mar 2004 8:00 AM
    Updated: Thu, 25 Mar 2004 8:00 AM
Environment: Windows XP C++ Client

Description:
When receiving responses longer then 4096, a fatal error exception happens in XMLStreamHandler. The exception message is "Unterminated entity reference" is received.

This is caused because an invalid character is hit in the message stream. This is because when reading in a response in multiple chunks the null at the end of the message is not set correctly.

Solution:
Change Line #259 in Channel.cpp from
  buf[nByteRecv + 1] = '\0';	
To 
  buf[nByteRecv] = '\0';	



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira