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

BLOB for large binary data, model won't load in Polystore #75

Open
platux opened this issue Dec 21, 2020 · 1 comment
Open

BLOB for large binary data, model won't load in Polystore #75

platux opened this issue Dec 21, 2020 · 1 comment

Comments

@platux
Copy link

platux commented Dec 21, 2020

After updating our model to include a blob for large binary data in mongo and mariadb it is not possible to load the model in the polystore, the typhon-polystore-service application fails just after retrieving the polystore conf from mongo, with the error below.

If we replace the addModels.js with the one previously generated WITHOUT the blob and we just re-create the containsers with

docker-compose down -v
docker-compose up polystore-mongo
docker-compose up typhon-polystore-service

then it works.
is there something wrong in our model?

find attached:

  • the model which works along with its .js, WITHOUT the blob. NOTE: the JS was generated with an older version of the plugins

  • the model WITHOUT the blob and the JS generated with the new plugin. it does not work, it produces the same error as the one with the blob (below)

  • the model WITH the blob, generated with the new plugins, and the log of the polystore service when it is started

attached file:
models_and_logs_v2.zip

"_old_JS" means the JS was generated with older plugins"
"_new_JS" meand the JS was generated with current pluging:

Query Evolution	0.1.0.202012011519
Typhon ML	1.0.0.202010150957
TyphonDL	1.0.0.202012021120

TyphonQL IDE not installed (is it needed?)
typhon docker images pulled yesterday

typhon-polystore-service_1 | 8564 [main] INFO org.mongodb.driver.connection - Closed connection [connectionId{localValue:2, serverValue:3}] to polystore-mongo:27017 because the pool has been closed.
typhon-polystore-service_1 | Dec 21, 2020 9:15:49 AM org.apache.catalina.core.StandardService stopInternal
typhon-polystore-service_1 | INFO: Stopping service [Tomcat]
typhon-polystore-service_1 | 8617 [main] INFO org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener -
typhon-polystore-service_1 |
typhon-polystore-service_1 | Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
typhon-polystore-service_1 | 8622 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
typhon-polystore-service_1 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mainController': Invocation of init method failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1

@platux platux assigned platux and unassigned platux Dec 21, 2020
@MarieSaphira
Copy link
Contributor

The error

typhon-polystore-service_1  | Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
typhon-polystore-service_1  |   at com.clms.typhonapi.utils.ServiceRegistry.parseDbElement(ServiceRegistry.java:211)

is caused by invalid references, e.g.

<elements xsi:type=\"typhonDL:DB\" name=\"GeneralInfo\">    <type href=\"../../../ote-usecase/model/dbTypes.tdl#//@elements.1\"/>

see this issue. Please only have one DL model per project for now.

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

2 participants