1 Reply Latest reply on Aug 16, 2013 3:29 AM by Jayvijay Raj

    EAP 6.0.1 - DefaultPropertyReplacer.replaceProperties throws java.lang.NullPointerException

    Jayvijay Raj Newbie

      Hi

       

      Please let me know if this is bug or have i missconfigured something.

       

      I am trying to deploy the ear file with system properties in application.xml

       

      Have a look at my configuration:

       

      Standalone.xml

       

      <subsystem xmlns="urn:jboss:domain:ee:1.1">

              <spec-descriptor-property-replacement>true</spec-descriptor-property-replacement>

              <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>

      </subsystem>

       

      .ear file  -   application.xml file

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE application PUBLIC

      "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"

      "http://java.sun.com/dtd/application_1_3.dtd">

      <application>

      <display-name>async-ws-endpoint-mdb-ear</display-name>

      <module id="EjbModule_1375204895808">

        <ejb>${jet.ws.async.mdb.module}.jar</ejb>

      </module>

      </application>

       

      System property in Standalone.xml

       

      <property name="jet.ws.async.mdb.module"  value="async-ws-endpoint-mdb-3"/>

       

      Errors:

       

      10:17:38,638 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) -> JBAS015012: Started FileSystemDeploymentService for directory C:\eplatform\jboss-platform\jboss\jboss-eap-6.0.1\standalone\deployments

      10:17:39,184 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) -> MSC000001: Failed to start service jboss.deployment.unit."jet-infra-async-ws-endpoint-mdb-ear.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jet-infra-async-ws-endpoint-mdb-ear.ear".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "jet-infra-async-ws-endpoint-mdb-ear.ear"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]

      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011059: Failed to parse "/C:/eplatform/jboss-platform/jboss/jboss-eap-6.0.1/bin/content/jet-infra-async-ws-endpoint-mdb-ear.ear/META-INF/application.xml"

      at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.handleSpecMetadata(EarMetaDataParsingProcessor.java:105)

      at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.deploy(EarMetaDataParsingProcessor.java:66)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]

      ... 5 more

      Caused by: java.lang.NullPointerException

      at org.jboss.metadata.property.DefaultPropertyReplacer.replaceProperties(DefaultPropertyReplacer.java:110)

      at org.jboss.metadata.parser.util.MetaDataElementParser.getElementText(MetaDataElementParser.java:194)

      at org.jboss.metadata.parser.spec.EarModuleMetaDataParser.parseEjb(EarModuleMetaDataParser.java:101)

      at org.jboss.metadata.parser.spec.EarModuleMetaDataParser.parse(EarModuleMetaDataParser.java:73)

      at org.jboss.metadata.parser.spec.EarMetaDataParser.handleElement(EarMetaDataParser.java:164)

      at org.jboss.metadata.parser.spec.EarMetaDataParser.parse(EarMetaDataParser.java:132)

      at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.handleSpecMetadata(EarMetaDataParsingProcessor.java:102)

       

       

      Please let me know if something is mising or this is a bug in EAP 6.0.1

       

      Regards,

      Jay