From user-return-20331-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Tue Apr 2 10:23:52 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 672C4180668 for ; Tue, 2 Apr 2019 12:23:51 +0200 (CEST) Received: (qmail 5348 invoked by uid 500); 2 Apr 2019 10:23:50 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 5338 invoked by uid 99); 2 Apr 2019 10:23:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2019 10:23:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D2C8FC5EDD for ; Tue, 2 Apr 2019 10:23:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.973 X-Spam-Level: ** X-Spam-Status: No, score=2.973 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=assurebridge-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9VljduEeVjg2 for ; Tue, 2 Apr 2019 10:23:47 +0000 (UTC) Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 47C265F19D for ; Tue, 2 Apr 2019 10:23:45 +0000 (UTC) Received: by mail-qk1-f174.google.com with SMTP id k189so7551827qkc.0 for ; Tue, 02 Apr 2019 03:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=assurebridge-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=DvC520UYT8lq4N+2vhZpt5MVxlwFo5uso8lUdGXoi24=; b=E0KAxrDOejSxp2t7vs8y1hwMXoVKqnu6pGUQlAWt9ZbGIjfDN6TqzZBoGTS3E76z3R 1pMLoJZvtMFbicCjpPUTtwAPP/Yppor64SIDR+bpq1sfpbCDPyY/puxECTbI1P0HudGf /lAcIrwXJHt3TYa/c8ofKhY5Zfv+P+un85R4vlYJatNN/jM3SZoN2XE2JuEIw56R5sdP iKYeVIty/853dYw1xxUofhMn9BV/HkwJ/J0QAIlU3p8vuStAQZYvh4x3SKBfoJiKOfDr 1xSw6t8Qnl3MCU4ZIPhlmVPTbd5SbhyzCz3AzXi1ifTqhHWccJdLnXwYaXog5aBg6tbw IqEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=DvC520UYT8lq4N+2vhZpt5MVxlwFo5uso8lUdGXoi24=; b=Sf5jvVuj1l4hryDIy7xeZnHsMC6elAP2VMXwUYGHFbjI+2TqFIufddU4PRyPDB0T6a jMK487ZUMfQziEEAvuUBV6sox34JZ9lQjDAUqy8iiqBVPbJKydpQAbv1lr06zuY3LK6V 6A236SaZiO2Ewe/kq0pdszs9szSSnrbXLCVcr8/66uV/5ZsSljUxYK0wm5jzbUqFVxUd S1HXkQRZGHOYI3f1WKavsCXcY8E2YawdwZo7lD1BNAYjMc/soOToFD+CoSEuVoXJEw0R iDrUGYOMf5CFtACoLvCIWQFFRnQ66OeI8zLEvAFk1TGgyufg1HgN0UsFZ8SqnMrhPn0x KJpw== X-Gm-Message-State: APjAAAXjK4NsAiiN7GScC6R8L0xLE2B8pSlV8lGqC/++7JTW+AYCxlrH RiJELg07wTS4+R4YpW5iQLUXaoreJImJ+A== X-Google-Smtp-Source: APXvYqxvsrqIjQ0+uYPAJVO4It6W2jmaKmfm6M3QAWtCtyVCAs9U/b/aE1ZS77H7muOBw/6TKgdyMA== X-Received: by 2002:a37:4c8e:: with SMTP id z136mr13211073qka.149.1554200618632; Tue, 02 Apr 2019 03:23:38 -0700 (PDT) Received: from macbook-pro.fios-router.home (pool-108-7-203-227.bstnma.fios.verizon.net. [108.7.203.227]) by smtp.gmail.com with ESMTPSA id u16sm9541354qtc.84.2019.04.02.03.23.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 03:23:37 -0700 (PDT) From: Oleg Cohen Content-Type: multipart/alternative; boundary="Apple-Mail=_24493374-C775-4830-8E01-3649FF7F31B2" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: HTTP Session Clustering Date: Tue, 2 Apr 2019 06:23:36 -0400 References: <1A9F3068-DCBD-4BAE-95BB-B62652E402AE@assurebridge.com> <91d5b4ba-1cc7-f3a8-3c87-24e2217a8364@nanthrax.net> <69AD5DBA-AE3B-4610-954F-44B26D2B799D@assurebridge.com> <030C1C96-DDBC-43B9-8917-48EA783BCB65@assurebridge.com> To: user@karaf.apache.org In-Reply-To: <030C1C96-DDBC-43B9-8917-48EA783BCB65@assurebridge.com> Message-Id: <57276F49-D62F-4152-A97F-D3E2F806D4AC@assurebridge.com> X-Mailer: Apple Mail (2.3445.9.1) --Apple-Mail=_24493374-C775-4830-8E01-3649FF7F31B2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Another quick update: Adding this to my pom.xml: * solved the issue. So, I am missing an import, just not sure which one. Here are my imports: = org.apache.logging.log4j;version=3D'[2.8.0,3.0.0)';provider=3Dpaxlogging, = org.apache.logging.log4j.message;version=3D'[2.8.0,3.0.0)';provider=3Dpaxl= ogging, = org.apache.logging.log4j.spi;version=3D'[2.8.0,3.0.0)';provider=3Dpaxloggi= ng, = org.apache.logging.log4j.util;version=3D'[2.8.0,3.0.0)';provider=3Dpaxlogg= ing, = org.slf4j;version=3D'[1.7.0,1.8.0)';provider=3Dpaxlogging, =09 = javax.servlet;version=3D'[2.5,3.2)', = javax.servlet.http;version=3D'[2.5,3.2)', = javax.servlet.jsp, = javax.servlet.jsp.tagext, = com.hazelcast.web Thank you, Oleg > On Apr 2, 2019, at 6:02 AM, Oleg Cohen = wrote: >=20 > Hi JB, >=20 > Wanted to provide a quick update. My ultimate environment is pretty = complex with a lot of bundles and XML-related components. To eliminate = these dependencies I started with a plain vanilla karaf, installed = cellar, and built a very simple WAB. >=20 > The behavior is different, it looks better, but I have a different = issue now. When the application start and session clustering is = initialized I get the following exception that persists and keeps being = thrown: >=20 > 2019-04-02T05:59:49,475 | ERROR | = hz._hzInstance_1_cellar.IO.thread-in-1 | NodeEngine = | 111 - com.hazelcast - 3.9.1 | [127.0.0.1]:5702 [cellar] [3.9.1] = Failed to process:Packet{partitionId=3D-1, conn=3DConnection[id=3D2, = /127.0.0.1:5702->/127.0.0.1:64100, endpoint=3Dnull, alive=3Dtrue, = type=3DMEMBER], rawFlags=3D100000, isUrgent=3Dfalse, packetType=3DBIND, = typeSpecificFlags=3D} > com.hazelcast.nio.serialization.HazelcastSerializationException: No = DataSerializerFactory registered for namespace: 0 > at = com.hazelcast.internal.serialization.impl.DataSerializableSerializer.readI= nternal(DataSerializableSerializer.java:137) ~[111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(= DataSerializableSerializer.java:105) ~[111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(= DataSerializableSerializer.java:50) ~[111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(Str= eamSerializerAdapter.java:48) ~[111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.serialization.impl.AbstractSerializationService.toO= bject(AbstractSerializationService.java:185) ~[111:com.hazelcast:3.9.1] > at = com.hazelcast.nio.tcp.TcpIpConnectionManager.handle(TcpIpConnectionManager= .java:213) ~[111:com.hazelcast:3.9.1] > at = com.hazelcast.spi.impl.NodeEngineImpl$ConnectionManagerPacketHandler.handl= e(NodeEngineImpl.java:199) ~[111:com.hazelcast:3.9.1] > at = com.hazelcast.spi.impl.PacketDispatcher.handle(PacketDispatcher.java:73) = [111:com.hazelcast:3.9.1] > at = com.hazelcast.nio.tcp.MemberChannelInboundHandler.handlePacket(MemberChann= elInboundHandler.java:71) [111:com.hazelcast:3.9.1] > at = com.hazelcast.nio.tcp.MemberChannelInboundHandler.onRead(MemberChannelInbo= undHandler.java:54) [111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.networking.nio.NioChannelReader.handle(NioChannelRe= ader.java:138) [111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.networking.nio.NioThread.handleSelectionKey(NioThre= ad.java:401) [111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.networking.nio.NioThread.handleSelectionKeys(NioThr= ead.java:386) [111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.networking.nio.NioThread.selectLoop(NioThread.java:= 293) [111:com.hazelcast:3.9.1] > at = com.hazelcast.internal.networking.nio.NioThread.run(NioThread.java:248) = [111:com.hazelcast:3.9.1] >=20 > Let me know if you have any thoughts on what is happening. >=20 > I will investigate separately on what in my bundles might have been = cuasing the original exception. >=20 > Thank you, > Oleg >=20 >> On Apr 1, 2019, at 9:57 AM, Jean-Baptiste Onofr=C3=A9 = > wrote: >>=20 >> Thanks for the update. >>=20 >> It could be related to the karaf xml spec we added in lib/endorsed. >>=20 >> Let me check and try to reproduce. >>=20 >> Regards >> JB >>=20 >> On 01/04/2019 15:47, Oleg Cohen wrote: >>> Hi JB, >>>=20 >>> Thank you for replying! >>>=20 >>> Karaf: 4.2.4 >>> JDK: 8u202 >>>=20 >>> Standard distribution. I have a feature that has the required = features >>> in the doc listed as dependencies: >>>=20 >>>=20 >>> http >>> http-whiteboard >>>=20 >>> cellar >>>=20 >>> Thank you, >>> Oleg >>>=20 >>>=20 >>>=20 >>>=20 >>>> On Apr 1, 2019, at 9:40 AM, Jean-Baptiste Onofr=C3=A9 = >>>> >> wrote: >>>>=20 >>>> Hi Oleg, >>>>=20 >>>> Is cellar feature installed correctly (providing the hazelcast = instance) ? >>>>=20 >>>> What Karaf version are you using ? Is it a custom distro ? >>>>=20 >>>> Regards >>>> JB >>>>=20 >>>> On 01/04/2019 15:37, Oleg Cohen wrote: >>>>> Greetings, >>>>>=20 >>>>> I wonder if anybody ran into a similar issue. I followed the setup >>>>> instructions >>>>> here: = https://karaf.apache.org/manual/cellar/latest-4/#_enable_cluster_http_sess= ion_replication = >>>>>=20 >>>>> Now that Karaf runs I am seeing this exception: >>>>>=20 >>>>> 2019-04-01T09:31:09,489 | INFO | .hazelcast-wm.ensureInstance | >>>>> ClusteredSessionService | 68 - com.hazelcast - 3.9.1 | = Retrying >>>>> the connection!! >>>>> 2019-04-01T09:31:09,490 | INFO | .hazelcast-wm.ensureInstance | >>>>> HazelcastInstanceLoader | 68 - com.hazelcast - 3.9.1 | = Creating >>>>> a new HazelcastInstance for session replication >>>>> 2019-04-01T09:31:09,492 | WARN | .hazelcast-wm.ensureInstance | >>>>> ClusteredSessionService | 68 - com.hazelcast - 3.9.1 | = Cannot >>>>> connect to Hazelcast server: XPathFactory#newInstance() failed to = create >>>>> an XPathFactory for the default object model: >>>>> http://java.sun.com/jaxp/xpath/dom = with the >>>>> XPathFactoryConfigurationException: = java.util.ServiceConfigurationError: >>>>> javax.xml.xpath.XPathFactory: Provider >>>>> org.apache.xpath.jaxp.XPathFactoryImpl not found >>>>>=20 >>>>> I would appreciate suggestions on how to fix this. >>>>>=20 >>>>> Thank you, >>>>> Oleg >>>>=20 >>>> --=20 >>>> Jean-Baptiste Onofr=C3=A9 >>>> jbonofre@apache.org = > >>>> http://blog.nanthrax.net >>>> Talend - http://www.talend.com >>>=20 >>=20 >> --=20 >> Jean-Baptiste Onofr=C3=A9 >> jbonofre@apache.org >> http://blog.nanthrax.net >> Talend - http://www.talend.com --Apple-Mail=_24493374-C775-4830-8E01-3649FF7F31B2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Another quick update:

Adding this to my pom.xml:

<DynamicImport-Package>*</DynamicImport-Package>

solved= the issue. So, I am missing an import, just not sure which = one.

Here are my = imports:

= org.apache.logging.log4j;version=3D'[2.8.0,3.0.0)';provider=3Dpaxlo= gging,
= = org.apache.logging.log4j.message;version=3D'[2.8.0,3.0.0)';provider= =3Dpaxlogging,
= = org.apache.logging.log4j.spi;version=3D'[2.8.0,3.0.0)';provider=3Dp= axlogging,
= = org.apache.logging.log4j.util;version=3D'[2.8.0,3.0.0)';provider=3D= paxlogging,

= org.slf4j;version=3D'[1.7.0,1.8.0)';provider=3Dpaxlogging,

=

= javax.servlet;version=3D'[2.5,3.2)',
= javax.servlet.http;version=3D'[2.5,3.2)',
= javax.servlet.jsp,
= javax.servlet.jsp.tagext,
= = com.hazelcast.web


Thank = you,
Oleg

On Apr 2, 2019, at 6:02 AM, Oleg Cohen <oleg.cohen@assurebridge.com> wrote:

Hi JB,

Wanted to provide a = quick update. My ultimate environment is pretty complex with a lot of = bundles and XML-related components. To eliminate these dependencies I = started with a plain vanilla karaf, installed cellar, and built a very = simple WAB.

The = behavior is different, it looks better, but I have a different issue = now. When the application start and session clustering is initialized I = get the following exception that persists and keeps being = thrown:

2019-04-02T05:59:49,475 | ERROR | = hz._hzInstance_1_cellar.IO.thread-in-1 | NodeEngine       =                 | 111 - = com.hazelcast - 3.9.1 | [127.0.0.1]:5702 [cellar] [3.9.1] Failed to = process:Packet{partitionId=3D-1, conn=3DConnection[id=3D2, = /127.0.0.1:5702->/127.0.0.1:64100, endpoint=3Dnull, alive=3Dtrue, = type=3DMEMBER], rawFlags=3D100000, isUrgent=3Dfalse, packetType=3DBIND, = typeSpecificFlags=3D<NONE>}
com.hazelcast.nio.serialization.HazelcastSerializationException= : No DataSerializerFactory registered for namespace: 0
at = com.hazelcast.internal.serialization.impl.DataSerializableSerializer.readI= nternal(DataSerializableSerializer.java:137) = ~[111:com.hazelcast:3.9.1]
at = com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(= DataSerializableSerializer.java:105) = ~[111:com.hazelcast:3.9.1]
at = com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(= DataSerializableSerializer.java:50) = ~[111:com.hazelcast:3.9.1]
at = com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(Str= eamSerializerAdapter.java:48) ~[111:com.hazelcast:3.9.1]
at = com.hazelcast.internal.serialization.impl.AbstractSerializationService.toO= bject(AbstractSerializationService.java:185) = ~[111:com.hazelcast:3.9.1]
at = com.hazelcast.nio.tcp.TcpIpConnectionManager.handle(TcpIpConnectionManager= .java:213) ~[111:com.hazelcast:3.9.1]
= at = com.hazelcast.spi.impl.NodeEngineImpl$ConnectionManagerPacketHandler.handl= e(NodeEngineImpl.java:199) ~[111:com.hazelcast:3.9.1]
at = com.hazelcast.spi.impl.PacketDispatcher.handle(PacketDispatcher.java:73) = [111:com.hazelcast:3.9.1]
at = com.hazelcast.nio.tcp.MemberChannelInboundHandler.handlePacket(MemberChann= elInboundHandler.java:71) [111:com.hazelcast:3.9.1]
at = com.hazelcast.nio.tcp.MemberChannelInboundHandler.onRead(MemberChannelInbo= undHandler.java:54) [111:com.hazelcast:3.9.1]
= at = com.hazelcast.internal.networking.nio.NioChannelReader.handle(NioChannelRe= ader.java:138) [111:com.hazelcast:3.9.1]
= at = com.hazelcast.internal.networking.nio.NioThread.handleSelectionKey(NioThre= ad.java:401) [111:com.hazelcast:3.9.1]
= at = com.hazelcast.internal.networking.nio.NioThread.handleSelectionKeys(NioThr= ead.java:386) [111:com.hazelcast:3.9.1]
= at = com.hazelcast.internal.networking.nio.NioThread.selectLoop(NioThread.java:= 293) [111:com.hazelcast:3.9.1]
= at = com.hazelcast.internal.networking.nio.NioThread.run(NioThread.java:248) = [111:com.hazelcast:3.9.1]

Let me know if you have any thoughts on = what is happening.

I will investigate separately on what in my bundles might = have been cuasing the original exception.

Thank you,
Oleg

On Apr 1, 2019, at 9:57 AM, = Jean-Baptiste Onofr=C3=A9 <jb@nanthrax.net> wrote:

Thanks for the update.

It could be related to the karaf = xml spec we added in lib/endorsed.

Let me check and try to reproduce.

Regards
JB

On 01/04/2019 15:47, Oleg Cohen wrote:
Hi = JB,

Thank you for replying!
Karaf: 4.2.4
JDK: 8u202

Standard distribution. I have a feature that has the required = features
in the doc listed as dependencies:


<feature>http</feature>
<feature>http-whiteboard</feature>

<feature>cellar</feature>

Thank you,
Oleg




On Apr 1, 2019, at 9:40 AM, Jean-Baptiste = Onofr=C3=A9 <jb@nanthrax.net
<mailto:jb@nanthrax.net>> wrote:

Hi Oleg,

Is cellar feature = installed correctly (providing the hazelcast instance) ?
What Karaf version are you using ? Is it a custom distro = ?

Regards
JB

On 01/04/2019 15:37, Oleg Cohen wrote:
Greetings,

I wonder if anybody ran into a similar issue. = I followed the setup
instructions
here: https://karaf.apache.org/manual/cellar/latest-4/#_enable_cluste= r_http_session_replication

Now that = Karaf runs I am seeing this exception:

2019-04-01T09:31:09,489 | INFO  | = .hazelcast-wm.ensureInstance |
ClusteredSessionService =          | 68 - com.hazelcast - 3.9.1 | = Retrying
the connection!!
2019-04-01T09:31:09,490 | INFO  | = .hazelcast-wm.ensureInstance |
HazelcastInstanceLoader =          | 68 - com.hazelcast - 3.9.1 | = Creating
a new HazelcastInstance for session = replication
2019-04-01T09:31:09,492 | WARN  | = .hazelcast-wm.ensureInstance |
ClusteredSessionService =          | 68 - com.hazelcast - 3.9.1 | = Cannot
connect to Hazelcast server: = XPathFactory#newInstance() failed to create
an = XPathFactory for the default object model:
http://java.sun.com/jaxp/xpath/dom with the
XPathFactoryConfigurationException: = java.util.ServiceConfigurationError:
javax.xml.xpath.XPathFactory: Provider
org.apache.xpath.jaxp.XPathFactoryImpl not found

I would appreciate suggestions on how to fix = this.

Thank you,
Oleg

-- 
Jean-Baptiste = Onofr=C3=A9
jbonofre@apache.org <mailto:jbonofre@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com


-- 
Jean-Baptiste Onofr=C3=A9jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


= --Apple-Mail=_24493374-C775-4830-8E01-3649FF7F31B2--