Mantis - Resin
Viewing Issue Advanced Details
4535 major always 05-06-11 10:47 07-06-11 17:06
bgoykhman  
ferg  
normal  
closed 3.1.10  
fixed  
none    
none 3.1.11  
0004535: Calling Amazon EC2 Cloud API produces IllegalArgumentException
When I call any EC2 API method using Amazon SDK, it always fails with the same error:

java.lang.IllegalArgumentException: property "javax.xml.stream.isCoalescing"
not supported

apparently because of this call inside Amazon's com.amazonaws.http.StaxResponseHandler class:

xmlInputFactory.setProperty(XMLInputFactory.IS_COALESCING, true);

Notes
(0005229)
bgoykhman   
05-06-11 11:21   
IllegalArgumentException comes out of com.caucho.xml.stream.XMLInputFactoryImpl.setProperty(name, value) method, which looks like only allows java.xml.stream.allocator and java.xml.stream.isNamespaceAware properties and throws the above exception for anything else.
(0005366)
ferg   
07-06-11 17:06   
removed META-INF/services/java.xml.stream.XMLInputFactory since the JDK's input factory should be preferred.