1. ServiceMix
  2. SM-2316

Problems when reinstalling the drools examples


    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.1, 5.0.2, 5.1.0, 6.0.0
    • Fix Version/s: 5.0.2, 5.1.0, 6.0.0.M1, 6.0.0
    • Component/s: examples
    • Labels:


      When one of the drools samples is uninstalled and next installed again following error appears in log

      java.lang.IllegalStateException: Bundle is uninstalled
      	at org.apache.felix.framework.Felix.loadBundleClass(
      	at org.apache.felix.framework.BundleImpl.loadClass(
      	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass([114:org.springframework.osgi.core:1.2.1]
      	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass([114:org.springframework.osgi.core:1.2.1]
      	at java.lang.ClassLoader.loadClass([:1.7.0_55]
      	at java.lang.Class.forName0(Native Method)[:1.7.0_55]
      	at java.lang.Class.forName([:1.7.0_55]

      Refreshing the drools bundle solves the problem. The problem soes not happen in 5.0.0 where the drools bundle was part of the drools example feature. Extracting the drools bundle in a separate feature caused the problem. It seems that the drools bundle must be installed together with routes or must be refreshed after the routes are installed

      1. log.txt
        281 kB
        Krzysztof Sobkowiak


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        18d 22h 17m 1 Gert Vanthienen 16/Jun/14 19:13
        Resolved Resolved Closed Closed
        287d 23h 17m 1 Krzysztof Sobkowiak 31/Mar/15 18:31
        Krzysztof Sobkowiak made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Krzysztof Sobkowiak made changes -
        Fix Version/s 6.0.0.M1 [ 12329337 ]
        Gert Vanthienen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Gert Vanthienen [ gertvanthienen ]
        Fix Version/s 5.1.0 [ 12326660 ]
        Fix Version/s 5.1.1 [ 12327059 ]
        Resolution Fixed [ 1 ]
        Gert Vanthienen added a comment - - edited Applied the pull request: for master in;a=commit;h=71a92c6c5ac271827c5955718028e6dcf8ad51b8 for servicemix-5.1.x in;a=commit;h=b51c2c4f288359517081b7771d2c940f50147f57 for servicemix-5.0.x in;a=commit;h=9a8046ba04a6f9664620767259ecd38dc611f572 Thanks for the pull request, Wim! Nice catch!
        Wim Verreydt added a comment -

        I found a way to fix this, you can find the result here:

        Wim Verreydt added a comment - I found a way to fix this, you can find the result here:
        Krzysztof Sobkowiak made changes -
        Attachment log.txt [ 12647206 ]
        Krzysztof Sobkowiak made changes -
        Field Original Value New Value
        Affects Version/s 5.1.0 [ 12326660 ]
        Krzysztof Sobkowiak created issue -


          • Assignee:
            Gert Vanthienen
            Krzysztof Sobkowiak
          • Votes:
            0 Vote for this issue
            3 Start watching this issue


            • Created: