Announcement Announcement Module
Collapse
No announcement yet.
SAAJ0511 Unable to create envelope from given source Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SAAJ0511 Unable to create envelope from given source

    Hi,
    I have this web service which is written in Spring WS and it uses MTOM to send pdf file as attachment, the service works fine if there are no validation errors. But if i get a validation error back from client, I get this error message.

    Looks like the stream is getting corrupted somehow and its not able to parse the message and create a SOAP envelope.

    I know there was a known issue with SAAJ Message Factory, but if i am not wrong it was fixed in Spring ws-core 2.0.4.RELEASE.

    I am putting down my pom.xml so people do know the dependencies.


    HTML Code:
    <dependency>
    			<groupId>commons-io</groupId>
    			<artifactId>commons-io</artifactId>
    			<version>1.4</version>
    		</dependency>
    		<dependency>
    			<groupId>hsqldb</groupId>
    			<artifactId>hsqldb</artifactId>
    			<version>1.8.0.7</version>
    		</dependency>
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjrt</artifactId>
    			<version>1.6.8</version>
    		</dependency>
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjweaver</artifactId>
    			<version>1.6.8</version>
    		</dependency>
    
    		<dependency>
    			<groupId>org.apache.ws.security</groupId>
    			<artifactId>wss4j</artifactId>
    			<version>1.5.8</version>
    			<exclusions>
    				<exclusion>
    					<artifactId>xalan</artifactId>
    					<groupId>xalan</groupId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>jstl</artifactId>
    			<version>1.2</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.servlet.jsp</groupId>
    			<artifactId>jsp-api</artifactId>
    			<version>2.1</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-core</artifactId>
    			<version>${spring.framework.version}</version>
    		</dependency>
    
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-beans</artifactId>
    			<version>${spring.framework.version}</version>
    		</dependency>
    
    		
    
    		<dependency>
    			<groupId>org.springframework.security</groupId>
    			<artifactId>spring-security-core</artifactId>
    			<version>3.1.3.RELEASE</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.security</groupId>
    			<artifactId>spring-security-web</artifactId>
    			<version>3.1.3.RELEASE</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.security</groupId>
    			<artifactId>spring-security-config</artifactId>
    			<version>3.1.3.RELEASE</version>
    		</dependency>
    
    		<dependency>
    			<groupId>org.springframework.expression</groupId>
    			<artifactId>org.springframework.expression</artifactId>
    			<version>3.0.5.RELEASE</version>
    		</dependency>
    
    
    		<dependency>
    			<groupId>org.springframework.batch</groupId>
    			<artifactId>spring-batch-core</artifactId>
    			<version>${spring.batch.version}</version>
    			<exclusions>
    				<exclusion>
    					<artifactId>spring-context</artifactId>
    					<groupId>org.springframework</groupId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.batch</groupId>
    			<artifactId>spring-batch-infrastructure</artifactId>
    			<version>${spring.batch.version}</version>
    		</dependency>
    
    		<dependency>
    			<groupId>org.springframework.ws</groupId>
    			<artifactId>spring-ws-core</artifactId>
    			<version>2.0.2.RELEASE</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-support</artifactId>
    			<version>2.0.6</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.ws</groupId>
    			<artifactId>spring-ws-security</artifactId>
    			<version>2.0.0-M1</version>
    			<exclusions>
    				<exclusion>
    					<artifactId>spring-ws-core</artifactId>
    					<groupId>org.springframework.ws</groupId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    
    		<dependency>
    			<groupId>javax.xml.soap</groupId>
    			<artifactId>saaj-api</artifactId>
    			<version>1.3</version>
    		</dependency>
    
    		<dependency>
    			<groupId>com.sun.xml.messaging.saaj</groupId>
    			<artifactId>saaj-impl</artifactId>
    			<version>1.3</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-httpclient</groupId>
    			<artifactId>commons-httpclient</artifactId>
    			<version>3.1</version>
    		</dependency>
    
    
    		<dependency>
    			<groupId>javax.xml.bind</groupId>
    			<artifactId>jaxb-api</artifactId>
    			<version>${jaxb.api.version}</version>
    		</dependency>
    
    		<dependency>
    			<groupId>com.sun.xml.bind</groupId>
    			<artifactId>jaxb-impl</artifactId>
    			<version>${jaxb.impl.version}</version>
    		</dependency>
    
    		<dependency>
    			<groupId>com.sun.xml.bind</groupId>
    			<artifactId>jaxb-xjc</artifactId>
    			<version>${jaxb.xjc.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>javax.mail</groupId>
    			<artifactId>mail</artifactId>
    			<version>1.4</version>
    		</dependency>
    
    		<dependency>
    			<groupId>javax.activation</groupId>
    			<artifactId>activation</artifactId>
    			<version>1.1</version>
    		</dependency>
    		<dependency>
    			<groupId>javax.xml.stream</groupId>
    			<artifactId>stax-api</artifactId>
    			<version>1.0-2</version>
    		</dependency>
    
    		<!-- <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> 
    			<version>2.9.0</version> </dependency> -->
    		<dependency>
    			<groupId>xalan</groupId>
    			<artifactId>xalan</artifactId>
    			<version>2.7.0</version>
    			<type>jar</type>
    			<scope>compile</scope>
    			<exclusions>
    				<exclusion>
    					<artifactId>xml-apis</artifactId>
    					<groupId>xml-apis</groupId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>xerces</groupId>
    			<artifactId>xercesImpl</artifactId>
    			<version>2.8.1</version>
    			<type>jar</type>
    			<scope>compile</scope>
    			<exclusions>
    				<exclusion>
    					<artifactId>xml-apis</artifactId>
    					<groupId>xml-apis</groupId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    
    		<dependency>
    			<groupId>com.sun.xml.parsers</groupId>
    			<artifactId>jaxp-ri</artifactId>
    			<version>1.4.2</version>
    		</dependency>
    
    		
    
    		<dependency>
    			<groupId>org.quartz-scheduler</groupId>
    			<artifactId>quartz</artifactId>
    			<version>1.8.5</version>
    			<exclusions>
    				<exclusion>
    					<artifactId>slf4j-api</artifactId>
    					<groupId>org.slf4j</groupId>
    				</exclusion>
    			</exclusions>
    		</dependency>

    Let me know if you have any idea what could be an issue here.
Working...
X