[jira] [Commented] (KARAF-6047) can not install feature elasticsearch

2018-12-18 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16724095#comment-16724095
 ] 

ASF GitHub Bot commented on KARAF-6047:
---

jbonofre closed pull request #66: [KARAF-6047] Set the marshaller in the log 
appender
URL: https://github.com/apache/karaf-decanter/pull/66
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/appender/log/pom.xml b/appender/log/pom.xml
index 978172a..eb7c90d 100644
--- a/appender/log/pom.xml
+++ b/appender/log/pom.xml
@@ -33,4 +33,36 @@
 bundle
 Apache Karaf :: Decanter :: Appender :: Log
 
+
+
+org.apache.karaf.decanter
+org.apache.karaf.decanter.api
+
+
+
+
+
+
+org.codehaus.mojo
+build-helper-maven-plugin
+
+
+package
+
+attach-artifact
+
+
+
+
+
src/main/cfg/org.apache.karaf.decanter.appender.log.cfg
+cfg
+
+
+
+
+
+
+
+
+
 
\ No newline at end of file
diff --git 
a/appender/log/src/main/cfg/org.apache.karaf.decanter.appender.log.cfg 
b/appender/log/src/main/cfg/org.apache.karaf.decanter.appender.log.cfg
new file mode 100644
index 000..a96f613
--- /dev/null
+++ b/appender/log/src/main/cfg/org.apache.karaf.decanter.appender.log.cfg
@@ -0,0 +1,25 @@
+
+#
+#Licensed to the Apache Software Foundation (ASF) under one or more
+#contributor license agreements.  See the NOTICE file distributed with
+#this work for additional information regarding copyright ownership.
+#The ASF licenses this file to You under the Apache License, Version 2.0
+#(the "License"); you may not use this file except in compliance with
+#the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+#Unless required by applicable law or agreed to in writing, software
+#distributed under the License is distributed on an "AS IS" BASIS,
+#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#See the License for the specific language governing permissions and
+#limitations under the License.
+#
+
+
+##
+# Decanter Log Appender Configuration
+##
+
+# Marshaller
+#marshaller.target=(dataFormat=raw)
\ No newline at end of file
diff --git 
a/appender/log/src/main/java/org/apache/karaf/decanter/appender/log/LogAppender.java
 
b/appender/log/src/main/java/org/apache/karaf/decanter/appender/log/LogAppender.java
index 9e648c0..75c62c3 100644
--- 
a/appender/log/src/main/java/org/apache/karaf/decanter/appender/log/LogAppender.java
+++ 
b/appender/log/src/main/java/org/apache/karaf/decanter/appender/log/LogAppender.java
@@ -16,7 +16,10 @@
  */
 package org.apache.karaf.decanter.appender.log;
 
+import org.apache.karaf.decanter.api.marshaller.Marshaller;
 import org.osgi.service.component.annotations.Component;
+import org.osgi.service.component.annotations.Reference;
+import org.osgi.service.component.annotations.ReferenceCardinality;
 import org.osgi.service.event.Event;
 import org.osgi.service.event.EventConstants;
 import org.osgi.service.event.EventHandler;
@@ -37,13 +40,20 @@
 
 private final Logger LOGGER = LoggerFactory.getLogger(LogAppender.class);
 
+@Reference(cardinality = ReferenceCardinality.OPTIONAL)
+public Marshaller marshaller;
+
 @Override
 public void handleEvent(Event event) {
-StringBuilder builder = new StringBuilder();
-for (String innerKey : event.getPropertyNames()) {
-
builder.append(innerKey).append(":").append(toString(event.getProperty(innerKey))).append("
 | ");
+if (marshaller != null) {
+LOGGER.info(marshaller.marshal(event));
+} else {
+StringBuilder builder = new StringBuilder();
+for (String innerKey : event.getPropertyNames()) {
+
builder.append(innerKey).append(":").append(toString(event.getProperty(innerKey))).append("
 | ");
+}
+LOGGER.info(builder.toString());
 }
-LOGGER.info(builder.toString());
 }
 

[jira] [Commented] (KARAF-6047) can not install feature elasticsearch

2018-12-18 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16724062#comment-16724062
 ] 

ASF GitHub Bot commented on KARAF-6047:
---

jbonofre opened a new pull request #66: [KARAF-6047] Set the marshaller in the 
log appender
URL: https://github.com/apache/karaf-decanter/pull/66
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> can not install feature elasticsearch
> -
>
> Key: KARAF-6047
> URL: https://issues.apache.org/jira/browse/KARAF-6047
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-2.1.0
>Reporter: sunlf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: decanter-2.2.0
>
> Attachments: image-2018-12-12-17-55-07-939.png
>
>
> when i install feature elasticsearch under karaf 4.2.1, it can not install 
> properly.
> Following is error :
>  
> !image-2018-12-12-17-55-07-939.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6047) can not install feature elasticsearch

2018-12-18 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16723923#comment-16723923
 ] 

ASF subversion and git services commented on KARAF-6047:


Commit a2282c3979f9314dc51695005daf4387a8795690 in karaf-decanter's branch 
refs/heads/master from [~j...@nanthrax.net]
[ https://gitbox.apache.org/repos/asf?p=karaf-decanter.git;h=a2282c3 ]

[KARAF-6047] Fix elasticsearch 6.x backend import/private packages


> can not install feature elasticsearch
> -
>
> Key: KARAF-6047
> URL: https://issues.apache.org/jira/browse/KARAF-6047
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-2.1.0
>Reporter: sunlf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: decanter-2.2.0
>
> Attachments: image-2018-12-12-17-55-07-939.png
>
>
> when i install feature elasticsearch under karaf 4.2.1, it can not install 
> properly.
> Following is error :
>  
> !image-2018-12-12-17-55-07-939.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6047) can not install feature elasticsearch

