[JBoss JIRA] (JBEE-172) Unable to find unambiguous method: class java.lang.String.replace(java.lang.String, java.lang.String)
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/JBEE-172?page=com.atlassian.jira.plugin.s... ]
Scott Marlow closed JBEE-172.
-----------------------------
> Unable to find unambiguous method: class java.lang.String.replace(java.lang.String, java.lang.String)
> -----------------------------------------------------------------------------------------------------
>
> Key: JBEE-172
> URL: https://issues.jboss.org/browse/JBEE-172
> Project: JBoss JavaEE Spec APIs
> Issue Type: Bug
> Components: jboss-el-api
> Affects Versions: jboss-el-api_3.0_spec-1.0.7.Final
> Environment: Wildfly 10, Jdk 8
> Reporter: Ramesh khot
> Assignee: Scott Marlow
>
> I am using String.replace('-',' ') function inside jstl/core forEach tag but getting
> Unable to find unambiguous method: class java.lang.String.replace(java.lang.String, java.lang.String)
> at com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:358)
> at com.sun.faces.facelets.tag.TagAttributeImpl.getValue(TagAttributeImpl.java:322)
> at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.assignUniqueId(ComponentTagHandlerDelegateImpl.java:434)
> at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:180)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFLY-10404) Review/revise 2lc caching design
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-10404?page=com.atlassian.jira.plugin... ]
Scott Marlow commented on WFLY-10404:
-------------------------------------
[~pferraro] Do we need to code anything in WildFly for long persistence unit names? It looks like [https://issues.jboss.org/browse/ISPN-9206] is still open.
> Review/revise 2lc caching design
> --------------------------------
>
> Key: WFLY-10404
> URL: https://issues.jboss.org/browse/WFLY-10404
> Project: WildFly
> Issue Type: Feature Request
> Components: Clustering, JPA / Hibernate
> Affects Versions: 13.0.0.Beta1
> Reporter: Scott Marlow
> Assignee: Paul Ferraro
> Fix For: 14.0.0.CR1
>
>
> Review cache isolation, cache region factories, override ISPN default behavior to handle more efficient names, updates to infinispan-hibernate-cache-spi, app configuration choices for choosing different strategies.
> * Avoid the ByteString byte length limitation of 255 ([https://github.com/infinispan/infinispan/commit/046517fc0829bb0a1768169e5...]) in region name prefix + region name as cache key. Also see [https://issues.jboss.org/browse/ISPN-9206].
> * Enhance the org.jboss.as.jpa.hibernate5.service.WildFlyCustomRegionFactoryInitiator to improve caching for:
> ** container managed persistence units
> ** non-container-managed persistence unit (e.g. native Hibernate or app calls into javax.persistence.Persistence.createEntityManagerFactory())
> ** WildFlyCustomRegionFactoryInitiator cannot start an Infinispan cache by default, should we offer an API/SPI that Spring could implement for specifying the cache (service) to be used for a particular persistence unit? The application could specify the custom API/SPI implementation class via a persistence unit property.
> *** Currently, Hibernate defaults the 2lc on but that fails when the Infinispan cache is not automatically started, so WildFlyCustomRegionFactoryInitiator defaults caching off.
> *** If this is not possible, then keep the current WildFlyCustomRegionFactoryInitiator logic to default Hibernate caching off, unless the app requests caching via configuration settings.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Maciej Swiderski (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Maciej Swiderski commented on DROOLS-2840:
------------------------------------------
[~cristiano.nicolai] could you please have a look?
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Cristiano Nicolai
>
> I deployed Kie workbench & Kie server at version 7.9.0.Final
> and I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> {code:java}
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> {code}
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
>
> {code:java}
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> {code}
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
>
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
>
> {code:java}
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> {code}
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Maciej Swiderski (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Maciej Swiderski reassigned DROOLS-2840:
----------------------------------------
Assignee: Cristiano Nicolai (was: Maciej Swiderski)
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Cristiano Nicolai
>
> I deployed Kie workbench & Kie server at version 7.9.0.Final
> and I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> {code:java}
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> {code}
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
>
> {code:java}
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> {code}
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
>
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
>
> {code:java}
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> {code}
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFLY-10752) NPE on deploy, when Email validation annotation present
by d3coder d3coder (JIRA)
[ https://issues.jboss.org/browse/WFLY-10752?page=com.atlassian.jira.plugin... ]
d3coder d3coder updated WFLY-10752:
-----------------------------------
Description:
I'm making simple app. In one of my DTO's i have field with `javax.validation.constraints.Email` annotation. When this annotation present, wildfly fails to deploy my app with this exception:
https://gist.github.com/XakepSDK/daa2531203b365ad1969e01b4466b8a1
My DTO class:
https://gist.github.com/XakepSDK/a78245b262315437d2800be524018d2e
CrossField annotation:
https://gist.github.com/XakepSDK/fde1553339c18bc442820868f573a53a
CrossField validator:
https://gist.github.com/XakepSDK/391783e3b79f839a93a8f45c886b38e0
java -version
openjdk version "1.8.0_172"
OpenJDK Runtime Environment (build 1.8.0_172-b11)
OpenJDK 64-Bit Server VM (build 25.172-b11, mixed mode)
<------------------ UPD: ------------------>
I got it, this happens if @Size present with @Email.
Simple test class:
https://gist.github.com/XakepSDK/892ec3d886ec2cac7f44d93faa0868c1
UPD: this happens if field annotated with Email and any other validation annotation.
It failed with Email and NotNull.
was:
I'm making simple app. In one of my DTO's i have field with `javax.validation.constraints.Email` annotation. When this annotation present, wildfly fails to deploy my app with this exception:
https://gist.github.com/XakepSDK/daa2531203b365ad1969e01b4466b8a1
My DTO class:
https://gist.github.com/XakepSDK/a78245b262315437d2800be524018d2e
CrossField annotation:
https://gist.github.com/XakepSDK/fde1553339c18bc442820868f573a53a
CrossField validator:
https://gist.github.com/XakepSDK/391783e3b79f839a93a8f45c886b38e0
java -version
openjdk version "1.8.0_172"
OpenJDK Runtime Environment (build 1.8.0_172-b11)
OpenJDK 64-Bit Server VM (build 25.172-b11, mixed mode)
<------------------ UPD: ------------------>
I got it, this happens if @Size present with @Email.
Simple test class:
https://gist.github.com/XakepSDK/892ec3d886ec2cac7f44d93faa0868c1
> NPE on deploy, when Email validation annotation present
> -------------------------------------------------------
>
> Key: WFLY-10752
> URL: https://issues.jboss.org/browse/WFLY-10752
> Project: WildFly
> Issue Type: Bug
> Components: Bean Validation
> Affects Versions: 13.0.0.Final
> Environment: Arch linux, openjdk 8, Wildfly 13.0.0.Final
> Reporter: d3coder d3coder
> Assignee: Jason Greene
>
> I'm making simple app. In one of my DTO's i have field with `javax.validation.constraints.Email` annotation. When this annotation present, wildfly fails to deploy my app with this exception:
> https://gist.github.com/XakepSDK/daa2531203b365ad1969e01b4466b8a1
> My DTO class:
> https://gist.github.com/XakepSDK/a78245b262315437d2800be524018d2e
> CrossField annotation:
> https://gist.github.com/XakepSDK/fde1553339c18bc442820868f573a53a
> CrossField validator:
> https://gist.github.com/XakepSDK/391783e3b79f839a93a8f45c886b38e0
> java -version
> openjdk version "1.8.0_172"
> OpenJDK Runtime Environment (build 1.8.0_172-b11)
> OpenJDK 64-Bit Server VM (build 25.172-b11, mixed mode)
> <------------------ UPD: ------------------>
> I got it, this happens if @Size present with @Email.
> Simple test class:
> https://gist.github.com/XakepSDK/892ec3d886ec2cac7f44d93faa0868c1
> UPD: this happens if field annotated with Email and any other validation annotation.
> It failed with Email and NotNull.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Tri Doan Quang (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Tri Doan Quang updated DROOLS-2840:
-----------------------------------
Description:
I deployed Kie workbench & Kie server at version 7.9.0.Final
and I am going to set up client by using websocket API as provided here:
https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
{code:java}
KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
USER,
PASSWORD, new TestEventHandler());
final ServerTemplateList serverTemplateList = client.listServerTemplates();
System.out.println(String.format("Found %s server template(s) at controller url: %s",
serverTemplateList.getServerTemplates().length,
URL));
{code}
However, I got NPE since `serverTemplateList` is NULL.
I dig to the code and observed:
1. Server responses in JSON format:
{code:java}
'{
"type" : "SUCCESS",
"msg" : "",
"result" : {
"server-template-list" : {
"server-template" : [ {
"server-id" : "kie-server-v1",
"server-name" : "kie-server-v1",
"container-specs" : [ ],
"server-config" : { },
"server-instances" : [ {
"server-instance-id" : "kie-server-v1@192.168.1.6:8180",
"server-name" : "kie-server-v1@192.168.1.6:8180",
"server-template-id" : "kie-server-v1",
"server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
} ],
"capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
} ]
}
}
}'
{code}
2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
org.kie.server.controller.api.model.KieServerControllerServiceResponse
{code:java}
@XmlAttribute
private ResponseType type;
@XmlAttribute
private String msg;
@XmlElements({
//Kie Server Controller model
@XmlElement(name = "server-template-list", type = ServerTemplateList.class),
@XmlElement(name = "server-template-details", type = ServerTemplate.class),
@XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
@XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
@XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
@XmlElement(name = "container-spec-details", type = ContainerSpec.class),
@XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
@XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
@XmlElement(name = "container-details-list", type = ContainerList.class)
})
private T result;
{code}
Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
I am not sure I am missing some configuration.
Any one help me please? Many Thanks.
was:
I deployed Kie workbench & Kie server at version 7.9.0.Final
and I am going to set up client by using websocket API as provided here:
https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
{code:java}
KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
USER,
PASSWORD, new TestEventHandler());
final ServerTemplateList serverTemplateList = client.listServerTemplates();
System.out.println(String.format("Found %s server template(s) at controller url: %s",
serverTemplateList.getServerTemplates().length,
URL));
{code}
However, I got NPE since `serverTemplateList` is NULL.
I dig to the code and observed:
1. Server responses in JSON format:
'{
"type" : "SUCCESS",
"msg" : "",
"result" : {
"server-template-list" : {
"server-template" : [ {
"server-id" : "kie-server-v1",
"server-name" : "kie-server-v1",
"container-specs" : [ ],
"server-config" : { },
"server-instances" : [ {
"server-instance-id" : "kie-server-v1@192.168.1.6:8180",
"server-name" : "kie-server-v1@192.168.1.6:8180",
"server-template-id" : "kie-server-v1",
"server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
} ],
"capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
} ]
}
}
}'
2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
org.kie.server.controller.api.model.KieServerControllerServiceResponse
{code:java}
@XmlAttribute
private ResponseType type;
@XmlAttribute
private String msg;
@XmlElements({
//Kie Server Controller model
@XmlElement(name = "server-template-list", type = ServerTemplateList.class),
@XmlElement(name = "server-template-details", type = ServerTemplate.class),
@XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
@XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
@XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
@XmlElement(name = "container-spec-details", type = ContainerSpec.class),
@XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
@XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
@XmlElement(name = "container-details-list", type = ContainerList.class)
})
private T result;
{code}
Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
I am not sure I am missing some configuration.
Any one help me please? Many Thanks.
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Maciej Swiderski
>
> I deployed Kie workbench & Kie server at version 7.9.0.Final
> and I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> {code:java}
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> {code}
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
>
> {code:java}
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> {code}
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
>
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
>
> {code:java}
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> {code}
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Tri Doan Quang (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Tri Doan Quang updated DROOLS-2840:
-----------------------------------
Description:
I deployed Kie workbench & Kie server at version 7.9.0.Final
and I am going to set up client by using websocket API as provided here:
https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
{code:java}
KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
USER,
PASSWORD, new TestEventHandler());
final ServerTemplateList serverTemplateList = client.listServerTemplates();
System.out.println(String.format("Found %s server template(s) at controller url: %s",
serverTemplateList.getServerTemplates().length,
URL));
{code}
However, I got NPE since `serverTemplateList` is NULL.
I dig to the code and observed:
1. Server responses in JSON format:
'{
"type" : "SUCCESS",
"msg" : "",
"result" : {
"server-template-list" : {
"server-template" : [ {
"server-id" : "kie-server-v1",
"server-name" : "kie-server-v1",
"container-specs" : [ ],
"server-config" : { },
"server-instances" : [ {
"server-instance-id" : "kie-server-v1@192.168.1.6:8180",
"server-name" : "kie-server-v1@192.168.1.6:8180",
"server-template-id" : "kie-server-v1",
"server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
} ],
"capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
} ]
}
}
}'
2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
org.kie.server.controller.api.model.KieServerControllerServiceResponse
{code:java}
@XmlAttribute
private ResponseType type;
@XmlAttribute
private String msg;
@XmlElements({
//Kie Server Controller model
@XmlElement(name = "server-template-list", type = ServerTemplateList.class),
@XmlElement(name = "server-template-details", type = ServerTemplate.class),
@XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
@XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
@XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
@XmlElement(name = "container-spec-details", type = ContainerSpec.class),
@XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
@XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
@XmlElement(name = "container-details-list", type = ContainerList.class)
})
private T result;
{code}
Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
I am not sure I am missing some configuration.
Any one help me please? Many Thanks.
was:
I deployed Kie workbench & Kie server at version 7.9.0.Final
and I am going to set up client by using websocket API as provided here:
https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
```java
KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
USER,
PASSWORD, new TestEventHandler());
final ServerTemplateList serverTemplateList = client.listServerTemplates();
System.out.println(String.format("Found %s server template(s) at controller url: %s",
serverTemplateList.getServerTemplates().length,
URL));
```
However, I got NPE since `serverTemplateList` is NULL.
I dig to the code and observed:
1. Server responses in JSON format:
'{
"type" : "SUCCESS",
"msg" : "",
"result" : {
"server-template-list" : {
"server-template" : [ {
"server-id" : "kie-server-v1",
"server-name" : "kie-server-v1",
"container-specs" : [ ],
"server-config" : { },
"server-instances" : [ {
"server-instance-id" : "kie-server-v1@192.168.1.6:8180",
"server-name" : "kie-server-v1@192.168.1.6:8180",
"server-template-id" : "kie-server-v1",
"server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
} ],
"capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
} ]
}
}
}'
2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
org.kie.server.controller.api.model.KieServerControllerServiceResponse
```java
@XmlAttribute
private ResponseType type;
@XmlAttribute
private String msg;
@XmlElements({
//Kie Server Controller model
@XmlElement(name = "server-template-list", type = ServerTemplateList.class),
@XmlElement(name = "server-template-details", type = ServerTemplate.class),
@XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
@XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
@XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
@XmlElement(name = "container-spec-details", type = ContainerSpec.class),
@XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
@XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
@XmlElement(name = "container-details-list", type = ContainerList.class)
})
private T result;
```
Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
I am not sure I am missing some configuration.
Any one help me please? Many Thanks.
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Maciej Swiderski
>
> I deployed Kie workbench & Kie server at version 7.9.0.Final
> and I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> {code:java}
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> {code}
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
>
> {code:java}
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> {code}
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Tri Doan Quang (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Tri Doan Quang updated DROOLS-2840:
-----------------------------------
Summary: Java Controller Client Websocket API - Unmarshal result/input incorrect (was: Java Controller Client Websocket API - Unmarshal incorrect type)
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Maciej Swiderski
>
> I deployed Kie workbench & Kie server .9.0.Final
> And I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> ```java
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> ```
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
> ```java
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> ```
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Tri Doan Quang (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Tri Doan Quang updated DROOLS-2840:
-----------------------------------
Description:
I deployed Kie workbench & Kie server at version 7.9.0.Final
and I am going to set up client by using websocket API as provided here:
https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
```java
KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
USER,
PASSWORD, new TestEventHandler());
final ServerTemplateList serverTemplateList = client.listServerTemplates();
System.out.println(String.format("Found %s server template(s) at controller url: %s",
serverTemplateList.getServerTemplates().length,
URL));
```
However, I got NPE since `serverTemplateList` is NULL.
I dig to the code and observed:
1. Server responses in JSON format:
'{
"type" : "SUCCESS",
"msg" : "",
"result" : {
"server-template-list" : {
"server-template" : [ {
"server-id" : "kie-server-v1",
"server-name" : "kie-server-v1",
"container-specs" : [ ],
"server-config" : { },
"server-instances" : [ {
"server-instance-id" : "kie-server-v1@192.168.1.6:8180",
"server-name" : "kie-server-v1@192.168.1.6:8180",
"server-template-id" : "kie-server-v1",
"server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
} ],
"capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
} ]
}
}
}'
2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
org.kie.server.controller.api.model.KieServerControllerServiceResponse
```java
@XmlAttribute
private ResponseType type;
@XmlAttribute
private String msg;
@XmlElements({
//Kie Server Controller model
@XmlElement(name = "server-template-list", type = ServerTemplateList.class),
@XmlElement(name = "server-template-details", type = ServerTemplate.class),
@XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
@XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
@XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
@XmlElement(name = "container-spec-details", type = ContainerSpec.class),
@XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
@XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
@XmlElement(name = "container-details-list", type = ContainerList.class)
})
private T result;
```
Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
I am not sure I am missing some configuration.
Any one help me please? Many Thanks.
was:
I deployed Kie workbench & Kie server .9.0.Final
And I am going to set up client by using websocket API as provided here:
https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
```java
KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
USER,
PASSWORD, new TestEventHandler());
final ServerTemplateList serverTemplateList = client.listServerTemplates();
System.out.println(String.format("Found %s server template(s) at controller url: %s",
serverTemplateList.getServerTemplates().length,
URL));
```
However, I got NPE since `serverTemplateList` is NULL.
I dig to the code and observed:
1. Server responses in JSON format:
'{
"type" : "SUCCESS",
"msg" : "",
"result" : {
"server-template-list" : {
"server-template" : [ {
"server-id" : "kie-server-v1",
"server-name" : "kie-server-v1",
"container-specs" : [ ],
"server-config" : { },
"server-instances" : [ {
"server-instance-id" : "kie-server-v1@192.168.1.6:8180",
"server-name" : "kie-server-v1@192.168.1.6:8180",
"server-template-id" : "kie-server-v1",
"server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
} ],
"capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
} ]
}
}
}'
2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
org.kie.server.controller.api.model.KieServerControllerServiceResponse
```java
@XmlAttribute
private ResponseType type;
@XmlAttribute
private String msg;
@XmlElements({
//Kie Server Controller model
@XmlElement(name = "server-template-list", type = ServerTemplateList.class),
@XmlElement(name = "server-template-details", type = ServerTemplate.class),
@XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
@XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
@XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
@XmlElement(name = "container-spec-details", type = ContainerSpec.class),
@XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
@XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
@XmlElement(name = "container-details-list", type = ContainerList.class)
})
private T result;
```
Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
I am not sure I am missing some configuration.
Any one help me please? Many Thanks.
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Maciej Swiderski
>
> I deployed Kie workbench & Kie server at version 7.9.0.Final
> and I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> ```java
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> ```
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
> ```java
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> ```
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months