[jdom-interest] About werken.xpath

Kazuhiro Itoh kazuhiro-i at kajima.com
Wed Nov 7 19:54:10 PST 2001


Dear All
I am original sender of this subject.
I forgot to include exception message. this is here

If you find strange character after the word "found" at first line, 
it  is the first character of Japanese I put into XPath.
(I run my test program inside of IBM VAJ 3.5.3 professional)

Thanks

PS
 thank you Mr.Xuemin Guan

------------------------------Exception---------------------------------
-----------
antlr.TokenStreamRecognitionException: expecting '"', found 'グ'
    java.lang.Throwable(java.lang.String)
    java.lang.Exception(java.lang.String)
    antlr.ANTLRException(java.lang.String)
    antlr.TokenStreamException(java.lang.String)
    antlr.TokenStreamRecognitionException(antlr.RecognitionException)
    antlr.Token com.werken.xpath.parser.XPathLexer.nextToken()
    void antlr.TokenBuffer.fill(int)
    int antlr.TokenBuffer.LA(int)
    int antlr.LLkParser.LA(int)
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.unary_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.mult_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.additive_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.relational_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.equality_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.and_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.or_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.expr()
    com.werken.xpath.impl.Predicate
com.werken.xpath.parser.XPathRecognizer.predicate_expr()
    com.werken.xpath.impl.Predicate
com.werken.xpath.parser.XPathRecognizer.predicate()
    com.werken.xpath.impl.Step
com.werken.xpath.parser.XPathRecognizer.step()
    com.werken.xpath.impl.LocationPath
com.werken.xpath.parser.XPathRecognizer.i_relative_location_path(com.wer
ken.xpath.impl.LocationPath)
    com.werken.xpath.impl.LocationPath
com.werken.xpath.parser.XPathRecognizer.absolute_location_path()
    com.werken.xpath.impl.LocationPath
com.werken.xpath.parser.XPathRecognizer.location_path()
    com.werken.xpath.impl.PathExpr
com.werken.xpath.parser.XPathRecognizer.path_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.union_expr()
    com.werken.xpath.impl.Expr
com.werken.xpath.parser.XPathRecognizer.xpath()
    void com.werken.xpath.XPath.parse()
    com.werken.xpath.XPath(java.lang.String)
    void my.jdom.xpath.XpathTest2.main(java.lang.String [])

java.lang.NullPointerException
    java.lang.Throwable()
    java.lang.Exception()
    java.lang.RuntimeException()
    java.lang.NullPointerException()
    java.util.List
com.werken.xpath.XPath.applyTo(com.werken.xpath.ContextSupport,
org.jdom.Document)
    java.util.List
com.werken.xpath.XPath.applyTo(com.werken.xpath.ContextSupport,
org.jdom.Document)
    java.util.List com.werken.xpath.XPath.applyTo(org.jdom.Document)
    void my.jdom.xpath.XpathTest2.main(java.lang.String [])


>-----Original Message-----
>From: Kazuhiro Itoh 
>Sent: Thursday, November 08, 2001 9:53 AM
>To: jdom-interest at jdom.org
>Subject: [jdom-interest] About werken.xpath
>
>
>Dear All
>I am Kazuhiro Itoh.
>I tried using werken.xpath(0.9.4b)  yesterday. This worked well.
>But When I put Japanese character Xpath expression , 
>werken.xpath throws
>exception.
>e.g.
>XPath myXpath = new XPath("//foo[@bar='value']");
>if value is Japanese, exception occures at above step.
>
>If you have any idea or information, please show me.
>
>Thanks.



More information about the jdom-interest mailing list