[jboss-jira] [JBoss JIRA] (WFLY-5023) Intermittent NPE when removing data sources

Jan Martiska (JIRA) issues at jboss.org
Wed Jul 29 07:02:03 EDT 2015


     [ https://issues.jboss.org/browse/WFLY-5023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Martiska updated WFLY-5023:
-------------------------------
    Steps to Reproduce: 
It is easy to reproduce it if you create and delete many data sources at once.
Attaching two CLI scripts, one for adding 300 datasources, one for removing all of them.
Run bin/jboss-cli.sh -c --file=many-datasources.cli and then bin/jboss-cli.sh -c --file=remove-datasources.cli and watch the server log.

For 300 data sources, I get about 4 to 6 NPEs.

  was:
It is easy to reproduce it if you create and delete many data sources at once.
Attaching two CLI scripts, one for adding 300 datasources, one for removing all of them.
Run bin/jboss-cli.sh -c --file=many-datasources.cli and then bin/jboss-cli.sh -c --file=remove-datasources.cli and watch the server log.



> Intermittent NPE when removing data sources
> -------------------------------------------
>
>                 Key: WFLY-5023
>                 URL: https://issues.jboss.org/browse/WFLY-5023
>             Project: WildFly
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 10.0.0.Alpha6
>            Reporter: Jan Martiska
>            Assignee: Brian Stansberry
>         Attachments: many-datasources.cli, remove-datasources.cli
>
>
> When removing a datasource, sporadically this exception appears in the log:
> {noformat}
> 12:49:58,224 WARN  [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000004: Failure during stop of service org.wildfly.data-source.ds51: java.lang.NullPointerException
> 	at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.stop(AbstractDataSourceService.java:161)
> 	at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:2056)
> 	at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:2017)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}
> This doesn't seem to happen on WildFly 9.x, only on recent master.
> I suspect that this could lead to some resource leaks, but didn't study it further.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list