Hi,
I am new to using FITS and I am trying to use it within a Java context to generate some file integrity reports. The problem that I am seeing when running FITS is an exception stemming from the New Zealand extraction tool:
java.lang.NullPointerException
at nz.govt.natlib.meta.config.Config.readConfig(Config.java:563)
at nz.govt.natlib.meta.config.Config.<init>(Config.java:198)
at nz.govt.natlib.meta.config.Config.getInstance(Config.java:263)
at edu.harvard.hul.ois.fits.tools.nlnz.MetadataExtractor.extractInfo(MetadataExtractor.java:60)
at edu.harvard.hul.ois.fits.tools.ToolBase.run(ToolBase.java:141)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Thread-11" java.lang.NullPointerException
at nz.govt.natlib.meta.config.Config.setXMLBaseURL(Config.java:375)
at edu.harvard.hul.ois.fits.tools.nlnz.MetadataExtractor.extractInfo(MetadataExtractor.java:60)
at edu.harvard.hul.ois.fits.tools.ToolBase.run(ToolBase.java:141)
at java.lang.Thread.run(Thread.java:662)
Despite this problem, the other threads run just fine and an output is generated; I’m just not getting anything from the NZ tool. Am I doing something wrong?
Thanks
- Jim Halliday
- Indiana University
Hi,
I am new to using FITS and I am trying to use it within a Java context to generate some file integrity reports. The problem that I amseeing when running FITS is an exception stemming from the New Zealand extraction tool:
- Jim
On Dec 1, 2:13 pm, "McEwen, Spencer" <spencer_mce...@harvard.edu>
wrote:
> read more »...
Fits fits = new Fits();
FITS will look for a FITS_HOME environment variable, If it does not find
it then it will use the current directory as the FITS_HOME.
If you do:
Fits fits = new Fits("fits_home_dir");
The string passed in will be used as your FITS_HOME. FITS_HOME is used to
find the XML and other tool configuration files. This can be handled a
little cleaner and is something I hope can be fixed in a future release.
See line 88 here:
http://code.google.com/p/fits/source/browse/trunk/src/edu/harvard/hul/ois/f
its/Fits.java
Spencer
- Jim
On Dec 1, 3:17 pm, "McEwen, Spencer" <spencer_mce...@harvard.edu>
wrote:
> How are you initializing the Fits object? If you use the no arg
> constructor:
>
> Fits fits = new Fits();
>
> FITS will look for a FITS_HOME environment variable, If it does not find
> it then it will use the current directory as the FITS_HOME.
>
> If you do:
>
> Fits fits = new Fits("fits_home_dir");
>
> The string passed in will be used as your FITS_HOME. FITS_HOME is used to
> find the XML and other tool configuration files. This can be handled a
> little cleaner and is something I hope can be fixed in a future release.
>
> See line 88 here:http://code.google.com/p/fits/source/browse/trunk/src/edu/harvard/hul...
> its/Fits.java
>
> Spencer
> >> read more »...- Hide quoted text -
>
> - Show quoted text -
i already had the same problem since fits 0.5.
I have decided to fix the nz tool with the patch that you can find
here:
http://sourceforge.net/tracker/?func=detail&aid=2027729&group_id=189407&atid=929202
You will find the sources of the nz tool here: http://sourceforge.net/projects/meta-extractor/.
After you apply the patch, compile it and bind the jar into fits.
For me it works, I also hope for you.
Very best,
Stefan
On 1 Dez., 20:03, Jim Halliday <malic...@gmail.com> wrote:
> Hi,
>
> I am new to using FITS and I am trying to use it within a Java context to
> generate some file integrity reports. The problem that I am seeing when
> running FITS is an exception stemming from the New Zealand extraction tool:
>
> *java.lang.NullPointerException*
>
> at nz.govt.natlib.meta.config.Config.readConfig(*Config.java:563*)
>
> at nz.govt.natlib.meta.config.Config.<init>(*Config.java:198*)
>
> at nz.govt.natlib.meta.config.Config.getInstance(*Config.java:263*)
>
> at edu.harvard.hul.ois.fits.tools.nlnz.MetadataExtractor.extractInfo(*
> MetadataExtractor.java:60*)
>
> at edu.harvard.hul.ois.fits.tools.ToolBase.run(*ToolBase.java:141*)
>
> at java.lang.Thread.run(*Thread.java:662*)
>
> Exception in thread "Thread-11" *java.lang.NullPointerException*
>
> at nz.govt.natlib.meta.config.Config.setXMLBaseURL(*Config.java:375*)
>
> at edu.harvard.hul.ois.fits.tools.nlnz.MetadataExtractor.extractInfo(*
> MetadataExtractor.java:60*)
>
> at edu.harvard.hul.ois.fits.tools.ToolBase.run(*ToolBase.java:141*)
>
> at java.lang.Thread.run(*Thread.java:662*)