-
Notifications
You must be signed in to change notification settings - Fork 11
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
Exception thrown when requesting service docs #149
Comments
@dannylamb Wow, that is weird. Blueprint thinks there are no instances of |
I first noticed this last Thursday. I can confirm that |
@birkland Logs seem to give me what I would expect to see. Some startup messages, then it notifies me it's waiting for dependencies, then it gets some blueprint events and starts up without issue. |
@birkland I have finally tracked down what's triggered this issue. Ever since we moved our camel and activemq versions to be in lockstep with Api-X, we're getting this consistently. |
@birkland I upgraded my environment to use Karaf 4.1.2 in an attempt to fix the issue but I still receive the same error message. |
@dannylamb Ugh, Is this in a VM, or otherwise reproducible externally (by the likes of me)? As mentioned on the last API-X call, there doesn't seem to be any explanation as to why the (published-in-OSGi) service is unavailable. I'm happy to look at it, but haven't ever seen this. In general, though, my confidence in Karaf (and of OSGi in general) is at a low point; they've proven to be a net liability. In my mind, the best solution is to move to deployment environment that doesn't involve either! Until then, let's see if this can be reproduced? |
@birkland I'm right there with ya. I'm going to do some more digging, like verifying this only occurs when both API-X and Alpaca are deployed within the same Karaf. That would be enough for me to move away from Karaf and towards Spring Boot and fat jars. If you want to give it a go, our https://github.com/Islandora-CLAW/claw_vagrant will bring up an environment with API-X and Alpaca. |
After lots more digging, I have found this to boils down to some weird timing issues in our CLAW installs (both https://github.com/Islandora-CLAW/claw_vagrant and https://github.com/Islandora-Devops/claw-playbook). It seems to resolve itself if I go through the following hurdles in order:
I'm loathe to introduce waits into our install code, but worse things have happened. I'm hoping that once we start doing distributed setups instead of these all-in-one installs, these sorts of issues will resolve themselves. |
Using the latest SNAPSHOT build of Api-X, I'm getting a RuntimeException when requesting the service document for a resource:
In the karaf logs I'm eventually getting this as well:
The text was updated successfully, but these errors were encountered: