I get an error when I try to reject an asset

If you are trying to reject an asset that has been sent to you for approval and you get an error page containing the following message (or similar - the important part is "Component Exception occurred whilst getting processor AssetRejectedProcessor"):

com.bn2web.common.exception.Bn2Exception: AssetWorkflowManager.changeAssetState:
    at com.bright.assetbank.workflow.service.AssetWorkflowManager.changeAssetState(AssetWorkflowManager.java:641)
    at com.bright.assetbank.workflow.action.ChangeAssetStateAction.execute(ChangeAssetStateAction.java:118)
    at com.bright.framework.common.action.BTransactionAction.execute(BTransactionAction.java:108)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at com.bn2web.common.service.Bn2RequestProcessor.processActionPerform(Bn2RequestProcessor.java:110)
    at com.bright.assetbank.application.service.AssetBankRequestProcessor.processActionPerform(AssetBankRequestProcessor.java:104)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)    
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.bright.assetbank.language.filter.LanguageSelectionFilter.doFilter(LanguageSelectionFilter.java:174)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.bright.assetbank.application.filter.SSOAuthenticationFilter.continueChain(SSOAuthenticationFilter.java:87)
    at com.bright.assetbank.application.filter.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:79)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.bright.assetbank.application.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:167)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.bright.assetbank.application.filter.InitialiseProfileFilter.doFilter(InitialiseProfileFilter.java:168)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.bright.assetbank.application.filter.AutomaticLoginFilter.doFilter(AutomaticLoginFilter.java:69)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.bright.assetbank.application.filter.StaticResourceFilter.doFilter(StaticResourceFilter.java:70)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.bright.assetbank.application.filter.UpdateInProgressFilter.doFilter(UpdateInProgressFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
    at java.lang.Thread.run(Thread.java:613)
Caused by: com.bn2web.common.exception.Bn2Exception: WorkflowManager.processEventComponent Exception occurred whilst getting processor AssetRejectedProcessor:
    at com.bright.framework.workflow.service.WorkflowManager.processEvent(WorkflowManager.java:519)
    at com.bright.framework.workflow.service.WorkflowManager.processStateEvents(WorkflowManager.java:454)
    at com.bright.framework.workflow.service.WorkflowManager.processTransitionForBatch(WorkflowManager.java:406)
    at com.bright.framework.workflow.service.WorkflowManager.processTransition(WorkflowManager.java:349)
    at com.bright.assetbank.workflow.service.AssetWorkflowManager.changeAssetState(AssetWorkflowManager.java:618)
... 48 more
Caused by: org.apache.avalon.framework.component.ComponentException: Could not find component (key [AssetRejectedProcessor])
    at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:263)
    at com.bright.framework.workflow.service.WorkflowManager.processEvent(WorkflowManager.java:514)
... 52 more

... then the error is probably being caused by the workflows.xml file that your Asset Bank is using being designed for an earlier version of Asset Bank than the one that you are running.

How to fix

Find out what version of Asset Bank you are running (use the About Asset Bank link in the bottom of the page - this link can be disabled, if so go to http://<your-asset-bank/action/viewAbout).

Request the workflows-default.xml file for your version of Asset Bank from the Asset Bank support team.

If your existing workflows.xml file is customised, make the corresponding customisations to the new workflows-default.xml file.

Rename the file to workflows.xml and copy it to [TOMCAT_HOME]/webapps/asset-bank/WEB-INF/manager-config/workflows/ on your Asset Bank server, overwriting the existing file.

Restart Asset Bank (usually by restarting Tomcat).


Was this article helpful?

Yes No

Thanks for your feedback!