小编use*_*718的帖子

java.lang.IllegalArgumentException:无效的 pks [10] - 未知类型代码 0

我正在尝试从 DAO 层触发灵活搜索查询。我的查询是这样的:

SELECT {loyaltypoints},{redeemedloyaltypoints}  
FROM {LoyaltyUser} 
WHERE {uid} =?uid
Run Code Online (Sandbox Code Playgroud)

向我抛出未知的类型代码,但我的类型代码是正确的。我看到堆栈跟踪消息就像

SEVERE: Servlet.service() for servlet [DispatcherServlet] in context with path [/store]
threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException:
    invalid pks [10] - unknown typecode 0] with root cause
    java.lang.IllegalArgumentException: invalid pks [10] - unknown typecode 0
    at de.hybris.platform.core.WrapperFactory.getCachedItems(WrapperFactory.java:304)
    at de.hybris.platform.core.LazyLoadItemList.loadPage(LazyLoadItemList.java:230)
    at de.hybris.platform.servicelayer.search.impl.LazyLoadModelList.loadPage(LazyLoadModelList.java)"
Run Code Online (Sandbox Code Playgroud)

我的items.xml样子:

<itemtype code="LoyaltyUser" extends="Customer" autocreate="true" generate="true"
    jaloclass="de.hybris.merchandise.core.jalo.LoyaltyUser">
    <deployment table="LoyaltyUsers" typecode="10010"/>
    <attributes>
        <attribute generate="true" autocreate="true" qualifier="loyaltypoints" type="java.lang.Integer" >
            &ltdescription&gtLoyalty points given for each purchase&lt/description&gt
            <modifiers …
Run Code Online (Sandbox Code Playgroud)

sap-commerce-cloud

4
推荐指数
1
解决办法
6691
查看次数

标签 统计

sap-commerce-cloud ×1