4 Replies Latest reply on Jan 12, 2017 6:14 PM by shawkins

    Sometimes VDB got deleted accidentally on un-deploy of child VDB.

    kulbhushanc

      Hi,

       

      I  am deploying and un-deploying VDB using admin api of teiid(version 8.13).

       

      Sometimes on un-deployment of child VDB parent VDB got deleted and child remains exist on server holding old reference of parent VDB.

       

      Scenario:

      I have created VDB parentConn for a database connection after successful deployment of parentConn VDB I created childConn VDB and imported parentConn VDB to childConn VDB using <import VDB ...... > tag, then while undeploying childConn VDB parentConn VDB got deleted and childConn remains on a server(standalone-teiid.xml).

       

      logs from server:-

       

      2016-12-08 14:54:28,547 INFO  [org.jboss.as.repository] (management-handler-thread - 360)  WFLYDR0001: Content added at location /opt/tools/teiid/teiid-8.13.0.CR3/standalone/data/content/84/509693414774374c54d5998318664785f25022/content

      2016-12-08 14:54:28,548 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8)  WFLYSRV0027: Starting deployment of "SvcSourceVdb_oracleConn-vdb.xml" (runtime-name: "SvcSourceVdb_oracleConn-vdb.xml")

      2016-12-08 14:54:28,555 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8)  MSC000001: Failed to start service jboss.deployment.unit."SvcSourceVdb_oracleConn-vdb.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."SvcSourceVdb_oracleConn-vdb.xml".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "SvcSourceVdb_oracleConn-vdb.xml"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

              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)

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: TEIID50017

              at org.teiid.jboss.VDBParserDeployer.parseVDBXML(VDBParserDeployer.java:144)

              at org.teiid.jboss.VDBParserDeployer.deploy(VDBParserDeployer.java:73)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)

              ... 5 more

      Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 603; cvc-enumeration-valid: Value 'INFO' is not facet-valid with respect to enumeration '[ERROR, WARNING]'. It must be a value from the enumeration.

              at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)

              at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)

              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)

              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)

              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:282)

              at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:481)

              at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3571)

              at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:3113)

              at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:3057)

              at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2297)

              at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:788)

              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)

              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653)

              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)

              at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:875)

              at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:798)

              at org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(StreamValidatorHelper.java:186)

              at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:129)

              at javax.xml.validation.Validator.validate(Validator.java:124)

              at org.teiid.adminapi.impl.VDBMetadataParser.validate(VDBMetadataParser.java:94)

              at org.teiid.jboss.VDBParserDeployer.parseVDBXML(VDBParserDeployer.java:110)

      ... 7 more

       

      2016-12-08 14:54:28,558 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 360)  WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "SvcSourceVdb_oracleConn-vdb.xml")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"SvcSourceVdb_oracleConn-vdb.xml\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"SvcSourceVdb_oracleConn-vdb.xml\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"SvcSourceVdb_oracleConn-vdb.xml\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: TEIID50017

          Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 603; cvc-enumeration-valid: Value 'INFO' is not facet-valid with respect to enumeration '[ERROR, WARNING]'. It must be a value from the enumeration."}}

      2016-12-08 14:54:28,558 ERROR [org.jboss.as.server] (management-handler-thread - 360)  WFLYSRV0021: Deploy of deployment "SvcSourceVdb_oracleConn-vdb.xml" was rolled back with the following failure message:

      {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"SvcSourceVdb_oracleConn-vdb.xml\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"SvcSourceVdb_oracleConn-vdb.xml\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"SvcSourceVdb_oracleConn-vdb.xml\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: TEIID50017

          Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 603; cvc-enumeration-valid: Value 'INFO' is not facet-valid with respect to enumeration '[ERROR, WARNING]'. It must be a value from the enumeration."}}

      2016-12-08 14:54:28,560 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3)  WFLYSRV0028: Stopped deployment SvcSourceVdb_oracleConn-vdb.xml (runtime-name: SvcSourceVdb_oracleConn-vdb.xml) in 1ms

      2016-12-08 14:54:28,560 INFO  [org.jboss.as.controller] (management-handler-thread - 360)  WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."SvcSourceVdb_oracleConn-vdb.xml".PARSE

       

      2016-12-08 14:54:55,888 INFO  [org.teiid.RUNTIME] (Worker88_async-teiid-threads271)  TEIID50030 VDB SvcSourceVdb_oracleConn.1 model "oracleConn" metadata loaded. End Time: 8/12/16 2:54 PM

      2016-12-08 14:55:02,114 ERROR [org.jboss.remoting.remote.connection] (XNIO-1 I/O-1)  JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

      2016-12-08 14:55:02,119 ERROR [org.jboss.remoting.remote.connection] (XNIO-1 I/O-2)  JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

       

      ................

       

      where SvcSourceVdb_oracleConn is the parentVDB.

       

      Thanks,

      Kulbhushan Chaskar.

      /opt/tools/teiid/teiid-8.13.0.CR3/standalone/data/content/ea/223ed0bf66607d7c75f6b21020b9a27a7fe57c