“InvocationTargetException” is getting logged in server log when removing a solution pack whose controls are already installed

  • 7009732
  • 11-Nov-2011
  • 26-Apr-2012

Environment

Sentinel 7
Solution Pack

Situation

Error generated in log file while trying to remove a solution pack.

Mon Sep 12 16:53:50 EDT 2011|INFO|Thread-8384|esecurity.ccs.comp.audit.AuditLogger.execute Audit High:: Action by user admin via Sentinel service Server object PluginRepositoryService method RemoveSolutionPack client Unknown failed : Remove solution pack BillsSolutionPackWithANamespace (ID F42D1C00-BFAB-102E-9E37-00FF056216B8) of type SOLUTION_PACK., with XDAS taxonomy name: XDAS_AE_DELETE_DATA_ITEM Mon Sep 12 16:53:50 EDT 2011|SEVERE|Thread-8384|esecurity.base.ccs.comp.BaseRemoteObjectTask.execute Error obtaining AccessChecker for method _removeContentPackage_ of object PluginRepositoryService; Exception java.lang.reflect.InvocationTargetException; ; Caused by Can not remove a solution pack that has deployed control(s) in it.; java.lang.Exception; Mon Sep 12 16:53:50 EDT 2011|SEVERE|Thread-8384|esecurity.base.ccs.comp.BaseRemoteObjectTask.execute java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at esecurity.base.ccs.comp.BaseRemoteObjectTask.execute(BaseRemoteObjectTask.java:111) at esecurity.base.ccs.comp.GenericRemoteObjectTask.processRequest(GenericRemoteObjectTask.java:88) at esecurity.base.ccs.comp.GenericTask.process(GenericTask.java:91) at esecurity.base.ccs.comp.GenericTask.process(GenericTask.java:65) at esecurity.base.ccs.comp.BaseTask.run(BaseTask.java:52) at esecurity.base.ccs.comp.threadpool.TaskThreadPool$RunWrapper.run(TaskThreadPool.java:89) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:732) at java.lang.Thread.run(Unknown Source) Caused by: esecurity.ccs.comp.repository.RemoveDeployedContentPackException: at esecurity.ccs.comp.repository.EPluginRepositoryService.removeContentPackage(EPluginRepositoryService.java:892) at esecurity.db.object.PluginRepositoryServiceAuditShim.removeContentPackage(PluginRepositoryServiceAuditShim.java:353) at esecurity.db.object.PluginRepositoryServiceServerStub._removeContentPackage_(PluginRepositoryServiceServerStub.java:111) ... 12 more Caused by: java.lang.Exception: Can not remove a solution pack that has deployed control(s) in it. at esecurity.ccs.comp.repository.RemoveDeployedContentPackException.<init>(RemoveDeployedContentPackException.java:20) ... 15 more

Resolution

This is a minor issue, the only problem is the exception in the log.
This can happen if controls are already installed and deployed.
Remove the controls and remove any remaining components of the solution pack.