[Odlparent-dev] Error while installing odl-restconf on master


Michael Vorburger <vorburger@...>
 

On Fri, Nov 17, 2017 at 7:31 AM, Faseela K <faseela.k@...> wrote:

+odl-parent

 

We see this error only after karaf4 migration. And it works on some of the setups, but fails in some.

Since the log says ClassNotFoundException, is this some dependency ordering problem?


Faseela, where do you see this, migrating what to Karaf 4? Is this a problem seen only in a downstream distribution we cannot see, which may have some wrong version dependency declaration somewhere, or something you are hitting using an upstream Karaf distribution -which one, the integration/distribution or the netvirt/vpnservice/distribution/karaf, or another one?

Robert, Faseela pointed out to me that this ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0 shown below is exactly the same as what you discussed with Lori back in February on https://lists.opendaylight.org/pipermail/release/2017-February/009302.html ...

Faseela also says there we still appear to have two different Jetty versions available / loaded (Faseela, could you reply to this with those additional details from IRC?). Is that intentional? IMHO something like that could be cause this kind of version mess confusion in OSGi, and lead to this kind of ClassNotFoundException...

hoping Robert and/or Stephen know more about our Jetty version story which may help clarify what could be going on here.

Tx,
M.
--
Michael Vorburger, Red Hat
vorburger@... | IRC: vorburger @freenode | ~ = http://vorburger.ch

 

Thanks,

Faseela

 

From: Faseela K
Sent: Thursday, November 16, 2017 11:22 PM
To: 'aaa-dev@....org' <aaa-dev@....org>
Subject: Error while installing odl-restconf on master

 

Hello aaa-dev,

    I am trying to install a feature defined in netvirt, which has a dependency on odl-restconf.

    My bundle dependencies are not getting resolved properly, and hit the below issue, would like to know whether there was something in recent past which got fixed in this area.

    I do get jetty related error in karaf.logs.

 

    opendaylight-user@root>bundle:diag

org.opendaylight.aaa.aaa-shiro (175)

------------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.osgi.service.http.HttpService)

 

 

MD SAL Restconf Connector (294)

-------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.opendaylight.aaa.api.AAAService)

 

ERROR in karaf log

 

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Trying to lock /opt/sdnc/opendaylight/lock

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Lock acquired

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired

INFO: Lock acquired. Setting startlevel to 100

2017-11-16 14:48:03,717 | ERROR | onfig-1-thread-1 | JettyServerImpl                  | 405 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Exception while starting Jetty

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_141]

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:151)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:413)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)

        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_141]

        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:86)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)

        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)

        ... 16 more

2017-11-16 14:48:03,734 | ERROR | onfig-1-thread-1 | Activator                        | 407 - org.ops4j.pax.web.pax-web-runtime - 4.3.0 | Unable to start pax web server: Exception while starting Jetty

java.lang.RuntimeException: Exception while starting Jetty

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:188)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

 

    

Thanks,

Faseela


_______________________________________________
Odlparent-dev mailing list
Odlparent-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/odlparent-dev



Faseela K <faseela.k@...>
 

Hi Michael,

    We are not doing any new features downstream. We just have synced the master code, and built a distribution.

    The only feature we are trying to install is odl-restconf-all. This works in some of the setups, but not always.

 

     When it works, I do see that HttpService is being pulled in by :

 

      opendaylight-user@root>bundle:services | grep -B 9 HttpService

OPS4J Pax Web - Jetty (392) provides:

-------------------------------------

[org.ops4j.pax.web.service.spi.ServerControllerFactory]

 

OPS4J Pax Web - Runtime (394) provides:

---------------------------------------

[org.ops4j.pax.web.service.spi.ServletListener]

[org.ops4j.pax.web.service.spi.ServletListener]

[org.osgi.service.cm.ManagedService]

[org.osgi.service.http.HttpService, org.ops4j.pax.web.service.WebContainer]

 

 

SelectChannelConnector class is seen only in 8.1 version of jetty, I am not sure whether there is any ordering problem in this case.

I do see two jetty-server related jars even in working as well as non-working setups.

 

org/eclipse/jetty/aggregate/jetty-all-server/8.1.14.v20131031/

org/eclipse/jetty/jetty-server/9.2.19.v20160908/

  

Thanks,

Faseela

 

From: Michael Vorburger [mailto:vorburger@...]
Sent: Friday, November 17, 2017 6:21 PM
To: Faseela K <faseela.k@...>; Robert Varga <nite@...>
Cc: aaa-dev@...; odlparent-dev@...
Subject: Re: [Odlparent-dev] Error while installing odl-restconf on master

 

