Skip to content
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

Exception thrown while creating export_rocrate_json.cached #2

Open
pdurbin opened this issue Aug 6, 2024 · 0 comments
Open

Exception thrown while creating export_rocrate_json.cached #2

pdurbin opened this issue Aug 6, 2024 · 0 comments

Comments

@pdurbin
Copy link
Member

pdurbin commented Aug 6, 2024

As of 2927c37 I did a mvn package (after disabling the failing test in #1) and copied files into place:

cp dataverse-rocrate-exporter-2.0.0-jar-with-dependencies.jar docker-dev-volumes/app/data/exporters
cp dataverse2ro-crate.csv docker-dev-volumes/app/data/exporters

Then, once Dataverse was up (using Docker):

pdurbin@beamish dataverse % docker exec -it -u 0 dataverse-1 bash
root@dataverse:/opt/payara# mkdir /exporters
root@dataverse:/opt/payara# cp /dv/exporters/dataverse2ro-crate.csv /exporters

Then I tried to export a dataset as RO-Crate: http://localhost:8080/api/datasets/export?exporter=rocrate_json&persistentId=doi%3A10.5072/FK2/75OJSF

This is the error I'm seeing:

dev_dataverse> [#|2024-08-06T20:15:40.122+0000|WARNING|Payara 6.2024.6|edu.harvard.iq.dataverse.export.ExportService|_ThreadID=128;_ThreadName=http-thread-pool::http-listener-1(4);_TimeMillis=1722975340122;_LevelValue=900;|
dev_dataverse> Exception thrown while creating export_rocrate_json.cached : java.lang.ClassCastException: class java.util.LinkedHashMap cannot be cast to class java.lang.String (java.util.LinkedHashMap and java.lang.String are in module java.base of loader 'bootstrap')|#]

On the Dataverse side I'm running the tip of the develop branch: IQSS/dataverse@ac32b00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant