Database connection is not closing in the database pool

Hi,
i am using tomcat 6.0 and mysql 5.0 database server
and implementing the DBCP in my application
and my context.xml is this
<Resource name="jdbc/racecourse" auth="Container" type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
maxActive="200" maxIdle="10" maxWait="1000" removeAbandoned="true" removeAbandonedTimeout="300" logAbandoned="true"
username="betting" password="race" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/betting?autoReconnect=true"
description="race"/>
My problem is the connections in the mysql server are becoming idle instead of closing . due to this i am getting connection error 
please help me how to slove this error
try { DataSource ds = null;     Context context = new InitialContext(); Context envCtx = (Context) context.lookup("java:comp/env"); ds =  (DataSource)envCtx.lookup("jdbc/racecourse"); if (ds != null) { cons = ds.getConnection(); } String query3="select max(meetingdate) from meeting"; Statement st3= cons.createStatement(); ResultSet rs3=st3.executeQuery(query3); String srno45=""; while(rs3.next()) {   srno45=rs3.getString(1); } String query="select callcount from callcounter where dateofrace='"+srno45+"'"; Statement stat = cons.createStatement(); ResultSet rs =stat.executeQuery(query); String a=""; int i=1; String cc1="1"; while(rs.next()) { a=rs.getString(1); i=Integer.parseInt(a); //Integer b=new Integer(i); i++; cc1=Integer.toString(i); } session.setAttribute("b123",cc1); String query1="update callcounter set callcount='"+cc1+"' where dateofrace='"+srno45+"'"; Statement stat1 = cons.createStatement(); stat1.executeUpdate(query1); cons.close(); } catch(Exception e) { out.println("saleaction"+e); } finally { try {           if (cons != null)             cons.close();         } catch (SQLException e3) { System.out.println("saleaction"+e3); } } }

i am declaring on the top of the try block
connection cons=null;
try
          DataSource ds = null;
           Context context = new InitialContext();
            Context envCtx = (Context) context.lookup("java:comp/env");
            ds =  (DataSource)envCtx.lookup("jdbc/racecourse");
           if (ds != null)
                     cons = ds.getConnection();
           String query3="select max(meetingdate) from meeting";
           Statement st3= cons.createStatement();
           ResultSet rs3=st3.executeQuery(query3);
           String srno45="";
           while(rs3.next())
            srno45=rs3.getString(1);
          String query="select callcount from callcounter where dateofrace='"+srno45+"'";
          Statement stat = cons.createStatement();
           ResultSet rs =stat.executeQuery(query);
          String a="";
          int i=1;
          String cc1="1";               
               while(rs.next())
                a=rs.getString(1);
                i=Integer.parseInt(a);
                //Integer b=new Integer(i);
                i++;
                cc1=Integer.toString(i);
               session.setAttribute("b123",cc1);
               String query1="update callcounter set callcount='"+cc1+"' where dateofrace='"+srno45+"'";
          Statement stat1 = cons.createStatement();
          stat1.executeUpdate(query1);
          cons.close();
          catch(Exception e)
          out.println("saleaction"+e);
     finally
          try {
          if (cons != null)
            cons.close();
        } catch (SQLException e3)
               System.out.println("saleaction"+e3);
     }

Similar Messages

  • Connection not closed in the database server end

    Hi,
    Our database server (sql server 2000) and java application are running in two different boxes. Because the java application sent to the db server quite a few queries that can not be completed (applications hangs there) due to huge amount of data (18 million records in one table and 1 million records in another table and there are joins among the three tables), we stopped the java program. However, in the db server end, the connections associated with these problem queries were not closed although the java app end already closed these connections by calling connection.close(). When this happened, we have to manually close the connection from sql server enterprise manager.
    Here are the questions.
    1)what could be the reason why db server does not close the connection?
    2)Is there any solution in the java end that could close the connection in the db server end when this situation happens? I say this situation happens, I mean in most cases when java application closes connection, db server closes connections in its end too.
    Thanks
    Mark

    mark.lin wrote:
    Thanks for your answers and questions.
    Here are the answers to your questions
    1)The jdbc driver is jturboJTurbo? Never heard of it. You mean this?
    http://www.newatlanta.com/products/jturbo/index.jsp
    Why pay for something when you have two options available that are free? One of them is from Microsoft itself. Whose idea was this?
    2)It's a desk top application.
    It seems to me that it should not be driver issue. I was this happened the Microsoft's own jdbc driver. By jdbc specification, although you don't close the connection explicitly in the program, the connection will be automatically closed in the java app end during garbage collection. Very bad - never depend on this. Always close your ResultSet, Statement, and Connection in reverse order of opening in a finally block, each one wrapped in individual try/catch blocks.
    One should never, ever depend on the GC to take care of resources like database connections or resource handles. Those should be cleaned up by your code.
    I tested this by intentionally not closing a connection. When I stops the application, the connection in the sql server end was also closed.
    But if you don't close the application and fail to close connections, you can see where eventually you'll exhaust the pool.
    It seems to me this is a sql server issue rather than a jdbc driver issue. I need way to prove this.
    Like I suggested, it's easy to swap in the jTDS driver and try it again. What do you have to lose?
    Or call Microsoft support and ask them. Or maybe JTurbo. You're paying for it - might as well use the support.
    %

  • TcpListener not working on Azure: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host

    Hi Everybody,
    i'm playing a little bit with Windows Azure and I'm blocked with a really simple issue (or maybe not).
    I've created a Cloud Service containing one simple Worker Role. I've configured an EndPoint in the WorkerRole configuration, which allows Input connections via tcp on port 10100.
    Here the ServiceDefinition.csdef file content:
    <?xml version="1.0" encoding="utf-8"?>
    <ServiceDefinition name="EmacCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2014-01.2.3">
    <WorkerRole name="TcpListenerWorkerRole" vmsize="Small">
    <Imports>
    <Import moduleName="Diagnostics" />
    <Import moduleName="RemoteAccess" />
    <Import moduleName="RemoteForwarder" />
    </Imports>
    <Endpoints>
    <InputEndpoint name="Endpoint1" protocol="tcp" port="10100" />
    </Endpoints>
    </WorkerRole>
    </ServiceDefinition>
    This WorkerRole is just creating a TcpListener object listening to the configured port (using the RoleEnvironment instance) and waits for an incoming connection. It receives a message and returns a hardcoded message (see code snippet below).
    namespace TcpListenerWorkerRole
    using System;
    using System.Net;
    using Microsoft.WindowsAzure.ServiceRuntime;
    using System.Net.Sockets;
    using System.Text;
    using Roche.Emac.Infrastructure;
    using System.IO;
    using System.Threading.Tasks;
    using Microsoft.WindowsAzure.Diagnostics;
    using System.Linq;
    public class WorkerRole : RoleEntryPoint
    public override void Run()
    // This is a sample worker implementation. Replace with your logic.
    LoggingProvider.Logger.Info("TcpListenerWorkerRole entry point called");
    TcpListener listener = null;
    try
    listener = new TcpListener(RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    LoggingProvider.Logger.Info(string.Format("TcpListener started at '{0}:{1}'", RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Address, RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Port));
    catch (SocketException ex)
    LoggingProvider.Logger.Exception("Unexpected exception while creating the TcpListener", ex);
    return;
    while (true)
    Task.Run(async () =>
    TcpClient client = await listener.AcceptTcpClientAsync();
    LoggingProvider.Logger.Info(string.Format("Client connected. Address='{0}'", client.Client.RemoteEndPoint.ToString()));
    NetworkStream networkStream = client.GetStream();
    StreamReader reader = new StreamReader(networkStream);
    StreamWriter writer = new StreamWriter(networkStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    while (true)
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    LoggingProvider.Logger.Info("This is what the host sent to you: " + input+". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    break;
    catch (Exception ex)
    LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    break;
    }).Wait();
    public override bool OnStart()
    // Set the maximum number of concurrent connections
    ServicePointManager.DefaultConnectionLimit = 12;
    DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
    RoleEnvironment.Changing += RoleEnvironment_Changing;
    return base.OnStart();
    private void RoleEnvironment_Changing(object sender, RoleEnvironmentChangingEventArgs e)
    // If a configuration setting is changing
    LoggingProvider.Logger.Info("RoleEnvironment is changing....");
    if (e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange))
    // Set e.Cancel to true to restart this role instance
    e.Cancel = true;
    As you can see, nothing special is being done. I've used the RoleEnvironment.CurrentRoleInstance.InstanceEndpoints to retrieve the current IPEndpoint.
    Running the Cloud Service in the Windows Azure Compute Emulator everything works fine, but when I deploy it in Azure, then I receive the following Exception:
    2014-08-06 14:55:23,816 [Role Start Thread] INFO EMAC Log - TcpListenerWorkerRole entry point called
    2014-08-06 14:55:24,145 [Role Start Thread] INFO EMAC Log - TcpListener started at '100.74.10.55:10100'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Client connected. Address='196.3.50.254:51934'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Buffer size: 65536
    2014-08-06 15:06:45,491 [9] FATAL EMAC Log - Unexpected exception while Reading the request
    System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    --- End of inner exception stack trace ---
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    at TcpListenerWorkerRole.WorkerRole.<>c__DisplayClass0.<<Run>b__2>d__0.MoveNext() in C:\Work\Own projects\EMAC\AzureCloudEmac\TcpListenerWorkerRole\WorkerRole.cs:line 60
    I've already tried to configure an internal port in the ServiceDefinition.csdef file, but I get the same exception there.
    As you can see, the client can connect to the service (the log shows the message: Client connected with the address) but when it tries to read the bytes from the stream, it throws the exception.
    For me it seems like Azure is preventing the retrieval of the message. I've tried to disable the Firewall in the VM in Azure and the same continues happening.
    I'm using Windows Azure SDK 2.3
    Any help will be very very welcome!
    Thanks in advance!
    Javier
    En caso de que la respuesta te sirva, porfavor, márcala como válida
    Muchas gracias y suerte!
    Javier Jiménez Roda
    Blog: http://jimenezroda.wordpress.com

    hi Javier,
    I changed your code like this:
    private AutoResetEvent connectionWaitHandle = new AutoResetEvent(false);
    public override void Run()
    TcpListener listener = null;
    try
    listener = new TcpListener(
    RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    catch (SocketException se)
    return;
    while (true)
    IAsyncResult result = listener.BeginAcceptTcpClient(HandleAsyncConnection, listener);
    connectionWaitHandle.WaitOne();
    The HandleAsync method is your "While (true)" code:
    private void HandleAsyncConnection(IAsyncResult result)
    TcpListener listener = (TcpListener)result.AsyncState;
    TcpClient client = listener.EndAcceptTcpClient(result);
    connectionWaitHandle.Set();
    NetworkStream netStream = client.GetStream();
    StreamReader reader = new StreamReader(netStream);
    StreamWriter writer = new StreamWriter(netStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    // LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    // LoggingProvider.Logger.Info("This is what the host sent to you: " + input + ". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    // LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    catch (Exception ex)
    //LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    Please try it. For this error message, I suggest you could refer to this thread (http://stackoverflow.com/questions/6173763/using-windows-azure-to-use-as-a-tcp-server
    ) and this post (http://stackoverflow.com/a/5420788).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Argument "10.2.8.39 c/ 1435.Process" for option "connection" is not valid. The command line parameters are invalid.

    Hello,
    I am running a sql job which runs SSIs pakcage imported from Integration Service Sever..
    it give me this error.... the server is :10.2.8.39 and the database is process
    how can I fix It? 

    Hello Arthux ,, thx alot for your help,,, I run the job again and this time it gives me this error ??
    Date,Source,Severity,Step ID,Server,Job Name,Step Name,Notifications,Message,Duration,Sql Severity,Sql Message ID,Operator Emailed,Operator Net sent,Operator Paged,Retries Attempted
    11/28/2011 13:58:09,SSISScoreCardsSDM,Error,0,OPLINKDEVINTRA\OPLINKDEVINTRA,SSISScoreCardsSDM,(Job outcome),,The job failed.  The Job was invoked by User LINKDOTNET\michael.philip.  The last step to run was step 1 (SDM).,00:00:01,0,0,,,,0
    11/28/2011 13:58:10,SSISScoreCardsSDM,Error,1,OPLINKDEVINTRA\OPLINKDEVINTRA,SSISScoreCardsSDM,SDM,,Executed as user: LINKDEV\OPSQLADMIN. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.1600.1 for 64-bit  Copyright (C) Microsoft
    Corporation 2010. All rights reserved.    Option "    /CONNECTION" is not valid.  The command line parameters are invalid.  The step failed.,00:00:00,0,0,,,,0

  • The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator.

    Hi,
    I'm not able to access the term store. I get an below mentioned error.
    "The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator. "
    Since this is happening on my local machine (Dev environment). I have full control on the term store and the all the site collections.
    Hence, this is not a permission issue.
    I have checked, the Metadata service is active on the machine. All the application pools in IIS is running.
    After reading one of the recommendation on internet, I created a new Managed Metadata Service.
    After which I was able access both (old and new) MMS from Central Admin only (highlight the MMS from manage service applications and click Manage ) and not from the site collection (term store management).
    Now again its not working after I did an IISRESET.
    The managed metadata service (Managed Metadata Service Connection) is grayed out.
    ULS Error says:
    Failed to create ManageLink for service proxy 'Managed Metadata Service'. Exception: System.TimeoutException: The request channel timed out attempting to send after 00:00:09.9999999. Increase the timeout value passed to the call to Request or increase the SendTimeout
    value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: The HTTP request to 'http://mitkar4:32843/7a91ec90b46843e995c144be48d804f0/MetadataWebService.svc' has exceeded the allotted
    timeout of 00:00:09.9990000. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out 
    Please let me know if you need more information.

    Hi Victoria,
    Thanks for your reply
    I tried making all the changes you had recommended and which are mentioned in the link you have provided.
    I tried making all possible combination of changes to the web.config and client.config files but it does not make any difference to the environment.
    One thing is that, my error in ULS logs has changed.
    Error 1: 
    Exception returned from back end service. System.TimeoutException: The request channel timed out attempting to send after 00:00:09.9999999. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted
    to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: The HTTP request to 'http://mitkar4:32843/b1640facdf8b49b0886fea1bd37b8eb3/MetadataWebService.svc' has exceeded the allotted timeout of 00:00:09.9990000. The time
    allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out 
        at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) 
        at System.Net.HttpWebRequest.GetRequestStream() 
        at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()     --- End of inner exception stack trace --- 
        at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream() 
        at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout) 
        at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout) 
        at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)     --- End of inner exception stack trace ---    Server stack trace:  
        at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) 
        at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)     at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) 
        at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) 
        at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 
        at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)    Exception rethrown at [0]:  
        at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 
        at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 
        at Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication.GetServiceSettings(Guid rawPartitionId) 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.<>c__DisplayClass2f.<ReadApplicationSettings>b__2e(IMetadataWebServiceApplication serviceApplication) 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.<>c__DisplayClass2c.<RunOnChannel>b__2b()
    Error 2:
    Error encountered in background cache check System.TimeoutException: The request channel timed out attempting to send after 00:00:09.9999999. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time
    allotted to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: The HTTP request to 'http://mitkar4:32843/b1640facdf8b49b0886fea1bd37b8eb3/MetadataWebService.svc' has exceeded the allotted timeout of 00:00:09.9990000.
    The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out 
        at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) 
        at System.Net.HttpWebRequest.GetRequestStream() 
        at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()     --- End of inner exception stack trace --- 
        at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream() 
        at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout) 
        at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout) 
        at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)     --- End of inner exception stack trace ---    Server stack trace:  
        at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) 
        at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)     at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) 
        at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) 
        at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 
        at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)    Exception rethrown at [0]:  
        at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 
        at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 
        at Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication.GetServiceSettings(Guid rawPartitionId) 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.<>c__DisplayClass2f.<ReadApplicationSettings>b__2e(IMetadataWebServiceApplication serviceApplication) 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.<>c__DisplayClass2c.<RunOnChannel>b__2b() 
        at Microsoft.Office.Server.Security.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.<>c__DisplayClass2c.<RunOnChannel>b__2a() 
        at Microsoft.Office.Server.Utilities.MonitoredScopeWrapper.RunWithMonitoredScope(Action code) 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.RunOnChannel(CodeToRun codeToRun, Double operationTimeoutFactor) 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.ReadApplicationSettings(Guid rawPartitionId) 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.get_ServiceApplicationSettings() 
        at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy.TimeToCheckForUpdates() 
        at Microsoft.SharePoint.Taxonomy.Internal.TaxonomyCache.CheckForChanges() 
        at Microsoft.SharePoint.Taxonomy.Internal.TaxonomyCache.<LoopForChanges>b__0().

  • The client connection is not allowed on the internal edge of the Access Edge Server

    We are trying to setup Lync 2013 Edge Server, we have a setup as described below
    Real IPs for Lync Edge/WebConf/AV
    NAT of real IPs through Firewall Juniper to FE IP
    Topology with NAT (Firewall IP) IP enabled
    Certificates for with SAN for sip.acme.com etc (Both certs are Client Server Auth Templates from Internal MS CA)(Trusted) on Edge
    Route  192.215.0.0 255.255.255.0 gateway (=firewall internal ip address)
    But when external user connects and we are tracing the connection we are getting below error and lync client is 
    not able to connect.
    TL_INFO(TF_CONNECTION) [1]0AD8.0C30::09/07/2014-08:11:13.091.0000000f
    (SIPStack,SIPAdminLog::WriteConnectionEvent:SIPAdminLog.cpp(454))[4150361027] $$begin_recordSeverity: information
    Text: TLS negotiation started
    Local-IP: 192.215.0.xxx:5061 (Edge IP)
    Peer-IP: 192.215.0.xxx:1835 (Firewall IP)
    Connection-ID: 0x1100
    Transport: TLS 
    $$end_record
    TL_ERROR(TF_CONNECTION) [0]0AD8.0638::09/07/2014-08:12:45.279.0000005d (SIPStack,SIPAdminLog::WriteConnectionEvent:SIPAdminLog.cpp(389))[4150360514] $$begin_record
    Severity: error
    Text: The client connection is not allowed on the internal edge of the Access Edge Server
    Peer-IP: 192.xxx.0.xxx:1322 (firewall ip)
    Transport: TLS
    Result-Code: 0xc3e93d6b SIPPROXY_E_CONNECTION_INTERNAL_FROM_CLIENT
    $$end_record

    Hi pshetty,
    Check the following blog to deploy your Edge Server:
    http://jsilverdrake.blogspot.se/2012/04/publishing-lync-with-forefront-tmg-part_25.html
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    You need to create persistent static routes on the internal interface to all internal networks.
    Regards,
    Lisa Zheng
    Lisa Zheng
    TechNet Community Support

  • XA resource [weblogic.jdbc.jts.Connection] has not responded in the last 120 second(s).

    I frequently encounter this problem: The application calls long-lasting stored
    procedure on Sybase which located in another country. Sometimes, WL 6.1 get stuck
    just and log the message "XA resource [weblogic.jdbc.jts.Connection] has not responded
    in the last 120 second(s)."
    Questions:
    Does increasing thread count help? Default is 15. Is 30 or larger OK?
    Can anybody share their experience on this matter?
    Detailed log messages in weblogic.log are follows:
    ####<Apr 21, 2003 5:03:48 PM GMT+08:00> <Warning> <JTA> <hkxp0032> <myserver>
    <Thread-0> <> <> <110030> <XA resource [weblogic.jdbc.jts.Connection] has not
    responded in the last 120 second(s).>
    ####<Apr 21, 2003 5:33:51 PM GMT+08:00> <Info> <JTA> <hkxp0032> <myserver> <Thread-0>
    <> <> <110207> <Previously unavailable XA resource [weblogic.jdbc.jts.Connection]
    is now available.>
    ####<Apr 21, 2003 5:33:56 PM GMT+08:00> <Warning> <JTA> <hkxp0032> <myserver>
    <Thread-0> <> <> <110030> <XA resource [weblogic.jdbc.jts.Connection] has not
    responded in the last 120 second(s).>

    Andrew Ng wrote:
    I frequently encounter this problem: The application calls long-lasting stored
    procedure on Sybase which located in another country. Sometimes, WL 6.1 get stuck
    just and log the message "XA resource [weblogic.jdbc.jts.Connection] has not responded
    in the last 120 second(s)."
    Questions:
    Does increasing thread count help? Default is 15. Is 30 or larger OK?Increasing thread count isn't going to help. The local server is just waiting for the
    remote system to respond.
    >
    Can anybody share their experience on this matter?
    Detailed log messages in weblogic.log are follows:
    ####<Apr 21, 2003 5:03:48 PM GMT+08:00> <Warning> <JTA> <hkxp0032> <myserver>
    <Thread-0> <> <> <110030> <XA resource [weblogic.jdbc.jts.Connection] has not
    responded in the last 120 second(s).>
    ####<Apr 21, 2003 5:33:51 PM GMT+08:00> <Info> <JTA> <hkxp0032> <myserver> <Thread-0>
    <> <> <110207> <Previously unavailable XA resource [weblogic.jdbc.jts.Connection]
    is now available.>
    ####<Apr 21, 2003 5:33:56 PM GMT+08:00> <Warning> <JTA> <hkxp0032> <myserver>
    <Thread-0> <> <> <110030> <XA resource [weblogic.jdbc.jts.Connection] has not
    responded in the last 120 second(s).>

  • Actiance Vantage server duplicates the IM details and both Active Active Vantage servers connection is not established at the same time

    Hello
    Issue with the Actiance Vantage server.
    Env: Lync 2010 Server , Vatage servers - 2 active , 1 passive
    Commn: FE contacts HLB to reach Vantage servers
    Recently we have added one vantage servers to the lync environment and made two vantage servers as Active.
    After adding 3rd vantage servers and made two vantage servers as active , we are seeing the following behaviours:
    1) archived messages are duplicated with different transcripts ID
    2) Two active servers connections were not established at the same time. Only one is active at all times. There is four front end servers.
    Request for suggestions.

    Hi,
    Did you receive any error message?
    Please disable the third Vantage server and test again.
    Please check if all services started for all FE servers and Vantage servers.
    You can enable logging on FE servers for further troubleshooting.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • This User Profile Application's connection is currently not available. The Application pool or user profile service may not have been started

    Hi, we had installed SharePoint Service Pack 1 (SP1). And now the user profile service application is not available. Getting this
    Error "This User Profile Application’s connection is currently not available. The Application pool or user profile service may not have been started".
    How to troubleshoot the issue anh help/thoughts will be appreciated

    Not sure, if this will help, but in my case all of my services were up and running (including app pools) and also IISRESET did not help. So at that point, looking at the error message, I assumed that there is something wrong with the app pool (or app pool
    credentials) and went to CA --> Application Management --> Manage Service Applications and selected UPSA and under properties just created a new app pool to run under farm account (did not want to take any chances).
    As soon as the new app pool was provisioned, the service came back.
    Thanks, Ransher Singh, MCP, MCTS | Click Vote As Helpful if you think that post is helpful in responding your question click Mark As Answer, if you think that this is your answer for your question.

  • OVM-4602 HVM is not supported in the server pool

    Hi,
    I'm trying to create a Windows 2008 R2 HVM guest and have come across this error:
    "OVM-4602 HVM is not supported in the server pool"
    Hardware is a HP BL25p G2 with AMD-V enabled in the BIOS. This is 1 of 5 similar servers in the server pool - all 5 servers have AMD-V anbled in BIOS. I checked the following:
    xm info | grep xen_caps:
    xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
    xm dmesg | grep -i hvm:
    (XEN) HVM: SVM enabled
    cat /proc/cpuinfo | grep svm:
    svm is not listed in the flags
    I'm creating the guest from VM Manager using an iso file. I haven't tried using virt install yet as I would like to get some opinions here first.
    Thanks in advance.

    831583 wrote:
    I know 3 of them were enabled after installation of OVM due to an oversight but can't vouch for the other 2 servers (these 2 were the first servers installed with OVM, including the master server).Remove and re-add them back to the pool. Oracle VM only stores the hvm-capable flag when it adds the server initially. It doesn't re-evaluate this later.

  • How to find out resultset,statements and connections are not closed

    Hello,
    In Jdeveloper 10.1.2 how can I find out that in my code,
    I have resultset,statements and connections are not being closed.
    Any help is highly appreciable.
    Thanks

    Hello Vijay,
    On MSSQL truncation of transaction log does not shrink the size of the transaction log. It simply removes the content within the transaction log and writes it to the backup.
    Meaning the free percentage within the transaction log will increase.
    If you want to Resize the transaction log size, you need to do something else.
    The shrinking procedure is given here:
    http://support.microsoft.com/kb/907511
    Regards,
    Siddhesh

  • How to check if a socket is still alive and not closed by the server?

    If I create a socket connection in Java, then is there any way to test whether that socket conecction is alive at any point of time. You may assume that the socket connection is never closed from my side ie. the client's end, however it may be closed by the server at any time.

    The only way to tell if the socket has been disconnected is to send data over it.
    set the timeout on the server side socket and then have the client check in every so often within the timeout so if you set the client to check in every 10 seconds then set the timeout to say 30 seconds on the server socket.
    if the server socket times out then you know the connection has been broken.

  • Windows "Easy Connect" does not reply with the password / "Easy Connect is not Available"

    Hello,
    I have posted a related question some time ago, which was eventually resolved. However, after some time a problem with Easy Connect (used for MSRA) came back:
    Whenever I arrive at the point in setting up a MSRA session where Easy Connect is needed, I get the reply: "Easy Connect is not Available". Here is an example of the problem:
    Start MSRA
    --> as expected, a window with "invite someone to help you" and " Help some who has invited you" appears
    Select "invite someone to help you"
    --> as expected, a window with "Who do you want to get help from" appears 
    Select "Invite someone to help you"
    --> as expected, a windows with "How do you want to invite your trusted helper?" appears
    Select "Use Easy Connect"
    --> as expected, the temporary "Create invitation window / checking network capabilities" window appears
    Next, I would expect this windows to close a new window to provide me with the Easy Connect password. However, instead I get the window "Easy Connect is not available".
    I cannot continue. (I have screenshots so can repost with them if that would clarity my question)
    Any suggestion how to resolve would be appreciated.
    (Please do not reply with the 3 suggestions from the FAQ (both computers must run windows 7 / Access to internet is limited / your router does not support Easy Connect - doesn't help)
    More background information and things I have tried:
    The "Easy Connect is not available" window offers the "Tell me more about how to fix this problem" which I have tried, but those suggestions do not help
    If I use the other MSRA option: "Help someone who has invited you" (this would be my typical use case), followed by "help someone new" and than select "Use Easy Connect", I also get the "Easy Connect is not available"
    window instead of the expected option to enter the Easy Connect password. I believe this is that same problem.
    This happed with both the 32 as well as the 64 MSRA versions
    I'm using Window 7 Ultimate, 64 bit with all the latest updates
    This desktop PC is wired to the internet via an Edimax gigabit switch, a Dlink DIR-855 wireless router and a fiber modem in bridge mode
    The W7 desktop has a single active network connection only
    I'm using Windows Firewall and Windows Security Essentials
    Disabling the firewall on the PC did not help
    Network discovery is enabled in Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings (that’s UPnP – right?)
    The Internet Connectivity Evaluation Tool does not seem to be available anymore from MSFT sites
    Restarting "Peer Name Resolution Protocol" did not help
    Restarting "Peer Networking Identity Manager Properties" did not help
    Starting up with a "Clean Boot" (disabled all non-Microsoft services using MSConfig) did not help
    I would also be interested to understand how I can check on the status of the "Easy Connect" service. Is this a service hosted somewhere, or??
    Thanks!

    Dear Andy,
    Thanks a lot for your reply. Let me answer your questions:
    Q: Could you use the other methods: save this invitation as a file and use e-mail to send invitation?
    A: yes, that way I can establish a MSRA connection
    Q: Have you disable other network connections, including disable all virtual network card?
    A: if I check with ‘Device Manager/Network Adapters’ (or Control Panel/Network and Internet/Network Connections) I see two network adapters (my Asus motherboard has two network connectors). Both are available, but only one is used. I have
    disabled one. Unfortunately, this does not solve the problem. I will leave it disable for now.
    Q: To find detailed information about this issue, please locate to event view and find the logs about remote assistance.
    A: I have to admit that the Event Viewer is unfamiliar territory for me. So, I’m not sure where and what to look for. However, as suggested, I found "Event Viewer (local)/Applications and Services Logs/Microsoft/Windows/Remote assistance/Operational".
    Each time, I attempt to use MSRA/Easy Connect, it seems two entries are added. As I cannot seem to upload files with this post, here are just the two entries:
    “Diagnosis Repro Attempt resulted in a failure.”
    “Remote Assistance troubleshooting has confirmed the problem: Remote Assistance Easy Connect isn't available.”
    If you need more details, please suggest what to forward or check. I'm eager to find a solution!
    W.

  • Adobe Tech told me HONESTLY that Adobe Connect will NOT work like the Adobe site demo

    I am seconds away from subscribing to gotomeeting.com (Which is a GREAT and REALLy easy to use product).
    I really want the white board featues, etc. At first I could NOT connect at all...then with an Adobe TEch (FROM INDIA) online with me (very patronizing to me also, by the way). I could connect and when I clicked on "Share My Screen" the adobe connect window minimizes itself and becomes useless to me.
    I was told that the tech COULD see my screen. I asked how I would know that. He ACTUALLY told me that the ONLY way I could see the CONNECT window and see all the participants, let other share screens and see and use the whiteboarding is to GET A SECOND COMPUTER!!!!
    I HAVE TO USE TWO COMPUTERS in order to use the features demo'd in the demo video.
    Isn't that the MOST obsurd thing you could tell someone. AND if it is true, what a piece of carp program.
    Too bad, the product does not remotely work like the demo
    AND even worse, the tech support has NO IDEA how to use this product and told me IN THESE WORDS that the product DOES NOT REALLY DO WHAT THE DEMO SAYS IT DOES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    What a nightmare!

    Wow ... well all I can say is I've been using Connect for 2 years for remote training and for webinars and all sorts of stuff, and in general I'm thrilled with it.  I've used the freebie ConnectNow service (via Acrobat.com), the $39.95/mo. Connect Standard account (hosted, up to 15 participants), and for the past 1.5 years, the Connect Pro account, also hosted.
    When you are sharing your screen, you don't see any of the Connect "room" interface; all you see is your screen. This is how most of the services work in my experience. If you're just showing a Powerpoint demo that you've uploaded to your account previously, then you *can* see the panels etc. in the Connect room.
    Almost all of my demos/webinars/training involved me sharing my screen, so yes, I do connect a second laptop to the room, logging on as a guest, so I can see what my participants see, and I can see what the lag time is. I don't think that's out of the ordinary.
    I started using Connect after nightmares with WebEx and other services. It's really important to me that everything works equally on Macs as well as Windows; and so far Connect is great that way.
    I do agree the Support is a pain and Connect is missing some features. But all in all it's been nice and stable for me and my clients. You should check out http://connectusers.com; there are wonderful forums and expert users and tutorials over there.
    AM

  • The TCP/IP connection does not closed after a VISA close

    I am using the VISA functions to communicate with a Sorenson SGA power supply from a Windows XP computer.  I have the VISA TCPIP Resource defined in MAX and use this alias name in the VISAResourceName for the input to the VISA Open.  Then I write a SCPI command, such as *IDN?, and read the repsonse.  Then I close the VISA session.  When I look at the TCP statistics using the netstat -n command, I get the following response:
    Proto           Local Address                 Foreign Address    State
    TCP            10.10.10.9:3881              10.10.10.1:111       TIME_WAIT
    TCP            10.10.10.9:3882              10.10.10.1:111       TIME_WAIT
    If I query the ID again, I get 2 more TCP connections with different local ports numbers.  Every time I perform the query, I get 2 more TCP port connections at different local ports.  It takes about 1 minute for the TIME_WAIT's to time out.  If I query the Sorenson enough, I can fill up my allowable local port connections.
    1)  Why doesn't the TCP connections go away after the VISA Close?
    2) Should I be opening and closing the VISA session every time I want to talk to the Sorenson?
    3) What does the VISAResourceName control or constant actual do to resolve the alias into a IP?
    This Sorenson power supply does not seem to be very quick to repsond to TCP requests.  If I set the timeout on the VISA Open to anything less the 100ms, I cannot get a session open every time.  It will fail about 50% of the time.
    Has anyone had experince talking to the Sorenson power Supplies using VISA TCPIP?
    Thanks,
    Julia

    Hi Julia,
    Let me try answering your questions here.
    1) I'm actually currently looking into this to see if this is expected behavior, and I'll definitely post back to let you know what I find.
    2) You do not need to close a VISA session everytime you want to communicate with the device, you can leave the same session open and keep using that session, instead closing it out at the end.
    3) The VISA aliases and what they correspond to are stored in a visaconf.ini file. There is more information about this file and where it is located on your hard disk in this KnowledgeBase article here. This visaconf.ini file is checked to see what the actual resources being looked up are.
    Let me know if I answered your questions, I will write back with more information on question 1.
    Rasheel

Maybe you are looking for

  • Calendar can the day's number be displayed?

    A day is displayed with the usual information - the day of the week and the date, and month.   Is it possible to have the number of the day as it relates to the entire year displayed?  For example - October 30, 2013 is day 303/365.  Is this feature a

  • Purchase Order Issue

    Dear All,          I am working on SAP 2007 B PL 10. Now I am making a Purchase Order for Item1 Qty as 100.         Now based on this Purchase Order I prepare GR PO of Qty 100. Now manually my production Team does Inspection and hence after inspectio

  • Oracle 9i on HP-UX 11.23

    Hello All, I am trying to install Oracle 9i Release 9.2.0.1.0 on an HP 9000 server running HPUX 11.23. One problem I run into is that I am using the installation document but it only refers to HP-UX 11.0 or 11.11. The install document is titled Oracl

  • Problem with image loading in flex (with web dynpro ABAP integration)

    Hi, I am working with integration of flex and web dynpro abap. I am facing unusal problem while loading the images. I have the images in the MIME folder of web dynpro application. Since my swf file and all the images that I want to use are in the sam

  • Can you do the Java equivalent of this with Generics?

    hi, http://www.informit.com/content/index.asp?product_id=%7B4BCD9193-97E4-4004-AF84-D7346E261C69%7D thanks, asjf