Search the web
Sign In
New User? Sign Up
xmlpull-user
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
java.io.EOFException: no more data available   Message List  
Reply | Forward Message #295 of 308 |
Re: [xmlpull-user] java.io.EOFException: no more data available

Martin Woolley wrote:
> Hi
>
> I'm stress testing an application that uses XPP3. I'm seeing the
> following stacktrace sporadically:
>
> java.io.EOFException: no more data available
> Thread-5: at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2659)
> Thread-5: at org.xmlpull.mxp1.MXParser.more(MXParser.java:2666)
> Thread-5: at
> org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1385)
> Thread-5: at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1370)
> Thread-5: at org.xmlpull.mxp1.MXParser.next(MXParser.java:1111)
> Thread-5: at
>
com.nmss.ms.agent.api.XppStreamHandler.processDocument(XppStreamHandler.java:67)
> Thread-5: at com.nmss.ms.agent.api.ApiWorker.run(ApiWorker.java:193)
> Thread-5: at java.lang.Thread.run(Thread.java:534)
>
>
> I have checked the XML input document and it looks fine.
>
> My instincts tell me I've hit some kind of synchronisation issue....
> but I could be wildly wrong.
>
are you using the same parser instance in multiple threads? this is not
supported. as noted in docs and as it is usual for XML parser: XPP3 is
not multi thread safe and each thread should have its own instance of
parser. you can use parser pool (see xmlpull.org addons) if you want to
recycle parser instances (run some perf test with and without pooling ot
make sure you get optimal perf)

HTH,

Alek
> Are there are known issues that produce this Exception?
>
> Thank in anticipation
>
> Martin
>
>
>
>
> Yahoo! Groups Links
>
>
>
>


--
The best way to predict the future is to invent it - Alan Kay




Wed Jun 6, 2007 7:13 pm

as10m
Offline Offline
Send Email Send Email

Forward
Message #295 of 308 |
Expand Messages Author Sort by Date

Hi I'm stress testing an application that uses XPP3. I'm seeing the following stacktrace sporadically: java.io.EOFException: no more data available Thread-5:...
Martin Woolley
martin_woolley
Offline Send Email
Jun 6, 2007
2:41 pm

... are you using the same parser instance in multiple threads? this is not supported. as noted in docs and as it is usual for XML parser: XPP3 is not multi...
Aleksander Slominski
as10m
Offline Send Email
Jun 6, 2007
7:13 pm

... one more addition maybe it is obvious but ... you can use the same instance in multiple threads *if* you will do all synchronization to make sure no two...
Aleksander Slominski
as10m
Offline Send Email
Jun 6, 2007
7:16 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help