2018-12-18 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16723925#comment-16723925
 ] 

ASF subversion and git services commented on KARAF-6047:


Commit d4740cf679fe9c5626206661fc39a1e18b80796a in karaf-decanter's branch 
refs/heads/master from [~j...@nanthrax.net]
[ https://gitbox.apache.org/repos/asf?p=karaf-decanter.git;h=d4740cf ]

Merge pull request #65 from jbonofre/KARAF-6047

[KARAF-6047] Fix elasticsearch 6.x backend import/private packages

> can not install feature elasticsearch
> -
>
> Key: KARAF-6047
> URL: https://issues.apache.org/jira/browse/KARAF-6047
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-2.1.0
>Reporter: sunlf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: decanter-2.2.0
>
> Attachments: image-2018-12-12-17-55-07-939.png
>
>
> when i install feature elasticsearch under karaf 4.2.1, it can not install 
> properly.
> Following is error :
>  
> !image-2018-12-12-17-55-07-939.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6047) can not install feature elasticsearch

2018-12-18 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16723924#comment-16723924
 ] 

ASF subversion and git services commented on KARAF-6047:


Commit d4740cf679fe9c5626206661fc39a1e18b80796a in karaf-decanter's branch 
refs/heads/master from [~j...@nanthrax.net]
[ https://gitbox.apache.org/repos/asf?p=karaf-decanter.git;h=d4740cf ]

Merge pull request #65 from jbonofre/KARAF-6047

[KARAF-6047] Fix elasticsearch 6.x backend import/private packages

> can not install feature elasticsearch
> -
>
> Key: KARAF-6047
> URL: https://issues.apache.org/jira/browse/KARAF-6047
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-2.1.0
>Reporter: sunlf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: decanter-2.2.0
>
> Attachments: image-2018-12-12-17-55-07-939.png
>
>
> when i install feature elasticsearch under karaf 4.2.1, it can not install 
> properly.
> Following is error :
>  
> !image-2018-12-12-17-55-07-939.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6047) can not install feature elasticsearch

2018-12-18 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16723922#comment-16723922
 ] 

ASF GitHub Bot commented on KARAF-6047:
---

jbonofre closed pull request #65: [KARAF-6047] Fix elasticsearch 6.x backend 
import/private packages
URL: https://github.com/apache/karaf-decanter/pull/65
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/backend/elasticsearch-6.x/pom.xml 
b/backend/elasticsearch-6.x/pom.xml
index 371127d..28e2d6d 100644
--- a/backend/elasticsearch-6.x/pom.xml
+++ b/backend/elasticsearch-6.x/pom.xml
@@ -83,20 +83,22 @@
 joptsimple*,
 org.apache.lucene*,
 com.tdunning.math.stats,
-com.vividsolutions.jts.geom,
+com.vividsolutions.jts*,
 org.HdrHistogram,
 org.locationtech.spatial4j*,
 org.tartarus.snowball*,
 org.joda.time*,
 org.joda.convert*,
+org.noggit,
 !META-INF.services.org.apache.lucene.codecs.Codec,
 META-INF.services.*
 
 
-!com.vividsolutions.jts.geom,
+!com.vividsolutions.jts*,
 !org.locationtech.spatial4j*,
 !org.joda.time*,
 !org.joda.convert*,
+!org.noggit,
 com.sun.jna*;resolution:=optional,
 org.apache.logging.log4j*;version="[2.8,3)",
 *


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> can not install feature elasticsearch
> -
>
> Key: KARAF-6047
> URL: https://issues.apache.org/jira/browse/KARAF-6047
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-2.1.0
>Reporter: sunlf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: decanter-2.2.0
>
> Attachments: image-2018-12-12-17-55-07-939.png
>
>
> when i install feature elasticsearch under karaf 4.2.1, it can not install 
> properly.
> Following is error :
>  
> !image-2018-12-12-17-55-07-939.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6047) can not install feature elasticsearch

2018-12-18 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16723834#comment-16723834
 ] 

ASF GitHub Bot commented on KARAF-6047:
---

jbonofre opened a new pull request #65: [KARAF-6047] Fix elasticsearch 6.x 
backend import/private packages
URL: https://github.com/apache/karaf-decanter/pull/65
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> can not install feature elasticsearch
> -
>
> Key: KARAF-6047
> URL: https://issues.apache.org/jira/browse/KARAF-6047
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-2.1.0
>Reporter: sunlf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: decanter-2.2.0
>
> Attachments: image-2018-12-12-17-55-07-939.png
>
>
> when i install feature elasticsearch under karaf 4.2.1, it can not install 
> properly.
> Following is error :
>  
> !image-2018-12-12-17-55-07-939.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6047) can not install feature elasticsearch

2018-12-13 Thread JIRA


[ 
https://issues.apache.org/jira/browse/KARAF-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16720278#comment-16720278
 ] 

Jean-Baptiste Onofré commented on KARAF-6047:
-

That's an issue in the ServiceMix Elasticsearch bundle. I'm thinking that.

> can not install feature elasticsearch
> -
>
> Key: KARAF-6047
> URL: https://issues.apache.org/jira/browse/KARAF-6047
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-2.1.0
>Reporter: sunlf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: decanter-2.2.0
>
> Attachments: image-2018-12-12-17-55-07-939.png
>
>
> when i install feature elasticsearch under karaf 4.2.1, it can not install 
> properly.
> Following is error :
>  
> !image-2018-12-12-17-55-07-939.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)