You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by Diogo Munaro Vieira <di...@corp.globo.com> on 2018/05/24 13:41:30 UTC

Ingesting data in Unomi

Hey guys,

I tried to create my Item using concepts
<http://unomi.incubator.apache.org/versions/master/concepts.html> reference,
but I'm getting 500 from API at localhost:

curl -XPOST https://localhost:9443/cxs/profiles/properties/ -u karaf:karaf
-H "Content-Type: application/json" --data '{
    "itemId": "tweetNb",
    "itemType": "propertyType",
    "metadata": {
        "id": "tweetNb",
        "name": "tweetNb",
        "systemTags": ["social"]
    },
    "target": "profiles",
    "type": "integer"
}' --insecure -v

Do I really need to add this item to ingest an Event with it?

If yes, what's wrong with my Curl?

-- 
Diogo Munaro Vieira

-------
Big Data
Ramal: 6866

http://diogomunaro.com
(21) 98656-0745

Re: Ingesting data in Unomi

Posted by Diogo Munaro Vieira <di...@corp.globo.com>.
Thank you, but it would be better versions for issue control and
changelogs. I can help with it!

Em sex, 25 de mai de 2018 às 10:06, Serge Huber <sh...@jahia.com> escreveu:

> Ah sorry I thought you were on the master branch. System tags don't exist
> in 1.2 you are right.
>
> However I would recommend you use the master branch, as it is nearing
> release and much more recent.
>
> cheers,
>   Serge...
>
> Serge Huber
> CTO & Co-Founder
> T +41 22 361 3424
> 9 route des Jeunes | 1227 Acacias | Switzerland
> jahia.com <http://www.jahia.com/>
> SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> | TWITTER
> <https://twitter.com/sergehuber> | VCARD
> <http://www.jahia.com/vcard/HuberSerge.vcf>
>
>
> > JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get trained and
> to discover why Jahia is a leading User Experience Platform (UXP) for
> Digital Transformation.
>
> On Fri, May 25, 2018 at 1:31 PM, Diogo Munaro Vieira <
> diogo.munaro@corp.globo.com> wrote:
>
> > I'm using version 1.2.0 from website download link:
> > http://unomi.incubator.apache.org/download.html
> >
> > Here my stacktrace:
> >
> > 2018-05-24 11:28:51,718 | WARN  | qtp1299529195-68 |
> > WebApplicationExceptionMapper    | 140 -
> > org.apache.cxf.cxf-rt-frontend-jaxrs - 3.0.2 |
> > javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
> > at
> > org.apache.cxf.jaxrs.utils.SpecExceptions.toInternalServerErrorException
> > (SpecExceptions.java:79)
> > at
> > org.apache.cxf.jaxrs.utils.ExceptionUtils.toInternalServerErrorException
> > (ExceptionUtils.java:101)
> > at
> > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.
> > convertExceptionToResponseIfPossible(JAXRSInInterceptor.java:226)
> > at
> > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(
> > JAXRSInInterceptor.java:215)
> > at
> > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(
> > JAXRSInInterceptor.java:77)
> > at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> > PhaseInterceptorChain.java:307)
> > at
> > org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> > ChainInitiationObserver.java:121)
> > at
> > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
> > AbstractHTTPDestination.java:243)
> > at
> > org.apache.cxf.transport.servlet.ServletController.invokeDestination(
> > ServletController.java:223)
> > at
> > org.apache.cxf.transport.servlet.ServletController.
> > invoke(ServletController.java:197)
> > at
> > org.apache.cxf.transport.servlet.ServletController.
> > invoke(ServletController.java:149)
> > at
> > org.apache.cxf.transport.servlet.CXFNonSpringServlet.
> > invoke(CXFNonSpringServlet.java:171)
> > at
> > org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
> > AbstractHTTPServlet.java:290)
> > at
> > org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> > doPost(AbstractHTTPServlet.java:209)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
> > at
> > org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> > service(AbstractHTTPServlet.java:265)
> > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
> > at
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
> > at
> > org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.
> > doHandle(HttpServiceServletHandler.java:69)
> > at
> > org.eclipse.jetty.server.handler.ScopedHandler.handle(
> > ScopedHandler.java:137)
> > at
> > org.eclipse.jetty.security.SecurityHandler.handle(
> > SecurityHandler.java:557)
> > at
> > org.eclipse.jetty.server.session.SessionHandler.
> > doHandle(SessionHandler.java:231)
> > at
> > org.eclipse.jetty.server.handler.ContextHandler.
> > doHandle(ContextHandler.java:1086)
> > at
> > org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(
> > HttpServiceContext.java:240)
> > at org.eclipse.jetty.servlet.ServletHandler.doScope(
> > ServletHandler.java:427)
> > at
> > org.eclipse.jetty.server.session.SessionHandler.
> > doScope(SessionHandler.java:193)
> > at
> > org.eclipse.jetty.server.handler.ContextHandler.
> > doScope(ContextHandler.java:1020)
> > at
> > org.eclipse.jetty.server.handler.ScopedHandler.handle(
> > ScopedHandler.java:135)
> > at
> > org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.
> > handle(JettyServerHandlerCollection.java:75)
> > at
> > org.eclipse.jetty.server.handler.HandlerWrapper.handle(
> > HandlerWrapper.java:116)
> > at org.eclipse.jetty.server.Server.handle(Server.java:370)
> > at
> > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(
> > AbstractHttpConnection.java:494)
> > at
> > org.eclipse.jetty.server.AbstractHttpConnection.content(
> > AbstractHttpConnection.java:984)
> > at
> > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(
> > AbstractHttpConnection.java:1045)
> > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
> > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)
> > at
> > org.eclipse.jetty.server.AsyncHttpConnection.handle(
> > AsyncHttpConnection.java:82)
> > at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
> > at
> > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(
> > SelectChannelEndPoint.java:696)
> > at
> > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(
> > SelectChannelEndPoint.java:53)
> > at
> > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
> > QueuedThreadPool.java:608)
> > at
> > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(
> > QueuedThreadPool.java:543)
> > at java.lang.Thread.run(Thread.java:748)
> > Caused by:
> > com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
> > Unrecognized field "systemTags" (class org.apache.unomi.api.Metadata),
> not
> > marked as ignorable (9 known properties: "enabled", "readOnly", "scope",
> > "tags", "missingPlugins", "id", "description", "name", "hidden"])
> >
> > Em qui, 24 de mai de 2018 às 12:28, Serge Huber <sh...@apache.org>
> > escreveu:
> >
> > > System tags should exist. If you look at the property descriptors
> > provided
> > > in Unomi they use system tags.
> > >
> > > You can find them here :
> > >
> > >
> > > https://github.com/apache/incubator-unomi/tree/master/
> > services/src/main/resources/META-INF/cxs/properties/profiles/social
> > >
> > > You can see how they are loaded here :
> > >
> > >
> > > https://github.com/apache/incubator-unomi/blob/master/
> > services/src/main/java/org/apache/unomi/services/
> > services/ProfileServiceImpl.java
> > >
> > > at line 946
> > >
> > > Btw you could deploy your own Unomi plugins with such descriptors ?
> > >
> > > cheers,
> > >   Serge...
> > >
> > > On Thu, May 24, 2018 at 4:59 PM, Diogo Munaro Vieira <
> > > diogo.munaro@corp.globo.com> wrote:
> > >
> > > > I found that systemTags doesn't exists. I'm using tags... Are there
> > > > differences?
> > > >
> > > > Em qui, 24 de mai de 2018 às 11:07, Serge Huber <sh...@jahia.com>
> > > > escreveu:
> > > >
> > > > > Could you maybe check the Karaf logs to see if you see the reason
> for
> > > the
> > > > > error ?
> > > > >
> > > > > You can find them in the data/log directory.
> > > > >
> > > > > cheers,
> > > > >   Serge...
> > > > >
> > > > > Serge Huber
> > > > > CTO & Co-Founder
> > > > > T +41 22 361 3424
> > > > > 9 route des Jeunes | 1227 Acacias | Switzerland
> > > > > jahia.com <http://www.jahia.com/>
> > > > > SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> |
> TWITTER
> > > > > <https://twitter.com/sergehuber> | VCARD
> > > > > <http://www.jahia.com/vcard/HuberSerge.vcf>
> > > > >
> > > > >
> > > > > > JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get
> > trained
> > > > and
> > > > > to discover why Jahia is a leading User Experience Platform (UXP)
> for
> > > > > Digital Transformation.
> > > > >
> > > > > On Thu, May 24, 2018 at 3:41 PM, Diogo Munaro Vieira <
> > > > > diogo.munaro@corp.globo.com> wrote:
> > > > >
> > > > > > Hey guys,
> > > > > >
> > > > > > I tried to create my Item using concepts
> > > > > > <http://unomi.incubator.apache.org/versions/master/concepts.html
> >
> > > > > > reference,
> > > > > > but I'm getting 500 from API at localhost:
> > > > > >
> > > > > > curl -XPOST https://localhost:9443/cxs/profiles/properties/ -u
> > > > > karaf:karaf
> > > > > > -H "Content-Type: application/json" --data '{
> > > > > >     "itemId": "tweetNb",
> > > > > >     "itemType": "propertyType",
> > > > > >     "metadata": {
> > > > > >         "id": "tweetNb",
> > > > > >         "name": "tweetNb",
> > > > > >         "systemTags": ["social"]
> > > > > >     },
> > > > > >     "target": "profiles",
> > > > > >     "type": "integer"
> > > > > > }' --insecure -v
> > > > > >
> > > > > > Do I really need to add this item to ingest an Event with it?
> > > > > >
> > > > > > If yes, what's wrong with my Curl?
> > > > > >
> > > > > > --
> > > > > > Diogo Munaro Vieira
> > > > > >
> > > > > > -------
> > > > > > Big Data
> > > > > > Ramal: 6866
> > > > > >
> > > > > > http://diogomunaro.com
> > > > > > (21) 98656-0745
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Diogo Munaro Vieira
> > > >
> > > > -------
> > > > Big Data
> > > > Ramal: 6866
> > > >
> > > > http://diogomunaro.com
> > > > (21) 98656-0745
> > > >
> > >
> >
> >
> > --
> > Diogo Munaro Vieira
> >
> > -------
> > Big Data
> > Ramal: 6866
> >
> > http://diogomunaro.com
> > (21) 98656-0745
> >
>


-- 
Diogo Munaro Vieira

-------
Big Data
Ramal: 6866

http://diogomunaro.com
(21) 98656-0745

Re: Ingesting data in Unomi

Posted by Serge Huber <sh...@jahia.com>.
Ah sorry I thought you were on the master branch. System tags don't exist
in 1.2 you are right.

However I would recommend you use the master branch, as it is nearing
release and much more recent.

cheers,
  Serge...

Serge Huber
CTO & Co-Founder
T +41 22 361 3424
9 route des Jeunes | 1227 Acacias | Switzerland
jahia.com <http://www.jahia.com/>
SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> | TWITTER
<https://twitter.com/sergehuber> | VCARD
<http://www.jahia.com/vcard/HuberSerge.vcf>


> JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get trained and
to discover why Jahia is a leading User Experience Platform (UXP) for
Digital Transformation.

On Fri, May 25, 2018 at 1:31 PM, Diogo Munaro Vieira <
diogo.munaro@corp.globo.com> wrote:

> I'm using version 1.2.0 from website download link:
> http://unomi.incubator.apache.org/download.html
>
> Here my stacktrace:
>
> 2018-05-24 11:28:51,718 | WARN  | qtp1299529195-68 |
> WebApplicationExceptionMapper    | 140 -
> org.apache.cxf.cxf-rt-frontend-jaxrs - 3.0.2 |
> javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
> at
> org.apache.cxf.jaxrs.utils.SpecExceptions.toInternalServerErrorException
> (SpecExceptions.java:79)
> at
> org.apache.cxf.jaxrs.utils.ExceptionUtils.toInternalServerErrorException
> (ExceptionUtils.java:101)
> at
> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.
> convertExceptionToResponseIfPossible(JAXRSInInterceptor.java:226)
> at
> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(
> JAXRSInInterceptor.java:215)
> at
> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(
> JAXRSInInterceptor.java:77)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:307)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
> AbstractHTTPDestination.java:243)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(
> ServletController.java:223)
> at
> org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:197)
> at
> org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:149)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.
> invoke(CXFNonSpringServlet.java:171)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
> AbstractHTTPServlet.java:290)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> doPost(AbstractHTTPServlet.java:209)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> service(AbstractHTTPServlet.java:265)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
> at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.
> doHandle(HttpServiceServletHandler.java:69)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(
> ScopedHandler.java:137)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(
> SecurityHandler.java:557)
> at
> org.eclipse.jetty.server.session.SessionHandler.
> doHandle(SessionHandler.java:231)
> at
> org.eclipse.jetty.server.handler.ContextHandler.
> doHandle(ContextHandler.java:1086)
> at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(
> HttpServiceContext.java:240)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(
> ServletHandler.java:427)
> at
> org.eclipse.jetty.server.session.SessionHandler.
> doScope(SessionHandler.java:193)
> at
> org.eclipse.jetty.server.handler.ContextHandler.
> doScope(ContextHandler.java:1020)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(
> ScopedHandler.java:135)
> at
> org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.
> handle(JettyServerHandlerCollection.java:75)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(
> HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:370)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(
> AbstractHttpConnection.java:494)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.content(
> AbstractHttpConnection.java:984)
> at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(
> AbstractHttpConnection.java:1045)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)
> at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(
> AsyncHttpConnection.java:82)
> at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(
> SelectChannelEndPoint.java:696)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(
> SelectChannelEndPoint.java:53)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
> QueuedThreadPool.java:608)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(
> QueuedThreadPool.java:543)
> at java.lang.Thread.run(Thread.java:748)
> Caused by:
> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
> Unrecognized field "systemTags" (class org.apache.unomi.api.Metadata), not
> marked as ignorable (9 known properties: "enabled", "readOnly", "scope",
> "tags", "missingPlugins", "id", "description", "name", "hidden"])
>
> Em qui, 24 de mai de 2018 às 12:28, Serge Huber <sh...@apache.org>
> escreveu:
>
> > System tags should exist. If you look at the property descriptors
> provided
> > in Unomi they use system tags.
> >
> > You can find them here :
> >
> >
> > https://github.com/apache/incubator-unomi/tree/master/
> services/src/main/resources/META-INF/cxs/properties/profiles/social
> >
> > You can see how they are loaded here :
> >
> >
> > https://github.com/apache/incubator-unomi/blob/master/
> services/src/main/java/org/apache/unomi/services/
> services/ProfileServiceImpl.java
> >
> > at line 946
> >
> > Btw you could deploy your own Unomi plugins with such descriptors ?
> >
> > cheers,
> >   Serge...
> >
> > On Thu, May 24, 2018 at 4:59 PM, Diogo Munaro Vieira <
> > diogo.munaro@corp.globo.com> wrote:
> >
> > > I found that systemTags doesn't exists. I'm using tags... Are there
> > > differences?
> > >
> > > Em qui, 24 de mai de 2018 às 11:07, Serge Huber <sh...@jahia.com>
> > > escreveu:
> > >
> > > > Could you maybe check the Karaf logs to see if you see the reason for
> > the
> > > > error ?
> > > >
> > > > You can find them in the data/log directory.
> > > >
> > > > cheers,
> > > >   Serge...
> > > >
> > > > Serge Huber
> > > > CTO & Co-Founder
> > > > T +41 22 361 3424
> > > > 9 route des Jeunes | 1227 Acacias | Switzerland
> > > > jahia.com <http://www.jahia.com/>
> > > > SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> | TWITTER
> > > > <https://twitter.com/sergehuber> | VCARD
> > > > <http://www.jahia.com/vcard/HuberSerge.vcf>
> > > >
> > > >
> > > > > JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get
> trained
> > > and
> > > > to discover why Jahia is a leading User Experience Platform (UXP) for
> > > > Digital Transformation.
> > > >
> > > > On Thu, May 24, 2018 at 3:41 PM, Diogo Munaro Vieira <
> > > > diogo.munaro@corp.globo.com> wrote:
> > > >
> > > > > Hey guys,
> > > > >
> > > > > I tried to create my Item using concepts
> > > > > <http://unomi.incubator.apache.org/versions/master/concepts.html>
> > > > > reference,
> > > > > but I'm getting 500 from API at localhost:
> > > > >
> > > > > curl -XPOST https://localhost:9443/cxs/profiles/properties/ -u
> > > > karaf:karaf
> > > > > -H "Content-Type: application/json" --data '{
> > > > >     "itemId": "tweetNb",
> > > > >     "itemType": "propertyType",
> > > > >     "metadata": {
> > > > >         "id": "tweetNb",
> > > > >         "name": "tweetNb",
> > > > >         "systemTags": ["social"]
> > > > >     },
> > > > >     "target": "profiles",
> > > > >     "type": "integer"
> > > > > }' --insecure -v
> > > > >
> > > > > Do I really need to add this item to ingest an Event with it?
> > > > >
> > > > > If yes, what's wrong with my Curl?
> > > > >
> > > > > --
> > > > > Diogo Munaro Vieira
> > > > >
> > > > > -------
> > > > > Big Data
> > > > > Ramal: 6866
> > > > >
> > > > > http://diogomunaro.com
> > > > > (21) 98656-0745
> > > > >
> > > >
> > >
> > >
> > > --
> > > Diogo Munaro Vieira
> > >
> > > -------
> > > Big Data
> > > Ramal: 6866
> > >
> > > http://diogomunaro.com
> > > (21) 98656-0745
> > >
> >
>
>
> --
> Diogo Munaro Vieira
>
> -------
> Big Data
> Ramal: 6866
>
> http://diogomunaro.com
> (21) 98656-0745
>

Re: Ingesting data in Unomi

Posted by Diogo Munaro Vieira <di...@corp.globo.com>.
I'm using version 1.2.0 from website download link:
http://unomi.incubator.apache.org/download.html

Here my stacktrace:

2018-05-24 11:28:51,718 | WARN  | qtp1299529195-68 |
WebApplicationExceptionMapper    | 140 -
org.apache.cxf.cxf-rt-frontend-jaxrs - 3.0.2 |
javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
at
org.apache.cxf.jaxrs.utils.SpecExceptions.toInternalServerErrorException(SpecExceptions.java:79)
at
org.apache.cxf.jaxrs.utils.ExceptionUtils.toInternalServerErrorException(ExceptionUtils.java:101)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.convertExceptionToResponseIfPossible(JAXRSInInterceptor.java:226)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:215)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:243)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:197)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:149)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:290)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at
org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:984)
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1045)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
Caused by:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "systemTags" (class org.apache.unomi.api.Metadata), not
marked as ignorable (9 known properties: "enabled", "readOnly", "scope",
"tags", "missingPlugins", "id", "description", "name", "hidden"])

Em qui, 24 de mai de 2018 às 12:28, Serge Huber <sh...@apache.org>
escreveu:

> System tags should exist. If you look at the property descriptors provided
> in Unomi they use system tags.
>
> You can find them here :
>
>
> https://github.com/apache/incubator-unomi/tree/master/services/src/main/resources/META-INF/cxs/properties/profiles/social
>
> You can see how they are loaded here :
>
>
> https://github.com/apache/incubator-unomi/blob/master/services/src/main/java/org/apache/unomi/services/services/ProfileServiceImpl.java
>
> at line 946
>
> Btw you could deploy your own Unomi plugins with such descriptors ?
>
> cheers,
>   Serge...
>
> On Thu, May 24, 2018 at 4:59 PM, Diogo Munaro Vieira <
> diogo.munaro@corp.globo.com> wrote:
>
> > I found that systemTags doesn't exists. I'm using tags... Are there
> > differences?
> >
> > Em qui, 24 de mai de 2018 às 11:07, Serge Huber <sh...@jahia.com>
> > escreveu:
> >
> > > Could you maybe check the Karaf logs to see if you see the reason for
> the
> > > error ?
> > >
> > > You can find them in the data/log directory.
> > >
> > > cheers,
> > >   Serge...
> > >
> > > Serge Huber
> > > CTO & Co-Founder
> > > T +41 22 361 3424
> > > 9 route des Jeunes | 1227 Acacias | Switzerland
> > > jahia.com <http://www.jahia.com/>
> > > SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> | TWITTER
> > > <https://twitter.com/sergehuber> | VCARD
> > > <http://www.jahia.com/vcard/HuberSerge.vcf>
> > >
> > >
> > > > JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get trained
> > and
> > > to discover why Jahia is a leading User Experience Platform (UXP) for
> > > Digital Transformation.
> > >
> > > On Thu, May 24, 2018 at 3:41 PM, Diogo Munaro Vieira <
> > > diogo.munaro@corp.globo.com> wrote:
> > >
> > > > Hey guys,
> > > >
> > > > I tried to create my Item using concepts
> > > > <http://unomi.incubator.apache.org/versions/master/concepts.html>
> > > > reference,
> > > > but I'm getting 500 from API at localhost:
> > > >
> > > > curl -XPOST https://localhost:9443/cxs/profiles/properties/ -u
> > > karaf:karaf
> > > > -H "Content-Type: application/json" --data '{
> > > >     "itemId": "tweetNb",
> > > >     "itemType": "propertyType",
> > > >     "metadata": {
> > > >         "id": "tweetNb",
> > > >         "name": "tweetNb",
> > > >         "systemTags": ["social"]
> > > >     },
> > > >     "target": "profiles",
> > > >     "type": "integer"
> > > > }' --insecure -v
> > > >
> > > > Do I really need to add this item to ingest an Event with it?
> > > >
> > > > If yes, what's wrong with my Curl?
> > > >
> > > > --
> > > > Diogo Munaro Vieira
> > > >
> > > > -------
> > > > Big Data
> > > > Ramal: 6866
> > > >
> > > > http://diogomunaro.com
> > > > (21) 98656-0745
> > > >
> > >
> >
> >
> > --
> > Diogo Munaro Vieira
> >
> > -------
> > Big Data
> > Ramal: 6866
> >
> > http://diogomunaro.com
> > (21) 98656-0745
> >
>


-- 
Diogo Munaro Vieira

-------
Big Data
Ramal: 6866

http://diogomunaro.com
(21) 98656-0745

Re: Ingesting data in Unomi

Posted by Serge Huber <sh...@apache.org>.
System tags should exist. If you look at the property descriptors provided
in Unomi they use system tags.

You can find them here :

https://github.com/apache/incubator-unomi/tree/master/services/src/main/resources/META-INF/cxs/properties/profiles/social

You can see how they are loaded here :

https://github.com/apache/incubator-unomi/blob/master/services/src/main/java/org/apache/unomi/services/services/ProfileServiceImpl.java

at line 946

Btw you could deploy your own Unomi plugins with such descriptors ?

cheers,
  Serge...

On Thu, May 24, 2018 at 4:59 PM, Diogo Munaro Vieira <
diogo.munaro@corp.globo.com> wrote:

> I found that systemTags doesn't exists. I'm using tags... Are there
> differences?
>
> Em qui, 24 de mai de 2018 às 11:07, Serge Huber <sh...@jahia.com>
> escreveu:
>
> > Could you maybe check the Karaf logs to see if you see the reason for the
> > error ?
> >
> > You can find them in the data/log directory.
> >
> > cheers,
> >   Serge...
> >
> > Serge Huber
> > CTO & Co-Founder
> > T +41 22 361 3424
> > 9 route des Jeunes | 1227 Acacias | Switzerland
> > jahia.com <http://www.jahia.com/>
> > SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> | TWITTER
> > <https://twitter.com/sergehuber> | VCARD
> > <http://www.jahia.com/vcard/HuberSerge.vcf>
> >
> >
> > > JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get trained
> and
> > to discover why Jahia is a leading User Experience Platform (UXP) for
> > Digital Transformation.
> >
> > On Thu, May 24, 2018 at 3:41 PM, Diogo Munaro Vieira <
> > diogo.munaro@corp.globo.com> wrote:
> >
> > > Hey guys,
> > >
> > > I tried to create my Item using concepts
> > > <http://unomi.incubator.apache.org/versions/master/concepts.html>
> > > reference,
> > > but I'm getting 500 from API at localhost:
> > >
> > > curl -XPOST https://localhost:9443/cxs/profiles/properties/ -u
> > karaf:karaf
> > > -H "Content-Type: application/json" --data '{
> > >     "itemId": "tweetNb",
> > >     "itemType": "propertyType",
> > >     "metadata": {
> > >         "id": "tweetNb",
> > >         "name": "tweetNb",
> > >         "systemTags": ["social"]
> > >     },
> > >     "target": "profiles",
> > >     "type": "integer"
> > > }' --insecure -v
> > >
> > > Do I really need to add this item to ingest an Event with it?
> > >
> > > If yes, what's wrong with my Curl?
> > >
> > > --
> > > Diogo Munaro Vieira
> > >
> > > -------
> > > Big Data
> > > Ramal: 6866
> > >
> > > http://diogomunaro.com
> > > (21) 98656-0745
> > >
> >
>
>
> --
> Diogo Munaro Vieira
>
> -------
> Big Data
> Ramal: 6866
>
> http://diogomunaro.com
> (21) 98656-0745
>

