[SM-1783] Code works in version 3.2.2, but fails in version 3.3.

git-svn-id: https://svn.apache.org/repos/asf/servicemix/utils/trunk@934379 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/servicemix/jbi/jaxp/FragmentStreamReader.java b/src/main/java/org/apache/servicemix/jbi/jaxp/FragmentStreamReader.java
index 28f2c75..91641d5 100644
--- a/src/main/java/org/apache/servicemix/jbi/jaxp/FragmentStreamReader.java
+++ b/src/main/java/org/apache/servicemix/jbi/jaxp/FragmentStreamReader.java
@@ -41,6 +41,10 @@
 
     public FragmentStreamReader(XMLStreamReader parent) {
         super(parent);
+        
+        // fix for SM-1783
+        state = parent.getEventType();
+        
         NamespaceContext ctx = getParent().getNamespaceContext();
         if (ctx instanceof ExtendedNamespaceContext) {
             rootPrefixes = new ArrayList();