P4 Connection and Dispatcher/Server Threads...

Hi,
I'd like to know what would be the resource impacts of having P4 connection opened on a server in term of theads.
Here is the scenario:
  - A stand alone java application starts on a remote server
  - It connects to the Nw04s J2ee Engine using P4 either via the Message Server or the Dispatcher.
  - It calls an Engine Service passing a its remote interface.
  - The service binds it to the J2ee Engine JNDI.
  - The call returns
In the end we have a stub pointing to the remove VM bound in the JNDI tree of the J2ee engine.
What does this imply in term of threads in keeping this connection alive? Does P4 books some threads to send and receive requests in the dispatcher?
The problem is that I have around 30 remote clients bound to the JNDI tree and this consumes lots of threads in the dispatcher (more than 60.)
And when I disconnect them, the dispatcher thread pool goes back to a normal value.
Thanks in advance,
Serge.

Hi,
After having asked to the P4 team (many thanks to Atanassov Ivan), if a remote VM connects to the SAP J2ee Engine using P4, it reaches it via the dispatcher and a System thread is reserved in the disptacher to handle this connection.
This System thread is released only if the connection is closed.
It's closed if the remote VM calls the P4Broker's close() method or if the remote VM crashes.
Regards,
Serge.

Similar Messages

  • Calendar. Annoying pop-up message with Using calendar OS X Mavericks. When it tries to connect to iCloud it gives me VERY annoying pop-up message, that it can't connect and that server responds with CalDAVAddSubscriptionCalendarQueueableOperation: 400.

    Using calendar in OS X Mavericks. When it tries to connect to iCloud it gives me VERY annoying pop-up message, that it can't connect and that server responds with CalDAVAddSubscriptionCalendarQueueableOperation: 400.
    Help me please, really need my calendar!

    Hello Steve
    The simple and quick fix is right-clicking on that little Safe icon in the system tray (near the system clock) and choose Stop Backup/Synchronization. Do you see that icon?
    Turn it on and off as needed. Did this work for you?
    Scott

  • Loosing datasource connection in a server thread

    Hi,
    In a backing bean I start a long term thread that uses the datasource connection taken from application module.
    Everything works fine but after a period of time between one and two hours the connection is lost and server throws a
    <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "AEE2010DS" failed with exception: "java.sql.SQLException: Connection Closed".>
    Is there any way to stop the server from closing the connection that is used in a separate thread, programmatically or using configuration?
    Any comment will be helpful,
    Thanks

    That looks like something external is killing the connection, either the DBMS or a firewall.

  • Dispatcher stopped and not able to connect with sql server

    Hi ,
                       In one of test system disp+work is started and then within no time its stopped.
    I am able to connect with  sql server 2005 database but while starting sap  dispatcher is stopping.
    Here is the log of  dev_wo
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Thu Jan 05 07:24:02 2012
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\usr\sap\DE1\SYS\exe\uc\NTI386\dbmssslib.dll' ...
    B  Library 'C:\usr\sap\DE1\SYS\exe\uc\NTI386\dbmssslib.dll' loaded
    B  Version of 'C:\usr\sap\DE1\SYS\exe\uc\NTI386\dbmssslib.dll' is "700.08", patchlevel (0.72)
    B  New connection 0 created
    M sysno      11
    M sid        DE1
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    75
    M intno      20050900
    M make:      multithreaded, Unicode, optimized
    M pid        988
    M
    M  kernel runs with dp version 217000(ext=109000) (@(#) DPLIB-INT-VERSION-217000-UC)
    M  length of sys_adm_ext is 572 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 988) [dpxxdisp.c   1299]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          23936     (1408)
    M  DpShMCreate: sizeof(tm_adm)          3994272     (19872)
    M  DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    M  DpShMCreate: sizeof(comm_adm)          528064     (1048)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1440)
    M  DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 07F90040, size: 4659000)
    M  DpShMCreate: allocated sys_adm at 07F90040
    M  DpShMCreate: allocated wp_adm at 07F91E40
    M  DpShMCreate: allocated tm_adm_list at 07F97BC0
    M  DpShMCreate: allocated tm_adm at 07F97BF0
    M  DpShMCreate: allocated wp_ca_adm at 08366E90
    M  DpShMCreate: allocated appc_ca_adm at 0836CC50
    M  DpShMCreate: allocated comm_adm at 0836EB90
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 083EFA50
    M  DpShMCreate: allocated gw_adm at 083EFA90
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 083EFAC0
    M  DpShMCreate: allocated wall_adm at 083EFAC8
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.

    M Thu Jan 05 07:24:03 2012
    M  ThInit: running on host sugarland

    M Thu Jan 05 07:24:04 2012
    M  calling db_connect ...
    C  Warning: Env(MSSQL_SERVER) [SUGARLAND\DE1] <> Prof(dbs/mss/server) [SUGARLAND]. Profile value will be used.
    C  Thread ID:708
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'C:\usr\sap\DE1\SYS\exe\uc\NTI386\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      72
    C    patchcomment MSSQL: Thread check in DbSlDisconnect (969143)
    C  np:(local) connection used on SUGARLAND
    C  CopyLocalParameters: dbuser is 'de1'
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:24:19 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:24:34 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:24:49 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn to np:(local).
    C  Retrying without protocol specifier: (local)
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:25:05 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:25:21 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:25:37 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn. 0
    B  ***LOG BY2=> sql error 0      performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> <message text not available> [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 0      performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> <message text not available> [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1411]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10156]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = V-1

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sugarland_DE1_11 on host sugarland (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Thu Jan 05 07:25:37 2012
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10354
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 988) [dpnttool.c   327]
    Please help me on this
    Thanks
    Srikanth

    Hi Amit, 
                 I restarted the system but dispatcher still in same stage.
    Here is the log for dev_w0
    ========================================
    Fri Jan 06 03:41:06 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn. 0
    B  ***LOG BY2=> sql error 0      performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> <message text not available> [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 0      performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> <message text not available> [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1411]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10156]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = V-1

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sugarland_DE1_11 on host sugarland (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Fri Jan 06 03:41:06 2012
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10354
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 3632) [dpnttool.c   327]

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (p

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
    the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)
    The system cannot find the file specified
    Cannot connect to COWBOYS.
    Here are the technical details===================================
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
    Error Number: 2
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    ===================================
    The system cannot find the file specified
    I have tried from so many forms. This is so frustrating. Thank for everyone/anyone who wants to help. So this is what happened: I had to uninstall my previous sqlserver 2012(which worked great) for some reason, and I uninstalled everything from that download.
    Then I installed the trial edition of sql server 2012 (64 Bit) and It wouldn't connect to the database. (Error mentioned above.) My local DB is COWBOYS. (COWBOYS is also my computer name.) After this, I have tried downloading sqlexpress and sqlserver 64bit
    many times and cannot connect to my local DB. 
    How do I connect to my Local DB? 
    Also, I think this might help: (When I run sqlserve.exe, which I was able to find in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, I get an error: Your SQL server installation is either corrupt or has been tampered with(Error getting
    instance ID from name). Please uninstall then re-run setup to correct this problem.
    I would happily re install it, if it wasn't my 20th time.
    I don't have any remote connections, I don't use username/password, only window authentication. I work mostly on visual studio, but without able to store /retrieve data, I don't know how to survive.
    May be the solution is very simple, but I am too frustrated. 
    Some of the things I have tried:
    From a command prompt, enter one of the following commands:
    net start "SQL Server Agent (MSSQLSERVER)" OR 
    net start "SQL Server Agent(instancename)"(for instance)
    on my sql configuration, I cannot start anything because there is nothing there to start. I can post more details, if that would help. Also, some more details about the error:
    Details
    Product:
    SQL Server
    ID:
    2
    Source:
    MSSQLServer
    Version:
    10.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Version:
    9.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Any one that can help me, I will be greatful. Thank you so much. p.s. please ask me anything if you have any questions.

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • IBM WPS: Error While Creating App and Int Server Connections in JDev 10g

    Hi,
    I have been struggling to create App Server and Int Server connections in JDeveloper 10.1.3.4 without any luck.
    The JDeveloper is present on VM ware machine from which I'm trying to establish the connections to remote server where SOA Suite 10g is installed on IBM Websphere.
    My Settings:
    App Server:
    Connection Type: Standalone OC4J 10.1.3
    RMI: tried WC_defaulthost port, 6003, RMI default port (How do I get the actual value of RMI on IBM Websphere and does this really make a difference?)
    Connection test fails with Mbean error. Ignored this error as documented in Installation guide.
    Int Server:
    Used the above App Server connection, gave the http port value of 9700 (also the WC_defaulthost on IBM Websphere)
    Connection test fails for App Server, BPEL PM Server and ESB Server.
    I have gone through other threads where different workarounds were suggested but none of them worked for me. The workaround of adding the property ipaddr with the value 0.0.0.0 in opmn.xml doesn't hold good here as IBM WPS doesn't have OPMN.
    Please suggest a working solution for this issue.
    Regards,
    CC

    The below message comes when you don't specify any default file for your webcenter portal application and this should not be any problem.
    Target Portal.jpr is not runnable, using default target index.html.
    Can you answer to my questions:
    1. Did you just created a new wcp application in jdev and ran it with out doing any changes? If you have done what are the changes?
    2. How did you ran your application? (right clicking a particular page or right clicking your portal project and selected "run" option?

  • Cannot connect to Exchange server (Small Business Server 2008) using Windows 8.1 and Outlook 2013

    I am at my wits end. I have got a new PC running Windows 8.1 and Outlook 2013 simply WILL NOT connect to my work Exchange server. The REALLY annoying thing is that the Windows Mail client inbuilt to Windows 8.1 works perfectly! But I have to have Outlook
    for the functionality. The issue appears to be that in Outlook 2013 on Windows 8.1, it tries to be clever and auto-detect the settings whereas Windows Mail allows you to input the server and domain names.  
    I have tried all the suggestions already on some of the boards - manual setup, etc - nothing works! Is it a compatibilityissue with SBS 2008 and Outlook 2013? Any help appreciated!

    I am at my wits end. I have got a new PC running Windows 8.1 and Outlook 2013 simply WILL NOT connect to my work Exchange server.................... it tries to be clever and auto-detect the settings.  
    I have tried all the suggestions already on some of the boards - manual setup, etc - nothing works! Is it a compatibilityissue with SBS 2008 and Outlook 2013? Any help appreciated!
    There's no issue with O'2013 connecting with Ex '2007. Also not clear about comments of "auto-detect" versus "....have tried all the suggestions ............ manual setup....". On the one hand your stating that only "auto-detect" is available and on the
    other that you've tried "manual settings" (which definitely is an option in O'2013 for EX accounts).
    This may have more to do with the fact that you're using a new computer trying to connect to the server which it may not be configured for - something your admin will need to address.
    Given that your question is in reference to Exchange - you are likely to get a better/faster answer in the following forum which deals with Exchange server related questions:
    Exchange Previous Versions - Outlook, OWA, POP, and IMAP Clients
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrclientslegacy/threads
    Karl Timmermans [Outlook MVP] "Outlook Contact Import/Export/Data Mgmt" http://www.contactgenie.com

  • I have a ipad mini and it says that it has perect wifi yet when i go into safari it says unable to connect with the server how can i fix this?

    I have a ipad mini and i have had it for less then a year, it says that i have perfect wifi up in the left corner where the wifi is always at  but when ever i go into the built in safari it says that it is unable to connect with the server. How can i fix this because with out it connecting to the server or internet it is kind of useless to me. I do have ios7 if that helps

    The wifi symbol only indicates the presence/signal strength of wifi. Not that you are connected.
    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    10 Ways to Boost Your Wireless Signal
    http://www.pcmag.com/article2/0,2817,2372811,00.asp
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • I'm being shown an error pop-up message periodically saying "There was a problem connecting to the server. URLs with the type 'file:' are not supported." I have a brand new MacBook Pro, and at no time am I actually having trouble connecting to the server.

    I'm being shown an error pop-up message periodically saying "There was a problem connecting to the server. URLs with the type 'file:' are not supported." I have a brand new MacBook Pro, and at no time am I actually having trouble connecting to the server, but this message continues to pop-up several times a day at random intervals. Is there something I'm doing wrong? Or is my computer just having a glitch? Other than that, and a mildly sticking caps lock button, it's working perfectly.
    Thank you!

    Alright it didn't solve it. Any other suggestions?
    I haven't suggested a solution yet. I want to know whether you still get the messages while Time Machine is disabled. Do you? If so, try any or all of the solutions proposed in this thread:
    There was a Problem connecting to the...: Apple Support Communities

  • JDBC Connection between Unix and SQL Server 2000

    I have SQL Server 2000 installed in a pc as a data server and SQL Server 2000 JDBC Drive installed in a Unix machine. Both machines are connected and can ping each other. After setting up the environment data, I ran a test code to test the connection and got exceptions. ( I did the same process between a pc and the data server, it works well.)
    Attached are the test code and error message. Hope someone can help me.
    ******* Test Code ********
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Test {
    public Test() throws Exception {
    // Get connection
    DriverManager.registerDriver(new
    com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://<hostname>","<username>","<password>");
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    System.out.println();
    // Meta data
    DatabaseMetaData meta = connection.getMetaData();
    System.out.println("\nDriver Information");
    System.out.println("Driver Name: "
    + meta.getDriverName());
    System.out.println("Driver Version: "
    + meta.getDriverVersion());
    System.out.println("\nDatabase Information ");
    System.out.println("Database Name: "
    + meta.getDatabaseProductName());
    System.out.println("Database Version: "+
    meta.getDatabaseProductVersion());
    } // Test
    public static void main (String args[]) throws Exception {
    Test test = new Test();
    ******* error message ********
    Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(SQLException.java:64)
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at Test.<init>(Test.java:10)
    at Test.main(Test.java:32)
    ************ end of message ***********

    If it works from a PC and not from the Unix box then you may have a network issue of some sort, I.E. firewall not letting it through etc.
    Try using telnet on the Unix box to see if you can connect to the sql server on the port that the SQL server is listening.
    E.G.
    telnet server_name 1433
    You may need to change the port number to the one that the SQL server is using.
    Col

  • Unable to Connect to the Server and WLI Domain problem

    Hi All
    this is the details
    I have installed installed WIntegration Server and using
    quickstart click the Take to Platform tour I started all the servers
    Note-- I have not installed separate weblogic server 7.0 and not started.
    whenever I click started WebLogic Integration Studio and it shows
    user --admin
    password- security
    url--t3://localhost:7001
    once submit it shows always Unable to connect to the server
    please help me ???????????????????????????????????????????/
    Server is running fine I used quickstart--- Take the live platform tour to run
    the below servers.
    C:\bea\weblogic700\samples\platform\e2eDomain>"C:\bea\jdk131_08\bin\java" -hotsp
    ot -Xms256m -Xmx256m -XX:MaxPermSize=256m -Xverify:none -Dcommerce.properties="
    C:\bea\weblogic700\portal\weblogiccommerce.properties" -Dweblogic.jws.Production
    Mode="false" -Dweblogic.servlet.ClasspathServlet.disableStrictCheck="true" -De2e
    Sample.b2b.path.data=".\beaApps\e2eApp\data" -Dweblogic.Name=e2eServer -Dbea.hom
    e="C:\bea" -Dweblogic.management.username= -Dweblogic.management.password= -Dweb
    logic.ProductionModeEnabled=true -Dweblogic.management.discover=false -Djava.sec
    urity.policy=="C:\bea\weblogic700\server\lib\weblogic.policy" weblogic.Server
    Starting WebLogic Server...
    <Aug 5, 2003 1:22:23 PM EDT> <Notice> <Management> <140005> <Loading configurati
    on C:\bea\weblogic700\samples\platform\e2eDomain\.\config.xml>
    <Aug 5, 2003 1:22:37 PM EDT> <Notice> <Security> <090093> <No configuration data
    was found on server e2eServer for realm CompatibilityRealm.>
    <Aug 5, 2003 1:22:37 PM EDT> <Notice> <Security> <090082> <Security initializing
    using realm CompatibilityRealm.>
    <Aug 5, 2003 1:22:38 PM EDT> <Notice> <WebLogicServer> <000327> <Starting WebLog
    ic Admin Server "e2eServer" for domain "e2eDomain">
    <Aug 5, 2003 1:24:23 PM EDT> <Notice> <B2BIntegration> <000000> <INFO: WebLogic
    Integration - B2Bi Server started successfully.>
    INFO: WebLogic Integration - B2Bi Server started successfully.
    <Aug 5, 2003 1:24:31 PM EDT> <Notice> <AI> <000000> <Started WebLogic Integratio
    n - AI Server version 7.0.4.0>
    <Aug 5, 2003 1:24:35 PM EDT> <Notice> <BPM> <000000> <Started WebLogic Integrati
    on - BPM Server version 7.0.4.0>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    After the server has booted, your browser should
    automatically launch and point to the WebLogic Server
    Index running on this server. If your browser
    fails to launch, point your browser to the URL
    "http://Inforicadb:7501/index.jsp
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    =============== Initializing Logger ======================
    <Aug 5, 2003 1:24:36 PM EDT> <Notice> <Management> <141053> <Application Poller
    not started for production server.>
    <Aug 5, 2003 1:24:46 PM EDT> <Notice> <WebLogicServer> <000354> <Thread "SSLList
    enThread.Default" listening on port 7502>
    <Aug 5, 2003 1:24:46 PM EDT> <Notice> <WebLogicServer> <000354> <Thread "ListenT
    hread.Default" listening on port 7501>
    <Aug 5, 2003 1:24:47 PM EDT> <Notice> <WebLogicServer> <000329> <Started WebLogi
    c Admin Server "e2eServer" for domain "e2eDomain" running in Production Mode>
    <Aug 5, 2003 1:24:48 PM EDT> <Notice> <WebLogicServer> <000365> <Server state
    ch
    anged to RUNNING>
    <Aug 5, 2003 1:24:48 PM EDT> <Notice> <WebLogicServer> <000360> <Server started
    in RUNNING mode>
    please help me, urgent
    Thanks in advance
    Domain problem---------------------------------------------
    I created WLI domain like this is it correct ?
    Next I used Quick start's --Configure New Server
    then single server option radio selected
    then
    single server name--myserver
    server listner address---????????? please tell me
    server listening port 7001
    ssl listnening port 7002
    username bala
    password subramaniam
    verify password subramaniam
    c:\bea\user_projects\CIBC
    configure database mail--
    email address- [email protected]
    email host: what need to give ??????? please tell me----
    after I created domain called CBC it is in the
    c:\bea\user_projects\CBC
    then I saw it consists
    1)wlai folder
    2)dbinfo
    3)application
    4)keys
    5)scripts
    setdatabase.cmd
    startweblogic.cmd
    startmanagedweblogic.cmd
    setwlidomaindata.cmd
    wliconfig.cmd
    checkdomain.cmd
    Wliconfig.jar
    startweblogic.cmd
    stopweblogic.cmd
    I try to startweblogic.cmd it open and closed no action
    please tell me what is the problem????????????
    with regards
    bala

        Oh boy! Let me see what's going on. Are you using the VZW Cloud or the BUA app? Please try downloading the VZW Cloud app if you dont already have it. And once downloaded. Tap the 3 bars in the upper corner and go down to "TOOLS", then tap "RESTORE CONTENT". That should do it!
    VanetrisC_VZW 
    Follow us on Twitter @VZWSupport

  • A toolbar called Searchqu got installed in my web browsers.I uninstalled Mozilla Firefox without removing the toolbar and it stopped working saying that can't connect to the server.I uninstalled and installed Firefox but it isn't working.

    A toolbar called Searchqu got installed in my web browsers.I uninstalled Mozilla Firefox without removing the toolbar and it stopped working saying that can’t connect to the server.I uninstalled and installed Firefox but it isn’t working.

    See this thread for potential ways of removing Searchqu from your system: https://support.mozilla.com/en-US/questions/790833

  • Server, thread and limited connexions

    I use this code for my server. I got it from the book "Java thread" written by Scott Oaks and Henry Wong" and edited by O'Reilly.
    This code works very good. I just want to implement a limited allowed connexions at a same time (ie 20 or 30 connexions possible at a same time).
    I think a simple count of the created threads isn't enougth because i can't figure out how to decrease it. I was thinking using thread pool and counting the threads inside, so that i know exactly how many connexions are opened.
    Any advice about this is welcome.
    Here is the code :
    import java.net.*;
    import java.io.*;
    public class TCPServer implements Cloneable, Runnable
        Thread runner = null;
        ServerSocket server = null;
        Socket data = null;
        boolean ShouldStop = false;
        public synchronized void startServer(int port) throws IOException
            if(runner == null)
                server = new ServerSocket(port);
                runner = new Thread(this);
                runner.start();
        public synchronized void stopServer()
            if(server != null)
                ShouldStop = true;
                runner.interrupt();
                runner = null;
                try
                    server.close();
                catch(IOException ioe)
                    //ioe.printStackTrace();
                server = null;
        public void run()
            if(server != null)
                while(!ShouldStop)
                    try
                        Socket datasocket = server.accept();
                        TCPServer newSocket = (TCPServer) clone();
                        newSocket.server = null;
                        newSocket.data = datasocket;
                        newSocket.runner = new Thread(newSocket);
                        newSocket.runner.start();
                    catch(Exception e)
            else
                run(data);
        public void run(Socket data)
    }This class is used to implement the server. A derivated class is used to treat the connexion. I wish to implement the counter in this class if possible.
    In advance thanks.

    To define the maximum allowed connections, use this constructor for ServerSocket
    public ServerSocket(int port, int backlog)Backlog being the maximum allowed connections at a time. Any aditional connection attempts will be rejected.
    public class TCPServer implements Cloneable, Runnable{
        Thread runner = null;
        ServerSocket server = null;
        Socket data = null;
        boolean ShouldStop = false;
        private final int MAXIMUM_CONNECTIONS = 20; //or 30 or whatever you want your maximum to be
            public synchronized void startServer(int port) throws IOException {
            if(runner == null) {
                server = new ServerSocket(port, MAXIMUM_CONNECTIONS);
                runner = new Thread(this);
                runner.start();
        public synchronized void stopServer()    {
            //.......etc
    }

  • Dispatcher running but unable to connect to message server

    Hi all,
    I have installed ECC 6.0 EHP 4 on MAXDB 7.7.
    After doing post steps and installing license I did local client copy, client copy stuck in between and I noticed that session hanged so I opened a new session and found that I was not able to run and t-code and and unable to login to the server although login screen appears( Login process continues but no result).
    I realized the data or log directory may be filled up, so I checked and that was not the issue.
    So I restarted the Server.
    Now I am unable to see the login screen too and in SAP MMC dispatcher is yellow "Running but not connected to message server".
    R3trans result is below
    R3trans -d
    2EETW169 no connect possible: "DBMS = ADABAS D                         --- DBNAME = ''"
    r3trans finished (0012)
    I am new to MAXDB database.
    I installed database manager and checked the data folder status and find there is enough free space but log directory is 100% so i created new volume for log directory (not sure if any thing else is required to activate it, asl its still showing log directory 100% usage).
    dev_ms log is as below
    trc file: "dev_ms", trc level: 1, release: "701"
    [Thr 2632] Wed Sep 29 16:26:35 2010
    [Thr 2632] MsSSetTrcLog: trc logging active, max size = 20971520 bytes
    systemid   562 (PC with Windows NT)
    relno      7010
    patchlevel 0
    patchno    11
    intno      20020600
    make:      multithreaded, Unicode, 64 bit, optimized
    pid        2788
    [Thr 2632] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 2788) [msxxserv.c   1853]
    [Thr 2632] load acl file = D:\usr\sap\DEV\SYS\global\ms_acl_info.DAT
    [Thr 2632] MsGetOwnIpAddr: my host addresses are :
    [Thr 2632]   1 : [192.168.1.4] raddev (HOSTNAME)
    [Thr 2632]   2 : [127.0.0.1] raddev (LOCALHOST)
    [Thr 2632] MsHttpInit: full qualified hostname = raddev
    [Thr 2632] HTTP logging is switch off
    [Thr 2632] set HTTP state to LISTEN
    [Thr 2632] ms/icf_info_server : deleted
    [Thr 2632] *** I listen to port sapmsDEV (3600) ***
    [Thr 2632] *** I listen to internal port 3900 (3900) ***
    [Thr 2632] *** HTTP port 8100 state LISTEN ***
    [Thr 2632] CUSTOMER KEY: >W0104018144<
    [Thr 2632] build version=701.2008.03.06
    [Thr 2632] Wed Sep 29 16:37:07 2010
    [Thr 2632] *** ERROR => MsSCheckConnections: no response from client C1 (raddev_DEV_00) after 300 secs received [msxxserv.c   3205]
    [Thr 2632] *** ERROR => MsSCheckConnections: disconnect now [192.168.1.4] [msxxserv.c   3209]
    please reply...
    Regards
    Vinay

    Hi Sunil,
    Here is the trans.log
    4 ETW000 r3trans version 6.14 (release 701 - 26.01.09 - 12:46:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 06.10.2010 - 14:11:50
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: r3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Wed Oct 06 14:11:50 2010                            5087  0.005087
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    40  0.005127
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                           6818  0.011945
    4 ETW000  [dev trc     ,00000]  Loading DB library 'dbsdbslib.dll' ...                45  0.011990
    4 ETW000  [dev trc     ,00000]  load shared library (dbsdbslib.dll), hdl 0, addr 0000000186C80000
    4 ETW000                                                                           59114  0.071104
    4 ETW000  [dev trc     ,00000]      using "D:\usr\sap\DEV\SYS\exe\uc\NTAMD64\dbsdbslib.dll"
    4 ETW000                                                                              21  0.071125
    4 ETW000  [dev trc     ,00000]  Library 'dbsdbslib.dll' loaded                        17  0.071142
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library dbsdbslib.dll
    4 ETW000                                                                            9745  0.080887
    4 ETW000  [dev trc     ,00000]  Wed Oct 06 14:11:51 2010                            3372  0.084259
    4 ETW000  [dev trc     ,00000]  Version of 'dbsdbslib.dll' is "700.08", patchlevel (0.24)
    4 ETW000                                                                              20  0.084279
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library dbsdbslib.dll
    4 ETW000                                                                              22  0.084301
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library dbsdbslib.dll
    4 ETW000                                                                             229  0.084530
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                               455  0.084985
    4 ETW000  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=-1,command=39,arg_p=0000000000000000)
    4 ETW000                                                                              27  0.085012
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                               189  0.085201
    4 ETW000  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=-1,command=10,arg_p=000000000202F950)
    4 ETW000                                                                              26  0.085227
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                14  0.085241
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              15  0.085256
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              36  0.085292
    4 ETW000  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=-1,command=10,arg_p=0000000141461DE8)
    4 ETW000                                                                              34  0.085326
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                14  0.085340
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         16  0.085356
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              20  0.085376
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              40  0.085416
    4 ETW000  [dev trc     ,00000]  { DbSlSdbConnect(con_info_p=0000000000000000)         26  0.085442
    4 ETW000  [dev trc     ,00000]  DBSDBSLIB : version 700.08, patch 0.024 (Make PL 0.32)
    4 ETW000                                                                             490  0.085932
    4 ETW000  [dev trc     ,00000]  MAXDB shared library (dbsdbslib) patchlevels (last 10)
    4 ETW000                                                                              23  0.085955
    4 ETW000  [dev trc     ,00000]    (0.024) Default value for max. input variables is 2000 (note 655018)
    4 ETW000                                                                              25  0.085980
    4 ETW000  [dev trc     ,00000]    (0.024) Profile parameter to define max. input variables (note 655018)
    4 ETW000                                                                              23  0.086003
    4 ETW000  [dev trc     ,00000]    (0.024) Switch SQLMODE after CREATE INDEX SERIAL (note 1267841)
    4 ETW000                                                                              23  0.086026
    4 ETW000  [dev trc     ,00000]    (0.024) Input parameters for SQL statements increased (note 655018)
    4 ETW000                                                                              23  0.086049
    4 ETW000  [dev trc     ,00000]    (0.018) Create index serial for MaxDB 7.6 (note 1267841)
    4 ETW000                                                                              21  0.086070
    4 ETW000  [dev trc     ,00000]    (0.018) More trace in case of packed to string conversion error (note 1262799)
    4 ETW000                                                                              24  0.086094
    4 ETW000  [dev trc     ,00000]    (0.016) R3trans export aborts with signal 6 (note 1262245)
    4 ETW000                                                                              22  0.086116
    4 ETW000  [dev trc     ,00000]    (0.009) IA64 alignment errors (note 1245982)        15  0.086131
    4 ETW000  [dev trc     ,00000]    (0.007) Support DB-Type 'SAP DB' by UPDSTAT (note 1225668)
    4 ETW000                                                                              23  0.086154
    4 ETW000  [dev trc     ,00000]                                                        12  0.086166
    4 ETW000  [dev trc     ,00000]   -> init()                                           180  0.086346
    4 ETW000  [dev trc     ,00000]   -> sdb_malloc(size=14) : 0000000002678000 (30 bytes allocated)
    4 ETW000                                                                              45  0.086391
    4 ETW000  [dev trc     ,00000]    STATEMENT_CACHE_SIZE = 1000                        466  0.086857
    4 ETW000  [dev trc     ,00000]   -> sdb_malloc(size=152000) : 0000000003E1CFD0 (152046 bytes allocated)
    4 ETW000                                                                             198  0.087055
    4 ETW000  [dev trc     ,00000]   -> sdb_malloc(size=656000) : 0000000003E421B0 (808062 bytes allocated)
    4 ETW000                                                                              30  0.087085
    4 ETW000  [dev trc     ,00000]   -> sdb_malloc(size=288000) : 0000000004E00080 (1096078 bytes allocated)
    4 ETW000                                                                              37  0.087122
    4 ETW000  [dev trc     ,00000]   -> sdb_malloc(size=16144) : 0000000003EE2450 (1112238 bytes allocated)
    4 ETW000                                                                              30  0.087152
    4 ETW000  [dev trc     ,00000]   -> sdb_malloc(size=32048) : 0000000003EE6380 (1144302 bytes allocated)
    4 ETW000                                                                              29  0.087181
    4 ETW000  [dev trc     ,00000]   -> loadClientRuntime()                              515  0.087696
    4 ETW000  [dev trc     ,00000]  Loading SQLDBC client runtime ...                     18  0.087714
    4 ETW000  [dev trc     ,00000]  SQLDBC SDK Version : SQLDBC.H  7.6.0    BUILD 007-123-091-175
    4 ETW000                                                                            6587  0.094301
    4 ETW000  [dev trc     ,00000]  SQLDBC Library Version : libSQLDBC 7.6.5    BUILD 015-123-202-938
    4 ETW000                                                                              55  0.094356
    4 ETW000  [dev trc     ,00000]  SQLDBC client runtime is MaxDB 7.6.5.015 CL 202938
    4 ETW000                                                                             302  0.094658
    4 ETW000  [dev trc     ,00000]  SQLDBC supports new DECIMAL interface : 0            253  0.094911
    4 ETW000  [dev trc     ,00000]  SQLDBC supports VARIABLE INPUT data   : 1             17  0.094928
    4 ETW000  [dev trc     ,00000]  SQLDBC supports keepAlive indicator   : 0             16  0.094944
    4 ETW000  [dev trc     ,00000]   -> getNewConnection()                                14  0.094958
    4 ETW000  [dev trc     ,00000]   -> sdb_malloc(size=1672) : 0000000004E46750 (1145990 bytes allocated)
    4 ETW000                                                                              36  0.094994
    4 ETW000  [dev trc     ,00000]   -> sdb_malloc(size=608) : 0000000004E4ADF0 (1146614 bytes allocated)
    4 ETW000                                                                              53  0.095047
    4 ETW000  [dev trc     ,00000]   <- getNewConnection(con_hdl=0)                       44  0.095091
    4 ETW000  [dev trc     ,00000]   -> checkEnvironment(con_hdl=0)                       22  0.095113
    4 ETW000  [dev trc     ,00000]   -> connect()                                        200  0.095313
    4 ETW000  [dev trc     ,00000]  INFO : SQLOPT= -I 0 -t 0 -S SAPR3                     62  0.095375
    4 ETW000  [dev trc     ,00000]  Try to connect (DEFAULT) on connection 0 ...          63  0.095438
    4 ETW000  [dbsdbsql    ,00000]  *** ERROR => Connect to database failed, rc = -10709 (Connection failed (RTE:[1] could not create comm. shared memory [5]))
    4 ETW000                                                                          106621  0.202059
    4 ETW000  [dev trc     ,00000]   -> SetSapdbCA(errcode=-10709)                        20  0.202079
    4 ETW000  [dev trc     ,00000]   -> freeConnection(con_hdl=0)                         20  0.202099
    4 ETW000  [dev trc     ,00000]   -> sdb_free(p=0000000004E4ADF0, size=608 (1145990 bytes allocated))
    4 ETW000                                                                              48  0.202147
    4 ETW000  [dev trc     ,00000]   -> sdb_free(p=0000000004E46750, size=1672 (1144302 bytes allocated))
    4 ETW000                                                                              44  0.202191
    4 ETW000  [dev trc     ,00000]  } DbSlSdbConnect(rc=99)                               17  0.202208
    4 ETW000  [dblink      ,00431]  ***LOG BY2=>sql error -10709 performing CON [dblink#3 @ 431]
    4 ETW000                                                                            8805  0.211013
    4 ETW000  [dblink      ,00431]  ***LOG BY0=>Connection failed (RTE:[1] could not create comm. shared memory [5]) [dblink#3 @ 431]
    4 ETW000                                                                              29  0.211042
    4 ETW000  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=0,command=41,arg_p=0000000140519908)
    4 ETW000                                                                             315  0.211357
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                19  0.211376
    4 ETW000  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=0,command=14,arg_p=0000000002025EF0)
    4 ETW000                                                                              24  0.211400
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                14  0.211414
    4 ETW000  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=0,command=50,arg_p=0000000002025FB0)
    4 ETW000                                                                              24  0.211438
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                24  0.211462
    4 ETW000  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=0,command=13,arg_p=0000000002025F00)
    4 ETW000                                                                              24  0.211486
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                19  0.211505
    4 ETW000  [dev trc     ,00000]  { DbSlSdbControl(con_hdl=0,command=52,arg_p=0000000002025F50)
    4 ETW000                                                                              24  0.211529
    4 ETW000  [dev trc     ,00000]  } DbSlSdbControl(rc=0)                                13  0.211542
    2EETW169 no connect possible: "DBMS = ADABAS D                         --- DBNAME = ''"
    4 ETW000  [dev trc     ,00000]   -> sdb_free(p=0000000002678000, size=14 (1144272 bytes allocated))
    4 ETW000                                                                           10444  0.221986
    Regards
    Vinay

  • TS1702 Hello, we have a Mac and an ipad,the Mac is working and wifi is on and the Ipad's wifi is on too, but Ipad Safari can not open because it could not connect to the server, does any one know what have happened?

    Hello, we have a Mac and an ipad, the Mac is working and wifi is on and the ipad's wifi is on too, but Ipad Safari can not open the page because it could not connect to the server, does any one know that?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are drooping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    iPad: Issues connecting to Wi-Fi networks
    http://support.apple.com/kb/ts3304
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    10 Ways to Boost Your Wireless Signal
    http://www.pcmag.com/article2/0,2817,2372811,00.asp
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

Maybe you are looking for