[NETCONF-519] osgiregistry: Unable to create RuntimeDelegate instance: ClassNotFoundException Created: 01/Mar/18 Updated: 04/Sep/18 Resolved: 04/Sep/18 |
|
| Status: | Verified |
| Project: | netconf |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Jamo Luhrsen | Assignee: | Jamo Luhrsen |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Noticed this while debugging and verifying opendaylight-user@root>feature:install odl-mdsal-trace opendaylight-user@root>feature:install --no-auto-refresh odl-infrautils-ready odl-netvirt-openstack ERROR:
2018-03-01T06:20:17,304 | ERROR | features-1-thread-1 | OsgiRegistry | 62 - com.sun.jersey.core - 1.17.0 | Unable to create RuntimeDelegate instance.
java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl cannot be found by com.sun.jersey.core_1.17.0
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461) ~[?:?]
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372) ~[?:?]
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364) ~[?:?]
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
at com.sun.jersey.core.osgi.OsgiRegistry.hookUp(OsgiRegistry.java:387) ~[?:?]
at com.sun.jersey.core.osgi.OsgiRegistry.getInstance(OsgiRegistry.java:119) ~[?:?]
at com.sun.jersey.core.osgi.Activator.start(Activator.java:55) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:774) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:767) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:724) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:932) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309) ~[?:?]
at org.eclipse.osgi.container.Module.doStart(Module.java:581) ~[?:?]
at org.eclipse.osgi.container.Module.start(Module.java:449) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1361) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:888) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1248) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$1(FeaturesServiceImpl.java:1147) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
|
| Comments |
| Comment by Michael Vorburger [ 01/Mar/18 ] |
|
This seems to say that Jersey failed to initialize, pretty badly. Does RESTCONF still work? |
| Comment by Jamo Luhrsen [ 02/Mar/18 ] |
|
yeah, basic restconf seems to work: $ egrep RuntimeDelegate karaf-0.9.0-SNAPSHOT/data/log/karaf.log 2018-03-02T01:09:06,973 | ERROR | features-1-thread-1 | OsgiRegistry | 62 - com.sun.jersey.core - 1.17.0 | Unable to create RuntimeDelegate instance. java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl cannot be found by com.sun.jersey.core_1.17.0 $ curl -I -u "admin:admin" http://localhost:8181/restconf/streams HTTP/1.1 200 OK Set-Cookie: JSESSIONID=lzk7b9qkcie1w53h6lpftuek;Path=/restconf Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: rememberMe=deleteMe; Path=/restconf; Max-Age=0; Expires=Thu, 01-Mar-2018 23:40:40 GMT Content-Type: application/yang.api+json Content-Length: 0 |
| Comment by Robert Varga [ 04/Sep/18 ] |
|
jluhrsen is this still there? |
| Comment by Jamo Luhrsen [ 04/Sep/18 ] |
|
no. I checked with a recent Oxygen distro and this is not happening any more. marking resolved. |