[jira] [Work logged] (AMQ-9457) Add activemq-bom
[ https://issues.apache.org/jira/browse/AMQ-9457?focusedWorklogId=910777=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910777 ] ASF GitHub Bot logged work on AMQ-9457: --- Author: ASF GitHub Bot Created on: 20/Mar/24 23:47 Start Date: 20/Mar/24 23:47 Worklog Time Spent: 10m Work Description: mattrpav commented on code in PR #1178: URL: https://github.com/apache/activemq/pull/1178#discussion_r1533053490 ## bom/pom.xml: ## @@ -0,0 +1,221 @@ + + +http://maven.apache.org/POM/4.0.0; +xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; +xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> + +4.0.0 + + + org.apache.activemq + activemq-parent + 6.1.1-SNAPSHOT + + +activemq-bom +pom +ActiveMQ :: BOM +ActiveMQ BOM (Bill of Materials) + + +${project.version} + + + + + +org.apache.activemq +activemq-all +${apache-activemq-version} + + +org.apache.activemq +activemq-amqp +${apache-activemq-version} + + +org.apache.activemq +activemq-blueprint +${apache-activemq-version} + + +org.apache.activemq +activemq-broker +${apache-activemq-version} + + +org.apache.activemq +activemq-client +${apache-activemq-version} + + +org.apache.activemq +activemq-console +${apache-activemq-version} + + +org.apache.activemq +activemq-http +${apache-activemq-version} + + +org.apache.activemq +activemq-jaas +${apache-activemq-version} + + +org.apache.activemq +activemq-jdbc-store +${apache-activemq-version} + + +org.apache.activemq +activemq-kahadb-store +${apache-activemq-version} + + +org.apache.activemq +activemq-karaf +${apache-activemq-version} + + +org.apache.activemq +activemq-jms-pool +${apache-activemq-version} + + +org.apache.activemq +activemq-log4j-appender +${apache-activemq-version} + + +org.apache.activemq +activemq-mqtt +${apache-activemq-version} + + +org.apache.activemq +activemq-pool +${apache-activemq-version} + + +org.apache.activemq +activemq-openwire-generator +${apache-activemq-version} + + +org.apache.activemq +activemq-openwire-legacy +${apache-activemq-version} + + +org.apache.activemq +activemq-osgi +${apache-activemq-version} + + +org.apache.activemq +activemq-ra +${apache-activemq-version} + + +org.apache.activemq +activemq-rar +${apache-activemq-version} + + +org.apache.activemq +activemq-run +${apache-activemq-version} + + +org.apache.activemq +activemq-runtime-config +${apache-activemq-version} + + +org.apache.activemq +activemq-shiro +${apache-activemq-version} + + +org.apache.activemq +activemq-spring +${apache-activemq-version} + + +org.apache.activemq +activemq-stomp +${apache-activemq-version} + + +org.apache.activemq +activemq-web +${apache-activemq-version} + + +org.apache.activemq +activemq-web-console +${apache-activemq-version} + + +org.apache.activemq +activemq-web-demo +
[jira] [Work logged] (AMQ-9457) Add activemq-bom
[ https://issues.apache.org/jira/browse/AMQ-9457?focusedWorklogId=910776=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910776 ] ASF GitHub Bot logged work on AMQ-9457: --- Author: ASF GitHub Bot Created on: 20/Mar/24 23:46 Start Date: 20/Mar/24 23:46 Worklog Time Spent: 10m Work Description: mattrpav commented on code in PR #1178: URL: https://github.com/apache/activemq/pull/1178#discussion_r1533052810 ## bom/pom.xml: ## @@ -0,0 +1,221 @@ + + +http://maven.apache.org/POM/4.0.0; +xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; +xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> + +4.0.0 + + + org.apache.activemq + activemq-parent + 6.1.1-SNAPSHOT + + +activemq-bom +pom +ActiveMQ :: BOM +ActiveMQ BOM (Bill of Materials) + + +${project.version} + + + + + +org.apache.activemq +activemq-all +${apache-activemq-version} + + +org.apache.activemq +activemq-amqp +${apache-activemq-version} + + +org.apache.activemq +activemq-blueprint +${apache-activemq-version} + + +org.apache.activemq +activemq-broker +${apache-activemq-version} + + +org.apache.activemq +activemq-client +${apache-activemq-version} + + +org.apache.activemq +activemq-console +${apache-activemq-version} + + +org.apache.activemq +activemq-http +${apache-activemq-version} + + +org.apache.activemq +activemq-jaas +${apache-activemq-version} + + +org.apache.activemq +activemq-jdbc-store +${apache-activemq-version} + + +org.apache.activemq +activemq-kahadb-store +${apache-activemq-version} + + +org.apache.activemq +activemq-karaf +${apache-activemq-version} + + +org.apache.activemq +activemq-jms-pool +${apache-activemq-version} + + +org.apache.activemq +activemq-log4j-appender +${apache-activemq-version} + + +org.apache.activemq +activemq-mqtt +${apache-activemq-version} + + +org.apache.activemq +activemq-pool +${apache-activemq-version} + + +org.apache.activemq +activemq-openwire-generator +${apache-activemq-version} + + +org.apache.activemq +activemq-openwire-legacy +${apache-activemq-version} + + +org.apache.activemq +activemq-osgi +${apache-activemq-version} + + +org.apache.activemq +activemq-ra +${apache-activemq-version} + + +org.apache.activemq +activemq-rar +${apache-activemq-version} + + +org.apache.activemq +activemq-run +${apache-activemq-version} + + +org.apache.activemq +activemq-runtime-config +${apache-activemq-version} + + +org.apache.activemq +activemq-shiro +${apache-activemq-version} + + +org.apache.activemq +activemq-spring +${apache-activemq-version} + + +org.apache.activemq +activemq-stomp +${apache-activemq-version} + + +org.apache.activemq +activemq-web +${apache-activemq-version} + + +org.apache.activemq +activemq-web-console +${apache-activemq-version} + + +org.apache.activemq +activemq-web-demo +
[jira] [Work logged] (AMQ-9457) Add activemq-bom
[ https://issues.apache.org/jira/browse/AMQ-9457?focusedWorklogId=910770=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910770 ] ASF GitHub Bot logged work on AMQ-9457: --- Author: ASF GitHub Bot Created on: 20/Mar/24 22:55 Start Date: 20/Mar/24 22:55 Worklog Time Spent: 10m Work Description: cshannon commented on code in PR #1178: URL: https://github.com/apache/activemq/pull/1178#discussion_r1533005910 ## bom/pom.xml: ## @@ -0,0 +1,221 @@ + + +http://maven.apache.org/POM/4.0.0; +xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; +xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> + +4.0.0 + + + org.apache.activemq + activemq-parent + 6.1.1-SNAPSHOT + + +activemq-bom +pom +ActiveMQ :: BOM +ActiveMQ BOM (Bill of Materials) + + +${project.version} + + + + + +org.apache.activemq +activemq-all +${apache-activemq-version} + + +org.apache.activemq +activemq-amqp +${apache-activemq-version} + + +org.apache.activemq +activemq-blueprint +${apache-activemq-version} + + +org.apache.activemq +activemq-broker +${apache-activemq-version} + + +org.apache.activemq +activemq-client +${apache-activemq-version} + + +org.apache.activemq +activemq-console +${apache-activemq-version} + + +org.apache.activemq +activemq-http +${apache-activemq-version} + + +org.apache.activemq +activemq-jaas +${apache-activemq-version} + + +org.apache.activemq +activemq-jdbc-store +${apache-activemq-version} + + +org.apache.activemq +activemq-kahadb-store +${apache-activemq-version} + + +org.apache.activemq +activemq-karaf +${apache-activemq-version} + + +org.apache.activemq +activemq-jms-pool +${apache-activemq-version} + + +org.apache.activemq +activemq-log4j-appender +${apache-activemq-version} + + +org.apache.activemq +activemq-mqtt +${apache-activemq-version} + + +org.apache.activemq +activemq-pool +${apache-activemq-version} + + +org.apache.activemq +activemq-openwire-generator +${apache-activemq-version} + + +org.apache.activemq +activemq-openwire-legacy +${apache-activemq-version} + + +org.apache.activemq +activemq-osgi +${apache-activemq-version} + + +org.apache.activemq +activemq-ra +${apache-activemq-version} + + +org.apache.activemq +activemq-rar +${apache-activemq-version} + + +org.apache.activemq +activemq-run +${apache-activemq-version} + + +org.apache.activemq +activemq-runtime-config +${apache-activemq-version} + + +org.apache.activemq +activemq-shiro +${apache-activemq-version} + + +org.apache.activemq +activemq-spring +${apache-activemq-version} + + +org.apache.activemq +activemq-stomp +${apache-activemq-version} + + +org.apache.activemq +activemq-web +${apache-activemq-version} + + +org.apache.activemq +activemq-web-console +${apache-activemq-version} + + +org.apache.activemq +activemq-web-demo +
[jira] [Closed] (ARTEMIS-4691) AMQ212037 warning when closing any in-vm connection
[ https://issues.apache.org/jira/browse/ARTEMIS-4691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clebert Suconic closed ARTEMIS-4691. Resolution: Fixed > AMQ212037 warning when closing any in-vm connection > --- > > Key: ARTEMIS-4691 > URL: https://issues.apache.org/jira/browse/ARTEMIS-4691 > Project: ActiveMQ Artemis > Issue Type: Bug >Affects Versions: 2.32.0 >Reporter: Todor Neykov >Assignee: Clebert Suconic >Priority: Minor > Fix For: 2.33.0 > > Attachments: image-2024-03-15-13-25-35-025.png > > Time Spent: 2h > Remaining Estimate: 0h > > We noticed this warning message after calling {{close()}} of an > InVMConnection, e.g.: > {noformat} > AMQ212037: Connection failure to invm:0 has been detected: null > [code=GENERIC_EXCEPTION]{noformat} > !image-2024-03-15-13-25-35-025.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Reopened] (ARTEMIS-4691) AMQ212037 warning when closing any in-vm connection
[ https://issues.apache.org/jira/browse/ARTEMIS-4691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clebert Suconic reopened ARTEMIS-4691: -- Assignee: Clebert Suconic > AMQ212037 warning when closing any in-vm connection > --- > > Key: ARTEMIS-4691 > URL: https://issues.apache.org/jira/browse/ARTEMIS-4691 > Project: ActiveMQ Artemis > Issue Type: Bug >Affects Versions: 2.32.0 >Reporter: Todor Neykov >Assignee: Clebert Suconic >Priority: Minor > Fix For: 2.33.0 > > Attachments: image-2024-03-15-13-25-35-025.png > > Time Spent: 2h > Remaining Estimate: 0h > > We noticed this warning message after calling {{close()}} of an > InVMConnection, e.g.: > {noformat} > AMQ212037: Connection failure to invm:0 has been detected: null > [code=GENERIC_EXCEPTION]{noformat} > !image-2024-03-15-13-25-35-025.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (ARTEMIS-4696) Deprecate queue prefetch address setting
[ https://issues.apache.org/jira/browse/ARTEMIS-4696?focusedWorklogId=910673=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910673 ] ASF GitHub Bot logged work on ARTEMIS-4696: --- Author: ASF GitHub Bot Created on: 20/Mar/24 07:19 Start Date: 20/Mar/24 07:19 Worklog Time Spent: 10m Work Description: brusdev opened a new pull request, #4861: URL: https://github.com/apache/activemq-artemis/pull/4861 (no comment) Issue Time Tracking --- Worklog Id: (was: 910673) Remaining Estimate: 0h Time Spent: 10m > Deprecate queue prefetch address setting > > > Key: ARTEMIS-4696 > URL: https://issues.apache.org/jira/browse/ARTEMIS-4696 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: Domenico Francesco Bruscino >Assignee: Domenico Francesco Bruscino >Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > The queue prefetch address setting was added by the commit [ARTEMIS-463 > Refactoring on > Openwire|https://github.com/apache/activemq-artemis/commit/6ddf486f8f17776e14cef0c37ca2c9a6a891be7a] > and it is only used for ActiveMQ 5 test purposes to check consumers with no > prefetch. It can be deprecated and replaced by the the default consumer > window size address setting. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (ARTEMIS-4696) Deprecate queue prefetch address setting
Domenico Francesco Bruscino created ARTEMIS-4696: Summary: Deprecate queue prefetch address setting Key: ARTEMIS-4696 URL: https://issues.apache.org/jira/browse/ARTEMIS-4696 Project: ActiveMQ Artemis Issue Type: Improvement Reporter: Domenico Francesco Bruscino Assignee: Domenico Francesco Bruscino The queue prefetch address setting was added by the commit [ARTEMIS-463 Refactoring on Openwire|https://github.com/apache/activemq-artemis/commit/6ddf486f8f17776e14cef0c37ca2c9a6a891be7a] and it is only used for ActiveMQ 5 test purposes to check consumers with no prefetch. It can be deprecated and replaced by the the default consumer window size address setting. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (AMQ-9448) RedeliveryPolicy causing lock in dispatcher
[ https://issues.apache.org/jira/browse/AMQ-9448?focusedWorklogId=910667=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910667 ] ASF GitHub Bot logged work on AMQ-9448: --- Author: ASF GitHub Bot Created on: 20/Mar/24 06:25 Start Date: 20/Mar/24 06:25 Worklog Time Spent: 10m Work Description: thezbyg commented on PR #1177: URL: https://github.com/apache/activemq/pull/1177#issuecomment-2008727676 I have now added a new unit test. Does existing JmsSchedulerTest#testCron unit test run successfully for you before this change? Issue Time Tracking --- Worklog Id: (was: 910667) Time Spent: 0.5h (was: 20m) > RedeliveryPolicy causing lock in dispatcher > --- > > Key: AMQ-9448 > URL: https://issues.apache.org/jira/browse/AMQ-9448 > Project: ActiveMQ Classic > Issue Type: Bug > Components: Broker >Affects Versions: 5.18.3 > Environment: ubuntu-22.04 > corretto-17 >Reporter: Oliver Holzmann >Priority: Critical > Attachments: doNotFireJobsWhileStoreLockIsHeld.patch, jstack1.out > > Time Spent: 0.5h > Remaining Estimate: 0h > > We are using ActiveMQ with redeliveryPolicy enabled: > {code:java} > > redeliveryDelay="1000" /> > {code} > When a message exceeds maximumRedeliveries the queue is "frozen". This means > the consumers can't read any messages and qrowing the queue in web console > causes error 504. > A thread dump shows a blocked JobScheduler:JMS thread: > {code:java} > priority : 5 > thread Id : x7fb985664960 > native Id : xae > state : BLOCKED > StackTrace: > "JobScheduler:JMS" #75 daemon prio=5 os_prio=0 cpu=478.63ms elapsed=757.29s > tid=0x7fb985664960 nid=0xae waiting for monitor entry [0x7fb80def1000] > java.lang.Thread.State: BLOCKED (on object monitor) > at > org.apache.activemq.broker.region.PrefetchSubscription.dispatchPending(PrefetchSubscription.java:647) > waiting to lock <0x00077ebc62a0> (a java.lang.Object) locked > <0x00077ebc6290> (a java.lang.Object) > at > org.apache.activemq.broker.region.PrefetchSubscription.add(PrefetchSubscription.java:159) > at org.apache.activemq.broker.region.Queue.doActualDispatch(Queue.java:2208) > at org.apache.activemq.broker.region.Queue.doDispatch(Queue.java:2156) > at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:2307) > at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1728) locked > <0x00077ebc5178> (a java.lang.Object) > at org.apache.activemq.broker.region.Queue.wakeup(Queue.java:1977) > at org.apache.activemq.broker.region.Queue.messageSent(Queue.java:1971) > at > org.apache.activemq.broker.region.Queue.doPendingCursorAdditions(Queue.java:832) > at org.apache.activemq.broker.region.Queue.tryOrderedCursorAdd(Queue.java:927) > at org.apache.activemq.broker.region.Queue.doMessageSend(Queue.java:906) > at org.apache.activemq.broker.region.Queue.send(Queue.java:756) > at > org.apache.activemq.broker.region.DestinationFilter.send(DestinationFilter.java:138) > at > org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:511) > at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:477) > at > org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:343) > at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:154) > at > org.apache.activemq.broker.scheduler.SchedulerBroker.scheduledJob(SchedulerBroker.java:429) > at > org.apache.activemq.store.kahadb.scheduler.JobSchedulerImpl.fireJob(JobSchedulerImpl.java:823) > at > org.apache.activemq.store.kahadb.scheduler.JobSchedulerImpl.mainLoop(JobSchedulerImpl.java:753) > at > org.apache.activemq.store.kahadb.scheduler.JobSchedulerImpl.run(JobSchedulerImpl.java:699) > at java.lang.Thread.run(java.base@17.0.10/Thread.java:840) > Locked ownable synchronizers: <0x00077ebc3ed0> (a > java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync) > {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (AMQ-9459) Add appropriate JVM Args to allow access to sun.nio.* classes
[ https://issues.apache.org/jira/browse/AMQ-9459?focusedWorklogId=910666=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910666 ] ASF GitHub Bot logged work on AMQ-9459: --- Author: ASF GitHub Bot Created on: 20/Mar/24 06:07 Start Date: 20/Mar/24 06:07 Worklog Time Spent: 10m Work Description: jbonofre commented on PR #1181: URL: https://github.com/apache/activemq/pull/1181#issuecomment-2008713319 I have to check if soTimeout exists with the transport connector you are using. Issue Time Tracking --- Worklog Id: (was: 910666) Time Spent: 2h 50m (was: 2h 40m) > Add appropriate JVM Args to allow access to sun.nio.* classes > - > > Key: AMQ-9459 > URL: https://issues.apache.org/jira/browse/AMQ-9459 > Project: ActiveMQ Classic > Issue Type: Bug >Affects Versions: 5.17.6 >Reporter: Anubhav Mishra >Priority: Minor > Time Spent: 2h 50m > Remaining Estimate: 0h > > When ActiveMQ running ActiveMQ on Java 17 or later JRE, it encounters > following exception: > {code:java} > ERROR | Could not set property soTimeout on > ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=x] | > org.apache.activemq.util.IntrospectionSupport | main > java.lang.reflect.InaccessibleObjectException: Unable to make public void > sun.nio.ch.ServerSocketAdaptor.setSoTimeout(int) throws > java.net.SocketException accessible: module java.base does not "opens > sun.nio.ch" to unnamed module @4739cd70 > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at > java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) > at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) > at > org.apache.activemq.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:179) > at > org.apache.activemq.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:155) > at > org.apache.activemq.transport.tcp.TcpTransportServer.configureServerSocket(TcpTransportServer.java:202) > at > org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:144) > at > org.apache.activemq.transport.auto.nio.AutoNioSslTransportFactory.doBind(AutoNioSslTransportFactory.java:122) > at > org.apache.activemq.transport.TransportFactorySupport.bind(TransportFactorySupport.java:40) > at > org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:340) > at > org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:148) > at > org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:113) > at > org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2241) > at > org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2728) > at > org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2624) > at > org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:762) > at > org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:724) > at > org.apache.activemq.broker.BrokerService.start(BrokerService.java:622) {code} > According to Oracle, with [JEP 403 (link1)|https://openjdk.java.net/jeps/403] > and [JEP 403 (link2)|https://bugs.openjdk.java.net/browse/JDK-8263547] which > has been decided to be *delivered from JDK 17 and onwards* , the > setAccessible approach which was introduced as part of > https://issues.apache.org/jira/browse/AMQ-7121 wont work. > > Fix: Adding the following in activemq file should do the job: > --add-opens java.base/sun.nio.ch=ALL-UNNAMED > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (AMQ-9459) Add appropriate JVM Args to allow access to sun.nio.* classes
[ https://issues.apache.org/jira/browse/AMQ-9459?focusedWorklogId=910665=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910665 ] ASF GitHub Bot logged work on AMQ-9459: --- Author: ASF GitHub Bot Created on: 20/Mar/24 06:07 Start Date: 20/Mar/24 06:07 Worklog Time Spent: 10m Work Description: jbonofre commented on PR #1181: URL: https://github.com/apache/activemq/pull/1181#issuecomment-2008712721 Oh you don't use the default activemq.xml ? Issue Time Tracking --- Worklog Id: (was: 910665) Time Spent: 2h 40m (was: 2.5h) > Add appropriate JVM Args to allow access to sun.nio.* classes > - > > Key: AMQ-9459 > URL: https://issues.apache.org/jira/browse/AMQ-9459 > Project: ActiveMQ Classic > Issue Type: Bug >Affects Versions: 5.17.6 >Reporter: Anubhav Mishra >Priority: Minor > Time Spent: 2h 40m > Remaining Estimate: 0h > > When ActiveMQ running ActiveMQ on Java 17 or later JRE, it encounters > following exception: > {code:java} > ERROR | Could not set property soTimeout on > ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=x] | > org.apache.activemq.util.IntrospectionSupport | main > java.lang.reflect.InaccessibleObjectException: Unable to make public void > sun.nio.ch.ServerSocketAdaptor.setSoTimeout(int) throws > java.net.SocketException accessible: module java.base does not "opens > sun.nio.ch" to unnamed module @4739cd70 > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at > java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) > at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) > at > org.apache.activemq.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:179) > at > org.apache.activemq.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:155) > at > org.apache.activemq.transport.tcp.TcpTransportServer.configureServerSocket(TcpTransportServer.java:202) > at > org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:144) > at > org.apache.activemq.transport.auto.nio.AutoNioSslTransportFactory.doBind(AutoNioSslTransportFactory.java:122) > at > org.apache.activemq.transport.TransportFactorySupport.bind(TransportFactorySupport.java:40) > at > org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:340) > at > org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:148) > at > org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:113) > at > org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2241) > at > org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2728) > at > org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2624) > at > org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:762) > at > org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:724) > at > org.apache.activemq.broker.BrokerService.start(BrokerService.java:622) {code} > According to Oracle, with [JEP 403 (link1)|https://openjdk.java.net/jeps/403] > and [JEP 403 (link2)|https://bugs.openjdk.java.net/browse/JDK-8263547] which > has been decided to be *delivered from JDK 17 and onwards* , the > setAccessible approach which was introduced as part of > https://issues.apache.org/jira/browse/AMQ-7121 wont work. > > Fix: Adding the following in activemq file should do the job: > --add-opens java.base/sun.nio.ch=ALL-UNNAMED > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (AMQ-9459) Add appropriate JVM Args to allow access to sun.nio.* classes
[ https://issues.apache.org/jira/browse/AMQ-9459?focusedWorklogId=910664=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910664 ] ASF GitHub Bot logged work on AMQ-9459: --- Author: ASF GitHub Bot Created on: 20/Mar/24 06:01 Start Date: 20/Mar/24 06:01 Worklog Time Spent: 10m Work Description: AM-19 commented on PR #1181: URL: https://github.com/apache/activemq/pull/1181#issuecomment-2008707324 Can you try with following config: ` ` Issue Time Tracking --- Worklog Id: (was: 910664) Time Spent: 2.5h (was: 2h 20m) > Add appropriate JVM Args to allow access to sun.nio.* classes > - > > Key: AMQ-9459 > URL: https://issues.apache.org/jira/browse/AMQ-9459 > Project: ActiveMQ Classic > Issue Type: Bug >Affects Versions: 5.17.6 >Reporter: Anubhav Mishra >Priority: Minor > Time Spent: 2.5h > Remaining Estimate: 0h > > When ActiveMQ running ActiveMQ on Java 17 or later JRE, it encounters > following exception: > {code:java} > ERROR | Could not set property soTimeout on > ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=x] | > org.apache.activemq.util.IntrospectionSupport | main > java.lang.reflect.InaccessibleObjectException: Unable to make public void > sun.nio.ch.ServerSocketAdaptor.setSoTimeout(int) throws > java.net.SocketException accessible: module java.base does not "opens > sun.nio.ch" to unnamed module @4739cd70 > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at > java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) > at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) > at > org.apache.activemq.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:179) > at > org.apache.activemq.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:155) > at > org.apache.activemq.transport.tcp.TcpTransportServer.configureServerSocket(TcpTransportServer.java:202) > at > org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:144) > at > org.apache.activemq.transport.auto.nio.AutoNioSslTransportFactory.doBind(AutoNioSslTransportFactory.java:122) > at > org.apache.activemq.transport.TransportFactorySupport.bind(TransportFactorySupport.java:40) > at > org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:340) > at > org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:148) > at > org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:113) > at > org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2241) > at > org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2728) > at > org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2624) > at > org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:762) > at > org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:724) > at > org.apache.activemq.broker.BrokerService.start(BrokerService.java:622) {code} > According to Oracle, with [JEP 403 (link1)|https://openjdk.java.net/jeps/403] > and [JEP 403 (link2)|https://bugs.openjdk.java.net/browse/JDK-8263547] which > has been decided to be *delivered from JDK 17 and onwards* , the > setAccessible approach which was introduced as part of > https://issues.apache.org/jira/browse/AMQ-7121 wont work. > > Fix: Adding the following in activemq file should do the job: > --add-opens java.base/sun.nio.ch=ALL-UNNAMED > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (AMQ-9459) Add appropriate JVM Args to allow access to sun.nio.* classes
[ https://issues.apache.org/jira/browse/AMQ-9459?focusedWorklogId=910663=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-910663 ] ASF GitHub Bot logged work on AMQ-9459: --- Author: ASF GitHub Bot Created on: 20/Mar/24 06:00 Start Date: 20/Mar/24 06:00 Worklog Time Spent: 10m Work Description: AM-19 commented on PR #1181: URL: https://github.com/apache/activemq/pull/1181#issuecomment-2008706383 Can you try with following config: Issue Time Tracking --- Worklog Id: (was: 910663) Time Spent: 2h 20m (was: 2h 10m) > Add appropriate JVM Args to allow access to sun.nio.* classes > - > > Key: AMQ-9459 > URL: https://issues.apache.org/jira/browse/AMQ-9459 > Project: ActiveMQ Classic > Issue Type: Bug >Affects Versions: 5.17.6 >Reporter: Anubhav Mishra >Priority: Minor > Time Spent: 2h 20m > Remaining Estimate: 0h > > When ActiveMQ running ActiveMQ on Java 17 or later JRE, it encounters > following exception: > {code:java} > ERROR | Could not set property soTimeout on > ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=x] | > org.apache.activemq.util.IntrospectionSupport | main > java.lang.reflect.InaccessibleObjectException: Unable to make public void > sun.nio.ch.ServerSocketAdaptor.setSoTimeout(int) throws > java.net.SocketException accessible: module java.base does not "opens > sun.nio.ch" to unnamed module @4739cd70 > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at > java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) > at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) > at > org.apache.activemq.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:179) > at > org.apache.activemq.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:155) > at > org.apache.activemq.transport.tcp.TcpTransportServer.configureServerSocket(TcpTransportServer.java:202) > at > org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:144) > at > org.apache.activemq.transport.auto.nio.AutoNioSslTransportFactory.doBind(AutoNioSslTransportFactory.java:122) > at > org.apache.activemq.transport.TransportFactorySupport.bind(TransportFactorySupport.java:40) > at > org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:340) > at > org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:148) > at > org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:113) > at > org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2241) > at > org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2728) > at > org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2624) > at > org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:762) > at > org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:724) > at > org.apache.activemq.broker.BrokerService.start(BrokerService.java:622) {code} > According to Oracle, with [JEP 403 (link1)|https://openjdk.java.net/jeps/403] > and [JEP 403 (link2)|https://bugs.openjdk.java.net/browse/JDK-8263547] which > has been decided to be *delivered from JDK 17 and onwards* , the > setAccessible approach which was introduced as part of > https://issues.apache.org/jira/browse/AMQ-7121 wont work. > > Fix: Adding the following in activemq file should do the job: > --add-opens java.base/sun.nio.ch=ALL-UNNAMED > > -- This message was sent by Atlassian Jira (v8.20.10#820010)