Getting issues while undeploying VDB with Teiid 8.1.0 Final
manoj.m.agarwal Sep 14, 2012 9:16 AMHi,
I am deploying vdb using Admin.deploy() and its getting deployed without any issue. But when i try to undeploy the VDB using Admin.undeploy() i face these issues...
1. If VDB is already deployed and then calling Admin.undeploy() results in NullPointerException
class java.lang.NullPointerException: java.lang.NullPointerException
18:33:11,037 INFO [stdout] (pool-11-thread-1) java.lang.NullPointerException
18:33:11,047 INFO [stdout] (pool-11-thread-1) at org.teiid.adminapi.AdminFactory$AdminImpl.execute(AdminFactory.java:437)
18:33:11,047 INFO [stdout] (pool-11-thread-1) at org.teiid.adminapi.AdminFactory$AdminImpl.undeploy(AdminFactory.java:525)
18:33:11,057 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap$4.apply(TeiidBootstrap.java:233)
18:33:11,057 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap$4.apply(TeiidBootstrap.java:226)
18:33:11,067 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.Closure.exec(Closure.java:41)
18:33:11,077 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap.withTeiidAdmin(TeiidBootstrap.java:453)
18:33:11,077 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap.undeployVDB(TeiidBootstrap.java:225)
18:33:11,077 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap.generateViewsFromVDB(TeiidBootstrap.java:394)
18:33:11,077 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap.run(TeiidBootstrap.java:284)
18:33:11,077 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.extension.ServiceStarter.call(ServiceStarter.java:104)
2. If VDB is not deployed and still i call Admin.undeploy() just to make sure that before deploying my VDB i want to undeploy it(Even if VDB is not deployed i expect this method not to throw any error..Please correct me if i am wrong), i get this error...
java.lang.RuntimeException: org.teiid.adminapi.AdminProcessingException: TEIID70006 {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014807: Management resource '[(\"deployment\" => \"XYZ\")]' not found"}}
18:19:21,426 INFO [stdout] (pool-11-thread-1) java.lang.RuntimeException: org.teiid.adminapi.AdminProcessingException: TEIID70006 {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014807: Management resource '[(\"deployment\" => \"XYZ\")]' not found"}}
18:19:21,426 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap$4.apply(TeiidBootstrap.java:243)
18:19:21,426 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap$4.apply(TeiidBootstrap.java:226)
18:19:21,426 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.Closure.exec(Closure.java:41)
18:19:21,426 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap.withTeiidAdmin(TeiidBootstrap.java:453)
18:19:21,426 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap.undeployVDB(TeiidBootstrap.java:225)
18:19:21,436 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap.generateViewsFromVDB(TeiidBootstrap.java:354)
18:19:21,436 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.teiid.bootstrap.TeiidBootstrap.run(TeiidBootstrap.java:284)
18:19:21,436 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.extension.ServiceStarter.call(ServiceStarter.java:104)
18:19:21,436 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.startup.XyzPrimordialJbossBean$1.call(XyzPrimordialJbossBean.java:121)
18:19:21,446 INFO [stdout] (pool-11-thread-1) at com.abc.xyz.server.startup.XyzPrimordialJbossBean$1.call(XyzPrimordialJbossBean.java:117)
I am not sure if it's a bug. Please take a look into this.
Thanks a lot in advance !
-Manoj