2 Replies Latest reply on Nov 15, 2014 7:48 AM by Rakesh Balguri

    javax.resource.spi.InvalidPropertyException: ParentDirectory is not set

    Rakesh Balguri Expert

      Hi,

       

      We are using Teiid 8.7 and we use a lot of file resource adapters and configured them in the standalone-teiid.xml file.

      While starting JBoss, we encounter the problem of "ParentDirectory is not set" for one of the configured resource adapters.

      The ParentDirectory property is set for all the configured resource adapters.

       

      Earlier this was problem was occurring less frequently and now it occurs frequently.

       

      Could this problem be a timing issue or any synchronizing issue?

      Could you please help us in debugging this issue and the classes that needs to be looked at while debugging?

       

      The stack trace is :

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11)  MSC000001: Failed to start service jboss.ra.deployment.file_test_1: org.jboss.msc.service.StartException in service jboss.ra.deployment.file_test_1: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [file_test]

          at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:131)

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

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

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]

      Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [file_test]

          at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:115)

          ... 5 more

      Caused by: org.jboss.jca.deployers.common.DeployException: IJ020056: Deployment failed: file:/E:/RTC/Chorus40/parent/server/chorus-server-run/target/chorus/jboss/modules/system/layers/base/org/jboss/teiid/resource-adapter/file/main/./

          at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2456)

          at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:183)

          at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:108)

          ... 5 more

      Caused by: javax.resource.spi.InvalidPropertyException: ParentDirectory is not set

          at org.teiid.resource.adapter.file.FileManagedConnectionFactory.createConnectionFactory(FileManagedConnectionFactory.java:47)

          at org.teiid.resource.spi.BasicManagedConnectionFactory.createConnectionFactory(BasicManagedConnectionFactory.java:56)

          at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2191)

          ... 7 more

       

      Thanks

      Rakesh.