Video Screencast Help

The application encountered an error. If you are the administrator, please check the log files for details.

Created: 03 Nov 2010 • Updated: 08 Nov 2010 | 6 comments
Muhammad Ishaq Khan's picture
This issue has been solved. See solution.

Hi there:

Right now I am using Brightmail version 9.0.1-10. when I create or modify some policies i face following error:

 

Application Error
   
  The application encountered an error. If you are the administrator, please check the log files for details.  
   
  Click here to return to the previous page
Click here to return to the login page
 
                    class java.lang.NullPointerException: null
	at com.brightmail.bl.policy.MailflowScript.external(MailflowScript.java:336)
	at com.brightmail.bl.policy.MailflowScript.createScript(MailflowScript.java:102)
	at com.brightmail.bl.policy.MailflowManager.createMailflowScripts(MailflowManager.java:88)
	at com.brightmail.bl.common.ScannerConfigManager$ScannerXmlDocument.marshall(ScannerConfigManager.java:978)
	at com.brightmail.bl.setting.SiteSettingsManager.updateScannerConfig(SiteSettingsManager.java:887)
	at com.brightmail.bl.setting.SiteSettingsManager.updateScannerConfig(SiteSettingsManager.java:223)
	at com.brightmail.bl.agent.ConfigurationHelper.publishGateKeeperScript(ConfigurationHelper.java:622)
	at com.brightmail.bl.agent.ScannerManager.publishGateKeeperScript(ScannerManager.java:185)
	at com.brightmail.bl.policy.CompliancePolicyManager.publishGateKeeperScript(CompliancePolicyManager.java:942)
	at com.brightmail.bl.policy.CompliancePolicyManager.updatePolicy(CompliancePolicyManager.java:170)
	at com.brightmail.pl.action.policy.ComplianceFilterPolicyAction.updatePolicy(ComplianceFilterPolicyAction.java:1069)
	at sun.reflect.GeneratedMethodAccessor4279.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
	at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
	at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1001)
	at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.brightmail.pl.filter.AdministratorRoleChecker.doFilter(AdministratorRoleChecker.java:207)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.brightmail.pl.filter.SessionChecker.doFilter(SessionChecker.java:130)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.brightmail.pl.filter.CacheBuster.doFilter(CacheBuster.java:93)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.brightmail.pl.filter.CharacterEncoder.doFilter(CharacterEncoder.java:93)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.brightmail.pl.filter.HostACL.doFilter(HostACL.java:323)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)

 

Kindly some guide me, because this machine is running in production.

Best regards

Ishaq

Comments 6 CommentsJump to latest comment

Cricket17's picture

Do you have more than one window/tab open on your control center?  SBG uses some sort of cookie to keep track of where it's at.  So if you are editing a policy in one tab, and say run a mail log query in another, it will get confused.  It will also get confused if you have two tabs open viewing different policies and try to edit one of them.

If you can recreate the error,  Symantec Support will also want the HTML source of the error message screen.

TSE-JDavis's picture

This indicates MySQL database corruption. Your best bet at this point is to run a mysql check. This can be done from a command-line that you would log in to as admin.

Once you are logged in, run this command:

 

cc-config database --check --repair

 

Run this 2 times to make sure it is able to correct as many tables as possible. If this does not fix the issue, the best option for you is to restore the appliance back to a default install of 9.0.1 and restore from your most recent backup.

Muhammad Ishaq Khan's picture

Hi there:

I run these commands, when I run check command it show ok against every colum. I also run repair command

cc-config database --check --repair

But my issue yet not fit. I also upgrade brightmail on 9.1.2, but still facing issue.

Best regards

Ishaq

Best Regards,                                     &nbsp

TSE-JDavis's picture

Ishaq,

 

I am sorry that I was not clear enough. If the issue is not resolved by correcting a crashed table, you need to perform an OSRestore and restore your most recent backup. This is not something you can recover from in its current state.

Muhammad Ishaq Khan's picture

hi there;

My issue has been resolve after re-installation.

Best regards

Ishaq

Best Regards,                                     &nbsp

SOLUTION