You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Kevan Jahanshahi (Jira)" <ji...@apache.org> on 2023/02/10 08:37:00 UTC

[jira] [Resolved] (UNOMI-689) Stack trace logged when creating a profile using REST API

     [ https://issues.apache.org/jira/browse/UNOMI-689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevan Jahanshahi resolved UNOMI-689.
------------------------------------
    Resolution: Fixed

> Stack trace logged when creating a profile using REST API
> ---------------------------------------------------------
>
>                 Key: UNOMI-689
>                 URL: https://issues.apache.org/jira/browse/UNOMI-689
>             Project: Apache Unomi
>          Issue Type: Bug
>          Components: unomi(-core)
>    Affects Versions: unomi-2.0.0, unomi-1.6.1
>            Reporter: Kevan Jahanshahi
>            Assignee: Kevan Jahanshahi
>            Priority: Major
>             Fix For: unomi-2.2.0, unomi-1.9.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When doing POST request to: /cxs/profiles
> with:
> {code:java}
> {
>       "itemType": "profile",
>       "properties": {
>         "lastName": "Michouu"
>       },
>       "segments": [],
>       "scores": {},
>       "consents": {}
>     } {code}
> In order to create a new profile using the REST API.
> It's working correctly but a beautiful stacktrace is displayed in Unomi server logs:
> {noformat}
> 2022-10-17T16:39:39,157 | ERROR | qtp452048630-290 | ElasticSearchPersistenceServiceImpl | 225 - org.apache.unomi.persistence-elasticsearch-core - 2.0.0 |  Error while executing in class loader 
> java.lang.Exception: Error loading itemType=org.apache.unomi.api.Profile customItemType=null itemId=null
>     at org.apache.unomi.persistence.elasticsearch.ElasticSearchPersistenceServiceImpl$6.execute(ElasticSearchPersistenceServiceImpl.java:847) ~[!/:?]
>     at org.apache.unomi.persistence.elasticsearch.ElasticSearchPersistenceServiceImpl$6.execute(ElasticSearchPersistenceServiceImpl.java:787) ~[!/:?]
>     at org.apache.unomi.persistence.elasticsearch.ElasticSearchPersistenceServiceImpl$InClassLoaderExecute.executeInClassLoader(ElasticSearchPersistenceServiceImpl.java:2460) [!/:?]
>     at org.apache.unomi.persistence.elasticsearch.ElasticSearchPersistenceServiceImpl$InClassLoaderExecute.catchingExecuteInClassLoader(ElasticSearchPersistenceServiceImpl.java:2471) [!/:?]
>     at org.apache.unomi.persistence.elasticsearch.ElasticSearchPersistenceServiceImpl.load(ElasticSearchPersistenceServiceImpl.java:850) [!/:?]
>     at org.apache.unomi.persistence.elasticsearch.ElasticSearchPersistenceServiceImpl.load(ElasticSearchPersistenceServiceImpl.java:778) [!/:?]
>     at org.apache.unomi.persistence.elasticsearch.ElasticSearchPersistenceServiceImpl.load(ElasticSearchPersistenceServiceImpl.java:773) [!/:?]
>     at Proxy754f4232_d3cf_46f2_bba0_b58c84a99ee9.load(Unknown Source) [?:?]
>     at org.apache.unomi.services.impl.profiles.ProfileServiceImpl.saveOrMerge(ProfileServiceImpl.java:651) [!/:?]
>     at org.apache.unomi.rest.endpoints.ProfileServiceEndPoint.save(ProfileServiceEndPoint.java:208) [!/:?]
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
>     at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
>     at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) [!/:3.3.11]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)