|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  is this a bug?? | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | dn415 | 
		  
		    
			  
				 Posted: Wed Jul 03, 2002 3:01 pm    Post subject: is this a bug?? | 
				     | 
			   
			 
		   | 
		 
		
		   Novice
 
 Joined: 01 Jul 2002 Posts: 10
  
  | 
		  
		    
			  
				I decompiled com.ibm.jms.JMSMessage and noticed in the "expandRefs(...)"
 
function that the code only checks for <, >, and & when un-escaping XML
 
characters.
 
 
However, MQSI, when outputting XML not only escapes those characters, but
 
also escapes ' and " symbols, replacing them with "apos;" and "quot;"
 
respectively.  Therefore, the receiver (using latest MA88 jars 5/21/2002)
 
should also un-escape these characters, but it doesn't.
 
 
This is why I was getting the following exception on my JMS receiver when
 
any XML in MQSI had a " or a ' in it
 
 
javax.jms.MessageFormatException: MQJMS1047: The map message has an
 
incorrect format
 
LinkedException: javax.jms.MessageFormatException: MQJMS1054: Invalid XML
 
escape sequence detected &quo
 
 
javax.jms.MessageFormatException: MQJMS1047: The map message has an
 
incorrect format
 
LinkedException: javax.jms.MessageFormatException: MQJMS1054: Invalid XML
 
escape sequence detected &apo
 
 
It did not know how to handle " and '
 
 
Hence I changed com.ibm.jms.JMSMessage to check for these, and it works
 
perfectly.  Can someone please comment on this?  I have a deadline soon  
 
 
I am using:
 
MQSI 2.1 CSD04
 
MQSeries 5.2.1 CSD 02
 
MA88 5/21/2002
 
 
Thanks,
 
Duke
 
dn415@ucla.edu | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	Page 1 of 1 | 
   
 
 
 
  
  	
	  
		
		  
 
  | 
		  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |