Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1155

Error when OSGi container is stopped on aries jpa container No persistence units defined for bundle

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • JPA
    • None
    • Ubuntu Linux, Java 7, Karaf 3.0.1-SNAPSHOT

      I tried to find the aries jpa versions for Affects Version but could not find any.

    Description

      I run my cameljpa jpa2jms example on karaf 3.0.1-SNAPSHOT (The snapshot version is necessary as karaf had some issues with openjpa).

      See the readme in:
      https://github.com/cschneider/Karaf-Tutorial/tree/master/cameljpa/jpa2jms

      The example works fine but when I stop the OSGi container I get the error below:

      ERROR: Bundle org.apache.aries.jpa.container [160] Error stopping mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.0 (org.osgi.framework.BundleException: Activator stop error in bundle org.apache.aries.jpa.container [160].)
      java.lang.IllegalStateException: No persistence units defined for bundle jpa2jms/1.0.0.SNAPSHOT.
      at org.apache.aries.jpa.container.unit.impl.ManagedPersistenceUnitInfoFactoryImpl.destroyPersistenceBundle(ManagedPersistenceUnitInfoFactoryImpl.java:60)
      at org.apache.aries.jpa.container.impl.PersistenceBundleManager.removedBundle(PersistenceBundleManager.java:313)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerRemoved(BundleHookBundleTracker.java:513)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerRemoved(BundleHookBundleTracker.java:433)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.untrack(BundleHookBundleTracker.java:834)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker.close(BundleHookBundleTracker.java:196)
      at org.apache.aries.util.tracker.RecursiveBundleTracker.close(RecursiveBundleTracker.java:120)
      at org.apache.aries.jpa.container.impl.PersistenceBundleManager.close(PersistenceBundleManager.java:140)
      at org.apache.aries.jpa.container.impl.PersistenceBundleManager.stop(PersistenceBundleManager.java:643)
      at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:667)
      at org.apache.felix.framework.Felix.stopBundle(Felix.java:2530)
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1309)
      at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
      at java.lang.Thread.run(Thread.java:744)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jbonofre Jean-Baptiste Onofré
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment