<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-12117</id>
	<title>Nabble - codehaus - woodstox</title>
	<updated>2009-12-16T09:51:42Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/codehaus---woodstox-f12117.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/codehaus---woodstox-f12117.html" />
	<subtitle type="html">Woodstox is a fast Open Source StAX-compliant XML-processor written in Java. codehaus - woodstox home is &lt;a href=&quot;http://woodstox.codehaus.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26815470</id>
	<title>Re: websphere 7 issues</title>
	<published>2009-12-16T09:51:42Z</published>
	<updated>2009-12-16T09:51:42Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Wed, Dec 16, 2009 at 6:23 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26815470&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simbo1905@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using jibx1.1.6a which has a dependency on wstx-asl 3.2.1. Things
&lt;br&gt;&amp;gt; work fine on Websphere6.1, jetty6.1.0 and tomcat6. When I move the
&lt;br&gt;&amp;gt; webapp onto Websphere7.0.0.7 I get the following issue:
&lt;br&gt;&lt;br&gt;Ok. One thing I would recommend would be to upgrade to 3.2.9, but that
&lt;br&gt;is probably not the cause of your specific problems (which seem to be
&lt;br&gt;due to IBM stax implementation).
&lt;br&gt;&lt;br&gt;Common way to specify implementation to use is to use system
&lt;br&gt;properties; from
&lt;br&gt;[&lt;a href=&quot;http://java.sun.com/javaee/5/docs/tutorial/doc/bnbem.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/javaee/5/docs/tutorial/doc/bnbem.html&lt;/a&gt;]:
&lt;br&gt;&lt;br&gt;&amp;quot;Use the javax.xml.stream.XMLInputFactory system property&amp;quot; (and
&lt;br&gt;similarly for XMLOutputFactory and XMLEventFactory), so something
&lt;br&gt;like:
&lt;br&gt;&lt;br&gt;System.setProperty(&amp;quot;javax.xml.stream.XMLInputFactory&amp;quot;,
&lt;br&gt;&amp;quot;com.ctc.wstx.stax.WstxInputFactory&amp;quot;);
&lt;br&gt;&lt;br&gt;which should override defaults. Websphere may have a minor bug, too
&lt;br&gt;(or IBM stax impl), since usually the default implementation should
&lt;br&gt;NOT set service descriptor. Sun JDK works as expected, such that
&lt;br&gt;explicitly added jars will work without additional system properties.
&lt;br&gt;&lt;br&gt;I hope this helps,
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/websphere-7-issues-tp26811839p26815470.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26811839</id>
	<title>websphere 7 issues</title>
	<published>2009-12-16T06:23:50Z</published>
	<updated>2009-12-16T06:23:50Z</updated>
	<author>
		<name>Simon-2745</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I am using jibx1.1.6a which has a dependency on wstx-asl 3.2.1. Things
&lt;br&gt;work fine on Websphere6.1, jetty6.1.0 and tomcat6. When I move the
&lt;br&gt;webapp onto Websphere7.0.0.7 I get the following issue: 
&lt;br&gt;&lt;br&gt;Caused by: java.lang.IllegalStateException: The current state is not
&lt;br&gt;START_DOCUMENT.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ibm.xml.xlxp2.api.stax.msg.StAXMessageProvider.throwIllegalStateException(StAXMessageProvider.java:49)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.getEncoding(XMLStreamReaderImpl.java:1420)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ibm.xml.xlxp2.api.stax.XMLInputFactoryImpl$XMLStreamReaderProxyImpl.getEncoding(XMLInputFactoryImpl.java:402)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ibm.xml.xlxp2.api.wssec.WSSXMLInputFactory$WSSStreamReaderProxy.getEncoding(WSSXMLInputFactory.java:55)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.jibx.runtime.impl.StAXReaderWrapper.startTag(StAXReaderWrapper.java:110)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.jibx.runtime.impl.StAXReaderWrapper.next(StAXReaderWrapper.java:239)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:508)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2530)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2694)
&lt;br&gt;&lt;br&gt;I can repeat the error on Jetty if I run it on the IBM JDK1.6 and take
&lt;br&gt;woodstox off of the classpath to force it to fall back to the com.ibm
&lt;br&gt;stax parser. This suggests that I should just be able to set &amp;quot;parent
&lt;br&gt;last&amp;quot; on websphere to get it to pick up the woodstox stax classes not
&lt;br&gt;the ibm ones. I cannot seem to get this to work deploying a WAR file on
&lt;br&gt;WAS7 with the following classloader settings: 
&lt;br&gt;&lt;br&gt;Application Servers server1 Server-specific Application Settings: 
&lt;br&gt;&amp;nbsp; Classloader policy: Single
&lt;br&gt;&amp;nbsp; Class loading mode: Classes loaded with local class loader first
&lt;br&gt;&amp;nbsp; (parent last)
&lt;br&gt;Enterprise Applications myApp.war Class Loader 
&lt;br&gt;&amp;nbsp; Class loader order: Classes loaded with local class loader first
&lt;br&gt;&amp;nbsp; (parent last)
&lt;br&gt;&amp;nbsp; War class loader policy: Class loader for each WAR file in application
&lt;br&gt;&lt;br&gt;Does anyone know how to force the loading of wookstox on Websphere7
&lt;br&gt;avoiding this issue? 
&lt;br&gt;&lt;br&gt;Jibx can be told to use a XMLPull type of parser instead of a stax
&lt;br&gt;parser with the system property org.jibx.runtime.impl.parser to the
&lt;br&gt;value org.jibx.runtime.impl.XMLPullReaderFactory but it would be nice to
&lt;br&gt;know how to force the use of woodstox. 
&lt;br&gt;&lt;br&gt;thanks, 
&lt;br&gt;&lt;br&gt;Simon
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/websphere-7-issues-tp26811839p26811839.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26500552</id>
	<title>Re: StaxMate: NPE when using Sun Stax Parser</title>
	<published>2009-11-24T09:55:11Z</published>
	<updated>2009-11-24T09:55:11Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Tue, Nov 24, 2009 at 7:11 AM, Johannes Schneider
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26500552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailings@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if I am using the default stax parser provided by java 6, I run into the
&lt;br&gt;&amp;gt; following NPE.
&lt;br&gt;&amp;gt; When using Woodstox, everything works as expected.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any ideas, hints?
&lt;br&gt;&lt;br&gt;Which version? I think I did fix a problem like this for 1.3. At least
&lt;br&gt;I fixed some issues wrt. compatibility.
&lt;br&gt;&lt;br&gt;Or, alternatively... hmmh. Maybe I supplied fix for Sjsxp (Sun parser)
&lt;br&gt;to address the underlying bug.
&lt;br&gt;If so, you could try downloading the latest sjsxp version.
&lt;br&gt;&lt;br&gt;I can try digging up references to above, but it might be fastest to
&lt;br&gt;try out upgrading one or both. Sjsxp is tested and should work at any
&lt;br&gt;rate; both 1.3 and 2.0 (with Woodstox, you must use Woodstox-4.x for
&lt;br&gt;StaxMate-2.0; but regular sjsxp works ok with 2.0, as long as you get
&lt;br&gt;Stax2-api-3.0.1 jar)
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/StaxMate%3A-NPE-when-using-Sun-Stax-Parser-tp26497587p26500552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26497587</id>
	<title>StaxMate: NPE when using Sun Stax Parser</title>
	<published>2009-11-24T07:11:32Z</published>
	<updated>2009-11-24T07:11:32Z</updated>
	<author>
		<name>Johannes Schneider-5</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;if I am using the default stax parser provided by java 6, I run into the
&lt;br&gt;following NPE.
&lt;br&gt;When using Woodstox, everything works as expected.
&lt;br&gt;&lt;br&gt;Any ideas, hints?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Johannes
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;java.lang.NullPointerException
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.getProperty(XMLStreamWriterImpl.java:426)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.codehaus.stax2.ri.Stax2WriterAdapter.&amp;lt;init&amp;gt;(Stax2WriterAdapter.java:77)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.codehaus.stax2.ri.Stax2WriterAdapter.wrapIfNecessary(Stax2WriterAdapter.java:94)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.codehaus.staxmate.SMOutputFactory.createStax2Writer(SMOutputFactory.java:316)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.codehaus.staxmate.SMOutputFactory.createOutputDocument(SMOutputFactory.java:133)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;com.cedarsoft.serialization.stax.AbstractStaxMateSerializer.serialize(AbstractStaxMateSerializer.java:28)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;com.cedarsoft.serialization.AbstractSerializerTest.testSerializer(AbstractSerializerTest.java:28)
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/StaxMate%3A-NPE-when-using-Sun-Stax-Parser-tp26497587p26497587.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26185870</id>
	<title>Re: Checksum failure of wstx-asl-3.2.8.jar on maven  central</title>
	<published>2009-11-03T12:15:19Z</published>
	<updated>2009-11-03T12:15:19Z</updated>
	<author>
		<name>Ulf Lindback</name>
	</author>
	<content type="html">Ok, thanks for the promptly reply.&lt;div&gt;/Ulf&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 3, 2009 at 19:40, Tatu Saloranta &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26185870&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tsaloranta@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;On Tue, Nov 3, 2009 at 1:21 AM, Ulf Lindback &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26185870&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lindback@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;