Re: Ingesting data in Unomi

Posted by Diogo Munaro Vieira <di...@corp.globo.com>.
I found that systemTags doesn't exists. I'm using tags... Are there
differences?

Em qui, 24 de mai de 2018 às 11:07, Serge Huber <sh...@jahia.com> escreveu:

> Could you maybe check the Karaf logs to see if you see the reason for the
> error ?
>
> You can find them in the data/log directory.
>
> cheers,
>   Serge...
>
> Serge Huber
> CTO & Co-Founder
> T +41 22 361 3424
> 9 route des Jeunes | 1227 Acacias | Switzerland
> jahia.com <http://www.jahia.com/>
> SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> | TWITTER
> <https://twitter.com/sergehuber> | VCARD
> <http://www.jahia.com/vcard/HuberSerge.vcf>
>
>
> > JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get trained and
> to discover why Jahia is a leading User Experience Platform (UXP) for
> Digital Transformation.
>
> On Thu, May 24, 2018 at 3:41 PM, Diogo Munaro Vieira <
> diogo.munaro@corp.globo.com> wrote:
>
> > Hey guys,
> >
> > I tried to create my Item using concepts
> > <http://unomi.incubator.apache.org/versions/master/concepts.html>
> > reference,
> > but I'm getting 500 from API at localhost:
> >
> > curl -XPOST https://localhost:9443/cxs/profiles/properties/ -u
> karaf:karaf
> > -H "Content-Type: application/json" --data '{
> >     "itemId": "tweetNb",
> >     "itemType": "propertyType",
> >     "metadata": {
> >         "id": "tweetNb",
> >         "name": "tweetNb",
> >         "systemTags": ["social"]
> >     },
> >     "target": "profiles",
> >     "type": "integer"
> > }' --insecure -v
> >
> > Do I really need to add this item to ingest an Event with it?
> >
> > If yes, what's wrong with my Curl?
> >
> > --
> > Diogo Munaro Vieira
> >
> > -------
> > Big Data
> > Ramal: 6866
> >
> > http://diogomunaro.com
> > (21) 98656-0745
> >
>


