-
Notifications
You must be signed in to change notification settings - Fork 24
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
org.sbml.jsbml.xml.XMLNode cannot be cast to org.sbml.jsbml.Annotation #264
Comments
Hi! I am not a JSBML dev, but I looked into your issue because I am also encountering it. The model annotation (on the However, I would still consider this a bug in JSBML; at the very least, this should have a more informative error message. |
I just realized, the SBML is not actually invalid:
|
Layout and render specify precisely how to deal with it in case of SBML Level 2 documents: The file has been modified after being exported by COPASI. The layout element is in the wrong namespace. I can attach a valid l2v4 and l3v1 example. |
I see. Also the models that are affected range from 2015 to 2019 and across a number of working groups - this strongly suggests to me that some software agent and not manual manipulation is responsible for this. |
Indeed and regardless how those files came to be, JSBML should log it as error but still proceed with the parsing of the files. It would be simple enough to check the type before the cast. |
Thank you @Schmoho for pointing out the actual root cause. It seems that we can update SBML documents to sort the problem out. I completely agree with @fbergmann in term of developer's perspective. |
Dear The JSBML Developers Team,
BioModels has some curated models with the issue. These models were curated for a while but they run into this problem. The problem broke down our index pipeline. Would you be able to escalate the problem?
BIOMD0000000596, BIOMD0000000794, BIOMD0000000849, BIOMD0000000925, BIOMD0000000965.
I have seen another user reporting the problem at #263.
The text was updated successfully, but these errors were encountered: