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)
Cause 1
The following log lines appear in the BBAS-AS log file:
java.net.BindException: Address already in use: JVM_Bind:443
...
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:443
Resolution 1
To resolve this issue, see KB18175.
Cause 2
The following log line appears in the BBAS-AS log file:
java.io.FileNotFoundException: C:\Program Files\Research In Motion\BlackBerry Enterprise Server\BAS\bin\web.keystore (The system cannot find the file specified
Resolution 2
To resolve this issue, see KB18173.
Cause 3
The BBAS-AS log file shows a log line similar to the following:
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The server blackberry is not configured to listen with TCP/IP.)
Resolution 3
To resolve this issue, see KB18174.
Cause 4
The following log lines appear in the BAS-AS log file:
[WARN] ... Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection( LocalManagedConnectionFactory.java:179)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener( InternalManagedConnectionPool.java:577)
Resolution 4
To resolve this issue, see KB18176.
Cause 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
Resolution 5
To resolve this issue, see KB18190.
Cause 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
Resolution 6
To resolve this issue, see KB18225.
Cause 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
java.lang.NullPointerException
at org.jboss.remoting.InvokerLocator.resolveHost(InvokerLocator.java:333)
at org.jboss.remoting.InvokerLocator.URIParse(InvokerLocator.java:257)
at org.jboss.remoting.InvokerLocator.parse(InvokerLocator.java:213)
Resolution 7
To resolve this issue, see KB18337.
Cause 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
Resolution 8
To resolve this issue, see KB24111
- BlackBerry® Enterprise Server 5.0
Disclaimer
By downloading, accessing or otherwise using the Knowledge Base documents you agree:
(a) that the terms of use for the documents found at www.blackberry.com/legal/knowledgebase 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 www.blackberry.com/btsc.

