You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/10/31 17:25:23 UTC
DO NOT REPLY [Bug 14136] New: -
getCompleteAttributes in MessageElement problems
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14136
getCompleteAttributes in MessageElement problems
Summary: getCompleteAttributes in MessageElement problems
Product: Axis
Version: 1.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Serialization/Deserialization
AssignedTo: axis-dev@xml.apache.org
ReportedBy: chrisw@wolfram.com
getCompleteAttributes() in MessageElement hangs. It never returns (or it takes
way too long to return). Not mention there is another problem which I see.
First of which while looking the code for getCompleteAttributes, I noticed that
while adding attributes for namespaces it has the last two values swapped.
Therefor the values of the namespaces declarations will not be correct even if
it doesn't hang.
Example....
### getCompleteAttributesTest.java ###
import org.apache.axis.message.MessageElement;
import javax.xml.namespace.QName;
import org.xml.sax.Attributes;
public class GetCompleteAttributesTest
{
public GetCompleteAttributesTest()
{
}
public static void main(String[] args)
{
try
{
System.out.println("starting...");
MessageElement me =
new MessageElement("http://www.wolfram.com","Test");
System.out.println("adding namespace declaration...");
me.addNamespaceDeclaration("pre", "http://www.wolfram2.com");
System.out.println("getting complete attributes...");
Attributes attrs = me.getCompleteAttributes();
System.out.println("printing complete attributes...");
for(int i = 0; i < attrs.getLength(); i++)
{
System.out.println("namespace: " + attrs.getURI(i));
System.out.println("localname: " + attrs.getLocalName(i));
System.out.println("qname: " + attrs.getQName(i));
System.out.println("type: " + attrs.getType(i));
System.out.println("value: " + attrs.getValue(i));
}
System.out.println("finished.");
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
Results...
starting...
adding namespace declaration...
getting complete attributes...