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

Bug exporting SBOL #287

Closed
cjmyers opened this issue Jun 26, 2024 · 1 comment
Closed

Bug exporting SBOL #287

cjmyers opened this issue Jun 26, 2024 · 1 comment

Comments

@cjmyers
Copy link
Contributor

cjmyers commented Jun 26, 2024

After creating a new Component, adding a CDS, and importing LacI from the Cello library, I try to export the SBOL, and I get this error:

Type Exception Report

Message Index: 2, Size: 2

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
java.util.ArrayList.rangeCheck(ArrayList.java:659)
java.util.ArrayList.get(ArrayList.java:435)
utils.MxToSBOL.loadDictionary(MxToSBOL.java:996)
utils.MxToSBOL.setupDocument(MxToSBOL.java:143)
utils.MxToSBOL.toSBOL(MxToSBOL.java:86)
servlets.Convert.doPost(Convert.java:58)
javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.apache.catalina.filters.CorsFilter.handleSimpleCORS(CorsFilter.java:264)
org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:168)
Note The full stack trace of the root cause is available in the server logs.

Seems the problem is that the 2nd entry in this table does not exist. Should check size before fetching entry.

@cjmyers
Copy link
Contributor Author

cjmyers commented Jul 2, 2024

Fixed by PR #289

@cjmyers cjmyers closed this as completed Jul 2, 2024
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