[JBoss JIRA] (DROOLS-1709) KieServicesException: Error while deserializing data received from server!
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-1709?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi closed DROOLS-1709.
-------------------------------------
Resolution: Out of Date
> KieServicesException: Error while deserializing data received from server!
> --------------------------------------------------------------------------
>
> Key: DROOLS-1709
> URL: https://issues.redhat.com/browse/DROOLS-1709
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.1.0.Final
> Environment: - Wildfly 10.0.0.Final.
> - Kie-server and kie-workbench 7.1.0 FINAL.
> - Drools 7.1.0 FINAL.
> - Java 8.
> - joda-time 2.9.9.
> - Oracle Linux.
> Reporter: Nicolae Turcan
> Assignee: Maciej Swiderski
> Priority: Major
> Labels: DateTime, drools, joda-time, json, kie-server, serialization
>
> Hello,
> I'm trying to make working drools 7.1.0 FINAL but I'm getting *unmarshalling input error* when I'm sending an object with a *joda DateTime* attribute to kie-server. Seems like a bug while serializing/deserializing datetime object to json.
> Can someone help me please?
> org.kie.server.api.exception.KieServicesException: Error while deserializing data received from server!
> at org.kie.server.client.impl.AbstractKieServicesClientImpl.deserialize(AbstractKieServicesClientImpl.java:592)
> at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPostRequestAndCreateServiceResponse(AbstractKieServicesClientImpl.java:286)
> at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPostRequestAndCreateServiceResponse(AbstractKieServicesClientImpl.java:264)
> at org.kie.server.client.impl.RuleServicesClientImpl.executeCommandsWithResults(RuleServicesClientImpl.java:66)
> at kettle.resources.KieServerClient.fireKettleRules(KieServerClient.java:135)
> at kettle.application.NegocioBean.aplicarReglas(NegocioBean.java:102)
> at kettle.services.KettleService.recieveDataJson(KettleService.java:72)
> at KettleTester.main(KettleTester.java:37)
> Caused by: org.kie.server.api.marshalling.MarshallingException: Error unmarshalling input
> at org.kie.server.api.marshalling.json.JSONMarshaller.unmarshall(JSONMarshaller.java:279)
> at org.kie.server.client.impl.AbstractKieServicesClientImpl.deserialize(AbstractKieServicesClientImpl.java:590)
> ... 7 more
> Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of org.joda.time.Chronology, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information
> at [Source: {
> "type" : "SUCCESS",
> "msg" : "Container DEV successfully called.",
> "result" : {
> "execution-results" : {
> "results" : [ {
> "value" : [{
> "kettle.model.MensajesError" : {
> "tipoError" : null
> }
> },{
> "tws.hibernate.mappings.TmOt" : {
> "id" : 150078,
> "finishedAt" : {
> "dayOfMonth" : 19,
> "year" : 2017,
> "era" : 1,
> "dayOfYear" : 231,
> "dayOfWeek" : 6,
> "millisOfDay" : 46800000,
> "monthOfYear" : 8,
> "hourOfDay" : 13,
> "minuteOfHour" : 0,
> "secondOfMinute" : 0,
> "millisOfSecond" : 0,
> "weekOfWeekyear" : 33,
> "weekyear" : 2017,
> "yearOfEra" : 2017,
> "yearOfCentury" : 17,
> "centuryOfEra" : 20,
> "secondOfDay" : 46800,
> "minuteOfDay" : 780,
> "millis" : 1503140400000,
> "zone" : {
> "fixed" : false,
> "uncachedZone" : {
> "fixed" : false,
> "cachable" : true,
> "id" : "Europe/Madrid"
> },
> "id" : "Europe/Madrid"
> },
> "chronology" : {
> "zone" : {
> "fixed" : false,
> "uncachedZone" : {
> "fixed" : false,
> "cachable" : true,
> "id" : "Europe/Madrid"
> },
> "id" : "Europe/Madrid"
> }
> },
> "afterNow" : false,
> "beforeNow" : true,
> "equalNow" : false
> },
> "startedAt" : {
> "dayOfMonth" : 19,
> "year" : 2017,
> "era" : 1,
> "dayOfYear" : 231,
> "dayOfWeek" : 6,
> "millisOfDay" : 34200000,
> "monthOfYear" : 8,
> "hourOfDay" : 9,
> "minuteOfHour" : 30,
> "secondOfMinute" : 0,
> "millisOfSecond" : 0,
> "weekOfWeekyear" : 33,
> "weekyear" : 2017,
> "yearOfEra" : 2017,
> "yearOfCentury" : 17,
> "centuryOfEra" : 20,
> "secondOfDay" : 34200,
> "minuteOfDay" : 570,
> "millis" : 1503127800000,
> "zone" : {
> "fixed" : false,
> "uncachedZone" : {
> "fixed" : false,
> "cachable" : true,
> "id" : "Europe/Madrid"
> },
> "id" : "Europe/Madrid"
> },
> "chronology" : {
> "zone" : {
> "fixed" : false,
> "uncachedZone" : {
> "fixed" : false,
> "cachable" : true,
> "id" : "Europe/Madrid"
> },
> "id" : "Europe/Madrid"
> }
> },
> "afterNow" : false,
> "beforeNow" : true,
> "equalNow" : false
> }
> }},
> "key" : "orden"
> }, {
> "value" : {"kettle.model.MensajesError" : {
> "tipoError" : null
> }},
> "key" : "mensaje"
> } ],
> "facts" : [ {
> "value" : {"org.drools.core.common.DefaultFactHandle":{
> "external-form" : "0:1:242655221:1872950214:1:DEFAULT:NON_TRAIT:java.util.LinkedHashMap"
> }},
> "key" : "orden"
> }, {
> "value" : {"org.drools.core.common.DefaultFactHandle":{
> "external-form" : "0:2:1104605608:-2037841024:2:DEFAULT:NON_TRAIT:java.util.LinkedHashMap"
> }},
> "key" : "mensaje"
> } ]
> }
> }
> }; line: 88, column: 8] (through reference chain: org.kie.server.api.model.ServiceResponse["result"]->org.drools.core.runtime.impl.ExecutionResultImpl["results"]->Object[][0]->org.drools.core.xml.jaxb.util.JaxbStringObjectPair["value"]->tws.hibernate.mappings.TmOt["finishedAt"]->org.joda.time.DateTime["chronology"])
> at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
> at com.fasterxml.jackson.databind.DeserializationContext.instantiationException(DeserializationContext.java:889)
> at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserialize(AbstractDeserializer.java:139)
> at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
> at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
> at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
> at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
> at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3703)
> at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2006)
> at org.kie.server.api.marshalling.json.JSONMarshaller$CustomObjectDeserializer.mapObject(JSONMarshaller.java:667)
> at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:222)
> at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.mapArray(UntypedObjectDeserializer.java:356)
> at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:230)
> at com.fasterxml.jackson.databind.deser.std.StdDelegatingDeserializer.deserialize(StdDelegatingDeserializer.java:160)
> at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
> at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:101)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
> at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:156)
> at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:17)
> at com.fasterxml.jackson.databind.deser.std.StdDelegatingDeserializer.deserialize(StdDelegatingDeserializer.java:160)
> at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
> at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:101)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
> at com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeDeserializer._deserialize(AsWrapperTypeDeserializer.java:114)
> at com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeDeserializer.deserializeTypedFromAny(AsWrapperTypeDeserializer.java:64)
> at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.deserializeWithType(UntypedObjectDeserializer.java:289)
> at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:518)
> at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:101)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
> at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
> at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3731)
> at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2724)
> at org.kie.server.api.marshalling.json.JSONMarshaller.unmarshall(JSONMarshaller.java:277)
> ... 8 more
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (DROOLS-2289) The response time jump add in stability test
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-2289?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi commented on DROOLS-2289:
-------------------------------------------
Sorry about not responding on this ticket. Do you still have this issue? If yes, I recommend you to raise it in drools-usage forum (https://groups.google.com/forum/#!forum/drools-usage). JIRA is used to file a bug which is clearly identified. Forum is the better place for trouble-shooting. Thank you for your understanding!
> The response time jump add in stability test
> ---------------------------------------------
>
> Key: DROOLS-2289
> URL: https://issues.redhat.com/browse/DROOLS-2289
> Project: Drools
> Issue Type: Quality Risk
> Components: kie server
> Affects Versions: 7.5.0.Final
> Environment: tomcat version:8.5.24 jmeter version:jakarta-jmeter-2.5.1 Drools version:7.5.0.Final
> cpu:2x6 x86_64, memory:32G, sysOS:CentOS release 6.3
> Reporter: LIANG LIU
> Assignee: Maciej Swiderski
> Priority: Major
> Attachments: InputFact.java, image-2018-02-02-14-51-31-166.png, screenshot-1.png, tomcat8_test.jmx
>
>
> !image-2018-02-02-14-51-31-166.png|thumbnail!
> Stability test the response time jump add! Figure ; En,there are 20 rules,like:
> rule "1"
> salience 9999
> when
> $inputFact:InputFact(stateless_data["black_test"]== 1)
> then
> result.put(drools.getRule().getName(),1);
> end
> It's a problem I use or some parameters need to be set?
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (DROOLS-2604) Inappropriate behavior/logging after kjar deployment to the kie server
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-2604?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi closed DROOLS-2604.
-------------------------------------
Resolution: Explained
> Inappropriate behavior/logging after kjar deployment to the kie server
> ----------------------------------------------------------------------
>
> Key: DROOLS-2604
> URL: https://issues.redhat.com/browse/DROOLS-2604
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.7.0.Final
> Reporter: Igor Azarny
> Assignee: Maciej Swiderski
> Priority: Major
>
> A lot of attempts to create different class instance after deployment of kjar to the kie server. I hardly think, that com.couchbase.client.deps.io.netty.handler.ssl.Java9SslUtils$5 or other classes somehow related to deployed KJar. Is it "by design" or unexpected behavior?
> 2018-05-30T17:35:44.83+0300 [APP/PROC/WEB/0] OUT [CONTAINER] ie.server.services.drools.DroolsKieServerExtension WARNING Unable to create instance of type org.apache.lucene.search.join.TermsIncludingScoreQuery$1 due to org.apache.lucene.search.join.TermsIncludingScoreQuery$1
> .....
> 2018-05-30T17:43:31.07+0300 [APP/PROC/WEB/0] OUT [CONTAINER] ie.server.services.drools.DroolsKieServerExtension WARNING Unable to create instance of type com.couchbase.client.deps.io.netty.handler.ssl.Java9SslUtils$6 due to com.couchbase.client.deps.io.netty.handler.ssl.Java9SslUtils$6
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month