On Fri, Nov 17, 2017 at 7:31 AM, Faseela K <faseela.k@...> wrote:

+odl-parent

 

We see this error only after karaf4 migration. And it works on some of the setups, but fails in some.

Since the log says ClassNotFoundException, is this some dependency ordering problem?

 

Faseela, where do you see this, migrating what to Karaf 4? Is this a problem seen only in a downstream distribution we cannot see, which may have some wrong version dependency declaration somewhere, or something you are hitting using an upstream Karaf distribution -which one, the integration/distribution or the netvirt/vpnservice/distribution/karaf, or another one?

 

Robert, Faseela pointed out to me that this ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0 shown below is exactly the same as what you discussed with Lori back in February on https://lists.opendaylight.org/pipermail/release/2017-February/009302.html ...

 

Faseela also says there we still appear to have two different Jetty versions available / loaded (Faseela, could you reply to this with those additional details from IRC?). Is that intentional? IMHO something like that could be cause this kind of version mess confusion in OSGi, and lead to this kind of ClassNotFoundException...

 

hoping Robert and/or Stephen know more about our Jetty version story which may help clarify what could be going on here.


Tx,

M.

--

Michael Vorburger, Red Hat
vorburger@... | IRC: vorburger @freenode | ~ = http://vorburger.ch

 

 

Thanks,

Faseela

 

From: Faseela K
Sent: Thursday, November 16, 2017 11:22 PM
To: 'aaa-dev@...' <aaa-dev@...>
Subject: Error while installing odl-restconf on master

 

Hello aaa-dev,

    I am trying to install a feature defined in netvirt, which has a dependency on odl-restconf.

    My bundle dependencies are not getting resolved properly, and hit the below issue, would like to know whether there was something in recent past which got fixed in this area.

    I do get jetty related error in karaf.logs.

 

    opendaylight-user@root>bundle:diag

org.opendaylight.aaa.aaa-shiro (175)

------------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.osgi.service.http.HttpService)

 

 

MD SAL Restconf Connector (294)

-------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.opendaylight.aaa.api.AAAService)

 

ERROR in karaf log

 

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Trying to lock /opt/sdnc/opendaylight/lock

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Lock acquired

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired

INFO: Lock acquired. Setting startlevel to 100

2017-11-16 14:48:03,717 | ERROR | onfig-1-thread-1 | JettyServerImpl                  | 405 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Exception while starting Jetty

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_141]

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:151)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:413)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)

        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_141]

        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:86)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)

        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)

        ... 16 more

2017-11-16 14:48:03,734 | ERROR | onfig-1-thread-1 | Activator                        | 407 - org.ops4j.pax.web.pax-web-runtime - 4.3.0 | Unable to start pax web server: Exception while starting Jetty

java.lang.RuntimeException: Exception while starting Jetty

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:188)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

 

    

Thanks,

Faseela


_______________________________________________
Odlparent-dev mailing list
Odlparent-dev@...
https://lists.opendaylight.org/mailman/listinfo/odlparent-dev

 


Faseela K <faseela.k@...>
 

Michael just now pointed out that downstream we are on an intermediate sync, where odlparent is on 2.0.4 and I see that upstream aaa uses odlparent 2.0.5 curently. We would like to first sync the latest master, and try this once again.

 

Thanks,

Faseela

 

From: Faseela K
Sent: Friday, November 17, 2017 6:37 PM
To: 'Michael Vorburger' <vorburger@...>; Robert Varga <nite@...>
Cc: aaa-dev@...; odlparent-dev@...
Subject: RE: [Odlparent-dev] Error while installing odl-restconf on master

 

Hi Michael,

    We are not doing any new features downstream. We just have synced the master code, and built a distribution.

    The only feature we are trying to install is odl-restconf-all. This works in some of the setups, but not always.

 

     When it works, I do see that HttpService is being pulled in by :

 

      opendaylight-user@root>bundle:services | grep -B 9 HttpService

OPS4J Pax Web - Jetty (392) provides:

-------------------------------------

[org.ops4j.pax.web.service.spi.ServerControllerFactory]

 

OPS4J Pax Web - Runtime (394) provides:

---------------------------------------

[org.ops4j.pax.web.service.spi.ServletListener]

[org.ops4j.pax.web.service.spi.ServletListener]

[org.osgi.service.cm.ManagedService]

[org.osgi.service.http.HttpService, org.ops4j.pax.web.service.WebContainer]

 

 

SelectChannelConnector class is seen only in 8.1 version of jetty, I am not sure whether there is any ordering problem in this case.

I do see two jetty-server related jars even in working as well as non-working setups.

 

org/eclipse/jetty/aggregate/jetty-all-server/8.1.14.v20131031/

org/eclipse/jetty/jetty-server/9.2.19.v20160908/

  

Thanks,

Faseela

 

From: Michael Vorburger [mailto:vorburger@...]
Sent: Friday, November 17, 2017 6:21 PM
To: Faseela K <faseela.k@...>; Robert Varga <nite@...>
Cc: aaa-dev@...; odlparent-dev@...
Subject: Re: [Odlparent-dev] Error while installing odl-restconf on master

 

On Fri, Nov 17, 2017 at 7:31 AM, Faseela K <faseela.k@...> wrote:

+odl-parent

 

We see this error only after karaf4 migration. And it works on some of the setups, but fails in some.

Since the log says ClassNotFoundException, is this some dependency ordering problem?

 

Faseela, where do you see this, migrating what to Karaf 4? Is this a problem seen only in a downstream distribution we cannot see, which may have some wrong version dependency declaration somewhere, or something you are hitting using an upstream Karaf distribution -which one, the integration/distribution or the netvirt/vpnservice/distribution/karaf, or another one?

 

Robert, Faseela pointed out to me that this ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0 shown below is exactly the same as what you discussed with Lori back in February on https://lists.opendaylight.org/pipermail/release/2017-February/009302.html ...

 

Faseela also says there we still appear to have two different Jetty versions available / loaded (Faseela, could you reply to this with those additional details from IRC?). Is that intentional? IMHO something like that could be cause this kind of version mess confusion in OSGi, and lead to this kind of ClassNotFoundException...

 

hoping Robert and/or Stephen know more about our Jetty version story which may help clarify what could be going on here.


Tx,

M.

--

Michael Vorburger, Red Hat
vorburger@... | IRC: vorburger @freenode | ~ = http://vorburger.ch

 

 

Thanks,

Faseela


Ryan Goulding <ryandgoulding@...>
 

Let us know how it turns out!

Thanks,
Ryan


On Nov 17, 2017, at 7:51 AM, Michael Vorburger <vorburger@...> wrote:

On Fri, Nov 17, 2017 at 7:31 AM, Faseela K <faseela.k@...> wrote:

+odl-parent

 

We see this error only after karaf4 migration. And it works on some of the setups, but fails in some.

Since the log says ClassNotFoundException, is this some dependency ordering problem?


Faseela, where do you see this, migrating what to Karaf 4? Is this a problem seen only in a downstream distribution we cannot see, which may have some wrong version dependency declaration somewhere, or something you are hitting using an upstream Karaf distribution -which one, the integration/distribution or the netvirt/vpnservice/distribution/karaf, or another one?

Robert, Faseela pointed out to me that this ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0 shown below is exactly the same as what you discussed with Lori back in February on https://lists.opendaylight.org/pipermail/release/2017-February/009302.html ...

Faseela also says there we still appear to have two different Jetty versions available / loaded (Faseela, could you reply to this with those additional details from IRC?). Is that intentional? IMHO something like that could be cause this kind of version mess confusion in OSGi, and lead to this kind of ClassNotFoundException...

hoping Robert and/or Stephen know more about our Jetty version story which may help clarify what could be going on here.

Tx,
M.
--
Michael Vorburger, Red Hat
vorburger@... | IRC: vorburger @freenode | ~ = http://vorburger.ch

 

Thanks,

Faseela

 

From: Faseela K
Sent: Thursday, November 16, 2017 11:22 PM
To: 'aaa-dev@....org' <aaa-dev@....org>
Subject: Error while installing odl-restconf on master

 

Hello aaa-dev,

    I am trying to install a feature defined in netvirt, which has a dependency on odl-restconf.

    My bundle dependencies are not getting resolved properly, and hit the below issue, would like to know whether there was something in recent past which got fixed in this area.

    I do get jetty related error in karaf.logs.

 

    opendaylight-user@root>bundle:diag

org.opendaylight.aaa.aaa-shiro (175)

------------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.osgi.service.http.HttpService)

 

 

MD SAL Restconf Connector (294)

-------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.opendaylight.aaa.api.AAAService)

 

ERROR in karaf log

 

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Trying to lock /opt/sdnc/opendaylight/lock

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Lock acquired

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired

INFO: Lock acquired. Setting startlevel to 100

2017-11-16 14:48:03,717 | ERROR | onfig-1-thread-1 | JettyServerImpl                  | 405 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Exception while starting Jetty

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_141]

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:151)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:413)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)

        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_141]

        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:86)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)

        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)

        ... 16 more

