RSSAmplifier

Blog

Carlibrated

A blog about things that Carl has run into.

thecarlhall.wordpress.comRSS feed ↗10 posts

Latest posts

Moving to GitHub Pages

This whole mess with Mullenweg vs the world just made me realize that I don’t use this platform enough to justify being associated with the mess he’s creating. WP is a great platform, but Matt is being messy in public. I’m moving to thecarlhall.github.io and building my site with Hugo. See ya there!

Requiring External Resources Before Attempting JUnit Tests

If you have an integration test that requires external resources to be available, like a local DynamoDB server, that test should be skipped rather than fail when the resources aren't there. In JUnit, this can be accomplished by throwing an AssumptionViolatedException from an @BeforeClass method, or better yet, with reusable ClassRules.

Integration Testing with DynamoDB Locally

One of the really nice things about using DynamoDB to back an application is the ability to write integration tests that have a good test server without trying to mimic DynamoDB yourself. DynamoDB_Local is available from AWS and is easily incorporated into a Maven build. Take a look through the documentation for running DynamoDB on […]

Erlang Map/Reduce Job in Riak using a Ruby Client

Note: I am horrible at Erlang, but have figured out enough to construct a Map/Reduce job. Hopefully these notes serve as more than a warning. It’s rarely possible to know every way you will want to access your data. Riak has secondary indices (2i) but if you don’t have one that represents what you want […]

Find activate-immediately services that lack an activate method

Immediate service activation in OSGi can be tricky but there are some basic rules to consider. Another point to think about is when a service doesn’t contain an activate method. The code base I work in uses Felix’s SCR annotations which makes this search pretty concise. I also assume that the code is in git. […]

Understanding the ‘unresolved constraint’, ‘missing requirement’ message from Apache Felix Pt. 2

We previously took a look at Felix’s unresolved constraint message. I started testing with Felix 4.0.2 today and realized the output for an unresolved constraint has changed a bit. We have the same unresolved constraint..missing requirement as before but the part we’re interested in has changed a bit. Let’s break apart that first message. Given […]

Getting started with Pax Runner

After fighting through a Maven assembly for a small project, I just couldn’t take that headache again. I’ve used Apache Sling’s Maven Launchpad Plugin to put together a standalone OSGi server but Launchpad doesn’t allow you to pick which OSGi container you deploy to or what version of Felix gets used. I’ve started working with Pax […]

Understanding the ‘unresolved constraint’, ‘missing requirement’ message from Apache Felix

It’s pretty common while developing an OSGi bundle that your imports and exports won’t quite match what you need or what exists in the server you’re deploying to. This can show up as NoClassDefFoundError, ClassNotFoundException or as log output in a stacktrace from bundle resolution. Hall, Pauls, McCullough and Savage did a great job of […]

Using pygraphviz to plot OSGi bundle dependencies

I’ve been working on an OSGi project for the last few years. As with any project, evolutionary changes will eventually require some cleanup. As new bundles have been added over time, the graph of dependencies is starting to get unwieldy in places. Even with good management of these dependencies, a nice visual layout of things […]

Committer Status on Apache Sling

I woke up this morning to the fantastic news that I’ve been offered committer status on Apache Sling! I graciously and excitedly accepted the opportunity to become an Apache committer. The various points of processing are in motion, so expect to see more Sling posts from me as I get ramped up into being a […]