Plugin for dynamically loaded library:Can't open directory or file ["H5PL.c line 402 in H5PL__find()

zhuyu May 14, 2017

i have a h5 file and i want to read its data in my java program. first of all, i import the sis-jhdf5-batteries_included.jar to my project, then, i use the follow code to read a dataset:

 

IHDF5Reader reader=HDF5Factory.openForReading(h5filepath);
reader.int16().readArray("/REF/DataSet_1000_1");
reader.close();

 

unfortunatly, when i run the program, it thorws out an exception:

in thread "main" ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException: Plugin for dynamically loaded library:Can't open directory or file ["H5PL.c line 402 in H5PL__find(): can't open directory"]
	at ch.systemsx.cisd.hdf5.hdf5lib.H5.H5Dread(Native Method)
	at ch.systemsx.cisd.hdf5.hdf5lib.H5D.H5Dread(H5D.java:381)
	at ch.systemsx.cisd.hdf5.HDF5.readDataSet(HDF5.java:944)
	at ch.systemsx.cisd.hdf5.HDF5ShortReader.readShortArray(HDF5ShortReader.java:199)
	at ch.systemsx.cisd.hdf5.HDF5ShortReader.access$1(HDF5ShortReader.java:192)
	at ch.systemsx.cisd.hdf5.HDF5ShortReader$5.call(HDF5ShortReader.java:186)
	at ch.systemsx.cisd.hdf5.HDF5ShortReader$5.call(HDF5ShortReader.java:1)
	at ch.systemsx.cisd.hdf5.cleanup.CleanUpCallable.call(CleanUpCallable.java:40)
	at ch.systemsx.cisd.hdf5.HDF5ShortReader.readArray(HDF5ShortReader.java:189)
	at VariableTest.main(VariableTest.java:24)

i don't know how to solve this problem, anyone can help me?

the h5 file's data format like this ( use hdfview to open it ):

exception.pngwhen i double click on the DataSet_1000_1, the same exception happens:exception1.png

the DataSet_1000_1 in fact is a 2D image (1200*1200)

any answer will be appreciated, thanks in advance!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 14, 2017

Could you explain what this has to do with Atlassian applications?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 15, 2017

Nothing then, I think you're in the wrong place.

TAGS
AUG Leaders

Atlassian Community Events