You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Serge Huber (Jira)" <ji...@apache.org> on 2019/10/22 09:36:00 UTC
[jira] [Commented] (UNOMI-253) Can't create segments
[ https://issues.apache.org/jira/browse/UNOMI-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16956860#comment-16956860 ]
Serge Huber commented on UNOMI-253:
-----------------------------------
Do you have any errors in the Karaf logs ?
This can happen when there is a problem with the connection to ElasticSearch.
> Can't create segments
> ---------------------
>
> Key: UNOMI-253
> URL: https://issues.apache.org/jira/browse/UNOMI-253
> Project: Apache Unomi
> Issue Type: Bug
> Components: core
> Affects Versions: 1.5.0
> Reporter: Bhagi Raj Limbu
> Priority: Major
>
> I follow a steps mention in documents create a segment through console command and POSTMAN in local machine as well as Azure server. It's a simple segment
> {code:java}
> curl -X POST http://localhost:8181/cxs/segments \
> --user karaf:karaf \
> -H "Content-Type: application/json" \
> -d @- <<'EOF'
> {
> "itemId": "leads",
> "itemType": "segments",
> "metadata": {
> "id": "leads",
> "name": "Leads",
> "scope": "systemscope",
> "description": "You can customize the list below by editing the leads segment."
> },
> "condition": {
> "type": "booleanCondition",
> "parameterValues": {
> "operator": "and",
> "subConditions": [
> {
> "type": "profilePropertyCondition",
> "parameterValues": {
> "propertyName": "properties.leadAssignedTo",
> "comparisonOperator": "exists"
> }
> }
> ]
> }
> }
> }
> EOF
> {code}
> I put a break lines on SegmentServiceImpl.java and ElasticSearchPersistanceServiceImpl.java and debug through
> {code:java}
> public boolean save(final Item item, final boolean useBatching)
> {code}
> methods. The code didn't throw exception and looks good. But, after exit code and run command in karaf console -
> {code:java}
> unomi:segment-list
> {code}
> It returns empty. I wonder have you had similar experience?
>
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)