Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-4912

NullPointerException when deploying a datasource for which a webapp has a dependency

    XMLWordPrintable

Details

    • Hide

      1. Startup EAP instance with

      • datasource with JNDI name PostgresDS
      • WEB-INF/jboss-web.xml with entry
        <depends>jboss.jca:service=DataSourceBinding,name=PostgresDS</depends>

      2. touch $JBOSS_HOME/server/$PROFILE/deploy/datasource-ds.xml

      Show
      1. Startup EAP instance with datasource with JNDI name PostgresDS WEB-INF/jboss-web.xml with entry <depends>jboss.jca:service=DataSourceBinding,name=PostgresDS</depends> 2. touch $JBOSS_HOME/server/$PROFILE/deploy/datasource-ds.xml
    • An IllegalStateException is thrown when a datasource with a web application dependency is restarted.
    • Documented as Known Issue
    • ASSIGNED

    Description

      Hot deploy of a datasource for which a webapp has a dependency results in the following exception

      13:49:53,662 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PostgresDS' to JNDI name 'java:PostgresDS'
      13:49:53,673 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/testApp state=Create mode=Manual requiredState=Installed
      java.lang.NullPointerException
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:117)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy38.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

      Similar issue raised in https://jira.jboss.org/browse/JBAS-3314

      Attachments

        Activity

          People

            ozizka_jira Ondrej Zizka (Inactive)
            rhn-support-lakagwu Lami Akagwu
            Russell Dickenson Russell Dickenson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: