After seemingly irrelevant changes in the code of my AEM project, my bundle fails to resolve. Upon inspecting the logs, I can see the following errors appearing.
22.04.2015 11:00:18.650 *ERROR* [qtp1266495948-35]
org.apache.felix.http.jetty %bundles.pluginTitle:
Cannot start (org.osgi.framework.BundleException:
Unresolved constraint in bundle my-bundle
...
[caused by: Unable to resolve 401.121: missing requirement [401.121]
osgi.wiring.package; (osgi.wiring.package=sun.reflect.generics.reflectiveObjects)]]
The project compiles just fine locally and the problem only occurs after the bundle's installation when the container attempts to resolve it.
I haven't added any explicit dependencies in any of my changes. The Project Object Models are the same as before. The name implies this is a core Java package so I'd expect it to be exposed by the System bundle.
I'm running JDK 7, which is supported by AEM so do not expect it to be a matter of JVM compatibility. At least when AEM internals are concerned.