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 scott hutinger <sr...@www.mprojects.Horrabin.wiu.edu> on 2005/03/30 16:17:07 UTC
Re: Problems building DITA docs
Hi Fred,
Could you send the JVM version, CLASSPATH, uname -a, and anything you
can think of :-) ?
The /opt/ looks like solaris, but sometimes linux uses /opt/
This might be due to what Jeff thinks is causing problems, which is
files not in native end of line. But certainly a strange error!
thanks,
scott
Fred Baube wrote:
>I did a fresh checkout just now (revision 159481) and encoun-
>tered these problems trying to run "ant pdf" and "ant html":
>
>- file src/getstart/tgssetupjavaenvir.dita had a PI
> at the end of the file which had to be removed
>
>- the Java source in DITA-OT1.0/src/ had to be built,
> zipped, and placed on my CLASSPATH
>
>- I am encountering an NPE when building both PDF
> and HTML (the NPE is the same in both cases):
>
>
>topicpull:
> [xslt] Transforming into /opt/trunk/temp
> [xslt] Processing /opt/trunk/temp/cgsinsta.dita to /opt/trunk/temp/cgsinsta.dita.pull
> [xslt] Loading stylesheet /opt/trunk/DITA-OT1.0/xsl/preprocess/topicpull.xsl
> [xslt] : Error! null
> [xslt] Failed to process /opt/trunk/temp/cgsinsta.dita
>
>BUILD FAILED
>/opt/trunk/build.xml:93: The following error occurred while executing this line:/opt/trunk/build.xml:137: The following error occurred while executing this line:
>/opt/trunk/DITA-OT1.0/pretargets.xml:120: javax.xml.transform.TransformerException: java.lang.NullPointerException
>
>
>The offending block (line 120 of DITA-OT1.0/pretargets.xml) is this:
>
> <xslt processor="trax"
> basedir="${dita.temp.dir}"
> destdir="${dita.temp.dir}"
> includes="${fullditatopc.list}"
> extension="${dita.extname}.pull"
> style="xsl/preprocess/topicpull.xsl">
>
>
>thx!/hth
>
>fred baube
>
>
>
Re: Problems building DITA docs
Posted by Fred Baube <fr...@metadoc.fi>.
To clarify ...
> /opt/trunk >> echo $CLASSPATH
> /opt/DITA-OT1.0/lib/dost1.0.jar: [..]
> [xslt] Loading stylesheet /opt/trunk/DITA-OT1.0/xsl/preprocess/topicpull.xsl
> The following error occurred while executing this line:/opt/trunk/DITA-OT1.0/pretargets.xml:120: javax.xml.transform.TransformerException: java.lang.NullPointerException
I have a symlink from
/opt/trunk/DITA-OT1.0
to
/opt/DITA-OT1.0
so, the CLASSPATH does in fact include
the "dost" jar of the new DITA-OT release.
fred
Re: Problems building DITA docs
Posted by scott hutinger <s-...@wiu.edu>.
What version of ant are you using? Also, the dita docs on derby say to
use 1.0, not the beta. Although I have used the beta without problems
in the build, although I am uncertain about the output. I tried setting
up pretty much like you have everything setup, and can't seem to get a
duplicate type of error. Could this be ANT version related?
thanks,
scott
Fred Baube wrote:
>Replying to myself ...
>
>
>
>>>Also, the DITA-OT1.0 I have doesn't have /src/ on the machine
>>>I am currently on. I think the link normally takes one to the
>>>beta DITA-OT1.0 files. Was this the beta or the 1.0? (I think
>>>they both have the same name when they are unzipped).
>>>
>>>
>>I downloaded it a couple of weeks ago. I see now that at
>>http://sourceforge.net/project/showfiles.php?group_id=132728
>>there's a "1.0.1" version ... is that the source of my problem ?
>>
>>
>
>It's not :-/ I just downloaded the "1.0.1beta" of 2005.03.18
>( http://sourceforge.net/project/showfiles.php?group_id=132728 ),
>and both "ant pdf" and "ant html" bombed the same way as before.
>
>/opt/trunk >> echo $CLASSPATH
>/opt/DITA-OT1.0/lib/dost1.0.jar:/opt/j2sdk1.4.2_07/jre/lib/rt.jar:/opt/trunk/lib/avalon-framework-cvs-20020806.jar:/opt/trunk/lib/batik.jar:/opt/trunk/lib/fop.jar:/usr/local/ant/lib/catalina-ant.jar:/usr/local/ant/lib/ant.jar
>
>[ the error: ]
>
>topicpull:
> [xslt] Transforming into /opt/trunk/temp
> [xslt] Processing /opt/trunk/temp/cgsinsta.dita to /opt/trunk/temp/cgsinsta.dita.pull
> [xslt] Loading stylesheet /opt/trunk/DITA-OT1.0/xsl/preprocess/topicpull.xsl
> [xslt] : Error! null
> [xslt] Failed to process /opt/trunk/temp/cgsinsta.dita
>
>BUILD FAILED
>/opt/trunk/build.xml:23: The following error occurred while executing this line:/opt/trunk/build.xml:72: The following error occurred while executing this line:/opt/trunk/DITA-OT1.0/pretargets.xml:120: javax.xml.transform.TransformerException: java.lang.NullPointerException
>
>
>
>thx...
>
>fred baube
>
>
>
Re: Problems building DITA docs
Posted by Fred Baube <fr...@metadoc.fi>.
Replying to myself ...
> > Also, the DITA-OT1.0 I have doesn't have /src/ on the machine
> > I am currently on. I think the link normally takes one to the
> > beta DITA-OT1.0 files. Was this the beta or the 1.0? (I think
> > they both have the same name when they are unzipped).
>
> I downloaded it a couple of weeks ago. I see now that at
> http://sourceforge.net/project/showfiles.php?group_id=132728
> there's a "1.0.1" version ... is that the source of my problem ?
It's not :-/ I just downloaded the "1.0.1beta" of 2005.03.18
( http://sourceforge.net/project/showfiles.php?group_id=132728 ),
and both "ant pdf" and "ant html" bombed the same way as before.
/opt/trunk >> echo $CLASSPATH
/opt/DITA-OT1.0/lib/dost1.0.jar:/opt/j2sdk1.4.2_07/jre/lib/rt.jar:/opt/trunk/lib/avalon-framework-cvs-20020806.jar:/opt/trunk/lib/batik.jar:/opt/trunk/lib/fop.jar:/usr/local/ant/lib/catalina-ant.jar:/usr/local/ant/lib/ant.jar
[ the error: ]
topicpull:
[xslt] Transforming into /opt/trunk/temp
[xslt] Processing /opt/trunk/temp/cgsinsta.dita to /opt/trunk/temp/cgsinsta.dita.pull
[xslt] Loading stylesheet /opt/trunk/DITA-OT1.0/xsl/preprocess/topicpull.xsl
[xslt] : Error! null
[xslt] Failed to process /opt/trunk/temp/cgsinsta.dita
BUILD FAILED
/opt/trunk/build.xml:23: The following error occurred while executing this line:/opt/trunk/build.xml:72: The following error occurred while executing this line:/opt/trunk/DITA-OT1.0/pretargets.xml:120: javax.xml.transform.TransformerException: java.lang.NullPointerException
thx...
fred baube
Re: Problems building DITA docs
Posted by Fred Baube <fr...@metadoc.fi>.
Gentlemen,
> Could you send the JVM version, CLASSPATH,
> uname -a, and anything you can think of :-) ?
/opt >> java -version
java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)
Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)
/opt/wa >> echo $CLASSPATH
/opt/j2sdk1.4.2_07/jre/lib/rt.jar:/opt/DITA-OT1.0/src/DITA.zip:.:/opt/trunk/lib/avalon-framework-cvs-20020806.jar:/opt/trunk/lib/batik.jar:/opt/trunk/lib/fop.jar:/usr/local/ant/lib/catalina-ant.jar:/usr/local/ant/lib/ant.jar
[ DITA.zip is the one I built in the DITA-OT src directory ]
/opt/wa >> uname -a
Linux rodan 2.6.8-1-386 #1 Thu Nov 25 04:24:08 UTC 2004 i686 GNU/Linux
/opt/wa >> fortune
Q: What is green and lives in the ocean?
A: Moby Pickle.
> The /opt/ looks like solaris, but sometimes linux uses /opt/
I have Linux (Debian testing), but /opt is where I've installed my stuff.
> Also, the DITA-OT1.0 I have doesn't have /src/ on the machine
> I am currently on. I think the link normally takes one to the
> beta DITA-OT1.0 files. Was this the beta or the 1.0? (I think
> they both have the same name when they are unzipped).
I downloaded it a couple of weeks ago. I see now that at
http://sourceforge.net/project/showfiles.php?group_id=132728
there's a "1.0.1" version ... is that the source of my problem ?
> I can confirm there is no src/ directory in the
> Toolkit, including the Beta toolkit. Fred, did you
> mean another directory?
thx!!
fred baube