[SoapRMI] xpp potential cleanup/reset problem

Aleksander Slominski aslom_at_cs.indiana.edu
Mon, 29 Jul 2002 10:11:51 -0400


"CHEN,SHIH-CHANG (HP-NewJersey,ex2)" wrote:

> Yes, I got that exception when invoking next(). But I did
> invoke setInput() for each request. As I said, I get that
> error very often, but not always. I also try to check the
> eventype before invoking next, but it still happens.

what is the parser state (getEventType()) just before last next()?

> Is it
> possible ?

that should not happen but as it happens it is very important that
you can reproduce it so we can pinpoint the root cause of the problem.

> ps. I discovered this problem when I was doing stress/load
> test and performance measurement with 10 concurrent
> clients. Server-side is a servlet running in tomcat4.0.4 with
> jdk1.4.

did you make sure that only one thread at any time is accessing
parser instance. the easiest approach is to to use pool of parser
instances that are reused to handle requests (typically each request
gets its own parser instance and not shared with other thread).

thanks,

alek