I'm using Drools Workbench 7.7 and Kie-Server. In "Servers" on Workbench I see that exist the servers template.
The next Step is to fire my rules (that are in the workbench) using a Kie Server JAVA Client API.
I do this in Spring. But when Execute the test this is the message that I read :
org.kie.server.api.marshalling.MarshallingException: Error while creating JAXB context from default classes! 5 counts of IllegalAnnotationExceptions
at org.kie.server.api.marshalling.jaxb.JaxbMarshaller.buildMarshaller(JaxbMarshaller.java:393)
at org.kie.server.api.marshalling.jaxb.JaxbMarshaller.<init>(JaxbMarshaller.java:376)
at org.kie.server.api.marshalling.BaseMarshallerBuilder.build(BaseMarshallerBuilder.java:40)
at org.kie.server.api.marshalling.MarshallerFactory.getMarshaller(MarshallerFactory.java:52)
at org.kie.server.client.impl.AbstractKieServicesClientImpl.<init>(AbstractKieServicesClientImpl.java:83)
at org.kie.server.client.impl.KieServicesClientImpl.<init>(KieServicesClientImpl.java:71)
at org.kie.server.client.KieServicesFactory.newKieServicesClient(KieServicesFactory.java:101)
at com.accenture.aspi.inbound.reasoner.brm.BRMImplementation.test(BRMImplementation.java:49)
at com.accenture.aspi.inbound.reasoner.BRMImplementationTest.BRMTest(BRMImplementationTest.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73)
at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 5 counts of IllegalAnnotationExceptions
Class has two properties of the same name "classificationName"
this problem is related to the following location:
at public java.lang.String com.accenture.aspi.inbound.reasoner.brm.MailParameter.getClassificationName()
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
this problem is related to the following location:
at public java.lang.String com.accenture.aspi.inbound.reasoner.brm.MailParameter.classificationName
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
Class has two properties of the same name "classificationScore"
this problem is related to the following location:
at public double com.accenture.aspi.inbound.reasoner.brm.MailParameter.getClassificationScore()
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
this problem is related to the following location:
at public double com.accenture.aspi.inbound.reasoner.brm.MailParameter.classificationScore
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
Class has two properties of the same name "result"
this problem is related to the following location:
at public java.lang.String com.accenture.aspi.inbound.reasoner.brm.MailParameter.getResult()
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
this problem is related to the following location:
at public java.lang.String com.accenture.aspi.inbound.reasoner.brm.MailParameter.result
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
Class has two properties of the same name "sentimentName"
this problem is related to the following location:
at public java.lang.String com.accenture.aspi.inbound.reasoner.brm.MailParameter.getSentimentName()
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
this problem is related to the following location:
at public java.lang.String com.accenture.aspi.inbound.reasoner.brm.MailParameter.sentimentName
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
Class has two properties of the same name "sentimentScore"
this problem is related to the following location:
at public double com.accenture.aspi.inbound.reasoner.brm.MailParameter.getSentimentScore()
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
this problem is related to the following location:
at public double com.accenture.aspi.inbound.reasoner.brm.MailParameter.sentimentScore
at com.accenture.aspi.inbound.reasoner.brm.MailParameter
Someone can help me?
Thanks