Karaf
  1. Karaf
  2. KARAF-1298

dev:watch does not work in some cases

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.6, 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      When working on the package commands I found that dev:watch sometimes does not fully work.
      I did dev:watch package
      Then I changed the signature of PackageRequirement in package.core and also in command and management. After compiling the modules dev:watch correctly updates the bundles.
      When I then call package:imports I get the exception below.

      So something does not seem to get updated. After a restart of Karaf it works.


      java.lang.NoSuchMethodError: org.apache.karaf.packages.core.PackageRequirement.<init>(Ljava/lang/String;ZLorg/osgi/framework/Bundle;Z)V
      at org.apache.karaf.packages.core.internal.PackageServiceImpl.getImports(PackageServiceImpl.java:79)
      at Proxy7d4ae25c_9716_4aa8_8da7_2cdb4e7d7537.getImports(Unknown Source)
      at Proxyb9bd982e_2f29_44db_a383_cdd05898400b.getImports(Unknown Source)
      at org.apache.karaf.packages.command.Imports.doExecute(Imports.java:40)
      at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
      at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
      at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_31]
      at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_31]
      at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
      at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
      at org.apache.karaf.shell.console.commands.$BlueprintCommand605017.execute(Unknown Source)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at org.apache.karaf.shell.console.jline.Console.run(Console.java:166)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      at java.lang.Thread.run(Thread.java:662)[:1.6.0_31]

        Activity

        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Guillaume Nodet made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2.6 [ 12319142 ]
        Resolution Fixed [ 1 ]
        Guillaume Nodet made changes -
        Field Original Value New Value
        Assignee Guillaume Nodet [ gnt ]
        Christian Schneider created issue -

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Christian Schneider
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development