[JBoss JIRA] (ISPN-11906) ClassNotFoundException jul.LogManager when enabling JXM Remote Connection
by Diego Lovison (Jira)
Diego Lovison created ISPN-11906:
------------------------------------
Summary: ClassNotFoundException jul.LogManager when enabling JXM Remote Connection
Key: ISPN-11906
URL: https://issues.redhat.com/browse/ISPN-11906
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 11.0.0.CR1
Reporter: Diego Lovison
When starting the server with {{./server.sh -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false}}
We have the following output
{noformat}
Could not load Logmanager "org.apache.logging.log4j.jul.LogManager"
java.lang.ClassNotFoundException: org.apache.logging.log4j.jul.LogManager
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.logging/java.util.logging.LogManager$1.run(LogManager.java:239)
at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.management/sun.management.ManagementFactoryHelper$LoggingMXBeanAccess.getMXBeanImplementation(ManagementFactoryHelper.java:238)
at java.management/sun.management.ManagementFactoryHelper$LoggingMXBeanAccess.<init>(ManagementFactoryHelper.java:254)
at java.management/sun.management.ManagementFactoryHelper$PlatformLoggingImpl.getInstance(ManagementFactoryHelper.java:334)
at java.management/sun.management.ManagementFactoryHelper$PlatformLoggingImpl.<clinit>(ManagementFactoryHelper.java:337)
at java.management/sun.management.ManagementFactoryHelper.getPlatformLoggingMXBean(ManagementFactoryHelper.java:156)
at java.management/java.lang.management.DefaultPlatformMBeanProvider$9.nameToMBeanMap(DefaultPlatformMBeanProvider.java:386)
at java.management/java.lang.management.ManagementFactory.lambda$getPlatformMBeanServer$0(ManagementFactory.java:487)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1675)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at java.management/java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:488)
at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:475)
at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:447)
at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:599)
May 25, 2020 1:51:57 PM org.infinispan.server.Bootstrap logJVMInformation
INFO: JVM OpenJDK 64-Bit Server VM AdoptOpenJDK 11.0.7+10
May 25, 2020 1:51:57 PM org.infinispan.server.Bootstrap logJVMInformation
INFO: JVM arguments = [-server, -Dcom.sun.management.jmxremote.port=9999, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Xms64m, -Xmx512m, -XX:MetaspaceSize=64M, -Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true, -Dvisualvm.display.name=infinispan-server, -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager, -Dinfinispan.server.home.path=/Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-11.0.0-SNAPSHOT, -classpath, :/Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-11.0.0-SNAPSHOT/boot/infinispan-server-runtime-11.0.0-SNAPSHOT-loader.jar, org.infinispan.server.loader.Loader, org.infinispan.server.Bootstrap]
May 25, 2020 1:51:57 PM org.infinispan.server.Bootstrap logJVMInformation
INFO: PID = 7869
13:51:58,238 INFO (main) [org.infinispan.SERVER] ISPN080000: Infinispan Server starting
13:51:58,241 INFO (main) [org.infinispan.SERVER] ISPN080017: Server configuration: /Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-11.0.0-SNAPSHOT/server/conf/infinispan.xml
13:51:58,241 INFO (main) [org.infinispan.SERVER] ISPN080032: Logging configuration: /Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-11.0.0-SNAPSHOT/server/conf/log4j2.xml
13:51:59,123 INFO (main) [org.infinispan.SERVER] ISPN080027: Loaded extension 'query-dsl-filter-converter-factory'
13:51:59,123 INFO (main) [org.infinispan.SERVER] ISPN080027: Loaded extension 'continuous-query-filter-converter-factory'
13:51:59,125 INFO (main) [org.infinispan.SERVER] ISPN080027: Loaded extension 'iteration-filter-converter-factory'
13:51:59,126 INFO (main) [org.infinispan.SERVER] ISPN080027: Loaded extension 'jdk.nashorn.api.scripting.NashornScriptEngineFactory'
13:52:00,083 INFO (main) [org.infinispan.CONTAINER] ISPN000128: Infinispan version: Infinispan 'N/A' 11.0.0-SNAPSHOT
13:52:00,088 INFO (main) [org.infinispan.CONTAINER] ISPN000389: Loaded global state, version=11.0.0-SNAPSHOT timestamp=2020-05-25T16:41:19.238424Z
13:52:00,271 INFO (main) [org.infinispan.CLUSTER] ISPN000078: Starting JGroups channel cluster with stack tcp
13:52:02,398 INFO (main) [org.jgroups.protocols.pbcast.GMS] Diegos-MacBook-Pro-7753: no members discovered after 2007 ms: creating cluster as coordinator
13:52:02,411 INFO (main) [org.infinispan.CLUSTER] ISPN000094: Received new cluster view for channel cluster: [Diegos-MacBook-Pro-7753|0] (1) [Diegos-MacBook-Pro-7753]
13:52:02,487 INFO (main) [org.infinispan.CLUSTER] ISPN000079: Channel cluster local address is Diegos-MacBook-Pro-7753, physical addresses are [10.97.116.49:7800]
13:52:02,853 INFO (main) [org.infinispan.CONTAINER] ISPN000104: Using EmbeddedTransactionManager
13:52:03,222 INFO (ForkJoinPool.commonPool-worker-3) [org.infinispan.SERVER] ISPN080018: Protocol HotRod (internal)
13:52:03,323 INFO (main) [org.infinispan.SERVER] ISPN080018: Protocol REST (internal)
13:52:03,468 INFO (main) [org.infinispan.SERVER] ISPN080004: Protocol SINGLE_PORT listening on 127.0.0.1:11222
13:52:03,469 INFO (main) [org.infinispan.SERVER] ISPN080034: Server 'Diegos-MacBook-Pro-7753' listening on http://127.0.0.1:11222
13:52:03,469 INFO (main) [org.infinispan.SERVER] ISPN080001: Infinispan Server 11.0.0-SNAPSHOT started in 5227ms
{noformat}
The server is able to start but we should remove the ClassNotFoundException
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (ISPN-11905) cache-container tag should not raise an XSD validation when the jmx tag is before the transport tag
by Diego Lovison (Jira)
Diego Lovison created ISPN-11905:
------------------------------------
Summary: cache-container tag should not raise an XSD validation when the jmx tag is before the transport tag
Key: ISPN-11905
URL: https://issues.redhat.com/browse/ISPN-11905
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 11.0.0.CR1
Reporter: Diego Lovison
{{cache-container}} tag should not raise an XSD validation error when the {{jmx}} tag is before the {{transport}} tag
{code:xml}
<cache-container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:11.0 https://infinispan.org/schemas/infinispan-config-fragment-11.0.xsd"
xmlns="urn:infinispan:config:11.0"
name="default" statistics="true">
<jmx enabled="true" />
<transport cluster="${infinispan.cluster.name}" stack="${org.infinispan.test.server.cluster.stack:test-tcp}"/>
</cache-container>
{code}
Error:
{noformat}
Invalid content was found starting with element '{"urn:infinispan:config:11.0":transport}'. One of '{"urn:infinispan:config:11.0":global-state, "urn:infinispan:config:11.0":local-cache, "urn:infinispan:config:11.0":local-cache-configuration, "urn:infinispan:config:11.0":replicated-cache, "urn:infinispan:config:11.0":replicated-cache-configuration, "urn:infinispan:config:11.0":invalidation-cache, "urn:infinispan:config:11.0":invalidation-cache-configuration, "urn:infinispan:config:11.0":distributed-cache, "urn:infinispan:config:11.0":distributed-cache-configuration, "urn:infinispan:config:11.0":scattered-cache, "urn:infinispan:config:11.0":scattered-cache-configuration, WC[##other:"urn:infinispan:config:11.0"]}' is expected.
{noformat}
It is not preventing the server from startup.
If we use in this order:
{code:xml}
<cache-container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:11.0 https://infinispan.org/schemas/infinispan-config-fragment-11.0.xsd"
xmlns="urn:infinispan:config:11.0"
name="default" statistics="true">
<transport cluster="${infinispan.cluster.name}" stack="${org.infinispan.test.server.cluster.stack:test-tcp}"/>
<jmx enabled="true" />
</cache-container>
{code}
No XSD validation error.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months
[JBoss JIRA] (ISPN-11896) Docs: Store SPI Javadoc Review
by Donald Naro (Jira)
[ https://issues.redhat.com/browse/ISPN-11896?page=com.atlassian.jira.plugi... ]
Donald Naro updated ISPN-11896:
-------------------------------
Status: Open (was: New)
> Docs: Store SPI Javadoc Review
> ------------------------------
>
> Key: ISPN-11896
> URL: https://issues.redhat.com/browse/ISPN-11896
> Project: Infinispan
> Issue Type: Enhancement
> Components: Documentation
> Reporter: Donald Naro
> Assignee: Donald Naro
> Priority: Major
>
> Add doc review to SPI changes in https://github.com/infinispan/infinispan/pull/8370
> this changes how a user would add a custom store - it is the same pluggability as before, but I hope it is a bit simpler to understand, albeit possibly a bit harder to implement as they need to be non blocking when using this SPI
> existing store implementations are unaffected currently as I added an adapter that does the conversion for them. However the goal is to eventually remove the old SPIs, probably not until ISPN 14 though according to our deprecation/removal schedule
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months