shalinshah1993 / SBSCL

The Systems Biology Simulation Core Library (SBSCL) provides an efficient and exhaustive Java implementation of methods to interpret the content of models encoded in the Systems Biology Markup Language (SBML) and its numerical solution.
https://draeger-lab.github.io/SBSCL/
GNU Lesser General Public License v3.0
0 stars 2 forks source link

ConstraintTest misses model file #16

Closed matthiaskoenig closed 6 years ago

matthiaskoenig commented 6 years ago

ConstraintTest misses the model file data/Constraint-00001-L3V1.xml

Exception in thread "main" java.lang.IllegalArgumentException: Null InputStream is not a valid argument
    at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:643)
    at com.ctc.wstx.stax.WstxInputFactory.createXMLEventReader(WstxInputFactory.java:272)
    at org.sbml.jsbml.xml.stax.SBMLReader.readSBMLFromStream(SBMLReader.java:541)
    at org.sbml.jsbml.xml.stax.SBMLReader.readSBMLFromStream(SBMLReader.java:552)
    at org.sbml.jsbml.SBMLReader.readSBMLFromStream(SBMLReader.java:251)
    at org.sbml.jsbml.SBMLReader.read(SBMLReader.java:128)
    at org.simulator.sbml.ConstraintTest.main(ConstraintTest.java:64)
shalinshah1993 commented 6 years ago

The required files for constraint-based models are inside files folder. There is a biomodels zip folder. In my case, it is: SBSCL\files\Biomodels_release_20110415\release_20110415\curated\

draeger commented 6 years ago

Just a note: within Java one should always use / as a path delimiter rather than \. Java automatically converts this as needed.

shalinshah1993 commented 6 years ago

Commit for the fix can be found here. Closing this issue!