| Author |
XML Path creation error
|
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
Hi everybody i am facing the error while creating a path that
JXPath can only create a path if it uses exclusively the child:: and attribute:: axes and has no context-dependent predicates
at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.createPathAndSetValue
scenerio is i am trying to map a value
like
Running =5
to
a particular XML location,but it is again and again throughing the same error shown above
Could anuyone tell me from where this is occuring,
i am expecting some error in xsd,
|
SCJP6.0,My blog Ranchers from Delhi
|
 |
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
the above error is solved but now i am facing errror "Factory is not set on the JXPathContext - cannot create path"
It been very long i stuck on the same issue please help me out with this,
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8142
|
|
Please post the relevant code and the entire exception stacktrace.
|
[My Blog] [JavaRanch Journal]
|
 |
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
org.apache.commons.jxpath.JXPathException - Exception trying to create xpath /m_content/apps/producer/myclient/runs/comp_money/assumed_month/content; Factory is not set on the JXPathContext - cannot create path: /m_content/apps/producer/myclient/runs/comp_money
|
 |
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
|
please ignore this quote
|
 |
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
Factory is not set on the JXPathContext - cannot create path
Could any body tell me why this error occurs.i search a lot but not able to find how to resolve this.
|
 |
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
comp_money
This tag is coming null,can anybody tell me,how can i correct it
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
It looks like you want people to shoot in the dark. You were asked to post the relevant code which you've not done. I'm personally even confused what the problem is, are you still getting an exception?? Where this comp_money is, how you are setting it, why is it null, this is all a mystery as long as there is no code to see...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
 |
|
|
subject: XML Path creation error
|
|
|