You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Bryan Pendleton <bp...@amberpoint.com> on 2009/02/08 02:29:19 UTC
Documentation build error
I haven't tried to build the documentation in a LONG time,
maybe more than a year.
I tried refreshing my docs sandbox and running
ant html.ref
and I get:
topicpull:
[xslt] Transforming into /home2/bpendleton/src/derby/docs/trunk/temp
[xslt] Processing /home2/bpendleton/src/derby/docs/trunk/temp/crefjavbclobnot.dita to
/home2/bpendleton/src/derby/docs/trunk/temp/crefjavbclobnot.dita.pull
[xslt] Loading stylesheet /home2/bpendleton/src/derby/docs/trunk/DITA-OT1.1.2.1/xsl/preprocess/topicpull.xsl
[xslt] : Error! null
[xslt] Failed to process /home2/bpendleton/src/derby/docs/trunk/temp/crefjavbclobnot.dita
BUILD FAILED
/home2/bpendleton/src/derby/docs/trunk/build.xml:104: The following error occurred while executing this line:
/home2/bpendleton/src/derby/docs/trunk/build.xml:134: The following error occurred while executing this line:
/home2/bpendleton/src/derby/docs/trunk/DITA-OT1.1.2.1/pretargets.xml:136: javax.xml.transform.TransformerException:
java.lang.NullPointerException
Does anybody recognize this error?
thanks,
bryan
Re: Documentation build error
Posted by Bryan Pendleton <bp...@amberpoint.com>.
> /home2/bpendleton/src/derby/docs/trunk/DITA-OT1.1.2.1/pretargets.xml:136:
> javax.xml.transform.TransformerException: java.lang.NullPointerException
I captured a more detailed stack trace of the NullPointerException, and
have pasted it below, together with the output of 'ant -diagnostics' in
my environment, in the hopes that somebody can spot what's wrong with my
documentation build environment.
thanks,
bryan
java.lang.NullPointerException
at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getExpandedTypeID(
DOMAdapter.java:232)
at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.getExpandedTypeID(Mu
ltiDOM.java:431)
at topicpull.applyTemplates()
at topicpull.get$dash$stuff()
at topicpull.template$dot$5()
at topicpull.applyTemplates()
at topicpull.template$dot$31()
at topicpull.applyTemplates()
at topicpull.template$dot$31()
at topicpull.applyTemplates()
at topicpull.template$dot$31()
at topicpull.applyTemplates()
at topicpull.applyTemplates()
at topicpull.transform()
at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:594)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:640)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:135)
at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:502)
at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:257)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
------- Ant diagnostics report -------
Apache Ant version 1.6.5 compiled on June 2 2005
-------------------------------------------
Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks : 1.6.5
optional tasks : 1.6.5
-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: c:\tools\apache-ant-1.6.5
ant-antlr.jar (5667 bytes)
ant-apache-bcel.jar (8617 bytes)
ant-apache-bsf.jar (12597 bytes)
ant-apache-log4j.jar (3022 bytes)
ant-apache-oro.jar (48034 bytes)
ant-apache-regexp.jar (3724 bytes)
ant-apache-resolver.jar (4082 bytes)
ant-commons-logging.jar (3864 bytes)
ant-commons-net.jar (35303 bytes)
ant-icontract.jar (9721 bytes)
ant-jai.jar (21359 bytes)
ant-javamail.jar (6761 bytes)
ant-jdepend.jar (8160 bytes)
ant-jmf.jar (6605 bytes)
ant-jsch.jar (22726 bytes)
ant-junit.jar (74237 bytes)
ant-launcher.jar (9180 bytes)
ant-netrexx.jar (9998 bytes)
ant-nodeps.jar (421008 bytes)
ant-starteam.jar (35472 bytes)
ant-stylebook.jar (2328 bytes)
ant-swing.jar (6763 bytes)
ant-trax.jar (68841 bytes)
ant-vaj.jar (49742 bytes)
ant-weblogic.jar (14363 bytes)
ant-xalan1.jar (4465 bytes)
ant-xslp.jar (2244 bytes)
ant.jar (1034049 bytes)
xercesImpl.jar (1010675 bytes)
xml-apis.jar (124724 bytes)
-------------------------------------------
Tasks availability
-------------------------------------------
image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
jdepend : Missing dependency jdepend.xmlui.JDepend
junit : Missing dependency junit.framework.Test
-------------------------------------------
org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/
-------------------------------------------
XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: C:\tools\apache-ant-1.6.5\lib\xercesImpl.jar
-------------------------------------------
System properties
-------------------------------------------
java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path : c:\tools\jdk1.5.0_05\jre\bin
java.vm.version : 1.5.0_05-b05
ant.library.dir : C:\tools\apache-ant-1.6.5\lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : ;
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
user.country : US
sun.os.patch.level : Service Pack 3
java.vm.specification.name : Java Virtual Machine Specification
user.dir : C:\bryan\src\derby\docs\trunk
java.runtime.version : 1.5.0_05-b05
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : c:\tools\jdk1.5.0_05\jre\lib\endorsed
os.arch : x86
java.io.tmpdir : C:\DOCUME~1\BPENDL~1\LOCALS~1\Temp\
line.separator :
java.vm.specification.vendor : Sun Microsystems Inc.
user.variant :
os.name : Windows XP
ant.home : c:\tools\apache-ant-1.6.5
sun.jnu.encoding : Cp1252
java.specification.name : Java Platform API Specification
java.class.version : 49.0
sun.management.compiler : HotSpot Client Compiler
os.version : 5.1
java.awt.printerjob : sun.awt.windows.WPrinterJob
file.encoding : Cp1252
java.specification.version : 1.5
java.class.path : c:\tools\apache-ant-1.6.5\lib\ant-launcher.jar;C:\bryan\src\de
rby\docs\trunk\.\;C:\Program Files\Java\jre1.5.0_05\lib\ext\QTJava.zip;C:\tools\
apache-ant-1.6.5\lib\ant-antlr.jar;C:\tools\apache-ant-1.6.5\lib\ant-apache-bcel
.jar;C:\tools\apache-ant-1.6.5\lib\ant-apache-bsf.jar;C:\tools\apache-ant-1.6.5\
lib\ant-apache-log4j.jar;C:\tools\apache-ant-1.6.5\lib\ant-apache-oro.jar;C:\too
ls\apache-ant-1.6.5\lib\ant-apache-regexp.jar;C:\tools\apache-ant-1.6.5\lib\ant-
apache-resolver.jar;C:\tools\apache-ant-1.6.5\lib\ant-commons-logging.jar;C:\too
ls\apache-ant-1.6.5\lib\ant-commons-net.jar;C:\tools\apache-ant-1.6.5\lib\ant-ic
ontract.jar;C:\tools\apache-ant-1.6.5\lib\ant-jai.jar;C:\tools\apache-ant-1.6.5\
lib\ant-javamail.jar;C:\tools\apache-ant-1.6.5\lib\ant-jdepend.jar;C:\tools\apac
he-ant-1.6.5\lib\ant-jmf.jar;C:\tools\apache-ant-1.6.5\lib\ant-jsch.jar;C:\tools
\apache-ant-1.6.5\lib\ant-junit.jar;C:\tools\apache-ant-1.6.5\lib\ant-launcher.j
ar;C:\tools\apache-ant-1.6.5\lib\ant-netrexx.jar;C:\tools\apache-ant-1.6.5\lib\a
nt-nodeps.jar;C:\tools\apache-ant-1.6.5\lib\ant-starteam.jar;C:\tools\apache-ant
-1.6.5\lib\ant-stylebook.jar;C:\tools\apache-ant-1.6.5\lib\ant-swing.jar;C:\tool
s\apache-ant-1.6.5\lib\ant-trax.jar;C:\tools\apache-ant-1.6.5\lib\ant-vaj.jar;C:
\tools\apache-ant-1.6.5\lib\ant-weblogic.jar;C:\tools\apache-ant-1.6.5\lib\ant-x
alan1.jar;C:\tools\apache-ant-1.6.5\lib\ant-xslp.jar;C:\tools\apache-ant-1.6.5\l
ib\ant.jar;C:\tools\apache-ant-1.6.5\lib\xercesImpl.jar;C:\tools\apache-ant-1.6.
5\lib\xml-apis.jar;c:\tools\jdk1.5.0_05\lib\tools.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : c:\tools\jdk1.5.0_05\jre
java.specification.vendor : Sun Microsystems Inc.
user.language : en
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode, sharing
java.version : 1.5.0_05
java.ext.dirs : c:\tools\jdk1.5.0_05\jre\lib\ext
sun.boot.class.path : c:\tools\jdk1.5.0_05\jre\lib\rt.jar;c:\tools\jdk1.5.0_05\j
re\lib\i18n.jar;c:\tools\jdk1.5.0_05\jre\lib\sunrsasign.jar;c:\tools\jdk1.5.0_05
\jre\lib\jsse.jar;c:\tools\jdk1.5.0_05\jre\lib\jce.jar;c:\tools\jdk1.5.0_05\jre\
lib\charsets.jar;c:\tools\jdk1.5.0_05\jre\classes
java.vendor : Sun Microsystems Inc.
file.separator : \
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.desktop : windows
sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
Re: Documentation build error
Posted by Andrew McIntyre <mc...@gmail.com>.
On Mon, Feb 9, 2009 at 1:50 PM, Kim Haase <Ca...@sun.com> wrote:
> On 02/09/09 13:29, Knut Anders Hatlen wrote
>>
>> By the way, I vaguely recall that we did some work to get the docs to
>> build with DITA 1.2. Have you tried upgrading it?
>
> That would be an interesting experiment. Actually Andrew McIntyre did some
> work to get Derby to build with DITA 1.3 and a newer version of FOP, but I'm
> not sure it worked. We would probably need an expert like Andrew to do some
> tweaking of the Derby files to make the build work right. I think he made
> some progress -- see DERBY-2373 -- but I'm not sure it has been followed up
> on.
>
> DITA is now at 1.4.
There are new versions of both DITA and FOP. FOP is now at 0.95, we're
currently using FOP 0.93. The main thing to consider when upgrading is
not to regress the issues that we found and fixed with the DITA
toolkit, e.g. DERBY-408, 502, 753, and 1805. I'll be happy to field
questions about upgrading either of the libraries or adjusting the Ant
scripts, or about how to fix the errors reported by DITA.
andrew
Re: Documentation build error
Posted by Kim Haase <Ca...@Sun.COM>.
On 02/09/09 13:29, Knut Anders Hatlen wrote:
> Bryan Pendleton <bp...@amberpoint.com> writes:
>
>>> /home2/bpendleton/src/derby/docs/trunk/DITA-OT1.1.2.1/pretargets.xml:136:
>>> javax.xml.transform.TransformerException:
>>> java.lang.NullPointerException
>> I think the problem was that I was running JDK 1.5, and the documentation
>> build appears to ONLY work with JDK 1.4. After I fully reset my environment
>> to JDK 1.4 (both PATH and JAVA_HOME), the build seems to run successfully.
>
> Hi Bryan,
>
> Andrew suggested that this problem would go away if you put the Xalan
> jars in the classpath.
>
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200702.mbox/%3c54ac72d70702261117m1599a516n30d4a8be51bc520b@mail.gmail.com%3e
>
> By the way, I vaguely recall that we did some work to get the docs to
> build with DITA 1.2. Have you tried upgrading it?
>
That would be an interesting experiment. Actually Andrew McIntyre did
some work to get Derby to build with DITA 1.3 and a newer version of
FOP, but I'm not sure it worked. We would probably need an expert like
Andrew to do some tweaking of the Derby files to make the build work
right. I think he made some progress -- see DERBY-2373 -- but I'm not
sure it has been followed up on.
DITA is now at 1.4.
Kim
Re: Documentation build error
Posted by Knut Anders Hatlen <Kn...@Sun.COM>.
Bryan Pendleton <bp...@amberpoint.com> writes:
>> /home2/bpendleton/src/derby/docs/trunk/DITA-OT1.1.2.1/pretargets.xml:136:
>> javax.xml.transform.TransformerException:
>> java.lang.NullPointerException
>
> I think the problem was that I was running JDK 1.5, and the documentation
> build appears to ONLY work with JDK 1.4. After I fully reset my environment
> to JDK 1.4 (both PATH and JAVA_HOME), the build seems to run successfully.
Hi Bryan,
Andrew suggested that this problem would go away if you put the Xalan
jars in the classpath.
http://mail-archives.apache.org/mod_mbox/db-derby-dev/200702.mbox/%3c54ac72d70702261117m1599a516n30d4a8be51bc520b@mail.gmail.com%3e
By the way, I vaguely recall that we did some work to get the docs to
build with DITA 1.2. Have you tried upgrading it?
--
Knut Anders
Re: Documentation build error
Posted by Kim Haase <Ca...@Sun.COM>.
Yes, I've been using JDK 6, actually -- and I get all the FOP
warnings/errors too (various JIRA issues have been filed on them) but
the docs do build.
Kim
On 02/09/09 10:42, Rick Hillegas wrote:
> Bryan Pendleton wrote:
>>> /home2/bpendleton/src/derby/docs/trunk/DITA-OT1.1.2.1/pretargets.xml:136:
>>> javax.xml.transform.TransformerException: java.lang.NullPointerException
>>
>> I think the problem was that I was running JDK 1.5, and the documentation
>> build appears to ONLY work with JDK 1.4. After I fully reset my
>> environment
>> to JDK 1.4 (both PATH and JAVA_HOME), the build seems to run
>> successfully.
>>
>> This seems like a bit of a problem, though, as JDK 1.4 is starting to get
>> pretty old. Do we need to be planning to enable documentation builds
>> using
>> a more recent JDK?
>>
>> thanks,
>>
>> bryan
>>
> Hi Bryan,
>
> For what it's worth, I have just successfully built the docs using a
> Java 5 environment. I say "successfully" because
>
> 1) after reams of severe FOP warnings, ant said cheerfully "BUILD
> SUCCEEDED"
>
> 2) I looked at the pdf, mono-html, and frame-based-html versions of the
> Reference Guide and they looked ok to me
>
> Regards,
> -Rick
Re: Documentation build error
Posted by Rick Hillegas <Ri...@Sun.COM>.
Bryan Pendleton wrote:
>> /home2/bpendleton/src/derby/docs/trunk/DITA-OT1.1.2.1/pretargets.xml:136:
>> javax.xml.transform.TransformerException: java.lang.NullPointerException
>
> I think the problem was that I was running JDK 1.5, and the documentation
> build appears to ONLY work with JDK 1.4. After I fully reset my
> environment
> to JDK 1.4 (both PATH and JAVA_HOME), the build seems to run
> successfully.
>
> This seems like a bit of a problem, though, as JDK 1.4 is starting to get
> pretty old. Do we need to be planning to enable documentation builds
> using
> a more recent JDK?
>
> thanks,
>
> bryan
>
Hi Bryan,
For what it's worth, I have just successfully built the docs using a
Java 5 environment. I say "successfully" because
1) after reams of severe FOP warnings, ant said cheerfully "BUILD SUCCEEDED"
2) I looked at the pdf, mono-html, and frame-based-html versions of the
Reference Guide and they looked ok to me
Regards,
-Rick
Re: Documentation build error
Posted by Bryan Pendleton <bp...@amberpoint.com>.
> /home2/bpendleton/src/derby/docs/trunk/DITA-OT1.1.2.1/pretargets.xml:136:
> javax.xml.transform.TransformerException: java.lang.NullPointerException
I think the problem was that I was running JDK 1.5, and the documentation
build appears to ONLY work with JDK 1.4. After I fully reset my environment
to JDK 1.4 (both PATH and JAVA_HOME), the build seems to run successfully.
This seems like a bit of a problem, though, as JDK 1.4 is starting to get
pretty old. Do we need to be planning to enable documentation builds using
a more recent JDK?
thanks,
bryan