&amp;gt; Hi!&lt;br&gt;
&amp;gt; When trying to download the wstx-asl-3.2.8.jar from maven central:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.8/wstx-asl-3.2.8.jar&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.8/wstx-asl-3.2.8.jar&lt;/a&gt;&lt;br&gt;
&amp;gt; I get checksum errors (the md5 and sh1 files are the same as they are ath&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://repository.codehaus.org/org/codehaus/woodstox/wstx-asl/3.2.8&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/org/codehaus/woodstox/wstx-asl/3.2.8&lt;/a&gt; so it&lt;br&gt;
&amp;gt; must&lt;br&gt;
&amp;gt; be the JAR that is corrupt at the central (size 523825 at central and size&lt;br&gt;
&amp;gt; 522787 at codehaus).&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;This could be because earlier Maven pushes were done manually (just uploading).&lt;br&gt;
In this case there must have been something wrong with the initial jar&lt;br&gt;
version, which was replaced, but not before broken version was&lt;br&gt;
propagated. Unfortunately Maven does not seem to be able to resolve&lt;br&gt;
such cases.&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&amp;gt; Is it possible to somehow push out a correct version to the central&lt;br&gt;
&amp;gt; repository?&lt;br&gt;
&amp;gt;  (No I cannot use a newer version, since I use it indirectly through cxf&lt;br&gt;
&amp;gt; which depends on wstx-asl:jar:3.2.8 and I can download a correct version,&lt;br&gt;
&amp;gt; but we have&lt;br&gt;
&amp;gt; a local artifactory which cannot get it due to the invalid checksum)&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Maven&amp;#39;s artifact distribution system is problematic, since it seems&lt;br&gt;
that once a version has been propagated it is very difficult to&lt;br&gt;
replace it. :-/&lt;br&gt;
I do have access to Codehaus repository, but unfortunately not to&lt;br&gt;
central Maven repository. If anyone knows who might be able to help, I&lt;br&gt;
could contact that person to see if it was possible to delete current&lt;br&gt;
version and let fixed version be synced from Codehaus repository.&lt;br&gt;
&lt;br&gt;
Another possibility would be try to convince CXF folks either upgrade&lt;br&gt;
to 3.2.9 (patch versions are very safe in this direction), or make&lt;br&gt;
dependency less strict (using [3.2.0,3.3.0), or whatever notation is&lt;br&gt;
to basically allow 3.2.x).&lt;br&gt;
&lt;br&gt;
Apologies for the mess up -- current deployments should work better&lt;br&gt;
with Ant Maven tasks, so this should not recur. But that was not yet&lt;br&gt;
the case for 3.2.8.&lt;br&gt;
&lt;br&gt;
-+ Tatu +-&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checksum-failure-of-wstx-asl-3.2.8.jar-on-maven-central-tp26176975p26185870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26184461</id>
	<title>Re: Checksum failure of wstx-asl-3.2.8.jar on maven  central</title>
	<published>2009-11-03T10:40:21Z</published>
	<updated>2009-11-03T10:40:21Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Tue, Nov 3, 2009 at 1:21 AM, Ulf Lindback &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26184461&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lindback@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi!
&lt;br&gt;&amp;gt; When trying to download the wstx-asl-3.2.8.jar from maven central:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.8/wstx-asl-3.2.8.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.8/wstx-asl-3.2.8.jar&lt;/a&gt;&lt;br&gt;&amp;gt; I get checksum errors (the md5 and sh1 files are the same as they are ath
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org/org/codehaus/woodstox/wstx-asl/3.2.8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/org/codehaus/woodstox/wstx-asl/3.2.8&lt;/a&gt;&amp;nbsp;so it
&lt;br&gt;&amp;gt; must
&lt;br&gt;&amp;gt; be the JAR that is corrupt at the central (size 523825 at central and size
&lt;br&gt;&amp;gt; 522787 at codehaus).
&lt;br&gt;&lt;br&gt;This could be because earlier Maven pushes were done manually (just uploading).
&lt;br&gt;In this case there must have been something wrong with the initial jar
&lt;br&gt;version, which was replaced, but not before broken version was
&lt;br&gt;propagated. Unfortunately Maven does not seem to be able to resolve
&lt;br&gt;such cases.
&lt;br&gt;&lt;br&gt;&amp;gt; Is it possible to somehow push out a correct version to the central
&lt;br&gt;&amp;gt; repository?
&lt;br&gt;&amp;gt;  (No I cannot use a newer version, since I use it indirectly through cxf
&lt;br&gt;&amp;gt; which depends on wstx-asl:jar:3.2.8 and I can download a correct version,
&lt;br&gt;&amp;gt; but we have
&lt;br&gt;&amp;gt; a local artifactory which cannot get it due to the invalid checksum)
&lt;br&gt;&lt;br&gt;Maven's artifact distribution system is problematic, since it seems
&lt;br&gt;that once a version has been propagated it is very difficult to
&lt;br&gt;replace it. :-/
&lt;br&gt;I do have access to Codehaus repository, but unfortunately not to
&lt;br&gt;central Maven repository. If anyone knows who might be able to help, I
&lt;br&gt;could contact that person to see if it was possible to delete current
&lt;br&gt;version and let fixed version be synced from Codehaus repository.
&lt;br&gt;&lt;br&gt;Another possibility would be try to convince CXF folks either upgrade
&lt;br&gt;to 3.2.9 (patch versions are very safe in this direction), or make
&lt;br&gt;dependency less strict (using [3.2.0,3.3.0), or whatever notation is
&lt;br&gt;to basically allow 3.2.x).
&lt;br&gt;&lt;br&gt;Apologies for the mess up -- current deployments should work better
&lt;br&gt;with Ant Maven tasks, so this should not recur. But that was not yet
&lt;br&gt;the case for 3.2.8.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checksum-failure-of-wstx-asl-3.2.8.jar-on-maven-central-tp26176975p26184461.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26176975</id>
	<title>Checksum failure of wstx-asl-3.2.8.jar on maven central</title>
	<published>2009-11-03T01:21:32Z</published>
	<updated>2009-11-03T01:21:32Z</updated>
	<author>
		<name>Ulf Lindback</name>
	</author>
	<content type="html">Hi!&lt;br&gt;When trying to download the wstx-asl-3.2.8.jar from maven central: &lt;a href=&quot;http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.8/wstx-asl-3.2.8.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.8/wstx-asl-3.2.8.jar&lt;/a&gt;  &lt;br&gt;

I get checksum errors (the md5 and sh1 files are the same as they are ath &lt;a href=&quot;http://repository.codehaus.org/org/codehaus/woodstox/wstx-asl/3.2.8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/org/codehaus/woodstox/wstx-asl/3.2.8&lt;/a&gt; so it must &lt;br&gt;

be the JAR that is corrupt at the central (size 523825 at central and size 522787 at codehaus).&lt;br&gt;&lt;br&gt;Is it possible to somehow push out a correct version to the central repository?&lt;br&gt; (No I cannot use a newer version, since I use it indirectly through cxf which depends on wstx-asl:jar:3.2.8 and I can download a correct version, but we have&lt;br&gt;

a local artifactory which cannot get it due to the invalid checksum)&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;/Ulf Lindback&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checksum-failure-of-wstx-asl-3.2.8.jar-on-maven-central-tp26176975p26176975.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26134105</id>
	<title>Re: XML Declaration</title>
	<published>2009-10-30T10:34:15Z</published>
	<updated>2009-10-30T10:34:15Z</updated>
	<author>
		<name>Johannes Schneider-5</name>
	</author>
	<content type="html">As I have written I don't need this feature anymore for my unit tests. I
&lt;br&gt;have switched to XmlUnit (and I think this has been a good decision).
&lt;br&gt;And of course the produced xml is completely valid. This is just a minor
&lt;br&gt;case of &amp;quot;might-be-nice-to-be-configurable&amp;quot;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sincerly,
&lt;br&gt;&lt;br&gt;Johannes
&lt;br&gt;&lt;br&gt;Michael Kay wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; But on the other side I think the type of quotes should 
&lt;br&gt;&amp;gt;&amp;gt; really be configurable.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, as a data point, in the W3C serialization spec we have options to
&lt;br&gt;&amp;gt; control quite a few aspects of serialization, and there has never been any
&lt;br&gt;&amp;gt; demand to add this. Recipients of the document shouldn't care. If you want
&lt;br&gt;&amp;gt; XML that can be compared byte-by-byte, serialize the output and then
&lt;br&gt;&amp;gt; canonicalize.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-Declaration-tp26117560p26134105.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26127171</id>
	<title>RE: XML Declaration</title>
	<published>2009-10-30T02:31:32Z</published>
	<updated>2009-10-30T02:31:32Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&amp;gt; But on the other side I think the type of quotes should 
&lt;br&gt;&amp;gt; really be configurable.
&lt;br&gt;&lt;br&gt;Well, as a data point, in the W3C serialization spec we have options to
&lt;br&gt;control quite a few aspects of serialization, and there has never been any
&lt;br&gt;demand to add this. Recipients of the document shouldn't care. If you want
&lt;br&gt;XML that can be compared byte-by-byte, serialize the output and then
&lt;br&gt;canonicalize.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-Declaration-tp26117560p26127171.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26126577</id>
	<title>Re: XML Declaration</title>
	<published>2009-10-30T01:35:20Z</published>
	<updated>2009-10-30T01:35:20Z</updated>
	<author>
		<name>Johannes Schneider-5</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;thanks for your fast replys. Of course you are right - I have to modify
&lt;br&gt;my tests (will switch to XmlUnit).
&lt;br&gt;But on the other side I think the type of quotes should really be
&lt;br&gt;configurable.
&lt;br&gt;&lt;br&gt;Maybe one might discuss about the default settings (I know several XML
&lt;br&gt;tools and nearly everyone uses &amp;quot; as quote) but at least it should be
&lt;br&gt;configurable.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sincerly,
&lt;br&gt;&lt;br&gt;Johannes
&lt;br&gt;&lt;br&gt;Tatu Saloranta wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Oct 29, 2009 at 10:37 AM, Johannes Schneider
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26126577&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailings@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi guys,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; at the moment I am thinking about switchting from JDOM to woodstox and
&lt;br&gt;&amp;gt;&amp;gt; staxmate:
&lt;br&gt;&amp;gt;&amp;gt; The first tests look very promising.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; But I have on small problem when writing the XML Declaration.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; JDom creates that line:
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; but Woodstock creates:
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Since I have many, many unit tests that contain that line I'd like to
&lt;br&gt;&amp;gt;&amp;gt; reconfigure Woodstock to output the format I am used to.
&lt;br&gt;&amp;gt;&amp;gt; Is there anything I can do about?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I debugged a bit and found that method:
&lt;br&gt;&amp;gt;&amp;gt; com.ctc.wstx.sw.BufferingXmlWriter#writeXmlDeclaration
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; But that doesn't seem to be configurable....
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is nothing in API to really configure this, and like Michael
&lt;br&gt;&amp;gt; pointed out, this (type of quotes) is not something that tests should
&lt;br&gt;&amp;gt; assume is one way or the other. Same applies to attribute value
&lt;br&gt;&amp;gt; quoting, and amount of white space. I have had to fix quite a few unit
&lt;br&gt;&amp;gt; tests myself (for projects I have worked on) not to count on specific
&lt;br&gt;&amp;gt; formatting that is not defined by xml specification.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Still, if you absolutely do want to control this, your best bet is to
&lt;br&gt;&amp;gt; use method &amp;quot;writeRaw&amp;quot; on XMLStreamWriter2. All Woodstox
&lt;br&gt;&amp;gt; XMLStreamWriter implementations actually implement
&lt;br&gt;&amp;gt; org.codehaus.stax2.XMLStreamWriter2 (part of Stax2 extension API). It
&lt;br&gt;&amp;gt; will embed textual content as-is without any processing and can be
&lt;br&gt;&amp;gt; used to output what amounts to XML declaration. Also, you should not
&lt;br&gt;&amp;gt; call writeStartDocument (which would try to write declaration again).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -+ Tatu +-
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-Declaration-tp26117560p26126577.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26125698</id>
	<title>Re: XML Declaration</title>
	<published>2009-10-29T23:46:48Z</published>
	<updated>2009-10-29T23:46:48Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Thu, Oct 29, 2009 at 10:37 AM, Johannes Schneider
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26125698&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailings@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi guys,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; at the moment I am thinking about switchting from JDOM to woodstox and
&lt;br&gt;&amp;gt; staxmate:
&lt;br&gt;&amp;gt; The first tests look very promising.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But I have on small problem when writing the XML Declaration.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; JDom creates that line:
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; but Woodstock creates:
&lt;br&gt;&amp;gt; &amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since I have many, many unit tests that contain that line I'd like to
&lt;br&gt;&amp;gt; reconfigure Woodstock to output the format I am used to.
&lt;br&gt;&amp;gt; Is there anything I can do about?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I debugged a bit and found that method:
&lt;br&gt;&amp;gt; com.ctc.wstx.sw.BufferingXmlWriter#writeXmlDeclaration
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But that doesn't seem to be configurable....
&lt;/div&gt;&lt;br&gt;There is nothing in API to really configure this, and like Michael
&lt;br&gt;pointed out, this (type of quotes) is not something that tests should
&lt;br&gt;assume is one way or the other. Same applies to attribute value
&lt;br&gt;quoting, and amount of white space. I have had to fix quite a few unit
&lt;br&gt;tests myself (for projects I have worked on) not to count on specific
&lt;br&gt;formatting that is not defined by xml specification.
&lt;br&gt;&lt;br&gt;Still, if you absolutely do want to control this, your best bet is to
&lt;br&gt;use method &amp;quot;writeRaw&amp;quot; on XMLStreamWriter2. All Woodstox
&lt;br&gt;XMLStreamWriter implementations actually implement
&lt;br&gt;org.codehaus.stax2.XMLStreamWriter2 (part of Stax2 extension API). It
&lt;br&gt;will embed textual content as-is without any processing and can be
&lt;br&gt;used to output what amounts to XML declaration. Also, you should not
&lt;br&gt;call writeStartDocument (which would try to write declaration again).
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-Declaration-tp26117560p26125698.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26117769</id>
	<title>RE: XML Declaration</title>
	<published>2009-10-29T10:51:47Z</published>
	<updated>2009-10-29T10:51:47Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&amp;gt; 
&lt;br&gt;&amp;gt; Since I have many, many unit tests that contain that line I'd 
&lt;br&gt;&amp;gt; like to reconfigure Woodstock to output the format I am used to.
&lt;br&gt;&amp;gt; Is there anything I can do about?
&lt;br&gt;&lt;br&gt;Rewrite the unit tests. It's always a mistake to make tests depend on things
&lt;br&gt;that aren't essential to correct functioning. When you're testing XML, you
&lt;br&gt;should always canonicalize the XML before comparing with expected results:
&lt;br&gt;otherwise, as you have found, your tests lock you into technology choices
&lt;br&gt;and reduce the potential for change in the system. 
&lt;br&gt;&lt;br&gt;It's a problem, as it happens, which is faced by a project I'm helping with
&lt;br&gt;at the moment that has invested very heavily in creating a large battery of
&lt;br&gt;test material.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-Declaration-tp26117560p26117769.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26117560</id>
	<title>XML Declaration</title>
	<published>2009-10-29T10:37:30Z</published>
	<updated>2009-10-29T10:37:30Z</updated>
	<author>
		<name>Johannes Schneider-5</name>
	</author>
	<content type="html">Hi guys,
&lt;br&gt;&lt;br&gt;at the moment I am thinking about switchting from JDOM to woodstox and
&lt;br&gt;staxmate:
&lt;br&gt;The first tests look very promising.
&lt;br&gt;&lt;br&gt;&lt;br&gt;But I have on small problem when writing the XML Declaration.
&lt;br&gt;&lt;br&gt;JDom creates that line:
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&lt;br&gt;but Woodstock creates:
&lt;br&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&lt;br&gt;&lt;br&gt;Since I have many, many unit tests that contain that line I'd like to
&lt;br&gt;reconfigure Woodstock to output the format I am used to.
&lt;br&gt;Is there anything I can do about?
&lt;br&gt;&lt;br&gt;I debugged a bit and found that method:
&lt;br&gt;com.ctc.wstx.sw.BufferingXmlWriter#writeXmlDeclaration
&lt;br&gt;&lt;br&gt;But that doesn't seem to be configurable....
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Johannes
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-Declaration-tp26117560p26117560.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25778900</id>
	<title>Re: InternCache - intern() method causing thread  synchronization issue</title>
	<published>2009-10-06T17:20:06Z</published>
	<updated>2009-10-06T17:20:06Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">2009/10/6 Holger Hoffstätte &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25778900&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.hoffstaette@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; vadheraju1 wrote:
&lt;br&gt;&amp;gt;&amp;gt; We are using AXIS  and Xfire as our soap stacks which internally use
&lt;br&gt;&amp;gt;&amp;gt; woodstox. and In a load test, we see thread are waiting on InternCache
&lt;br&gt;&amp;gt;&amp;gt; object - due to the fact that intern() method is Synchronized.
&lt;br&gt;&amp;gt;&amp;gt; We changed the code it seems to be fixed the issue; we need someone from
&lt;br&gt;&amp;gt;&amp;gt; woodstox team to confirm our change.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; New implementation:
&lt;br&gt;&amp;gt;&amp;gt; public String intern(String input) {
&lt;br&gt;&amp;gt;&amp;gt;         String result = (String) get(input);
&lt;br&gt;&amp;gt;&amp;gt;         if (result == null) {
&lt;br&gt;&amp;gt;&amp;gt;             result = putInCache(input);
&lt;br&gt;&amp;gt;&amp;gt;         }
&lt;br&gt;&amp;gt;&amp;gt;         return result;
&lt;br&gt;&amp;gt;&amp;gt;     }
&lt;br&gt;&amp;gt;&amp;gt; public synchronized String putInCache(String input) {
&lt;br&gt;&amp;gt;&amp;gt;             String result = input.intern();
&lt;br&gt;&amp;gt;&amp;gt;             put(result, result);
&lt;br&gt;&amp;gt;&amp;gt;             return result;
&lt;br&gt;&amp;gt;&amp;gt;     }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not the woodstox team, but that change is wrong as get()s are now
&lt;br&gt;&amp;gt; unsynchronized, which can lead to all sorts of bugs. It is not enough to
&lt;br&gt;&amp;gt; synchronize the put().
&lt;/div&gt;&lt;br&gt;Right: I did mention this in the Jira issue.
&lt;br&gt;It is actually ok to separately sync on get and put(), because of
&lt;br&gt;intervening intern() call guaranteeing that instance is canonical.
&lt;br&gt;More interestingly though, that will just move the bottleneck within
&lt;br&gt;intern() method, which is all but guaranteed to also synchronize with
&lt;br&gt;a global/singleton lock. So in the end I am not quite sure it will be
&lt;br&gt;a net win.
&lt;br&gt;It definitely is not ok to leave sync out of get part, for
&lt;br&gt;unsynchronized containers like HashMap.
&lt;br&gt;&lt;br&gt;&amp;gt; Unless you need to run on JDK 1.4 it is probably easiest to just use a
&lt;br&gt;&amp;gt; ConcurrentMap with proper putIfAbsent(). If you put your InternCache
&lt;br&gt;&amp;gt; implementation on the start of the classpath, Woodstox should pick it up.
&lt;br&gt;&lt;br&gt;Woodstox is 1.4+ for version 4.0, so Concurrent map can not yet be
&lt;br&gt;used, but for 5.0 and above it can be used.
&lt;br&gt;There are quite a few things that JDK 1.5 will add, including
&lt;br&gt;StringBuilder() (unsynced wrt StringBuffer()); and 1.6 would have
&lt;br&gt;nifty array resize/realloc methods.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/InternCache---intern%28%29-method-causing-thread-synchronization-issue-tp25775169p25778900.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25777972</id>
	<title>RE: InternCache - intern() method causing thread synchronization issue</title>
	<published>2009-10-06T16:03:42Z</published>
	<updated>2009-10-06T16:03:42Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">As a general rule, when you read shared data and then update it, the whole
&lt;br&gt;operation should be done under a synchronization lock: it's not safe to only
&lt;br&gt;get the lock if an update is needed. Having said that, however, an awful lot
&lt;br&gt;of software gets away with it nearly all the time. Certainly, Saxon does! In
&lt;br&gt;practice it depends a little on the design of the data structures that you
&lt;br&gt;use: although it's always unsafe in theory, it's often safe in practice
&lt;br&gt;(i.e. given the design of current JVMs).
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;Saxonica &amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: vadheraju1 [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25777972&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Rajeswar.Rao@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 06 October 2009 20:31
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25777972&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [woodstox-user] InternCache - intern() method 
&lt;br&gt;&amp;gt; causing thread synchronization issue
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We are using AXIS &amp;nbsp;and Xfire as our soap stacks which 
&lt;br&gt;&amp;gt; internally use woodstox. and In a load test, we see thread 
&lt;br&gt;&amp;gt; are waiting on InternCache object - due to the fact that 
&lt;br&gt;&amp;gt; intern() method is Synchronized.
&lt;br&gt;&amp;gt; We changed the code it seems to be fixed the issue; we need 
&lt;br&gt;&amp;gt; someone from woodstox team to confirm our change.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jar : wstx-asl-3.0.1
&lt;br&gt;&amp;gt; Stack Trace:
&lt;br&gt;&amp;gt; at com.ctc.wstx.util.InternCache.intern(InternCache.java:40) 
&lt;br&gt;&amp;gt; - waiting to lock [0x942373a0] (a com.ctc.wstx.util.InternCache) at
&lt;br&gt;&amp;gt; com.ctc.wstx.sr.NsInputElementStack.resolveAndValidateElement(
&lt;br&gt;&amp;gt; NsInputElementStack.java:305)
&lt;br&gt;&amp;gt; at
&lt;br&gt;&amp;gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamR
&lt;br&gt;&amp;gt; eader.java:2826)
&lt;br&gt;&amp;gt; at
&lt;br&gt;&amp;gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamRead
&lt;br&gt;&amp;gt; er.java:2737)
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1004) at
&lt;br&gt;&amp;gt; org.codehaus.xfire.util.stax.DepthXMLStreamReader.next(DepthXM
&lt;br&gt;&amp;gt; LStreamReader.java:252)
&lt;br&gt;&amp;gt; at
&lt;br&gt;&amp;gt; org.codehaus.xfire.util.stax.FragmentStreamReader.next(Fragmen
&lt;br&gt;&amp;gt; tStreamReader.java:79)
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; org.codehaus.xfire.util.jdom.StaxBuilder.buildTree(StaxBuilder
&lt;br&gt;&amp;gt; .java:466)
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; org.codehaus.xfire.util.jdom.StaxBuilder.build(StaxBuilder.jav
&lt;br&gt;&amp;gt; a:215) at
&lt;br&gt;&amp;gt; org.codehaus.xfire.soap.handler.ReadHeadersHandler.readHeaders
&lt;br&gt;&amp;gt; (ReadHeadersHandler.java:134)
&lt;br&gt;&amp;gt; at
&lt;br&gt;&amp;gt; org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(Read
&lt;br&gt;&amp;gt; HeadersHandler.java:59)
&lt;br&gt;&amp;gt; at
&lt;br&gt;&amp;gt; org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipel
&lt;br&gt;&amp;gt; ine.java:131)
&lt;br&gt;&amp;gt; at org.codehaus.xfire.client.Client.onReceive(Client.java:406) at
&lt;br&gt;&amp;gt; org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(Ht
&lt;br&gt;&amp;gt; tpChannel.java:139)
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel
&lt;br&gt;&amp;gt; .java:48)
&lt;br&gt;&amp;gt; at
&lt;br&gt;&amp;gt; org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageS
&lt;br&gt;&amp;gt; ender.java:26)
&lt;br&gt;&amp;gt; at
&lt;br&gt;&amp;gt; org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipel
&lt;br&gt;&amp;gt; ine.java:131)
&lt;br&gt;&amp;gt; at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) at
&lt;br&gt;&amp;gt; org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) at
&lt;br&gt;&amp;gt; org.codehaus.xfire.client.Client.invoke(Client.java:336) at
&lt;br&gt;&amp;gt; org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.
&lt;br&gt;&amp;gt; java:77) at
&lt;br&gt;&amp;gt; org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57
&lt;br&gt;&amp;gt; ) at $Proxy2.doCompleteAndTrackForms(Unknown Source) at
&lt;br&gt;&amp;gt; com.metavante.eds.deposit_origination.common.DoBusSvcsDao.invo
&lt;br&gt;&amp;gt; keBusService(DoBusSvcsDao.java:104)
&lt;br&gt;&amp;gt; at
&lt;br&gt;&amp;gt; com.metavante.eds.common.pages.print_forms.PrintFormsSH.doNavi
&lt;br&gt;&amp;gt; gateOff(PrintFormsSH.java:873)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Class Name and Method Name:
&lt;br&gt;&amp;gt; com.ctc.wstx.util.InternCache.intern
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Current Implementation:
&lt;br&gt;&amp;gt; public synchronized String intern(String input) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = (String) get(input);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result == null) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = input.intern();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put(result, result);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; New implementation:
&lt;br&gt;&amp;gt; public String intern(String input) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = (String) get(input);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result == null) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = putInCache(input);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; public synchronized String putInCache(String input) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = input.intern();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put(result, result);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/InternCache---intern%28%29-method-causin&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/InternCache---intern%28%29-method-causin&lt;/a&gt;&lt;br&gt;&amp;gt; g-thread-synchronization-issue-tp25775169p25775169.html
&lt;br&gt;&amp;gt; Sent from the woodstox - user mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/InternCache---intern%28%29-method-causing-thread-synchronization-issue-tp25775169p25777972.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25777937</id>
	<title>Re: InternCache - intern() method causing thread synchronization issue</title>
	<published>2009-10-06T16:00:10Z</published>
	<updated>2009-10-06T16:00:10Z</updated>
	<author>
		<name>Holger Hoffstätte-4</name>
	</author>
	<content type="html">vadheraju1 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; We are using AXIS &amp;nbsp;and Xfire as our soap stacks which internally use
