Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Asadmin commands fail #25021

Closed
dmatej opened this issue Jul 4, 2024 · 0 comments · Fixed by #25022
Closed

Asadmin commands fail #25021

dmatej opened this issue Jul 4, 2024 · 0 comments · Fixed by #25022
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dmatej
Copy link
Contributor

dmatej commented Jul 4, 2024

Environment Details

  • GlassFish Version (and build number): 7.0.15, 7.0.16-SNAPSHOT, 593e581
  • JDK version: Just on 11, on 17 it works without problems.
  • 7.0.15 had yet another issue with OSGI, so the following reproducer did not work there.

Problem Description

asadmin --host localhost --port 4848 --interactive=false --echo=true --terse=false create-jms-resource --restype jakarta.jms.TopicConnectionFactory --enabled=true --target server --force=false jms/TopicConnectionFactory
asadmin --host localhost --port 4848 --user admin --interactive=false --echo=true --terse=false create-jms-resource --restype jakarta.jms.TopicConnectionFactory --enabled=true --target server --force=false jms/TopicConnectionFactory
remote failure: Unable to create connection pool.
java.lang.NoSuchMethodError: 'boolean java.lang.StringBuffer.isEmpty()'
'boolean java.lang.StringBuffer.isEmpty()'
Command create-jms-resource failed.

server.log:

[2024-07-04T17:14:55.947369+02:00] [GF 7.0.16-SNAPSHOT] [SEVERE] [NCLS-CORE-00003] [jakarta.enterprise.system.core] [tid: _ThreadID=65 _ThreadName=admin-listener(2)] [levelValue: 1000] [[
Exception while running a command
java.lang.NoSuchMethodError: 'boolean java.lang.StringBuffer.isEmpty()'
at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:486)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:610)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:947)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1718)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2883)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:281)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:213)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:655)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:393)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:275)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:284)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:243)
at com.sun.enterprise.connectors.util.ConnectorDDTransformUtils.getConnectorDescriptor(ConnectorDDTransformUtils.java:211)
at com.sun.enterprise.connectors.service.ConnectorService.getConnectorDescriptor(ConnectorService.java:250)
at com.sun.enterprise.connectors.service.ConnectorConfigurationParserServiceImpl.getConnectionDefinitionNames(ConnectorConfigurationParserServiceImpl.java:141)
at com.sun.enterprise.connectors.ConnectorRuntime.getConnectionDefinitionNames(ConnectorRuntime.java:651)
at org.glassfish.connectors.admin.cli.ConnectorConnectionPoolManager.isValidConnectionDefinition(ConnectorConnectionPoolManager.java:367)
at org.glassfish.connectors.admin.cli.ConnectorConnectionPoolManager.validateConnectorConnPoolAttributes(ConnectorConnectionPoolManager.java:314)
at org.glassfish.connectors.admin.cli.ConnectorConnectionPoolManager.isValid(ConnectorConnectionPoolManager.java:192)
at org.glassfish.connectors.admin.cli.ConnectorConnectionPoolManager.create(ConnectorConnectionPoolManager.java:140)
at org.glassfish.connectors.admin.cli.CreateConnectorConnectionPool.execute(CreateConnectorConnectionPool.java:180)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:569)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:565)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.security.auth.Subject.doAs(Subject.java:361)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:564)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:595)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:587)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.security.auth.Subject.doAs(Subject.java:361)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:586)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1477)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at org.glassfish.jms.admin.cli.CreateJMSResource.execute(CreateJMSResource.java:213)
@dmatej dmatej added the bug Something isn't working label Jul 4, 2024
@dmatej dmatej added this to the 7.0.16 milestone Jul 4, 2024
@dmatej dmatej self-assigned this Jul 4, 2024
@dmatej dmatej changed the title Asadmin commands fail on 7.0.16-SNAPSHOT Asadmin commands fail Jul 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant