[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster] server side exception: Can't process XPath expression

i believe this issue was identified before, but i occasionally see a
server-side exception that starts off like:

   errorCode=user.query.invalid message=#exported Sorry, can't access,
query syntax of
   XmlBlasterException errorCode=[resource.configuration]
serverSideException=true location=[XmlNotPortable]
    message=[#exported Can't process XPath expression .....

it was first suggested that this was a parsing issue -- a possible xml
parser library conflict.  (i have verified that i do *not* have any
extraneous xml parsing libs in my 'java\lib\endorsed' directory.)

later, a user noticed that a similar error was happening during unit
testing, and that it was a bug on the server:

The issues are:
1. The null check (method_newXPath == null) is outside the
synchronization block. Thread A and thread B could both pass through
the null check at the same time. Thread A will create the xpath
objects while B waits. Then thread B will go through and recreate
xpath objects while A is using them.

2. XPathFactory is, in general, not thread-safe (see
and a method on that object is invoked outside the synchro block.

has this bug been fixed?  if so, what version should i be using now?
(i am currently using xmlBlaster version 1.6.2 2007-12-03

a response to this ongoing issue would be greatly appreciated, as it
is impacting our automated unit tests.

andrew yinger