Reputation: 117
I Started working on Stax Parser for past three months. I used to see data or text in the stax events while debugging. This used to help me a lot while working on my task. But from past 2days,there is weird behavior. When i debugged the project, i can only see events like this...[Stax Event #1], [Stax Event #4], [Stax Event #1], [Stax Event #4]
This is giving me hard time debugging. I am woodStox stax and java 1.6.
These are dependencies i am using
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jsr173</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>wstx-asl</artifactId>
<version>4.0.6</version>
</dependency>
<dependency>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.stream</groupId>
<artifactId>sjsxp</artifactId>
<version>1.0.2</version>
</dependency>
Do i need to change my settings to get back to normal behavior.
Upvotes: 0
Views: 468
Reputation: 116572
What code do you use to print output statements? Stax API always allows you to access any data events have; but it may not work by simply doing event.toString()
.
Upvotes: 0
Reputation: 3563
You have two StAX implementations: sjsxp
and woodstox
, so it's kind of random which one is actually used. Most likel you'll want to remove the dependency to sjsxp
.
You also have two StAX APIs: jsr173
and stax-api
. Definitely avoid the former, it's buggy! With Java 6 or later you may/should also remove the latter.
Upvotes: 1