2017-11-16 14:48:03,734 | ERROR | onfig-1-thread-1 | Activator                        | 407 - org.ops4j.pax.web.pax-web-runtime - 4.3.0 | Unable to start pax web server: Exception while starting Jetty

java.lang.RuntimeException: Exception while starting Jetty

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:188)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

 

    

Thanks,

Faseela


_______________________________________________
Odlparent-dev mailing list
Odlparent-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/odlparent-dev


_______________________________________________
aaa-dev mailing list
aaa-dev@...
https://lists.opendaylight.org/mailman/listinfo/aaa-dev


Faseela K <faseela.k@...>
 

Hi,

 

  The error below was coming due to a wrong jetty.xml configuration downstream, things are working once that is changed, even without a sync.

 

Thanks,

Faseela

 

From: Ryan Goulding [mailto:ryandgoulding@...]
Sent: Friday, November 17, 2017 8:47 PM
To: Michael Vorburger <vorburger@...>
Cc: Faseela K <faseela.k@...>; Robert Varga <nite@...>; aaa-dev@...; odlparent-dev@...
Subject: Re: [Aaa-dev] [Odlparent-dev] Error while installing odl-restconf on master

 

Let us know how it turns out!

 

Thanks,

Ryan


On Nov 17, 2017, at 7:51 AM, Michael Vorburger <vorburger@...> wrote:

On Fri, Nov 17, 2017 at 7:31 AM, Faseela K <faseela.k@...> wrote:

+odl-parent

 

We see this error only after karaf4 migration. And it works on some of the setups, but fails in some.

Since the log says ClassNotFoundException, is this some dependency ordering problem?

 

Faseela, where do you see this, migrating what to Karaf 4? Is this a problem seen only in a downstream distribution we cannot see, which may have some wrong version dependency declaration somewhere, or something you are hitting using an upstream Karaf distribution -which one, the integration/distribution or the netvirt/vpnservice/distribution/karaf, or another one?

 

Robert, Faseela pointed out to me that this ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0 shown below is exactly the same as what you discussed with Lori back in February on https://lists.opendaylight.org/pipermail/release/2017-February/009302.html ...

 

Faseela also says there we still appear to have two different Jetty versions available / loaded (Faseela, could you reply to this with those additional details from IRC?). Is that intentional? IMHO something like that could be cause this kind of version mess confusion in OSGi, and lead to this kind of ClassNotFoundException...

 

hoping Robert and/or Stephen know more about our Jetty version story which may help clarify what could be going on here.


Tx,

M.

--

Michael Vorburger, Red Hat
vorburger@... | IRC: vorburger @freenode | ~ = http://vorburger.ch

 

 

Thanks,

Faseela

 

From: Faseela K
Sent: Thursday, November 16, 2017 11:22 PM
To: 'aaa-dev@...' <aaa-dev@...>
Subject: Error while installing odl-restconf on master

 

Hello aaa-dev,

    I am trying to install a feature defined in netvirt, which has a dependency on odl-restconf.

    My bundle dependencies are not getting resolved properly, and hit the below issue, would like to know whether there was something in recent past which got fixed in this area.

    I do get jetty related error in karaf.logs.

 

    opendaylight-user@root>bundle:diag

org.opendaylight.aaa.aaa-shiro (175)

------------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.osgi.service.http.HttpService)

 

 

MD SAL Restconf Connector (294)

-------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.opendaylight.aaa.api.AAAService)

 

ERROR in karaf log

 

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Trying to lock /opt/sdnc/opendaylight/lock

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Lock acquired

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired

INFO: Lock acquired. Setting startlevel to 100

2017-11-16 14:48:03,717 | ERROR | onfig-1-thread-1 | JettyServerImpl                  | 405 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Exception while starting Jetty

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_141]

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:151)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:413)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)

        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_141]

        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:86)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)

        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)

        ... 16 more

2017-11-16 14:48:03,734 | ERROR | onfig-1-thread-1 | Activator                        | 407 - org.ops4j.pax.web.pax-web-runtime - 4.3.0 | Unable to start pax web server: Exception while starting Jetty

java.lang.RuntimeException: Exception while starting Jetty

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:188)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

 

    

Thanks,

Faseela


_______________________________________________
Odlparent-dev mailing list
Odlparent-dev@...
https://lists.opendaylight.org/mailman/listinfo/odlparent-dev

 

_______________________________________________
aaa-dev mailing list
aaa-dev@...
https://lists.opendaylight.org/mailman/listinfo/aaa-dev