• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

XML Path creation error

 
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please ignore this quote
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
comp_money

This tag is coming null,can anybody tell me,how can i correct it
 
Sheriff
Posts: 9679
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic