Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow in KeydefReader #2227

Closed
raducoravu opened this issue Feb 11, 2016 · 3 comments
Closed

Stack overflow in KeydefReader #2227

raducoravu opened this issue Feb 11, 2016 · 3 comments
Assignees
Labels
bug preprocess/keyref priority/high High severity or high priority issue
Milestone

Comments

@raducoravu
Copy link
Member

If my DITA Map contains a construct in which the keyref refers to the same key defined on the topicref like:

<topicref href="images/Chrysanthemums.jpg" format="jpg" navtitle="Chrysanthemum"
  keys="chrysanthemums" 
  keyref="chrysanthemums"/>

the publishing process will stack overflow with an infinite recursivity:

D:\projects\eXml\frameworks\dita\DITA-OT2.x\build.xml:41: The following error occurred while executing this line:
D:\projects\eXml\frameworks\dita\DITA-OT2.x\plugins\org.dita.base\build_preprocess.xml:270: java.lang.StackOverflowError
  at org.apache.xerces.dom.NamedNodeMapImpl.getNamedItem(Unknown Source)
  at org.apache.xerces.dom.ElementImpl.getAttribute(Unknown Source)
  at org.dita.dost.reader.KeyrefReader.resolveIntermediate(KeyrefReader.java:255)
  at org.dita.dost.reader.KeyrefReader.resolveIntermediate(KeyrefReader.java:261)
  at org.dita.dost.reader.KeyrefReader.resolveIntermediate(KeyrefReader.java:261)
  at org.dita.dost.reader.KeyrefReader.resolveIntermediate(KeyrefReader.java:261)
@jelovirt jelovirt self-assigned this Feb 12, 2016
@jelovirt jelovirt added bug priority/medium Medium (or unknown) priority issue preprocess/keyref priority/high High severity or high priority issue and removed priority/medium Medium (or unknown) priority issue labels Feb 12, 2016
@jelovirt jelovirt added this to the 2.3 milestone Feb 13, 2016
@jelovirt
Copy link
Member

Added DOTJ068E for circular key definition error.

infotexture added a commit to dita-ot/docs that referenced this issue Feb 13, 2016
@raducoravu
Copy link
Member Author

Thank you @jelovirt

@jelovirt
Copy link
Member

Changed DOTJ068E to DOTJ069E for circular key definition error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug preprocess/keyref priority/high High severity or high priority issue
Projects
None yet
Development

No branches or pull requests

2 participants