Exception when adding new Tool

15 views
Skip to first unread message

Steve

unread,
Dec 28, 2011, 2:40:10 PM12/28/11
to fits-users
Hi,
when I try to add a new Tool to the fits.xml, I can't initialize it
anymore. The following exception always occurs:

Exception in thread "main"
edu.harvard.hul.ois.fits.exceptions.FitsConfigurationException: Error
initializing edu.harvar
d.hul.ois.fits.tools.htmlinfo.HtmlInfo
(edu.harvard.hul.ois.fits.tools.htmlinfo.HtmlInfo)
at
edu.harvard.hul.ois.fits.tools.ToolBelt.<init>(ToolBelt.java:56)
at edu.harvard.hul.ois.fits.Fits.<init>(Fits.java:132)
at edu.harvard.hul.ois.fits.Fits.<init>(Fits.java:83)
at edu.harvard.hul.ois.fits.Fits.main(Fits.java:137)

HtmlInfo i the new class that I've written according to the rules in
http://code.google.com/p/fits/wiki/developer_documentation. Because I
thought,l that I did something wrong, I copied the whole code from the
Droid.java file to my file, and just change the Classname to HtmlInfo,
but this also didn't work.

The fits.xml looks like this:
<tools>
<!-- exclude-exts attribute is a comma delimited list of file
extensions that the tool should not try to process -->
<tool class="edu.harvard.hul.ois.fits.tools.oisfileinfo.AudioInfo"/>
<tool class="edu.harvard.hul.ois.fits.tools.oisfileinfo.ADLTool"/>
<tool class="edu.harvard.hul.ois.fits.tools.jhove.Jhove" exclude-
exts="dng,mbx,arw,adl"/>
<tool
class="edu.harvard.hul.ois.fits.tools.fileutility.FileUtility" exclude-
exts="dng,wps,adl"/>
<tool class="edu.harvard.hul.ois.fits.tools.exiftool.Exiftool"
exclude-exts="txt,wps,vsd"/>
<tool class="edu.harvard.hul.ois.fits.tools.droid.Droid" exclude-
exts="dng"/>
<tool class="edu.harvard.hul.ois.fits.tools.nlnz.MetadataExtractor"
exclude-
exts="dng,zip,odb,ott,odg,otg,odp,otp,ods,ots,odc,otc,odi,oti,odf,otf,odm,oth"/
>
<tool class="edu.harvard.hul.ois.fits.tools.oisfileinfo.FileInfo"/>
<tool class="edu.harvard.hul.ois.fits.tools.oisfileinfo.XmlMetadata"/
>
<tool class="edu.harvard.hul.ois.fits.tools.ffident.FFIdent" exclude-
exts="dng,wps,vsd"/>
<tool class="edu.harvard.hul.ois.fits.tools.htmlinfo.HtmlInfo"/>
</tools>

When I remove my new tool, everything works fine. Could someone give
me a hint?

Steve

unread,
Dec 28, 2011, 3:01:05 PM12/28/11
to fits-users
so, it WAS my fault :)
I recompiled the project few times and then it wokred

McEwen, Spencer

unread,
Jan 3, 2012, 10:09:13 AM1/3/12
to fits-...@googlegroups.com
I'm just curious which tool were you adding?

Steve

unread,
Jan 4, 2012, 2:09:38 PM1/4/12
to fits-users
I am currently developing a tool for exact analyzation of html files,
such as counting tags, links etc

On 3 Jan., 16:09, "McEwen, Spencer" <spencer_mce...@harvard.edu>
wrote:
> I'm just curious which tool were you adding?
>
Reply all
Reply to author
Forward
0 new messages