-- 
Diogo Munaro Vieira

-------
Big Data
Ramal: 6866

http://diogomunaro.com
(21) 98656-0745

Re: Ingesting data in Unomi

Posted by Serge Huber <sh...@jahia.com>.
Could you maybe check the Karaf logs to see if you see the reason for the
error ?

You can find them in the data/log directory.

cheers,
  Serge...

Serge Huber
CTO & Co-Founder
T +41 22 361 3424
9 route des Jeunes | 1227 Acacias | Switzerland
jahia.com <http://www.jahia.com/>
SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> | TWITTER
<https://twitter.com/sergehuber> | VCARD
<http://www.jahia.com/vcard/HuberSerge.vcf>


> JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get trained and
to discover why Jahia is a leading User Experience Platform (UXP) for
Digital Transformation.

On Thu, May 24, 2018 at 3:41 PM, Diogo Munaro Vieira <
diogo.munaro@corp.globo.com> wrote:

> Hey guys,
>
> I tried to create my Item using concepts
> <http://unomi.incubator.apache.org/versions/master/concepts.html>
> reference,
> but I'm getting 500 from API at localhost:
>
> curl -XPOST https://localhost:9443/cxs/profiles/properties/ -u karaf:karaf
> -H "Content-Type: application/json" --data '{
>     "itemId": "tweetNb",
>     "itemType": "propertyType",
>     "metadata": {
>         "id": "tweetNb",
>         "name": "tweetNb",
>         "systemTags": ["social"]
>     },
>     "target": "profiles",
>     "type": "integer"
> }' --insecure -v
>
> Do I really need to add this item to ingest an Event with it?
>
> If yes, what's wrong with my Curl?
>
> --
> Diogo Munaro Vieira
>
> -------
> Big Data
> Ramal: 6866
>
> http://diogomunaro.com
> (21) 98656-0745
>