&lt;br&gt;&amp;gt; woodstox. and In a load test, we see thread are waiting on InternCache
&lt;br&gt;&amp;gt; object - due to the fact that intern() method is Synchronized.
&lt;br&gt;&amp;gt; We changed the code it seems to be fixed the issue; we need someone from
&lt;br&gt;&amp;gt; woodstox team to confirm our change.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; New implementation:
&lt;br&gt;&amp;gt; public String intern(String input) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = (String) get(input);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result == null) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = putInCache(input);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; public synchronized String putInCache(String input) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = input.intern();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put(result, result);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;I'm not the woodstox team, but that change is wrong as get()s are now
&lt;br&gt;unsynchronized, which can lead to all sorts of bugs. It is not enough to
&lt;br&gt;synchronize the put().
&lt;br&gt;Unless you need to run on JDK 1.4 it is probably easiest to just use a
&lt;br&gt;ConcurrentMap with proper putIfAbsent(). If you put your InternCache
&lt;br&gt;implementation on the start of the classpath, Woodstox should pick it up.
&lt;br&gt;&lt;br&gt;However, as Tatu has already answered - it is not entirely clear *why*
&lt;br&gt;this method is a bottleneck in your case. Chances are very good that you
&lt;br&gt;will see other (much more severe) bottlenecks come up after this &amp;quot;fix&amp;quot;,
&lt;br&gt;especially in Axis (which is horribly broken in itself) and XFire (long
&lt;br&gt;unmaintained).
&lt;br&gt;&lt;br&gt;-h
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/InternCache---intern%28%29-method-causing-thread-synchronization-issue-tp25775169p25777937.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25777842</id>
	<title>Re: [woodstox-user] InternCache - intern() method causing thread  synchronization issue</title>
	<published>2009-10-06T15:24:20Z</published>
	<updated>2009-10-06T15:24:20Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Tue, Oct 6, 2009 at 12:30 PM, vadheraju1 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25777842&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Rajeswar.Rao@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are using AXIS  and Xfire as our soap stacks which internally use
&lt;br&gt;&amp;gt; woodstox. and In a load test, we see thread are waiting on InternCache
&lt;br&gt;&amp;gt; object - due to the fact that intern() method is Synchronized.
&lt;br&gt;&amp;gt; We changed the code it seems to be fixed the issue; we need someone from
&lt;br&gt;&amp;gt; woodstox team to confirm our change.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jar : wstx-asl-3.0.1
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;First of all, thank you for your suggestion. It is always possible
&lt;br&gt;that implementation could be improved.
&lt;br&gt;I'll have a look at proposed change (first create a Jira issue for it.
&lt;br&gt;&lt;br&gt;I have some questions regarding the change. First: version 3.0.1 is
&lt;br&gt;rather old, and although I don't think there have been drastic
&lt;br&gt;changes, it would be good if the performance aspects could be verified
&lt;br&gt;with a more recent version. 3.2.9 should be fully backwards
&lt;br&gt;compatible, so if you could re-check findings using that version it'd
&lt;br&gt;be great.
&lt;br&gt;&lt;br&gt;Also: I am somewhat surprised that this method could be heavily
&lt;br&gt;contested; and that suggests that perhaps your application is not
&lt;br&gt;reusing XMLInputFactory instances as expected. The reason for this is
&lt;br&gt;that intern()ing only occurs if symbol is not found from symbol table;
&lt;br&gt;and symbol table gets populated and recycled on per-input-factory
&lt;br&gt;basis. Which means that fairly quickly such cache misses should be
&lt;br&gt;very rare.
&lt;br&gt;Put another way: this could indicate sub-optimal behavior within
&lt;br&gt;service itself, whereas symbol tables are not being reused. So you may
&lt;br&gt;want to see how reuse is implemented -- it has significant performance
&lt;br&gt;benefits, especially for small to medium size documents.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---dev-f12119.html&quot; embed=&quot;fixTarget[12119]&quot; target=&quot;_top&quot; &gt;woodstox - dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--woodstox-user--InternCache---intern%28%29-method-causing-thread--synchronization-issue-tp25777842p25777842.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25777844</id>
	<title>Re: InternCache - intern() method causing thread  synchronization issue</title>
	<published>2009-10-06T15:24:20Z</published>
	<updated>2009-10-06T15:24:20Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Tue, Oct 6, 2009 at 12:30 PM, vadheraju1 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25777844&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Rajeswar.Rao@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are using AXIS  and Xfire as our soap stacks which internally use
