Hi you all !
Quick question:
I defined a Service Entity like this:
1<entity name="Test" local-service="true" remote-service="false">
2 <column name="part1" type="long" primary="true" />
3 <column name="part2" type="long" primary="true" />
4 <column name="part3" type="long" />
5 </entity>
"part1" and "part2" are forming a Primary key.
A class called TestPK has already been created for me.
To store a new "Test" object, I need first to create a new TestPK and use it to store the Test object.
1TestPK testpk= new TestPK(someValue, anotherValue);
2TestLocalServiceUtil.createTest(testpk)
But whenever I do this I get the following exception:
121:26:12,708 ERROR [ClassLoaderProxy:70] java.lang.IllegalArgumentException: argument type mismatch
2java.lang.IllegalArgumentException: argument type mismatch
3 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
4 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
5 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
6 at java.lang.reflect.Method.invoke(Method.java:597)
7 at com.liferay.portal.kernel.util.ClassLoaderProxy._invoke(ClassLoaderProxy.java:246)
Please sign in to flag this as inappropriate.