[midPoint] Cannot launch embedded midpoint instance for testing if including model-client component
Chen Chen
charles.dc.chen at gmail.com
Fri Mar 2 22:57:11 CET 2018
Hi,
It will raise the following exception:
Caused by: java.lang.NoSuchFieldError: COMPLEX_TYPE
at
com.evolveum.midpoint.prism.path.ItemPath.<clinit>(ItemPath.java:41)
at
com.evolveum.midpoint.model.test.AbstractModelIntegrationTest.<clinit>(AbstractModelIntegrationTest.java:249)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at
org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29)
at
org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:387)
... 43 more
The root cause is that infra/prism and model-client contained the same
named class ItemPathType. In model-client class ItemPathType is generated
code by ctx from schemas, which has not static field COMPLEX_TYPE.
I am confused that why component infra/prism must include 3 packages which
are not matched with other packages by name obviously:
com.evolveum.prism.xml.ns._public.annotation_3
com.evolveum.prism.xml.ns._public.query_3
com.evolveum.prism.xml.ns._public.types_3
What is the right solution to solve launch error if included model-client
component with prism component?
Thanks.
--
---------------------------------------------------------------------
Chen Chen, CC, charles.dc.chen at gmail.com
Simple is Powerful, Simple is Beautiful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20180303/2870931a/attachment.htm>
More information about the midPoint
mailing list