&lt;br&gt;&amp;gt; woodstox. and In a load test, we see thread are waiting on InternCache
&lt;br&gt;&amp;gt; object - due to the fact that intern() method is Synchronized.
&lt;br&gt;&amp;gt; We changed the code it seems to be fixed the issue; we need someone from
&lt;br&gt;&amp;gt; woodstox team to confirm our change.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jar : wstx-asl-3.0.1
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;First of all, thank you for your suggestion. It is always possible
&lt;br&gt;that implementation could be improved.
&lt;br&gt;I'll have a look at proposed change (first create a Jira issue for it.
&lt;br&gt;&lt;br&gt;I have some questions regarding the change. First: version 3.0.1 is
&lt;br&gt;rather old, and although I don't think there have been drastic
&lt;br&gt;changes, it would be good if the performance aspects could be verified
&lt;br&gt;with a more recent version. 3.2.9 should be fully backwards
&lt;br&gt;compatible, so if you could re-check findings using that version it'd
&lt;br&gt;be great.
&lt;br&gt;&lt;br&gt;Also: I am somewhat surprised that this method could be heavily
&lt;br&gt;contested; and that suggests that perhaps your application is not
&lt;br&gt;reusing XMLInputFactory instances as expected. The reason for this is
&lt;br&gt;that intern()ing only occurs if symbol is not found from symbol table;
&lt;br&gt;and symbol table gets populated and recycled on per-input-factory
&lt;br&gt;basis. Which means that fairly quickly such cache misses should be
&lt;br&gt;very rare.
&lt;br&gt;Put another way: this could indicate sub-optimal behavior within
&lt;br&gt;service itself, whereas symbol tables are not being reused. So you may
&lt;br&gt;want to see how reuse is implemented -- it has significant performance
&lt;br&gt;benefits, especially for small to medium size documents.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/InternCache---intern%28%29-method-causing-thread-synchronization-issue-tp25775169p25777844.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25775170</id>
	<title>InternCache - intern() method causing thread synchronization issue</title>
	<published>2009-10-06T12:32:48Z</published>
	<updated>2009-10-06T12:32:48Z</updated>
	<author>
		<name>vadheraju1</name>
	</author>
	<content type="html">We are using AXIS &amp;nbsp;and Xfire as our soap stacks which internally use woodstox. and In a load test, we see thread are waiting on InternCache object - due to the fact that intern() method is Synchronized. 
&lt;br&gt;We changed the code it seems to be fixed the issue; we need someone from woodstox team to confirm our change. 
&lt;br&gt;&lt;br&gt;&lt;b&gt;Jar&lt;/b&gt;&amp;nbsp;: wstx-asl-3.0.1 
&lt;br&gt;&lt;b&gt;Stack Trace&lt;/b&gt;:
&lt;br&gt;at com.ctc.wstx.util.InternCache.intern(InternCache.java:40) - waiting to lock [0x942373a0] (a com.ctc.wstx.util.InternCache) at com.ctc.wstx.sr.NsInputElementStack.resolveAndValidateElement(NsInputElementStack.java:305) at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2826) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2737) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1004) at org.codehaus.xfire.util.stax.DepthXMLStreamReader.next(DepthXMLStreamReader.java:252) at org.codehaus.xfire.util.stax.FragmentStreamReader.next(FragmentStreamReader.java:79) at org.codehaus.xfire.util.jdom.StaxBuilder.buildTree(StaxBuilder.java:466) at org.codehaus.xfire.util.jdom.StaxBuilder.build(StaxBuilder.java:215) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.readHeaders(ReadHeadersHandler.java:134) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:59) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Client.onReceive(Client.java:406) at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139) at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) at org.codehaus.xfire.client.Client.invoke(Client.java:336) at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) at $Proxy2.doCompleteAndTrackForms(Unknown Source) at com.metavante.eds.deposit_origination.common.DoBusSvcsDao.invokeBusService(DoBusSvcsDao.java:104) at com.metavante.eds.common.pages.print_forms.PrintFormsSH.doNavigateOff(PrintFormsSH.java:873) 
&lt;br&gt;&lt;br&gt;&lt;b&gt;Class Name and Method Name&lt;/b&gt;:
&lt;br&gt;com.ctc.wstx.util.InternCache.intern 
&lt;br&gt;&lt;br&gt;&lt;b&gt;Current Implementation&lt;/b&gt;:
&lt;br&gt;public synchronized String intern(String input) { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = (String) get(input); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result == null) { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = input.intern(); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put(result, result); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&lt;br&gt;&lt;b&gt;New implementation&lt;/b&gt;:
&lt;br&gt;public String intern(String input) { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = (String) get(input); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result == null) { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = putInCache(input); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; } 
&lt;br&gt;public synchronized String putInCache(String input) { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = input.intern(); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put(result, result); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---dev-f12119.html&quot; embed=&quot;fixTarget[12119]&quot; target=&quot;_top&quot; &gt;woodstox - dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/InternCache---intern%28%29-method-causing-thread-synchronization-issue-tp25775170p25775170.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25775169</id>
	<title>InternCache - intern() method causing thread synchronization issue</title>
	<published>2009-10-06T12:30:43Z</published>
	<updated>2009-10-06T20:30:32Z</updated>
	<author>
		<name>vadheraju1</name>
	</author>
	<content type="html">We are using AXIS &amp;nbsp;and Xfire as our soap stacks which internally use woodstox. and In a load test, we see thread are waiting on InternCache object - due to the fact that intern() method is Synchronized.
&lt;br&gt;We changed the code it seems to be fixed the issue; we need someone from woodstox team to confirm our change.
&lt;br&gt;&lt;br&gt;&lt;b&gt;Jar&lt;/b&gt;&amp;nbsp;: wstx-asl-3.0.1
&lt;br&gt;&lt;b&gt;Stack Trace:&lt;/b&gt;&lt;br&gt;at com.ctc.wstx.util.InternCache.intern(InternCache.java:40) - waiting to lock [0x942373a0] (a com.ctc.wstx.util.InternCache) at com.ctc.wstx.sr.NsInputElementStack.resolveAndValidateElement(NsInputElementStack.java:305) at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2826) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2737) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1004) at org.codehaus.xfire.util.stax.DepthXMLStreamReader.next(DepthXMLStreamReader.java:252) at org.codehaus.xfire.util.stax.FragmentStreamReader.next(FragmentStreamReader.java:79) at org.codehaus.xfire.util.jdom.StaxBuilder.buildTree(StaxBuilder.java:466) at org.codehaus.xfire.util.jdom.StaxBuilder.build(StaxBuilder.java:215) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.readHeaders(ReadHeadersHandler.java:134) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:59) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Client.onReceive(Client.java:406) at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139) at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) at org.codehaus.xfire.client.Client.invoke(Client.java:336) at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) 
&lt;br&gt;&lt;br&gt;&lt;b&gt;Class Name and Method Name:&lt;/b&gt;&lt;br&gt;com.ctc.wstx.util.InternCache.intern
&lt;br&gt;&lt;br&gt;&lt;b&gt;Current Implementation:&lt;/b&gt;&lt;br&gt;public synchronized String intern(String input) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = (String) get(input);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = input.intern();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put(result, result);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;b&gt;New implementation:&lt;/b&gt;&lt;br&gt;public String intern(String input) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = (String) get(input);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = putInCache(input);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;public synchronized String putInCache(String input) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String result = input.intern();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put(result, result);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/InternCache---intern%28%29-method-causing-thread-synchronization-issue-tp25775169p25775169.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25710264</id>
	<title>[woodstox-announce] Woodstox 4.0.6 released: upgrade from 4.0.x recommended</title>
	<published>2009-10-01T21:11:33Z</published>
	<updated>2009-10-01T21:11:33Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">I decided to go ahead and release patch/maintenance version 4.0.6,
