Bug 14962 - Bug in ID Generation
Summary: Bug in ID Generation
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.4
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 18977 31063 37165 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-29 16:41 UTC by Jens Stanstrup
Modified: 2012-04-01 07:02 UTC (History)
6 users (show)



Attachments
FOP Complains although there is no duplicate id (42.59 KB, text/plain)
2002-11-30 06:37 UTC, Jens Stanstrup
Details
My experiences with the bug (2.42 KB, text/plain)
2002-12-11 17:11 UTC, Michael Mutschler
Details
FO file showing spurious duplicate ID error (test.tar.bz2: bzip2 compressed data) (18.36 KB, application/octet-stream)
2004-07-08 14:23 UTC, Jean Jordaan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Stanstrup 2002-11-29 16:41:47 UTC
FOP Version CVS Maintain Nov 29, 2002

For some reason my document fails with the following stacktrace. BTW. in the fo
document, the identifier d0e2912 exists only once. 

[INFO] [63]
org.apache.fop.apps.FOPException: The id "d0e2912" already exists in this document
 	at org.apache.fop.datatypes.IDReferences.createID(IDReferences.java:77)
 [INFO] [64]
 [ERROR] The id "d0e2912" already exists in this document
 	at org.apache.fop.datatypes.IDReferences.initializeID(IDReferences.java:57)
<snip/>
 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 	at org.apache.fop.apps.Driver.render(Driver.java:452)
 	at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69)
 	at org.apache.fop.apps.Fop.main(Fop.java:19)
 Java Result: 2
Comment 1 Oleg Tkachenko 2002-11-29 22:00:52 UTC
Provide an example fo document, please.
Comment 2 Jens Stanstrup 2002-11-30 06:37:25 UTC
Created attachment 3993 [details]
FOP Complains although there is no duplicate id
Comment 3 Michael Mutschler 2002-12-11 17:11:43 UTC
Created attachment 4131 [details]
My experiences with the bug
Comment 4 Jacob Emcken 2004-01-14 15:40:22 UTC
*** Bug 18977 has been marked as a duplicate of this bug. ***
Comment 5 Jean Jordaan 2004-07-08 14:23:45 UTC
Created attachment 12061 [details]
FO file showing spurious duplicate ID error (test.tar.bz2: bzip2 compressed data)
Comment 6 Jean Jordaan 2004-07-08 14:25:13 UTC
I generate a .fo file like this:

$ xsltproc /usr/share/sgml/docbook/xsl-stylesheets-1.62.4/fo/docbook.xsl
templating-dtml.dbk > templating-dtml.fo

fop chokes on page 21 out of 27 with the message:

[ERROR] file:/.../templating-dtml.fo:726:554 The id "id2450246" already exists
in this document

That id occurs on this element:

<fo:list-item-label id="id2450246"
end-indent="label-end()"><fo:block>Q:</fo:block></fo:list-item-label>

and it occurs once only. If I hack it out manually, fop is happy. 

Comment 7 Jean Jordaan 2004-07-08 14:27:04 UTC
Sorry, forgot to mention:

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
Comment 8 Jean-Philippe Guérard 2004-09-05 19:33:53 UTC
*** Bug 31063 has been marked as a duplicate of this bug. ***
Comment 9 J.Pietschmann 2005-10-24 08:06:49 UTC
*** Bug 37165 has been marked as a duplicate of this bug. ***
Comment 10 Jeremias Maerki 2005-12-19 11:06:14 UTC
This bug does not appear in FOP 0.90alpha1. I'm closing this bug.
Comment 11 Glenn Adams 2012-04-01 07:02:00 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed