BlackBerry Administration Service page cannot be displayed and the BAS-AS service is constantly restarting

Article ID: KB18185

Type: Support Content

Last Modified: 08-22-2013


Product(s) Affected:

  • BlackBerry Enterprise Server for Microsoft Exchange
  • BlackBerry Enterprise Server for IBM Domino
  • BlackBerry Enterprise Server for Novell GroupWise
Jump to: Environment | Overview
  • BlackBerry Enterprise Server 5.0

 This knowledge base article contains an overview of several causes that prevent the BlackBerry Administration Service Application Server (BAS-AS) service from running correctly. When an administrator attempts to access the BlackBerry Administration Service web console, the following error message appears:

Page could not be found.

Additionally if Internet Information Services (IIS) is running on the server and friendly errors are disabled in the browser, the following error is displayed:

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied.

HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Internet Information Services (IIS)

If the above scenario is occurring, use the below log examples to identify and resolve this issue.

1) The following log lines appear in the BBAS-AS log file: Address already in use: JVM_Bind:443...
LifecycleException: Protocol handler initialization failed: Address already in use: JVM_Bind:443

To resolve this issue, see KB18175.

2) The following log line appears in the BBAS-AS log file: C:\Program Files\Research In Motion\BlackBerry Enterprise Server\BAS\bin\web.keystore (The system cannot find the file specified

To resolve this issue, see KB18173.

3) The BBAS-AS log file shows a log line similar to the following:

org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: ( The server blackberry is not configured to listen with TCP/IP.)

To resolve this issue, see KB18174.

4) The following log lines appear in the BAS-AS log file:

[WARN] ... Could not create connection; - nested throwable: ( The TCP/IP connection to the host has failed. Connection refused: connect)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(

To resolve this issue, see KB18176.

5) The BAS-AS log displays the following, where x is the Internet Protocol Address followed by the port number right before the service starts:

{main} [org.apache.coyote.http11.Http11Protocol] [INFO] Starting Coyote HTTP/1.1 on http-BES.DOMAIN.COM%2F x.x.x.x-18180
{main} [org.apache.coyote.http11.Http11Protocol] [INFO] Starting Coyote HTTP/1.1 on http-BES.DOMAIN.COM%2Fx.x.x.x-443
{main} [org.jboss.system.server.Server] [INFO] JBoss (MX MicroKernel) [4.3.0.GA (build: SVNTag=JBPAPP_4_3_0_GA date=200801031548)] Started in 5m:33s:801ms

To resolve this issue, see KB18190.

6) The following log lines appear in the BAS-AS log file:

{main} [com.rim.bes.basplugin.mdscs.MDSCSManagerMapper] [WARN] [ASMC-2004] {u=SystemUser, t=136} mapMDSServiceConfigurationEntity2MDSCSServiceConfiguration service configuration DTO is not valid - Error details: message=null, type=VALUE_BELOW_MINIMUM_LENGTH, fieldConstraint=1, fieldName=serviceURL, fieldValue=, errorStringPlugInId=-1, errorStringId=null

To resolve this issue, see KB18225.

7) The following log lines appear in the BAS-AS log file:

{main} [org.jboss.system.ServiceController] [WARN] Problem creating service jboss.remoting:type=Connector,transport=socket3843,handler=ejb3
at org.jboss.remoting.InvokerLocator.resolveHost(
at org.jboss.remoting.InvokerLocator.URIParse(
at org.jboss.remoting.InvokerLocator.parse(

To resolve this issue, see KB18337.

8) BlackBerry Administration Service is unable to remain started after an attempt to upgrade the database was unsuccessful "An error occurred while executing a SQL statement"
The following lines appear in the setup<TimeAndDateStamp>.log in the Logs\Installer directory:

[20000] (07/09 20:47:42.895):{0x22B4} [CBESDBInstaller::executeRetryDDL] COM Error 0x80040E2F - IDispatch error #3119 - Source: "Microsoft OLE DB Provider for SQL Server" - Description "Violation of PRIMARY KEY constraint 'PK_BASAuthenticationCredentials'. Cannot insert duplicate key in object 'dbo.BASAuthenticationCredentials'." Native error = 2627
[20000] (07/09 20:47:42.895):{0x22B4} [CBESDBInstaller::executeRetryDDL] COM Error 0x80040E2F - IDispatch error #3119 - Source: "Microsoft OLE DB Provider for SQL Server" - Description "The statement has been terminated." Native error = 3621
[20000] (07/09 20:47:42.895):{0x22B4} [CBESDBInstaller::executeRetryDDL] SQL Error for:
[10000] (07/09 20:47:42.895):{0x22B4} An attempt to upgrade the database was unsuccessful. An error occurred while executing an SQL statement.

As a result the BlackBerry Administration Service process keeps restarting in a loop giving the following error in the logs:

(04/16 14:23:45:931):{main} [org.hibernate.util.JDBCExceptionReporter] [WARN] SQL Error: 208, SQLState: S0002
(04/16 14:23:45:931):{main} [org.hibernate.util.JDBCExceptionReporter] [ERROR] Invalid object name 'BASTimerInitialStartDateTimes'.
(04/16 14:23:45:931):{WorkManager(2)-22} [com.rim.bes.bas.asynchronousmanager.AsynchronousManagerNonClusteredBean] [DEBUG] [BBAS-200] {u=SystemUser, t=260} Enter bean AsynchronousManagerNonClusteredBean.sendObjectMessage
(04/16 14:23:45:931):{WorkManager(2)-22} [com.rim.bes.bas.securitymanager.BASPrincipal] [DEBUG] [BBAS-200] {u=SystemUser, t=261} _checkForAllRoles this user has ALL CAPABILITIES
(04/16 14:23:45:946):{WorkManager(2)-22} [com.rim.bes.bas.serviceinstancemanager.ServiceInstanceManagerBean] [DEBUG] [BBAS-200] {u=SystemUser, t=261} Enter bean ServiceInstanceManagerBean.findServiceInstancesByPlugInAndServiceTypeLocal
(04/16 14:23:45:946):{WorkManager(2)-22} [com.rim.bes.bas.serviceinstancemanager.ServiceInstanceManagerBean] [DEBUG] [BBAS-200] {u=SystemUser, t=261} _findServiceInstance parameters: serviceInstanceId=43, locale=null, includeStatus=false, includeExtendedData=false, loadServiceConsumerRelationhships=false, loadServiceProducerRelationships=false
(04/16 14:23:45:946):{WorkManager(2)-22} [com.rim.bes.bas.securitymanager.BASPrincipal] [DEBUG] [BBAS-200] {u=SystemUser, t=262} _checkForAllRoles this user has ALL CAPABILITIES
(04/16 14:23:45:946):{main} [com.rim.bes.bas.BASExceptionStackInterceptor] [WARN] [BBAS-2007] {u=SystemUser, t=258} Caught unhandled RuntimeException in org.jboss.ejb3.EJBContainerInvocation method onStartupPerformStartupOperationsLocal - javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query

To resolve this issue, see KB24111.


By downloading, accessing or otherwise using the Knowledge Base documents you agree:

   (a) that the terms of use for the documents found at apply to your use or reference to these documents; and

   (b) not to copy, distribute, disclose or reproduce, in full or in part any of the documents without the express written consent of RIM.

Visit the BlackBerry Technical Solution Center at