[JBoss JIRA] (WFLY-10616) ContextResolver doesn't work
by George Trudeau (JIRA)
[ https://issues.jboss.org/browse/WFLY-10616?page=com.atlassian.jira.plugin... ]
George Trudeau edited comment on WFLY-10616 at 6/28/18 11:12 AM:
-----------------------------------------------------------------
Ok I found the culprit, the issue appears when enabling {{ee8.preview.mode}}
>From a fresh install I set the following value using jboss-cli.sh : {{/system-property=ee8.preview.mode:add(value=true)}}
{noformat}
~ > curl -X GET http://localhost:8080/test
{"date":"1970-01-01T00:00:00Z[UTC]"}
{noformat}
was (Author: george.trudeau):
Ok I found the culprit, the issue appears when enabling {{ee8.preview.mode}}
>From a fresh install I set the following value using jboss-cli.sh : {{/system-property=ee8.preview.mode:add(value=true)}}
> ContextResolver doesn't work
> ----------------------------
>
> Key: WFLY-10616
> URL: https://issues.jboss.org/browse/WFLY-10616
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 13.0.0.Final
> Reporter: George Trudeau
> Assignee: R Searls
> Fix For: 14.0.0.CR1
>
> Attachments: test.war
>
>
> I have a simple ContextResolver to set Date serialization format for my JAX-RS service, it works on 12.0.0.Final but it doesn't anymore on 13.0.0.Final :
> {code:java}
> @Provider
> public class DateResolver implements ContextResolver<ObjectMapper>
> {
> private final ObjectMapper mapper;
> public DateResolver()
> {
> mapper = new ObjectMapper();
> mapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"));
> mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
> }
> @Override
> public ObjectMapper getContext(Class<?> type) { return mapper; }
> }
> {code}
> The {{getContext}} method isn't called on 13.0.0.Final.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months
[JBoss JIRA] (WFLY-10616) ContextResolver doesn't work
by George Trudeau (JIRA)
[ https://issues.jboss.org/browse/WFLY-10616?page=com.atlassian.jira.plugin... ]
George Trudeau commented on WFLY-10616:
---------------------------------------
Ok I found the culprit, the issue appears when enabling {{ee8.preview.mode}}
>From a fresh install I set the following value using jboss-cli.sh : {{/system-property=ee8.preview.mode:add(value=true)}}
> ContextResolver doesn't work
> ----------------------------
>
> Key: WFLY-10616
> URL: https://issues.jboss.org/browse/WFLY-10616
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 13.0.0.Final
> Reporter: George Trudeau
> Assignee: R Searls
> Fix For: 14.0.0.CR1
>
> Attachments: test.war
>
>
> I have a simple ContextResolver to set Date serialization format for my JAX-RS service, it works on 12.0.0.Final but it doesn't anymore on 13.0.0.Final :
> {code:java}
> @Provider
> public class DateResolver implements ContextResolver<ObjectMapper>
> {
> private final ObjectMapper mapper;
> public DateResolver()
> {
> mapper = new ObjectMapper();
> mapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"));
> mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
> }
> @Override
> public ObjectMapper getContext(Class<?> type) { return mapper; }
> }
> {code}
> The {{getContext}} method isn't called on 13.0.0.Final.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months
[JBoss JIRA] (WFLY-9644) Wildfly 11 can't deploy simple REST web service because it can't find javax.ws.rs.core.Application
by R Searls (JIRA)
[ https://issues.jboss.org/browse/WFLY-9644?page=com.atlassian.jira.plugin.... ]
R Searls edited comment on WFLY-9644 at 6/28/18 10:59 AM:
----------------------------------------------------------
I also have deployed this app on wfly-11 and it deploys and runs successfully.
However as noted in ref [1] above the user is using a deployment wizard which is renaming the deployment archive and removing the extension. I deployed the app by copying the archive into the standalone/deployment directory. The extension was kept in tact.
Ref [2] above discusses the issue of wlfy's processing of deployments where the archive does not provide an identifiing extension. This is not a Resteasy issue. This is a wfly issue.
I also note that this issue is linked to https://issues.jboss.org/browse/WFCORE-3576. This
issue is really a deployment/scanner issue as is WFCORE-3576. I am going to reassign this jira.
was (Author: rsearls):
I also have deployed this app on wfly-11 and it deploys and runs successfully.
However as noted in ref [1] above the user is using a deployment wizard which is renaming the deployment archive and removing the extension. I deployed the app by copying the archive into the standalone/deployment directory. The extension was kept in tact.
Ref [2] above discusses the issue of wlfy's processing of deployments where the archive does not provide an identifiing extension. This is not a Resteasy issue. This is a wfly issue.
I also note that this issue is linked to https://issues.jboss.org/browse/WFCORE-3576. This
issue is really a deployment/scanner issue as is WFCORE-3576. I am going to recatagorize and reassign this jira.
> Wildfly 11 can't deploy simple REST web service because it can't find javax.ws.rs.core.Application
> --------------------------------------------------------------------------------------------------
>
> Key: WFLY-9644
> URL: https://issues.jboss.org/browse/WFLY-9644
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 11.0.0.Final
> Environment: Ubuntu 16.04, JDK 1.8
> Reporter: Dean Schulze
> Assignee: R Searls
> Attachments: test-app.zip
>
>
> Simple JAX-RS .war file with an Application .class file (extends javax.ws.rs.core.Application) and one resource .class file. No web.xml file. Deploying gives this error:
> Cannot upload deployment: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.pdfupload.POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"pdfupload\" Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYRS0006: Could not load JAX-RS Application class Caused by: java.lang.ClassNotFoundException: pdf.upload.server.PdfUploadApplication from [Module \"deployment.pdfupload\" from Service Module Loader]"}}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months
[JBoss JIRA] (WFLY-9644) Wildfly 11 can't deploy simple REST web service because it can't find javax.ws.rs.core.Application
by R Searls (JIRA)
[ https://issues.jboss.org/browse/WFLY-9644?page=com.atlassian.jira.plugin.... ]
R Searls reassigned WFLY-9644:
------------------------------
Assignee: Chao Wang (was: R Searls)
> Wildfly 11 can't deploy simple REST web service because it can't find javax.ws.rs.core.Application
> --------------------------------------------------------------------------------------------------
>
> Key: WFLY-9644
> URL: https://issues.jboss.org/browse/WFLY-9644
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 11.0.0.Final
> Environment: Ubuntu 16.04, JDK 1.8
> Reporter: Dean Schulze
> Assignee: Chao Wang
> Attachments: test-app.zip
>
>
> Simple JAX-RS .war file with an Application .class file (extends javax.ws.rs.core.Application) and one resource .class file. No web.xml file. Deploying gives this error:
> Cannot upload deployment: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.pdfupload.POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"pdfupload\" Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYRS0006: Could not load JAX-RS Application class Caused by: java.lang.ClassNotFoundException: pdf.upload.server.PdfUploadApplication from [Module \"deployment.pdfupload\" from Service Module Loader]"}}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months
[JBoss JIRA] (WFLY-9644) Wildfly 11 can't deploy simple REST web service because it can't find javax.ws.rs.core.Application
by R Searls (JIRA)
[ https://issues.jboss.org/browse/WFLY-9644?page=com.atlassian.jira.plugin.... ]
R Searls commented on WFLY-9644:
--------------------------------
I also have deployed this app on wfly-11 and it deploys and runs successfully.
However as noted in ref [1] above the user is using a deployment wizard which is renaming the deployment archive and removing the extension. I deployed the app by copying the archive into the standalone/deployment directory. The extension was kept in tact.
Ref [2] above discusses the issue of wlfy's processing of deployments where the archive does not provide an identifiing extension. This is not a Resteasy issue. This is a wfly issue.
I also note that this issue is linked to https://issues.jboss.org/browse/WFCORE-3576. This
issue is really a deployment/scanner issue as is WFCORE-3576. I am going to recatagorize and reassign this jira.
> Wildfly 11 can't deploy simple REST web service because it can't find javax.ws.rs.core.Application
> --------------------------------------------------------------------------------------------------
>
> Key: WFLY-9644
> URL: https://issues.jboss.org/browse/WFLY-9644
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 11.0.0.Final
> Environment: Ubuntu 16.04, JDK 1.8
> Reporter: Dean Schulze
> Assignee: R Searls
> Attachments: test-app.zip
>
>
> Simple JAX-RS .war file with an Application .class file (extends javax.ws.rs.core.Application) and one resource .class file. No web.xml file. Deploying gives this error:
> Cannot upload deployment: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.pdfupload.POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"pdfupload\" Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYRS0006: Could not load JAX-RS Application class Caused by: java.lang.ClassNotFoundException: pdf.upload.server.PdfUploadApplication from [Module \"deployment.pdfupload\" from Service Module Loader]"}}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months
[JBoss JIRA] (WFLY-10649) Eviction doesn't work for infinspan distributed cache "dist"
by Andrey Grigoriev (JIRA)
[ https://issues.jboss.org/browse/WFLY-10649?page=com.atlassian.jira.plugin... ]
Andrey Grigoriev edited comment on WFLY-10649 at 6/28/18 10:07 AM:
-------------------------------------------------------------------
{code:java}
/profile=ha/subsystem=infinispan/cache-container=web:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"aliases" => undefined,
"default-cache" => "dist",
"eviction-executor" => undefined,
"jndi-name" => undefined,
"listener-executor" => undefined,
"module" => "org.wildfly.clustering.web.infinispan",
"replication-queue-executor" => undefined,
"start" => "LAZY",
"statistics-enabled" => false,
"distributed-cache" => {"dist" => {
"async-marshalling" => false,
"batching" => false,
"capacity-factor" => 1.0,
"consistent-hash-strategy" => "INTER_CACHE",
"indexing" => "NONE",
"indexing-properties" => undefined,
"jndi-name" => undefined,
"l1-lifespan" => 0L,
"mode" => "SYNC",
"module" => undefined,
"owners" => 2,
"queue-flush-interval" => 10L,
"queue-size" => 0,
"remote-timeout" => 10000L,
"segments" => 256,
"start" => "LAZY",
"statistics-enabled" => false,
"component" => {
"locking" => {
"acquire-timeout" => 15000L,
"concurrency-level" => 1000,
"isolation" => "REPEATABLE_READ",
"striping" => false
},
"transaction" => {
"locking" => "PESSIMISTIC",
"mode" => "BATCH",
"stop-timeout" => 10000L
},
"backup-for" => {
"remote-cache" => "___defaultcache",
"remote-site" => undefined
},
"backups" => {"backup" => undefined},
"expiration" => {
"interval" => 60000L,
"lifespan" => -1L,
"max-idle" => -1L
},
"partition-handling" => {"enabled" => false},
"state-transfer" => {
"chunk-size" => 512,
"enabled" => true,
"timeout" => 240000L
}
},
"memory" => {"object" => {
"max-entries" => 100L,
"size" => 100L,
"strategy" => "NONE"
}},
"store" => {"file" => {
"fetch-state" => true,
"max-batch-size" => 100,
"passivation" => true,
"path" => undefined,
"preload" => false,
"properties" => undefined,
"purge" => true,
"relative-to" => "jboss.server.data.dir",
"shared" => false,
"singleton" => false,
"property" => undefined,
"write" => {"through" => {}}
}}
}},
"invalidation-cache" => undefined,
"local-cache" => undefined,
"replicated-cache" => undefined,
"scattered-cache" => undefined,
"thread-pool" => {
"async-operations" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 1000
},
"expiration" => {
"keepalive-time" => 60000L,
"max-threads" => 1
},
"listener" => {
"keepalive-time" => 60000L,
"max-threads" => 1,
"min-threads" => 1,
"queue-length" => 100000
},
"persistence" => {
"keepalive-time" => 60000L,
"max-threads" => 4,
"min-threads" => 1,
"queue-length" => 0
},
"remote-command" => {
"keepalive-time" => 60000L,
"max-threads" => 200,
"min-threads" => 1,
"queue-length" => 0
},
"state-transfer" => {
"keepalive-time" => 60000L,
"max-threads" => 60,
"min-threads" => 1,
"queue-length" => 0
},
"transport" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 100000
}
},
"transport" => {"jgroups" => {
"channel" => undefined,
"cluster" => undefined,
"executor" => undefined,
"lock-timeout" => 60000L,
"stack" => undefined
}}
}
}
{code}
This part:
{code:java}
"memory" => {"object" => {
"max-entries" => 100L,
"size" => 100L,
"strategy" => "NONE"
}},
{code}
was (Author: xtron):
{code:java}
/profile=ha/subsystem=infinispan/cache-container=web:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"aliases" => undefined,
"default-cache" => "dist",
"eviction-executor" => undefined,
"jndi-name" => undefined,
"listener-executor" => undefined,
"module" => "org.wildfly.clustering.web.infinispan",
"replication-queue-executor" => undefined,
"start" => "LAZY",
"statistics-enabled" => false,
"distributed-cache" => {"dist" => {
"async-marshalling" => false,
"batching" => false,
"capacity-factor" => 1.0,
"consistent-hash-strategy" => "INTER_CACHE",
"indexing" => "NONE",
"indexing-properties" => undefined,
"jndi-name" => undefined,
"l1-lifespan" => 0L,
"mode" => "SYNC",
"module" => undefined,
"owners" => 2,
"queue-flush-interval" => 10L,
"queue-size" => 0,
"remote-timeout" => 10000L,
"segments" => 256,
"start" => "LAZY",
"statistics-enabled" => false,
"component" => {
"locking" => {
"acquire-timeout" => 15000L,
"concurrency-level" => 1000,
"isolation" => "REPEATABLE_READ",
"striping" => false
},
"transaction" => {
"locking" => "PESSIMISTIC",
"mode" => "BATCH",
"stop-timeout" => 10000L
},
"backup-for" => {
"remote-cache" => "___defaultcache",
"remote-site" => undefined
},
"backups" => {"backup" => undefined},
"expiration" => {
"interval" => 60000L,
"lifespan" => -1L,
"max-idle" => -1L
},
"partition-handling" => {"enabled" => false},
"state-transfer" => {
"chunk-size" => 512,
"enabled" => true,
"timeout" => 240000L
}
},
*{color:red} "memory" => {"object" => {
"max-entries" => 100L,
"size" => 100L,
"strategy" => "NONE"
}},{color}*
"store" => {"file" => {
"fetch-state" => true,
"max-batch-size" => 100,
"passivation" => true,
"path" => undefined,
"preload" => false,
"properties" => undefined,
"purge" => true,
"relative-to" => "jboss.server.data.dir",
"shared" => false,
"singleton" => false,
"property" => undefined,
"write" => {"through" => {}}
}}
}},
"invalidation-cache" => undefined,
"local-cache" => undefined,
"replicated-cache" => undefined,
"scattered-cache" => undefined,
"thread-pool" => {
"async-operations" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 1000
},
"expiration" => {
"keepalive-time" => 60000L,
"max-threads" => 1
},
"listener" => {
"keepalive-time" => 60000L,
"max-threads" => 1,
"min-threads" => 1,
"queue-length" => 100000
},
"persistence" => {
"keepalive-time" => 60000L,
"max-threads" => 4,
"min-threads" => 1,
"queue-length" => 0
},
"remote-command" => {
"keepalive-time" => 60000L,
"max-threads" => 200,
"min-threads" => 1,
"queue-length" => 0
},
"state-transfer" => {
"keepalive-time" => 60000L,
"max-threads" => 60,
"min-threads" => 1,
"queue-length" => 0
},
"transport" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 100000
}
},
"transport" => {"jgroups" => {
"channel" => undefined,
"cluster" => undefined,
"executor" => undefined,
"lock-timeout" => 60000L,
"stack" => undefined
}}
}
}
{code}
> Eviction doesn't work for infinspan distributed cache "dist"
> ------------------------------------------------------------
>
> Key: WFLY-10649
> URL: https://issues.jboss.org/browse/WFLY-10649
> Project: WildFly
> Issue Type: Feature Request
> Components: Clustering
> Affects Versions: 13.0.0.Final
> Environment: OS: Centos 7
> Java:
> java version "1.8.0_171"
> Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
> Wildfly 13.0.0.Final run in "Domain Mode" with two nodes in profile "ha"
> {code:java}
> /server-group=web-group:read-resource(recursive=true)
> {
> "outcome" => "success",
> "result" => {
> "management-subsystem-endpoint" => false,
> "profile" => "ha",
> "socket-binding-default-interface" => undefined,
> "socket-binding-group" => "ha-sockets",
> "socket-binding-port-offset" => 0,
> "deployment" => {"cluster-demo.war" => {
> "enabled" => false,
> "name" => "cluster-demo.war",
> "runtime-name" => "cluster-demo.war"
> }},
> "deployment-overlay" => undefined,
> "jvm" => {"default" => {
> "agent-lib" => undefined,
> "agent-path" => undefined,
> "env-classpath-ignored" => undefined,
> "environment-variables" => undefined,
> "heap-size" => "512m",
> "java-agent" => undefined,
> "java-home" => undefined,
> "jvm-options" => ["-XX:MaxMetaspaceSize=1024m"],
> "launch-command" => undefined,
> "max-heap-size" => "4096m",
> "max-permgen-size" => undefined,
> "permgen-size" => undefined,
> "stack-size" => undefined,
> "type" => undefined
> }},
> "system-property" => {
> "jboss.default.multicast.address" => {
> "boot-time" => true,
> "value" => "230.0.0.5"
> },
> "mycluster.modcluster.lbgroup" => {
> "boot-time" => true,
> "value" => "WebLBGroup"
> }
> }
> }
> }
> {code}
> Set cache store "memory" size = 100
> {code:java}
> /profile=ha/subsystem=infinispan/cache-container=web/distributed-cache=dist/memory=object:read-resource(recursive=true)
> {
> "outcome" => "success",
> "result" => {
> "max-entries" => 100L,
> "size" => 100L,
> "strategy" => "NONE"
> }
> }
> {code}
> Reporter: Andrey Grigoriev
> Assignee: Paul Ferraro
>
> Deploying distributable application (for example https://github.com/liweinan/cluster-demo) fails:
> {code:java}
> 2018-06-28 11:23:50,504 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service org.wildfly.clustering.infinispan.cache-configuration.web.cluster-demo.war: org.jboss.msc.service.StartException in service org.wildfly.clustering.infinispan.cache-configuration.web.cluster-demo.war: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1728)
> at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000424: Eviction size value cannot be less than or equal to zero if eviction is enabled
> at org.infinispan.configuration.cache.MemoryConfigurationBuilder.validate(MemoryConfigurationBuilder.java:185)
> at org.infinispan.configuration.cache.ConfigurationBuilder.validate(ConfigurationBuilder.java:233)
> at org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:290)
> at org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:280)
> at org.wildfly.clustering.infinispan.spi.service.ConfigurationBuilder.start(ConfigurationBuilder.java:88)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
> ... 6 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months
[JBoss JIRA] (DROOLS-2653) [DMN Designer] Replace "My name" (etc) with better defaults
by Liz Clayton (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2653?page=com.atlassian.jira.plugi... ]
Liz Clayton updated DROOLS-2653:
--------------------------------
Labels: UX UXTeam (was: )
> [DMN Designer] Replace "My name" (etc) with better defaults
> -----------------------------------------------------------
>
> Key: DROOLS-2653
> URL: https://issues.jboss.org/browse/DROOLS-2653
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Affects Versions: 7.8.0.Final
> Reporter: Michael Anstis
> Assignee: Michael Anstis
> Labels: UX, UXTeam
>
> The DMN UI model defaults many names to "My name" ("My text" etc).
> Replace all occurrences with more sensible defaults (e.g. "Decision 1", "Decision 2", "Input Data 1", "Input Data 2", "BKM 1", "BKM 2" etc)
> h3. Manual Acceptance test
> # Names correct in: Navigation dock, Expression editor (/)
> # Behavior when Nodes Added, Deleted and Again Added (/)
> # Expression definition elements (grid editor) have default names. (/)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months
[JBoss JIRA] (WFLY-10649) Eviction doesn't work for infinspan distributed cache "dist"
by Andrey Grigoriev (JIRA)
[ https://issues.jboss.org/browse/WFLY-10649?page=com.atlassian.jira.plugin... ]
Andrey Grigoriev commented on WFLY-10649:
-----------------------------------------
{code:java}
/profile=ha/subsystem=infinispan/cache-container=web:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"aliases" => undefined,
"default-cache" => "dist",
"eviction-executor" => undefined,
"jndi-name" => undefined,
"listener-executor" => undefined,
"module" => "org.wildfly.clustering.web.infinispan",
"replication-queue-executor" => undefined,
"start" => "LAZY",
"statistics-enabled" => false,
"distributed-cache" => {"dist" => {
"async-marshalling" => false,
"batching" => false,
"capacity-factor" => 1.0,
"consistent-hash-strategy" => "INTER_CACHE",
"indexing" => "NONE",
"indexing-properties" => undefined,
"jndi-name" => undefined,
"l1-lifespan" => 0L,
"mode" => "SYNC",
"module" => undefined,
"owners" => 2,
"queue-flush-interval" => 10L,
"queue-size" => 0,
"remote-timeout" => 10000L,
"segments" => 256,
"start" => "LAZY",
"statistics-enabled" => false,
"component" => {
"locking" => {
"acquire-timeout" => 15000L,
"concurrency-level" => 1000,
"isolation" => "REPEATABLE_READ",
"striping" => false
},
"transaction" => {
"locking" => "PESSIMISTIC",
"mode" => "BATCH",
"stop-timeout" => 10000L
},
"backup-for" => {
"remote-cache" => "___defaultcache",
"remote-site" => undefined
},
"backups" => {"backup" => undefined},
"expiration" => {
"interval" => 60000L,
"lifespan" => -1L,
"max-idle" => -1L
},
"partition-handling" => {"enabled" => false},
"state-transfer" => {
"chunk-size" => 512,
"enabled" => true,
"timeout" => 240000L
}
},
*{color:red} "memory" => {"object" => {
"max-entries" => 100L,
"size" => 100L,
"strategy" => "NONE"
}},{color}*
"store" => {"file" => {
"fetch-state" => true,
"max-batch-size" => 100,
"passivation" => true,
"path" => undefined,
"preload" => false,
"properties" => undefined,
"purge" => true,
"relative-to" => "jboss.server.data.dir",
"shared" => false,
"singleton" => false,
"property" => undefined,
"write" => {"through" => {}}
}}
}},
"invalidation-cache" => undefined,
"local-cache" => undefined,
"replicated-cache" => undefined,
"scattered-cache" => undefined,
"thread-pool" => {
"async-operations" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 1000
},
"expiration" => {
"keepalive-time" => 60000L,
"max-threads" => 1
},
"listener" => {
"keepalive-time" => 60000L,
"max-threads" => 1,
"min-threads" => 1,
"queue-length" => 100000
},
"persistence" => {
"keepalive-time" => 60000L,
"max-threads" => 4,
"min-threads" => 1,
"queue-length" => 0
},
"remote-command" => {
"keepalive-time" => 60000L,
"max-threads" => 200,
"min-threads" => 1,
"queue-length" => 0
},
"state-transfer" => {
"keepalive-time" => 60000L,
"max-threads" => 60,
"min-threads" => 1,
"queue-length" => 0
},
"transport" => {
"keepalive-time" => 60000L,
"max-threads" => 25,
"min-threads" => 25,
"queue-length" => 100000
}
},
"transport" => {"jgroups" => {
"channel" => undefined,
"cluster" => undefined,
"executor" => undefined,
"lock-timeout" => 60000L,
"stack" => undefined
}}
}
}
{code}
> Eviction doesn't work for infinspan distributed cache "dist"
> ------------------------------------------------------------
>
> Key: WFLY-10649
> URL: https://issues.jboss.org/browse/WFLY-10649
> Project: WildFly
> Issue Type: Feature Request
> Components: Clustering
> Affects Versions: 13.0.0.Final
> Environment: OS: Centos 7
> Java:
> java version "1.8.0_171"
> Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
> Wildfly 13.0.0.Final run in "Domain Mode" with two nodes in profile "ha"
> {code:java}
> /server-group=web-group:read-resource(recursive=true)
> {
> "outcome" => "success",
> "result" => {
> "management-subsystem-endpoint" => false,
> "profile" => "ha",
> "socket-binding-default-interface" => undefined,
> "socket-binding-group" => "ha-sockets",
> "socket-binding-port-offset" => 0,
> "deployment" => {"cluster-demo.war" => {
> "enabled" => false,
> "name" => "cluster-demo.war",
> "runtime-name" => "cluster-demo.war"
> }},
> "deployment-overlay" => undefined,
> "jvm" => {"default" => {
> "agent-lib" => undefined,
> "agent-path" => undefined,
> "env-classpath-ignored" => undefined,
> "environment-variables" => undefined,
> "heap-size" => "512m",
> "java-agent" => undefined,
> "java-home" => undefined,
> "jvm-options" => ["-XX:MaxMetaspaceSize=1024m"],
> "launch-command" => undefined,
> "max-heap-size" => "4096m",
> "max-permgen-size" => undefined,
> "permgen-size" => undefined,
> "stack-size" => undefined,
> "type" => undefined
> }},
> "system-property" => {
> "jboss.default.multicast.address" => {
> "boot-time" => true,
> "value" => "230.0.0.5"
> },
> "mycluster.modcluster.lbgroup" => {
> "boot-time" => true,
> "value" => "WebLBGroup"
> }
> }
> }
> }
> {code}
> Set cache store "memory" size = 100
> {code:java}
> /profile=ha/subsystem=infinispan/cache-container=web/distributed-cache=dist/memory=object:read-resource(recursive=true)
> {
> "outcome" => "success",
> "result" => {
> "max-entries" => 100L,
> "size" => 100L,
> "strategy" => "NONE"
> }
> }
> {code}
> Reporter: Andrey Grigoriev
> Assignee: Paul Ferraro
>
> Deploying distributable application (for example https://github.com/liweinan/cluster-demo) fails:
> {code:java}
> 2018-06-28 11:23:50,504 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service org.wildfly.clustering.infinispan.cache-configuration.web.cluster-demo.war: org.jboss.msc.service.StartException in service org.wildfly.clustering.infinispan.cache-configuration.web.cluster-demo.war: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1728)
> at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000424: Eviction size value cannot be less than or equal to zero if eviction is enabled
> at org.infinispan.configuration.cache.MemoryConfigurationBuilder.validate(MemoryConfigurationBuilder.java:185)
> at org.infinispan.configuration.cache.ConfigurationBuilder.validate(ConfigurationBuilder.java:233)
> at org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:290)
> at org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:280)
> at org.wildfly.clustering.infinispan.spi.service.ConfigurationBuilder.start(ConfigurationBuilder.java:88)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
> ... 6 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months
[JBoss JIRA] (WFLY-10616) ContextResolver doesn't work
by R Searls (JIRA)
[ https://issues.jboss.org/browse/WFLY-10616?page=com.atlassian.jira.plugin... ]
R Searls edited comment on WFLY-10616 at 6/28/18 9:57 AM:
----------------------------------------------------------
I have tested test.war on wfly-12.0.0.Final and wlfy-13.0.0.Final but have not been able to reproduce the problem. In both cases I used curl to call the service like this,
{code:java}
curl -X GET http://localhost:8080/test
{code}
It returned this value,
{code:java}
{"date":"1969-12-31"}
{code}
My execution env was this,
{code:java}
1083 > mvn --version
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: /home/rsearls/d5/apache-maven-3.3.9
Java version: 10, vendor: Oracle Corporation
Java home: /home/rsearls/d5/jdk-10+46/jdk-10
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.11.12-100.fc24.x86_64", arch: "amd64", family: "unix"
{code}
was (Author: rsearls):
I have tested test.war on wfly-12.0.0.Final and wlfy-13.0.0.Final but have not been able to reproduce the problem. In both cases I used curl to call the service like this,
{code:java}
curl -X GET http://localhost:8080/test
{code}
It returned this value,
{code:java}
{"date":"1969-12-31"}
{code}
My execution env was this,
{code:java}
1083 > mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: /home/rsearls/d5/apache-maven-3.3.9
Java version: 1.8.0_171, vendor: IBM Corporation
Java home: /home/rsearls/d5/ibm-java-8.0-5.16/ibm-java-i386-80/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.11.12-100.fc24.x86_64", arch: "x86", family: "unix"
{code}
> ContextResolver doesn't work
> ----------------------------
>
> Key: WFLY-10616
> URL: https://issues.jboss.org/browse/WFLY-10616
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 13.0.0.Final
> Reporter: George Trudeau
> Assignee: R Searls
> Fix For: 14.0.0.CR1
>
> Attachments: test.war
>
>
> I have a simple ContextResolver to set Date serialization format for my JAX-RS service, it works on 12.0.0.Final but it doesn't anymore on 13.0.0.Final :
> {code:java}
> @Provider
> public class DateResolver implements ContextResolver<ObjectMapper>
> {
> private final ObjectMapper mapper;
> public DateResolver()
> {
> mapper = new ObjectMapper();
> mapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"));
> mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
> }
> @Override
> public ObjectMapper getContext(Class<?> type) { return mapper; }
> }
> {code}
> The {{getContext}} method isn't called on 13.0.0.Final.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 10 months