• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Path creation error

 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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,
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the relevant code and the entire exception stacktrace.
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1051
Eclipse IDE Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please ignore this quote
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1051
Eclipse IDE Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
comp_money

This tag is coming null,can anybody tell me,how can i correct it
 
Ankit Garg
Sheriff
Posts: 9495
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic