Skip to content

Problem with security manager call in post-install.xql #17

Description

@duncdrum

the Xquery test is missing the production credentials so this won't pass either

There are likely twitter -> X api changes to consider as well

logs (truncated):

2024-04-07 22:30:51 07 Apr 2024 20:30:51,847 [main] ERROR (AutoDeploymentTrigger.java [execute]:127) - Exception during deployment of app twitter.xar: Error found while processing repo.xml: exerr:ERROR org.exist.EXistException: Database instance 'exist' is not available [at line 90, column 17, source: /exist/etc/../data/expathrepo/twitter-1.0.0-SNAPSHOT/post-install.xql] 
2024-04-07 22:30:51 org.expath.pkg.repo.PackageException: Error found while processing repo.xml: exerr:ERROR org.exist.EXistException: Database instance 'exist' is not available [at line 90, column 17, source: /exist/etc/../data/expathrepo/twitter-1.0.0-SNAPSHOT/post-install.xql]
2024-04-07 22:30:51     at org.exist.repo.Deployment.deploy(Deployment.java:469) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.repo.Deployment.installAndDeploy(Deployment.java:281) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.repo.AutoDeploymentTrigger.execute(AutoDeploymentTrigger.java:125) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.storage.StartupTriggersManager.startPreMultiUserSystem(StartupTriggersManager.java:61) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.storage.BrokerPoolServicesManager.startPreMultiUserSystemServices(BrokerPoolServicesManager.java:264) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.storage.BrokerPool._initialize(BrokerPool.java:682) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.storage.BrokerPool.initialize(BrokerPool.java:451) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.storage.BrokerPools.configure(BrokerPools.java:177) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.storage.BrokerPools.configure(BrokerPools.java:112) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.jetty.JettyStart.run(JettyStart.java:217) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.jetty.JettyStart.main(JettyStart.java:103) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
2024-04-07 22:30:51     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
2024-04-07 22:30:51     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
2024-04-07 22:30:51     at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
2024-04-07 22:30:51     at org.exist.start.Main.invokeMain(Main.java:153) ~[exist-start-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.start.Main.runEx(Main.java:292) ~[exist-start-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.start.Main.run(Main.java:158) ~[exist-start-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.start.Main.main(Main.java:95) ~[exist-start-6.2.0.jar:6.2.0]
2024-04-07 22:30:51 Caused by: org.exist.xquery.XPathException: exerr:ERROR org.exist.EXistException: Database instance 'exist' is not available [at line 90, column 17, source: /exist/etc/../data/expathrepo/twitter-1.0.0-SNAPSHOT/post-install.xql]
2024-04-07 22:30:51     at org.exist.xquery.functions.securitymanager.AccountManagementFunction.eval(AccountManagementFunction.java:237) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.xquery.BasicFunction.eval(BasicFunction.java:73) ~[exist-core-6.2.0.jar:6.2.0]
2024-04-07 22:30:51     at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:62) ~[exist-core-6.2.0.jar:6.2.0]
…

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions