Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7E946200C23 for ; Wed, 22 Feb 2017 10:32:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7D42D160B67; Wed, 22 Feb 2017 09:32:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A2482160B49 for ; Wed, 22 Feb 2017 10:32:49 +0100 (CET) Received: (qmail 748 invoked by uid 500); 22 Feb 2017 09:32:48 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 735 invoked by uid 99); 22 Feb 2017 09:32:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2017 09:32:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5E1DB1A57AC for ; Wed, 22 Feb 2017 09:32:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Vk08kytAJsAw for ; Wed, 22 Feb 2017 09:32:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E50235F30F for ; Wed, 22 Feb 2017 09:32:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 49DB5E00D6 for ; Wed, 22 Feb 2017 09:32:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 066A221D62 for ; Wed, 22 Feb 2017 09:32:44 +0000 (UTC) Date: Wed, 22 Feb 2017 09:32:44 +0000 (UTC) From: "Markus Rathgeb (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4990) Exception caused by Jetty Websocket server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Feb 2017 09:32:50 -0000 [ https://issues.apache.org/jira/browse/KARAF-4990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15877853#comment-15877853 ] Markus Rathgeb commented on KARAF-4990: --------------------------------------- The Pax Web issue has been resolved in master (https://ops4j1.jira.com/browse/PAXWEB-1065). > Exception caused by Jetty Websocket server > ------------------------------------------ > > Key: KARAF-4990 > URL: https://issues.apache.org/jira/browse/KARAF-4990 > Project: Karaf > Issue Type: Bug > Components: karaf-feature > Affects Versions: 4.1.0 > Reporter: Markus Rathgeb > > Hi, > after I changed some stuff to use the recent Karaf 4.1.0 I realized an error in my log (message is attached below). > The error has been cased by a bug in the "org.eclipse.jetty.websocket.server" bundle (SPI without no-arg > constructor). > The issue has already been reported upstream (https://github.com/eclipse/jetty.project/issues/1276). > The Pax Web version Karaf 4.1.0 is using 6.0.2 uses jetty-9.3.15.v20161220 which contains that bug. > The issue has been reported for Pax Web, too (https://ops4j1.jira.com/browse/PAXWEB-1065). > It has been resolved in the master branch and in the new 9.3 release > "9.3.16.v20170120" (https://github.com/eclipse/jetty.project/commit/a205fb3aae65f9cd6721def40bc5956b04bfa9e4) already. > {noformat} > 2017-02-16 20:13:16,994 | ERROR | lixDispatchQueue | publisher > | 12 - com.eclipsesource.jaxrs.publisher - > 5.3.1.201602281253 | FrameworkEvent ERROR - > com.eclipsesource.jaxrs.publisher > org.osgi.framework.ServiceException: Service factory exception: Unable > to instantiate class class > org.eclipse.jetty.websocket.server.WebSocketServerFactory Does it have > a public no-arg constructor? > at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:352) > [?:?] > at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247) > [?:?] > at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344) > [?:?] > at org.apache.felix.framework.Felix.getService(Felix.java:3699) [?:?] > at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470) > [?:?] > at com.eclipsesource.jaxrs.publisher.internal.ResourceTracker.addingService(ResourceTracker.java:39) > [12:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253] > at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) > [?:?] > at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) > [?:?] > at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) > [?:?] > at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) > [?:?] > at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) [?:?] > at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) [?:?] > at com.eclipsesource.jaxrs.publisher.internal.Activator.openAllServiceTracker(Activator.java:91) > [12:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253] > at com.eclipsesource.jaxrs.publisher.internal.Activator.start(Activator.java:55) > [12:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253] > at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) > [?:?] > at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226) [?:?] > at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [?:?] > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) > [?:?] > at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) > [?:?] > at java.lang.Thread.run(Thread.java:745) [?:?] > Caused by: java.lang.RuntimeException: Unable to instantiate class > class org.eclipse.jetty.websocket.server.WebSocketServerFactory Does > it have a public no-arg constructor? > at org.apache.aries.spifly.ProviderServiceFactory.getService(ProviderServiceFactory.java:37) > ~[?:?] > at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347) > ~[?:?] > ... 19 more > Caused by: java.lang.InstantiationException: > org.eclipse.jetty.websocket.server.WebSocketServerFactory > at java.lang.Class.newInstance(Class.java:427) ~[?:?] > at org.apache.aries.spifly.ProviderServiceFactory.getService(ProviderServiceFactory.java:35) > ~[?:?] > at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347) > ~[?:?] > ... 19 more > Caused by: java.lang.NoSuchMethodException: > org.eclipse.jetty.websocket.server.WebSocketServerFactory.() > at java.lang.Class.getConstructor0(Class.java:3082) ~[?:?] > at java.lang.Class.newInstance(Class.java:412) ~[?:?] > at org.apache.aries.spifly.ProviderServiceFactory.getService(ProviderServiceFactory.java:35) > ~[?:?] > at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347) > ~[?:?] > ... 19 more > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)