&lt;br&gt;even though there is just one bug fix.
&lt;br&gt;However, that's an important one (see
&lt;br&gt;[&lt;a href=&quot;http://jira.codehaus.org/browse/WSTX-211&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/WSTX-211&lt;/a&gt;] for details), related to
&lt;br&gt;handling of CDATA sections when read using
&lt;br&gt;XMLStreamReader.getElementText().
&lt;br&gt;Because of this, upgrade from earlier 4.0.x is strongly recommended.
&lt;br&gt;&lt;br&gt;Also: thanks to Olivier's suggestion (see
&lt;br&gt;[&lt;a href=&quot;http://jira.codehaus.org/browse/WSTX-218&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/WSTX-218&lt;/a&gt;]), I added &amp;quot;legacy&amp;quot; Maven
&lt;br&gt;pom entries that should make it easier to upgrade from 3.2. Problem
&lt;br&gt;being addressed is that of artifactId having changed between 3.2 and
&lt;br&gt;4.0 (from &amp;quot;wstx-asl&amp;quot; to &amp;quot;woodstox-core-asl&amp;quot;). I hope this makes pain
&lt;br&gt;with transitive dependency handling bit more tolerable.
&lt;br&gt;&lt;br&gt;As usual, please let me know if you find any problems,
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-woodstox-announce--Woodstox-4.0.6-released%3A-upgrade-from-4.0.x-recommended-tp25710264p25710264.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25605714</id>
	<title>Re: tied myself in prezel with validation name  namespaces</title>
	<published>2009-09-24T19:29:38Z</published>
	<updated>2009-09-24T19:29:38Z</updated>
	<author>
		<name>bimargulies</name>
	</author>
	<content type="html">I updated the old JIRA on this subject. I&amp;#39;ll cook at test case and attach it.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Sep 24, 2009 at 3:59 PM, Tatu Saloranta &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25605714&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tsaloranta@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;On Thu, Sep 24, 2009 at 9:35 AM, Benson Margulies &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25605714&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bimargulies@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;

&amp;gt; I&amp;#39;m writing a document with a document element like:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;foo xmlns=&amp;quot;urn:my-namespace&amp;quot;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I do this by writing the start and then setting the default namespace.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Which should be correct...&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&amp;gt; Well, this causes validation to reject on the grounds that the element has&lt;br&gt;
&amp;gt; the wrong namespace.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I can&amp;#39;t find any way to get this right without assigning a prefix, which I&lt;br&gt;
&amp;gt; don&amp;#39;t really want.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Just to clarify: your writeStartElement() does get correct namespace&lt;br&gt;
URI, and null or empty String as prefix?&lt;br&gt;
Is this in namespace-repairing mode or not? And validating against W3C&lt;br&gt;
Schema? (not dtd, dtds still rely on prefixes, alas)&lt;br&gt;
Do you have line number for exception where validation problem is reported?&lt;br&gt;
&lt;br&gt;
-+ Tatu +-&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---dev-f12119.html&quot; embed=&quot;fixTarget[12119]&quot; target=&quot;_top&quot; &gt;woodstox - dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tied-myself-in-prezel-with-validation-name-namespaces-tp25598485p25605714.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25601679</id>
	<title>Re: tied myself in prezel with validation name  namespaces</title>
	<published>2009-09-24T12:59:34Z</published>
	<updated>2009-09-24T12:59:34Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Thu, Sep 24, 2009 at 9:35 AM, Benson Margulies &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25601679&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bimargulies@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I'm writing a document with a document element like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;foo xmlns=&amp;quot;urn:my-namespace&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do this by writing the start and then setting the default namespace.
&lt;br&gt;&lt;br&gt;Which should be correct...
&lt;br&gt;&lt;br&gt;&amp;gt; Well, this causes validation to reject on the grounds that the element has
&lt;br&gt;&amp;gt; the wrong namespace.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can't find any way to get this right without assigning a prefix, which I
&lt;br&gt;&amp;gt; don't really want.
&lt;br&gt;&lt;br&gt;Just to clarify: your writeStartElement() does get correct namespace
&lt;br&gt;URI, and null or empty String as prefix?
&lt;br&gt;Is this in namespace-repairing mode or not? And validating against W3C
&lt;br&gt;Schema? (not dtd, dtds still rely on prefixes, alas)
&lt;br&gt;Do you have line number for exception where validation problem is reported?
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---dev-f12119.html&quot; embed=&quot;fixTarget[12119]&quot; target=&quot;_top&quot; &gt;woodstox - dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tied-myself-in-prezel-with-validation-name-namespaces-tp25598485p25601679.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25598485</id>
	<title>tied myself in prezel with validation name namespaces</title>
	<published>2009-09-24T09:35:02Z</published>
	<updated>2009-09-24T09:35:02Z</updated>
	<author>
		<name>bimargulies</name>
	</author>
	<content type="html">I&amp;#39;m writing a document with a document element like:&lt;br&gt;&lt;br&gt;&amp;lt;foo xmlns=&amp;quot;urn:my-namespace&amp;quot;&amp;gt;&lt;br&gt;&lt;br&gt;I do this by writing the start and then setting the default namespace.&lt;br&gt;&lt;br&gt;Well, this causes validation to reject on the grounds that the element has the wrong namespace.&lt;br&gt;
&lt;br&gt;I can&amp;#39;t find any way to get this right without assigning a prefix, which I don&amp;#39;t really want.&lt;br&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---dev-f12119.html&quot; embed=&quot;fixTarget[12119]&quot; target=&quot;_top&quot; &gt;woodstox - dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tied-myself-in-prezel-with-validation-name-namespaces-tp25598485p25598485.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25546505</id>
	<title>Re: StAX from source</title>
	<published>2009-09-21T09:05:43Z</published>
	<updated>2009-09-21T09:05:43Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Mon, Sep 21, 2009 at 3:58 AM, Chris Faulkner
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25546505&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.faulkner@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Having previously been a  user of various SAX libraries, DOM (and JDOM), I
&lt;br&gt;&amp;gt; was very happy to have found StAX and Woodstox ! It feels a lot more natural
&lt;br&gt;&amp;gt; to me, even after quite a long time with those other implementations.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;&amp;gt; Anyway, I am at the point where I have a need to strip out extraneous
&lt;br&gt;&amp;gt; characters (linefeeds, long sections of repeating whitespace and tabs, etc)
&lt;br&gt;&amp;gt; from within some of my elements. I had hoped to understand how do this (if
&lt;br&gt;&lt;br&gt;Makes sense, yes.
&lt;br&gt;&lt;br&gt;&amp;gt; possible) by downloading the source jars and begining to debug in Eclipse by
&lt;br&gt;&amp;gt; attaching source in the normal way in there. I have been through some of the
&lt;br&gt;&amp;gt; javadoc and documentation but I can't see how I might do this with the
&lt;br&gt;&amp;gt; existing implementations.
&lt;br&gt;&lt;br&gt;There are no options directly doing this, unless you have a DTD that
&lt;br&gt;defines what whitespace is &amp;quot;ignorable&amp;quot;.
&lt;br&gt;XML by default assumes no textual content is meaningless, so it is
&lt;br&gt;reported as regular CHARACTERS.
&lt;br&gt;However, DTD can define content model for elements which does not
&lt;br&gt;include any CDATA; if so, any white space included must then be
&lt;br&gt;ignorable white space (for indentation); if so, it will be reported as
&lt;br&gt;SPACE. So filtering these out would be one way to achieve this goal,
&lt;br&gt;iff there's a DTD to use. Or theoretically Schema/RNG; but I don't
&lt;br&gt;remember whethere that has been tested to work this way (both can
&lt;br&gt;declare element-only content, but whether that gets properly
&lt;br&gt;propagated through validation API).
&lt;br&gt;&lt;br&gt;&amp;gt; 1. Is there a way of doing what I need in terms of stripping those
&lt;br&gt;&amp;gt; extraneous characters ?  For most of my elements, I am iterating through
&lt;br&gt;&amp;gt; elements with nextTag() and getElementText / getElementAs... and I am not
&lt;br&gt;&lt;br&gt;One way to trim leading/trailing space would be to just do trim() on
&lt;br&gt;results of getElementText()?
&lt;br&gt;One problem is that getElementText() only works for text-only content.
&lt;br&gt;&lt;br&gt;For what it's worth, I personally use StaxMate for much of my XML
&lt;br&gt;processing; it builds on Stax API, implements fully streaming
&lt;br&gt;extensions that allow somewhat more convenient access. And features
&lt;br&gt;like &amp;quot;advanced&amp;quot; white space processing would fit nicely within that
&lt;br&gt;framework (no such functionality yet exists in StaxMate either tho).
&lt;br&gt;&lt;br&gt;&amp;gt; doing anything within the elements. Even if there is, I'd like to get my
&lt;br&gt;&amp;gt; source build working - I may be able to provide help and input back to the
&lt;br&gt;&amp;gt; project.
&lt;br&gt;&lt;br&gt;Yes, source build should work. And help is always appreciated! So:
&lt;br&gt;&lt;br&gt;&amp;gt; 2. How do you build woodstox AND the stax2-3.0-api.jar from source ? I
&lt;br&gt;&amp;gt; downloaded the woodstox source and tried &amp;quot;ant dist -f build.xml&amp;quot; but I get
&lt;br&gt;&amp;gt; errors because it tries to import some other build files (for osgi) which
&lt;br&gt;&amp;gt; aren't there.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3. I can't find all of the source for the stax2-3.0-api.jar - this contains
&lt;br&gt;&amp;gt; classes in org.codehaus.stax2 namespace. The org.codehaus.stax2.ri code is
&lt;br&gt;&amp;gt; in the woodstox source download but not the rest of the stuff in that jar
&lt;br&gt;&amp;gt; (evt, io, etc).
&lt;br&gt;&lt;br&gt;Is this from trunk or one of branches? All sources should of course be
&lt;br&gt;included, so there may be an error in build setup, probably due to
&lt;br&gt;refactoring done to split jars (core vs others). :-/
&lt;br&gt;&lt;br&gt;One known problem is that the OSGi build task is bit tricky to get
&lt;br&gt;working; I just couldn't get it working without adding task jar in my
&lt;br&gt;local Ant lib dir (so any help to make that work would be well
&lt;br&gt;appreciated!). Jar in question is under lib/osgi/, and its declared in
&lt;br&gt;and invoked from build-osgi.xml.
&lt;br&gt;I am not aware of other problems; but it is of course possible
&lt;br&gt;something might be missing from source package. Perhaps you could
&lt;br&gt;download sources from svn repo to see what is missing?
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/StAX-from-source-tp25541984p25546505.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25541984</id>
	<title>StAX from source</title>
	<published>2009-09-21T03:58:32Z</published>
	<updated>2009-09-21T03:58:32Z</updated>
	<author>
		<name>Chris Faulkner</name>
	</author>
	<content type="html">Hi&lt;br&gt;&lt;br&gt;Having previously been a  user of various SAX libraries, DOM
(and JDOM), I was very happy to have found StAX and Woodstox ! It feels
a lot more natural to me, even after quite a long time with those other
implementations.&lt;br&gt;
&lt;br&gt;Anyway, I am at the point where I have a need to strip out
extraneous characters (linefeeds, long sections of repeating whitespace
and tabs, etc) from within some of my elements. I had hoped to
understand how do this (if possible) by downloading the source jars and
begining to debug in Eclipse by attaching source in the normal way in
there. I have been through some of the javadoc and documentation but I
can&amp;#39;t see how I might do this with the existing implementations. &lt;br&gt;
&lt;br&gt;1. Is there a way of doing what I need in terms of stripping those
extraneous characters ?  For most of my elements, I am iterating
through elements with nextTag() and getElementText / getElementAs...
and I am not doing anything within the elements. Even if there is, I&amp;#39;d
like to get my source build working - I may be able to provide help and
input back to the project.&lt;br&gt;
&lt;br&gt;2. How do you build woodstox AND the stax2-3.0-api.jar from source
? I downloaded the woodstox source and tried &amp;quot;ant dist -f build.xml&amp;quot;
but I get errors because it tries to import some other build files (for
osgi) which aren&amp;#39;t there.  &lt;br&gt;
&lt;br&gt;3. I can&amp;#39;t find all of the source for the stax2-3.0-api.jar - this contains classes in org.&lt;span class=&quot;il&quot;&gt;codehaus&lt;/span&gt;.stax2 namespace. The org.&lt;span class=&quot;il&quot;&gt;codehaus&lt;/span&gt;.stax2.ri code is in the woodstox source download but not the rest of the stuff in that jar (evt, io, etc).&lt;br&gt;

&lt;br&gt;Thanks all&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;&lt;/font&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/StAX-from-source-tp25541984p25541984.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25519058</id>
	<title>Finally wrote the last part of &quot;using typed access API&quot; blog series  -&gt; [http://www.cowtowncoder.com/blog/blog.html]</title>
	<published>2009-09-18T23:35:32Z</published>
	<updated>2009-09-18T23:35:32Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">Just thought this might be useful for Woodstox 4.0 users: I wrote the
&lt;br&gt;third part of &amp;quot;Typed Access API&amp;quot; blog entries at Cowtown blog
&lt;br&gt;(&lt;a href=&quot;http://www.cowtowncoder.com/blog/blog.html);&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cowtowncoder.com/blog/blog.html);&lt;/a&gt;&amp;nbsp;this one covering how to
&lt;br&gt;read/write Base64-encoded binary data.
&lt;br&gt;&lt;br&gt;If anyone has used base64 encoding functionality so far, please let me
&lt;br&gt;know -- I am very interested in feedback.
&lt;br&gt;And I hope to find time to do some benchmarking; implementation is
&lt;br&gt;designed to be very competitive for transferring binary data, relative
&lt;br&gt;to other XML-related approaches (such as using attachments for SOAP
&lt;br&gt;etc); and definitely &amp;quot;efficient enough&amp;quot; for most common use cases.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Finally-wrote-the-last-part-of-%22using-typed-access-API%22-blog-series---%3E--http%3A--www.cowtowncoder.com-blog-blog.html--tp25519058p25519058.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25372894</id>
	<title>Re: Error in retrived XML in Chucks using the  getText()</title>
	<published>2009-09-09T13:48:36Z</published>
	<updated>2009-09-09T13:48:36Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Wed, Sep 9, 2009 at 12:05 AM, Tanveer
&lt;br&gt;Virani&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25372894&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;TanveerVirani@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I upgraded to Tomcat 6.0.20 from Tomcat 5.5.26, the problem when away.
&lt;br&gt;&amp;gt; I'm thinking that it may have to do with Tomcat and the Velocity engine
&lt;br&gt;&amp;gt; (1.6.2). I tryed writing the stream directly to a temp with using any XML
&lt;br&gt;&lt;br&gt;Ok, I can google to see if there's anything indicating problems with
&lt;br&gt;streams that can return 0 bytes/chars per read -- that would explain
&lt;br&gt;problems Woodstox has. That is not the only possibility, just most
&lt;br&gt;obvious.
&lt;br&gt;&lt;br&gt;&amp;gt; parsing, and still wound up with only k.
&lt;br&gt;&lt;br&gt;Interesting. I think what I will do is keep this in mind; and if I can
&lt;br&gt;not reproduce this (I will add couple of unit tests for specific kinds
&lt;br&gt;of constrainted streams, ones that only produce 1 byte/char per read),
&lt;br&gt;wait to see if anyone else hits the same problem. I need to be able to
&lt;br&gt;reproduce it before it can be fixed.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25372894.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25359697</id>
	<title>Re: Error in retrived XML in Chucks using the  getText()</title>
	<published>2009-09-09T00:05:14Z</published>
	<updated>2009-09-09T00:05:14Z</updated>
	<author>
		<name>Tanveer Virani</name>
	</author>
	<content type="html">When I upgraded to Tomcat 6.0.20 from Tomcat 5.5.26, the problem when away. I'm thinking that it may have to do with Tomcat and the Velocity engine (1.6.2). I tryed writing the stream directly to a temp with using any XML parsing, and still wound up with only k.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Cowtowncoder wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On Fri, Sep 4, 2009 at 9:45 PM, Tanveer
&lt;br&gt;Virani&amp;lt;TanveerVirani@elluminate.com&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dropped the new jar in, and reran.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's the stack trace:
&lt;br&gt;&amp;gt; com.ctc.wstx.exc.WstxException: Reader (of type
&lt;br&gt;&amp;gt; com.ctc.wstx.io.MergedReader) returned 0 characters, even when asked to read
&lt;br&gt;&amp;gt; up to 4000
&lt;br&gt;&amp;gt;  at [row,col {unknown-source}]: [1,1]
&lt;br&gt;&amp;gt;        at com.ctc.wstx.io.ReaderSource.readInto(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.io.BranchingReaderSource.readInto(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.StreamScanner.loadMore(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.StreamScanner.loadMore(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.StreamScanner.getNextChar(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.BasicStreamReader.readAndWriteText(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.BasicStreamReader.getText(Unknown Source)
&lt;br&gt;&amp;gt;        at
&lt;br&gt;&amp;gt; com.elluminate.service.proxy.impl.WebServiceProxy.processStreamValue(WebServiceProxy.java:649)
&lt;br&gt;&lt;br&gt;Strange. I wonder if this could be due to merged reader getting
&lt;br&gt;initialized with empty contents.
&lt;br&gt;That could explain it... I'll need to figure out a test case for
&lt;br&gt;reproducing the problem.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25359697.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25359438</id>
	<title>Re: Error in retrived XML in Chucks using the  getText()</title>
	<published>2009-09-08T23:40:49Z</published>
	<updated>2009-09-08T23:40:49Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Fri, Sep 4, 2009 at 9:45 PM, Tanveer
&lt;br&gt;Virani&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25359438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;TanveerVirani@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dropped the new jar in, and reran.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's the stack trace:
&lt;br&gt;&amp;gt; com.ctc.wstx.exc.WstxException: Reader (of type
&lt;br&gt;&amp;gt; com.ctc.wstx.io.MergedReader) returned 0 characters, even when asked to read
&lt;br&gt;&amp;gt; up to 4000
&lt;br&gt;&amp;gt;  at [row,col {unknown-source}]: [1,1]
&lt;br&gt;&amp;gt;        at com.ctc.wstx.io.ReaderSource.readInto(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.io.BranchingReaderSource.readInto(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.StreamScanner.loadMore(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.StreamScanner.loadMore(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.StreamScanner.getNextChar(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.BasicStreamReader.readAndWriteText(Unknown Source)
&lt;br&gt;&amp;gt;        at com.ctc.wstx.sr.BasicStreamReader.getText(Unknown Source)
&lt;br&gt;&amp;gt;        at
&lt;br&gt;&amp;gt; com.elluminate.service.proxy.impl.WebServiceProxy.processStreamValue(WebServiceProxy.java:649)
&lt;/div&gt;&lt;br&gt;Strange. I wonder if this could be due to merged reader getting
&lt;br&gt;initialized with empty contents.
&lt;br&gt;That could explain it... I'll need to figure out a test case for
&lt;br&gt;reproducing the problem.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25359438.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25305082</id>
	<title>Re: Error in retrived XML in Chucks using the  getText()</title>
	<published>2009-09-04T21:45:39Z</published>
	<updated>2009-09-04T21:45:39Z</updated>
	<author>
		<name>Tanveer Virani</name>
	</author>
	<content type="html">Dropped the new jar in, and reran.
&lt;br&gt;&lt;br&gt;Here's the stack trace:
&lt;br&gt;com.ctc.wstx.exc.WstxException: Reader (of type com.ctc.wstx.io.MergedReader) returned 0 characters, even when asked to read up to 4000
&lt;br&gt;&amp;nbsp;at [row,col {unknown-source}]: [1,1]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.io.ReaderSource.readInto(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.io.BranchingReaderSource.readInto(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.loadMore(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.loadMore(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.getNextChar(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.BasicStreamReader.readAndWriteText(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.BasicStreamReader.getText(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.elluminate.service.proxy.impl.WebServiceProxy.processStreamValue(WebServiceProxy.java:649)
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;Tanveer
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Cowtowncoder wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Ok. I don't know what exactly is the problem, but I did add bit more
&lt;br&gt;debug info (class name of Reader being invoked) in sources (4.0 and
&lt;br&gt;4.1 branches, trunk), which might help in figuring out what is
&lt;br&gt;happening.
&lt;br&gt;Would it be possible to try out jar included -- the only change from
&lt;br&gt;4.0.5 is the change in exception being thrown (it's also
&lt;br&gt;XMLStreamException directly, instead of being wrapped, which more
&lt;br&gt;clearly shows the location)?
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;ps. Had to strip out debug info from jar (codehaus mailing list size
&lt;br&gt;limitations...); might lose line numbers... but it's quite easy to see
&lt;br&gt;which line throws the exception anyway
&lt;br&gt;&lt;br&gt;On Fri, Sep 4, 2009 at 2:43 PM, Tanveer
&lt;br&gt;Virani&amp;lt;TanveerVirani@elluminate.com&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The connection is passed straight through from a tomcat webapp.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We do all processing internally for the SOAP request and envelope.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tanveer
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tanveer Virani wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When using the getTExt from the BasicStreamReader, I get the following
&lt;br&gt;&amp;gt;&amp;gt; error:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; com.ctc.wstx.exc.WstxIOException: Reader returned 0 characters, even when
&lt;br&gt;&amp;gt;&amp;gt; asked to read up to 4000
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:599)
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:967)
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:1006)
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.StreamScanner.getNextChar(StreamScanner.java:758)
&lt;br&gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt; com.ctc.wstx.sr.BasicStreamReader.readAndWriteText(BasicStreamReader.java:4993)
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:1344)
&lt;br&gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt; com.elluminate.service.proxy.impl.WebServiceProxy.processStreamValue(WebServiceProxy.java:614)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Calling code snippet:
&lt;br&gt;&amp;gt;&amp;gt;       XMLInputFactory factory = XMLInputFactory.newInstance();
&lt;br&gt;&amp;gt;&amp;gt;       factory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE);
&lt;br&gt;&amp;gt;&amp;gt;       factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE);
&lt;br&gt;&amp;gt;&amp;gt;       factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.TRUE);
&lt;br&gt;&amp;gt;&amp;gt;       BasicStreamReader reader = (BasicStreamReader)
&lt;br&gt;&amp;gt;&amp;gt; factory.createXMLStreamReader(input);
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;       hexPrinter = new HexPrintWriter(temporaryFile);
&lt;br&gt;&amp;gt;&amp;gt;       reader.getText(hexPrinter, false);
&lt;br&gt;&amp;gt;&amp;gt;       hexPrinter.flush();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I get the first 8000 characters, but after that it breaks. The stream
&lt;br&gt;&amp;gt;&amp;gt; length is 1.4Mb.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any help would be appreciated.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Tanveer
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://www.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25302455.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25302455.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the woodstox - user mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25305082.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25303653</id>
	<title>Re: Error in retrived XML in Chucks using the  getText()</title>
	<published>2009-09-04T16:59:32Z</published>
	<updated>2009-09-04T16:59:32Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">Ok. I don't know what exactly is the problem, but I did add bit more
&lt;br&gt;debug info (class name of Reader being invoked) in sources (4.0 and
&lt;br&gt;4.1 branches, trunk), which might help in figuring out what is
&lt;br&gt;happening.
&lt;br&gt;Would it be possible to try out jar included -- the only change from
&lt;br&gt;4.0.5 is the change in exception being thrown (it's also
&lt;br&gt;XMLStreamException directly, instead of being wrapped, which more
&lt;br&gt;clearly shows the location)?
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;ps. Had to strip out debug info from jar (codehaus mailing list size
&lt;br&gt;limitations...); might lose line numbers... but it's quite easy to see
&lt;br&gt;which line throws the exception anyway
&lt;br&gt;&lt;br&gt;On Fri, Sep 4, 2009 at 2:43 PM, Tanveer
&lt;br&gt;Virani&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25303653&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;TanveerVirani@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The connection is passed straight through from a tomcat webapp.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We do all processing internally for the SOAP request and envelope.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tanveer
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tanveer Virani wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When using the getTExt from the BasicStreamReader, I get the following
&lt;br&gt;&amp;gt;&amp;gt; error:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; com.ctc.wstx.exc.WstxIOException: Reader returned 0 characters, even when
&lt;br&gt;&amp;gt;&amp;gt; asked to read up to 4000
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:599)
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:967)
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:1006)
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.StreamScanner.getNextChar(StreamScanner.java:758)
&lt;br&gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt; com.ctc.wstx.sr.BasicStreamReader.readAndWriteText(BasicStreamReader.java:4993)
&lt;br&gt;&amp;gt;&amp;gt;       at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:1344)
&lt;br&gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt; com.elluminate.service.proxy.impl.WebServiceProxy.processStreamValue(WebServiceProxy.java:614)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Calling code snippet:
&lt;br&gt;&amp;gt;&amp;gt;       XMLInputFactory factory = XMLInputFactory.newInstance();
&lt;br&gt;&amp;gt;&amp;gt;       factory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE);
&lt;br&gt;&amp;gt;&amp;gt;       factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE);
&lt;br&gt;&amp;gt;&amp;gt;       factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.TRUE);
&lt;br&gt;&amp;gt;&amp;gt;       BasicStreamReader reader = (BasicStreamReader)
&lt;br&gt;&amp;gt;&amp;gt; factory.createXMLStreamReader(input);
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;       hexPrinter = new HexPrintWriter(temporaryFile);
&lt;br&gt;&amp;gt;&amp;gt;       reader.getText(hexPrinter, false);
&lt;br&gt;&amp;gt;&amp;gt;       hexPrinter.flush();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I get the first 8000 characters, but after that it breaks. The stream
&lt;br&gt;&amp;gt;&amp;gt; length is 1.4Mb.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any help would be appreciated.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Tanveer
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://www.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25302455.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25302455.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the woodstox - user mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt; &lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;woodstox-core-asl-4.0.6.jar&lt;/strong&gt; (461K) &lt;a href=&quot;http://old.nabble.com/attachment/25303653/0/woodstox-core-asl-4.0.6.jar&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25303653.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25302455</id>
	<title>Re: Error in retrived XML in Chucks using the getText()</title>
	<published>2009-09-04T14:43:01Z</published>
	<updated>2009-09-04T14:43:01Z</updated>
	<author>
		<name>Tanveer Virani</name>
	</author>
	<content type="html">The connection is passed straight through from a tomcat webapp.
&lt;br&gt;&lt;br&gt;We do all processing internally for the SOAP request and envelope.
&lt;br&gt;&lt;br&gt;Tanveer
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Tanveer Virani wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;When using the getTExt from the BasicStreamReader, I get the following error:
&lt;br&gt;&lt;br&gt;com.ctc.wstx.exc.WstxIOException: Reader returned 0 characters, even when asked to read up to 4000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:599)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:967)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:1006)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.getNextChar(StreamScanner.java:758)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.BasicStreamReader.readAndWriteText(BasicStreamReader.java:4993)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:1344)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.elluminate.service.proxy.impl.WebServiceProxy.processStreamValue(WebServiceProxy.java:614)
&lt;br&gt;&lt;br&gt;Calling code snippet:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XMLInputFactory factory = XMLInputFactory.newInstance();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; factory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BasicStreamReader reader = (BasicStreamReader) factory.createXMLStreamReader(input);
&lt;br&gt;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hexPrinter = new HexPrintWriter(temporaryFile);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reader.getText(hexPrinter, false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hexPrinter.flush();
&lt;br&gt;&lt;br&gt;&lt;br&gt;I get the first 8000 characters, but after that it breaks. The stream length is 1.4Mb.
&lt;br&gt;&lt;br&gt;Any help would be appreciated.
&lt;br&gt;&lt;br&gt;Tanveer
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25302455.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25302388</id>
	<title>Re: Error in retrived XML in Chucks using the  getText()</title>
	<published>2009-09-04T14:37:32Z</published>
	<updated>2009-09-04T14:37:32Z</updated>
	<author>
		<name>Cowtowncoder</name>
	</author>
	<content type="html">On Fri, Sep 4, 2009 at 2:16 PM, Tanveer
&lt;br&gt;Virani&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25302388&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;TanveerVirani@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The stream is coming from the network (Soap Service).
&lt;br&gt;&lt;br&gt;Ok. Do you know if it might be using Jakarta httpclient (3.1 or 4.0),
&lt;br&gt;or JDK HttpURLConnection?
&lt;br&gt;(might not make a big difference).
&lt;br&gt;Or maybe some client library that wraps network connection.
&lt;br&gt;&lt;br&gt;&amp;gt; I'm using version 4.0.5 with the 1.6.12 JRE.
&lt;br&gt;&lt;br&gt;Thanks! I will try to see what could possibly cause InputStream.read()
&lt;br&gt;to return 0, when non-zero number of bytes were requested (assuming
&lt;br&gt;that is the problem, as suggested by error message).
&lt;br&gt;This could be due to a broken input stream wrapper -- InputStream
&lt;br&gt;javadocs clearly state that a stream has to try to read at least one
&lt;br&gt;byte (or if not yet available, block). But it could just be a side
&lt;br&gt;effect of some kind.
&lt;br&gt;&lt;br&gt;-+ Tatu +-
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25302388.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25302114</id>
	<title>Re: Error in retrived XML in Chucks using the getText()</title>
	<published>2009-09-04T14:16:14Z</published>
	<updated>2009-09-04T14:16:14Z</updated>
	<author>
		<name>Tanveer Virani</name>
	</author>
	<content type="html">The stream is coming from the network (Soap Service).
&lt;br&gt;&lt;br&gt;I'm using version 4.0.5 with the 1.6.12 JRE.
&lt;br&gt;&lt;br&gt;Tanveer
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Tanveer Virani wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;When using the getTExt from the BasicStreamReader, I get the following error:
&lt;br&gt;&lt;br&gt;com.ctc.wstx.exc.WstxIOException: Reader returned 0 characters, even when asked to read up to 4000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:599)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:967)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:1006)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.StreamScanner.getNextChar(StreamScanner.java:758)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.BasicStreamReader.readAndWriteText(BasicStreamReader.java:4993)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:1344)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.elluminate.service.proxy.impl.WebServiceProxy.processStreamValue(WebServiceProxy.java:614)
&lt;br&gt;&lt;br&gt;Calling code snippet:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XMLInputFactory factory = XMLInputFactory.newInstance();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; factory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BasicStreamReader reader = (BasicStreamReader) factory.createXMLStreamReader(input);
&lt;br&gt;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hexPrinter = new HexPrintWriter(temporaryFile);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reader.getText(hexPrinter, false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hexPrinter.flush();
&lt;br&gt;&lt;br&gt;&lt;br&gt;I get the first 8000 characters, but after that it breaks. The stream length is 1.4Mb.
&lt;br&gt;&lt;br&gt;Any help would be appreciated.
&lt;br&gt;&lt;br&gt;Tanveer
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/woodstox---user-f12118.html&quot; embed=&quot;fixTarget[12118]&quot; target=&quot;_top&quot; &gt;woodstox - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-retrived-XML-in-Chucks-using-the-getText%28%29-tp25301114p25302114.html" />
</entry>

</feed>
