diffplug / jmatio Goto Github PK
View Code? Open in Web Editor NEWJava Matlab IO library - actively maintained as MatFileRW
License: BSD 3-Clause "New" or "Revised" License
Java Matlab IO library - actively maintained as MatFileRW
License: BSD 3-Clause "New" or "Revised" License
Are figures supported? I am getting the following exception when trying to parse .fig files with JMatIO through Apache Tika:
Exception in thread "main" org.apache.tika.exception.TikaException: Error parsing Matlab file with MatParser
at org.apache.tika.parser.mat.MatParser.parse(MatParser.java:128)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:256)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:256)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
at org.apache.tika.cli.TikaCLI$OutputType.process(TikaCLI.java:146)
at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:440)
at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:116)
Caused by: com.jmatio.io.MatlabIOException: Incorrect matlab array class: function_handle
at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:929)
at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:639)
at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:620)
at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:620)
at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:620)
at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:620)
at com.jmatio.io.MatFileReader.readData(MatFileReader.java:515)
at com.jmatio.io.MatFileReader.readData(MatFileReader.java:498)
at com.jmatio.io.MatFileReader.read(MatFileReader.java:298)
at com.jmatio.io.MatFileReader.<init>(MatFileReader.java:154)
at com.jmatio.io.MatFileReader.<init>(MatFileReader.java:130)
at org.apache.tika.parser.mat.MatParser.parse(MatParser.java:66)
... 6 more
The line in master that's throwing the exception is https://github.com/codemercenary/JMatIO/blob/master/src/main/java/ca/mjdsystems/jmatio/io/MatFileReader.java#L1287. You can grab a sample fig file from this zip file. Here is the relevant Tika JIRA issue.
jmatio-1.0
Exception in thread "main" java.lang.IllegalArgumentException: Negative size
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:865)
at com.jmatio.io.MatFileReader.read(MatFileReader.java:287)
at com.jmatio.io.MatFileReader.(MatFileReader.java:154)
at com.jmatio.io.MatFileReader.(MatFileReader.java:102)
at com.hw.parse.prob.tocassandra.Test.main(Test.java:23)
prob_20200913_12.mat file size is 3.11GB
How can I solve this problem? Thank you
Hi,
I have been using JMatIO successfully with Java 8, however I recently attempted to transition to Java 11 and am now getting this error
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jmatio.io.MatFileReader$1 (file: /.m2/repository/com/diffplug/matsim/matfilerw/3.0.1/matfilerw-3.0.1.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of com.jmatio.io.MatFileReader$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/Cleaner
at com.jmatio.io.MatFileReader$1.run(MatFileReader.java:691)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.jmatio.io.MatFileReader.clean(MatFileReader.java:684)
at com.jmatio.io.MatFileReader.read(MatFileReader.java:389)
at com.jmatio.io.MatFileReader.read(MatFileReader.java:313)
at com.jmatio.io.MatFileReader.(MatFileReader.java:174)
at com.jmatio.io.MatFileReader.(MatFileReader.java:150)
I didn't know if anyone else has looked into this. Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.