ofbiz error: primary key error on calling service with ajax
ofbiz error: primary key error on calling service with ajax
正在尝试调用此服务:
<service name="createExp" default-entity-name="bidExp" engine="java"
location="org.ofbiz.bidexp.bidExpServices"
invoke="createExp"
auth="false">
<description>createExp</description>
<attribute name="partyId" mode="IN" type="String" optional="false"/>
<attribute name="expId" mode="OUT" type="String" optional="false"/>
</service>
我收到此错误:
2015-07-08 16:13:41,630 |-0.0.0.0-8443-exec-2
|PrimaryKeyFinder |I| Returning null because found
incomplete primary key in find: [GenericEntity:PartyAcctgPrefAndGroup]
[partyId,Company(java.lang.String)][roleTypeId,null()]
并且(可能是错误的结果)ajax 结果
不成功(尽管 java-服务工作正常!)。
错误是什么意思,我该如何解决?
既然你说 Java 服务工作正常。我猜您的 Ajax 请求不包含会话。尝试更改 ajax 请求的控制器,如下所示 (auth="true")
<security https="true" auth="true"/>
正在尝试调用此服务:
<service name="createExp" default-entity-name="bidExp" engine="java"
location="org.ofbiz.bidexp.bidExpServices"
invoke="createExp"
auth="false">
<description>createExp</description>
<attribute name="partyId" mode="IN" type="String" optional="false"/>
<attribute name="expId" mode="OUT" type="String" optional="false"/>
</service>
我收到此错误:
2015-07-08 16:13:41,630 |-0.0.0.0-8443-exec-2
|PrimaryKeyFinder |I| Returning null because found
incomplete primary key in find: [GenericEntity:PartyAcctgPrefAndGroup]
[partyId,Company(java.lang.String)][roleTypeId,null()]
并且(可能是错误的结果)ajax 结果 不成功(尽管 java-服务工作正常!)。
错误是什么意思,我该如何解决?
既然你说 Java 服务工作正常。我猜您的 Ajax 请求不包含会话。尝试更改 ajax 请求的控制器,如下所示 (auth="true")
<security https="true" auth="true"/>