-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 'declaration of the element "jhoveConfig" could not be found' #2619
Comments
@lwo do you happen to know what happens when this error occurs? Jhove is used to identify file types so is it that the file type is not correctly identified? |
See Leonid's August message below re: jhove Begin forwarded message: From: Leonid Andreev <leonid@hmdc.harvard.edumailto:leonid@hmdc.harvard.edu> The config file lives in your source tree, in conf/jhove/jhove.conf. I updated this file in the source tree back in Jan. However, if you That old version contains the URL for the schema file. And the way jhove Datascience mailing list To unsubscribe from this list or get other information: https://lists.fas.harvard.edu/mailman/listinfo/datascience On Oct 1, 2015, at 7:25 PM, Philip Durbin <notifications@github.commailto:notifications@github.com> wrote: @lwohttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_lwo&d=BQMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=EkFi6BF7pof1mvmoyqcphtSeruEfuDmHCUNhyy4Y_XM&m=JBQtqm6gsVFyQNQt264h54GdfiKREeksAKngW4d1SrY&s=11DaInwj7yza8r_Wsl97_K5q_-k_xHN8Aza9c2Y3B8A&e= do you happen to know what happens when this error occurs? Jhove is used to identify file types so is it that the file type is not correctly identified? Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_2619-23issuecomment-2D144875946&d=BQMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=EkFi6BF7pof1mvmoyqcphtSeruEfuDmHCUNhyy4Y_XM&m=JBQtqm6gsVFyQNQt264h54GdfiKREeksAKngW4d1SrY&s=Fc5kuYgCrBGVBeezqBPEPni2g3cJ1KTn0_Oe0EkNebQ&e=. |
We have seen this error in our logs too - when a file is uploaded this error is logged. I haven't determined if there is any effect of JHOVE not being able to find this declaration. |
The jhove.properties settings do not seem to be relevant here. I have in domain1/config//jhove.conf: When I upload an Excel file with or without an extension: myfile.bin or myfile.bin.xlsx I get the following:
And the UI displays:
Using the above jhove.properties has no real effect and break things:
However, here the file with the extension ( myfile.bin.xsls ) does get correctly identified as a "MS Excel (XLSX)". So there is probably a fall back on file extensions if the JHove content check fails. The file myfile.bin still has the Unknown status. If you deliberately add the jhove.conf with invalid XML you get the same fall-back-on-extension effect. I can replicate something similar on the https://dataverse-demo.iq.harvard.edu/ site. There the xsls file with extension is identified as an Excel:
Without it is not:
|
The latest version of jhove.conf has the following line : /usr/local/src/jhove I wonder whether this path setting is correct because the installer does not have a block that copies jhove's jars to this directory; the location of these jars would be "../applications/${dataverse_war_file_name}' , i.e. for version 4.2, "../applications/dataverse-4.2", if no "contextroot" is set during the war-file-deployment, because these jars are stored with the war file. |
OK, I know what it is. It's not a fatal condition (you should still be able to upload your files and all). But it's still an issue, and I'll have a fix shortly. |
I spoke to @landreev about this and he said it should be fixed in the next release (post 4.2.3). I just took a quick look for the ticket but couldn't find it. Need to remind him to link it up here. |
No, not what I meant. Kevin, could you please close this one? |
Leonid, passing back to you to add to release notes. Then go ahead and close this. |
@kcondon |
I first saw this error when I switched my virtual test boxes and later it was mentioned by here too:
https://groups.google.com/forum/#!topic/dataverse-community/XMRhg1UiwmE
In my test on Ubuntu 12 the LANG environment has no effect. But explicitly setting the Saxon class for Jhove does. E.g.:
And the jhove.conf is parsed ok. But remove that properties file and the application throws the 'declaration of the element "jhoveConfig" could not be found' again. It is consistent.
I don't really see why this would be necessary, because one of the domain's vm settings is already set thus
Unless the jvm on this machine behaves different that expected ? In this particular case it is:
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.12.04.1)
The text was updated successfully, but these errors were encountered: