RH8/SQL2005 - database connection forcibly closed error

We recently migrated from a SQL 2005 database instance on the same machine as the database to a database on the corporate SQL server instance. Testing seemed to proceed normally, but once we went into production (we build every evening with a perl script) we started encountering the following error:
"D:/Program Files/Adobe/RoboSource Control 3/NGCMD.exe" CP $/subs/tafs -connection:webhelp_rh8 -I-
"D:/Program Files/Adobe/RoboSource Control 3/NGCMD.exe" workfold $/subs/tafs . -connection:webhelp_rh8 -I-
"D:/Program Files/Adobe/RoboSource Control 3/NGCMD.exe" Checkout tafs.hhk -connection:webhelp_rh8 -I-
Building file list...
File list built.
Error: A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
Error: Errors found while executing: "D:/Program Files/Adobe/RoboSource Control 3/NGCMD.exe" Checkout tafs.hhk -connection:webhelp_rh8 -I-
Occurances are somewhat irregular, I can start the build manually and it runs fine, but when the automated script runs, as often as not, this error occurs.
Has anyone else experienced a similar situation?
.MW

Doing binding configuration on a WCF service to override the default settings is not done the sameway it would be done on the client-side config file.
A custom bindng must be used on the WCF service-side config to override the defualt binding settings on the WCF service-side.
http://robbincremers.me/2012/01/01/wcf-custom-binding-by-configuration-and-by-binding-standardbindingelement-and-standardbindingcollectionelement/
Thee readerQuotas and everything else must be given in the Custom Bindings to override any default setttings on the WCF service side.
Also, you are posting to the wrong forum.
http://social.msdn.microsoft.com/Forums/vstudio/en-us/home?forum=wcf

Similar Messages

  • WCF service connection forcibly closed by the remote host for large data

    Hello ,
                        WCF service is used to generate excel report , When the stored procedure returns large data around 30,000 records. Service fails
    to return the data . Below is the mentioned erorr log :
    System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP
    response to <service url> This could be due to the service
     endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by
    the server (possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException:
    The underlying connection was closed: An unexpected error occurred on a receive. ---> 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.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       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.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
       --- End of inner exception stack trace ---
       at System.Net.HttpWebRequest.GetResponse()
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout).
       --- End of inner exception stack trace ---
    Server stack trace:
       at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.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 IDataSetService.GetMastersData(Int32 tableID, String userID, String action, Int32 maxRecordLimit, Auditor& audit, DataSet& resultSet, Object[] FieldValues)
       at SPARC.UI.Web.Entities.Reports.Framework.Presenters.MasterPresenter.GetDataSet(Int32 masterID, Object[] procParams, Auditor& audit, Int32 maxRecordLimit).
    WEB CONFIG SETTINGS OF SERVICE
    <httpRuntime maxRequestLength="2147483647" executionTimeout="360"/>
    <binding name="BasicHttpBinding_Common"  closeTimeout="10:00:00"  openTimeout="10:00:00"
           receiveTimeout="10:00:00"  sendTimeout="10:00:00"  allowCookies="false"
           bypassProxyOnLocal="false"  hostNameComparisonMode="StrongWildcard"
           maxBufferSize="2147483647"  maxBufferPoolSize="0"  maxReceivedMessageSize="2147483647"
           messageEncoding="Text"  textEncoding="utf-8"   transferMode="Buffered"
           useDefaultWebProxy="true">
    <readerQuotas     maxDepth="2147483647"
          maxStringContentLength="2147483647"  maxArrayLength="2147483647"
          maxBytesPerRead="2147483647"  maxNameTableCharCount="2147483647" />
         <security mode="None"> 
    WEB CONFIG SETTINGS OF CLIENT
    <httpRuntime maxRequestLength="2147483647" requestValidationMode="2.0"/>
    <binding name="BasicHttpBinding_Common"
           closeTimeout="10:00:00"       openTimeout="10:00:00"
           receiveTimeout="10:00:00"       sendTimeout="10:00:00"
            allowCookies="false"        bypassProxyOnLocal="false"
            hostNameComparisonMode="StrongWildcard"        maxBufferSize="2147483647"
            maxBufferPoolSize="2147483647"        maxReceivedMessageSize="2147483647"
            messageEncoding="Text"        textEncoding="utf-8"
            transferMode="Buffered"        useDefaultWebProxy="true">
     <readerQuotas
           maxDepth="2147483647"
           maxStringContentLength="2147483647"
           maxArrayLength="2147483647"
           maxBytesPerRead="2147483647"
           maxNameTableCharCount="2147483647" />   

    Doing binding configuration on a WCF service to override the default settings is not done the sameway it would be done on the client-side config file.
    A custom bindng must be used on the WCF service-side config to override the defualt binding settings on the WCF service-side.
    http://robbincremers.me/2012/01/01/wcf-custom-binding-by-configuration-and-by-binding-standardbindingelement-and-standardbindingcollectionelement/
    Thee readerQuotas and everything else must be given in the Custom Bindings to override any default setttings on the WCF service side.
    Also, you are posting to the wrong forum.
    http://social.msdn.microsoft.com/Forums/vstudio/en-us/home?forum=wcf

  • Database connection not closing on time out

    Hi All,
    Not sure if this is the right place for this question but..
    I've moved my app (built using jdev10.1.2., adf bc's and jsp's) to an app server. For some reason, the database connection is not closing. I have 46 connections to the database and I''m the only one with the URL, not good.
    So can anyone shed any light on this? I thought it should disconnect after a time out but its not.
    Any ideas would be gratfully received.
    Thanks in advance

    or try this one..
    Go to the bottom of the tutorial, you will find the configuration...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bc9baf90-0201-0010-479a-b49b25598ebf

  • Database Connections Not Closing

    I'm using iBatis for PostgreSQL database access and frequently have problems with connections not being closed. Here is a copy of my sqlMapConfig file:
    ============================
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE sqlMapConfig
    PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
    "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
    <sqlMapConfig>
    <properties resource="ibatis.properties" />
    <settings
    lazyLoadingEnabled="true"
    cacheModelsEnabled="true"
    enhancementEnabled="false"
    useStatementNamespaces="false"
    />
    <transactionManager type="JDBC" commitRequired="true">
    <dataSource type="DBCP">
    <property name="driverClassName" value="${driver}" />
    <property name="url" value="${url}" />
    <property name="username" value="${username}" />
    <property name="password" value="${password}" />
    <property name="maxActive" value="10"/>
    <property name="maxIdle" value="5"/>
    <property name="maxWait" value="5000"/>
    <property name="logAbandoned" value="true"/>
    <property name="removeAbandoned" value="true"/>
    <property name="removeAbandonedTimeout" value="1"/>
    <property name="Driver.logUnclosedConnections" value="true"/>
    </dataSource>
    </transactionManager>
    <sqlMap resource="job-sqlMap.xml" />
    </sqlMapConfig>
    ============================
    Due to the logAbandoned and removeAbandoned settings, I get a report in my log file whenever there is a connection that was not properly closed. Here is one of those log entries:
    23:22:51.483 (10) Finalizing a Connection that was never closed:
    java.lang.Throwable: Connection was created at this point:
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:175)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
    at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:393)
    at org.postgresql.Driver.connect(Driver.java:267)
    at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
    at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:84)
    at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
    at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.init(JdbcTransaction.java:48)
    at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:89)
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541)
    at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
    at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:94)
    at edu.calpoly.lib.multimedia.big.db.AutomaticPeriodUpdateIBatisImplDBHandler.getGamesWithAutomaticUpdatePolicy(AutomaticPeriodUpdateIBatisImplDBHandler.java:154)
    at edu.calpoly.lib.multimedia.big.game.AutoUpdateThread.run(AutoUpdateThread.java:155)
    The file: AutomaticPeriodUpdateIBatisImplDBHandler.java contains an iBatis call on line # 154:
    --> list = sqlMap.queryForList("getGamesWithAutoPolicy", null);
    from the map file:
    <select id="getGamesWithAutoPolicy" resultClass="java.util.HashMap">
    <![CDATA[
    SELECT gameid, policy
    FROM update_policy
    ]]>
    </select>
    Here is the code for the entire method that uses this transaction:
    ============================
    public List getGamesWithAutomaticUpdatePolicy() throws BIGDatabaseFacadeException
    List list = new ArrayList();
    try
    sqlMap.startTransaction();
    list = sqlMap.queryForList("getGamesWithAutoPolicy", null);
    sqlMap.commitTransaction();
    catch(SQLException sqle)
    throw new BIGDatabaseFacadeException(sqle);
    finally
    try
    sqlMap.endTransaction();
    catch(SQLException sqle)
    throw new BIGDatabaseFacadeException(sqle);
    return list;
    ============================
    I know that this should be handled as an automatic transaction, but I tried adding the start, commit and end transaction commands in my desperate attempt to fix this problem (but it still didn't help).
    Here is my code for creation of sqlMap -
    --> sqlMap = SqlMapClientBuilder.buildSqlMapClient(Resources.getResourceAsReader("sqlMaps.xml"));
    Except for the fact that occasionally connections are not closed, overall my database access using iBatis works very well.
    In the course of trying to fix this problem I've worked to update all my lib files to the latest versions, and here is current status:
    My iBatis lib file: ibatis-2.3.4.726.jar
    My JDBC driver: postgresql-8.4-701.jdbc3.jar
    Required commons files:
    commons-dbcp-1.2.2.jar
    commons-pool-1.5.3.jar
    Note that I tried adding --> commitRequired="true" to the transactionManager in sqlMaps.xml, hoping it might help, but no joy.
    Please help me figure out why my database connections often do not close. Thank you very much!

    I'm sorry, but I don't understand what you mean by "close the session." I believe iBatis is supposed to take care of all that automatically. My understanding is that all the user does is create the sqlMapClient and then use it along with various map files to query and update the database. iBatis does the rest.

  • Database connection problem SQL Error: 20, SQLState: 61000

    we are doing stress test on our new web site that uses vaadin framework and hibernate. Our application/web server is apache tomcat and maximum thread number is adjusted to 750.
    we are using jmeter for stress test and when we send 500 user scenario (approximately 15 - 20 database connection per user) in 30 seconds
    we are encountered the following error:
    *14:43:10,502 WARN JDBCExceptionReporter:233 - SQL Error: 20, SQLState: 61000*
    *14:43:10,503 ERROR JDBCExceptionReporter:234 - The Network Adapter could not establish the connection*
    but if we send 500 user in 45 seconds there is no problem, jmeter test is completed with 100% success. even if we send 900 user in 120 or 180 second it is OK.
    it seems that there is a DB related parameter that we could not handle properly or maybe operating system limitation (windows 2008 R2).
    any help will be appreciated. thanks in advance.
    gokhan
    Edited by: gokhangulgezen on May 31, 2011 6:38 AM

    It's the DBMS. Oracle particularly can react this way when there are too many connection requests
    coming in, whether from multiple threads at once, or even from one thread in a tight loop. I do
    not know if there's a way to moderate/adjust this. I typically recommend using connection-pooling,
    and to do as much as possible to populate the pool before there is application load.
    Joe

  • The underlying connection was closed error FIM 2010

    I have a fresh installation of FIM 2010 R2. After installation I am able to see FIM portal through account used for installation.
    however in evenvwr I am continously getting below error. During instllation EXCHANGE team provided the address 'outlook.company.in' as the address and I selected
    all option like SSL and pooling on installation screen.
    Below error seems related with Exchagne but I am not able to undserstand what should I demand from exchange team.
    Kindly suggest.
    Error
    System.Web.Services: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according
    to the validation procedure.
       at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
       at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.ConnectStream.WriteHeaders(Boolean async)
       --- End of inner exception stack trace ---
       at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.ResourceManagement.WebServices.Mail.Exchange.ExchangeServiceBinding.FindItem(FindItemType FindItem1)
       at Microsoft.ResourceManagement.WebServices.Mail.Exchange.MailChannel.ExchangeMailChannelListener`1.ExchangeMailListener.<OnPollTimerExpired>b__0(Boolean findUnreadItems)
       at Microsoft.ResourceManagement.WebServices.Mail.Exchange.MailChannel.ExchangeMailChannelListener`1.ExchangeMailListener.OnPollTimerExpired(Object state)
    Thanks,
    Mann

    Hello,
    You have to connect to the EWS (Exchange Web service: https://mailserver/ews/exchange.asmx) with the FIMService account to get the certificate of EWS.
    http://technet.microsoft.com/en-us/library/ff512686%28v=ws.10%29.aspx
    Regards,
    Sylvain

  • Database connection not closed in Destroy()  method of servlet

    Hi,
    I have a problem with my deployed web application. At first, I thought Glassfish was messing up on me, and after checking the log I could see plenty of null pointer exceptions being thrown at lines in my code where I generate prepared statements from my connection object. I have been initialising my connection in the Init() method of all my classes, and equally, I've been closing it in Destroy(). I can only imagine that destroy() isn't being called - since the log clearly shows "connection success" messages but not "connection closed" messages. I am connecting to the servlets via a J2ME app on my mobile phone. Does connecting in this way somehow not invoke the destroy method when the servlets work is complete? Am I going to need to move all my connection initilisation and closing into the necessary doGet/doPost methods of each of my servlets?
    Chris

    You shouldn't be keeping the connection that long open. It's a bad design. It will timeout sooner or later and your complete application will crash. Always acquire and close the connection in the shortest possible scope, preferably just in the same method block where you process the query and/or results. If you want to improve performance while connecting, consider using a connection pool.
    Back to the actual problem: a servlet is created only once during application's lifetime and not during every request as you appears to think.
    You may find this tutorial useful to read on about using the DAO pattern in JSP/Servlet.
    [http://balusc.blogspot.com/2008/07/dao-tutorial-use-in-jspservlet.html]

  • The underlying connection was closed: An unexpected error occurred on a send.

    Fala ae galera.
    tive problemas ao publicar meu primeiro report, exibe o seguinte erro: The underlying connection was closed: An unexpected error occurred on a send.
    Configurações IIS

    Hello,
    Based on the error message, the issue may be related to the “SecureConnectionLevel” in the RSReportServer.config file. When we use HTTP protocol, the value of the “SecureConnectionLevel” attribute should be 0. Usually, we change the value to “1” or “2” only
    when we configure the Report Server for Secure Sockets Layer (SSL) connections.
    Reference:
    http://msdn.microsoft.com/en-us/library/ms157273(v=sql.105).aspx 
    Please refer to the following steps try to resolve the issue:
    1. Use Notepad to open the RSReportServer.config. By default, in SSRS 2012, it is located in: C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer
    (Note: Please backup the file before modify it.)
    2. Search for “SecureConnectionLevel” and make sure its value is set to 0. It looks like this:
    <Add Key="SecureConnectionLevel" Value="0"/>
    There is a blog about “The underlying connection was closed…" error message, you can refer to it.
    http://blogs.msdn.com/b/engelsr/archive/2005/11/29/the-underlying-connection-was-closed.aspx
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • [Bug] Or feature? Database connection closed if given a name after first op

    I am not sure if this is a bug or a feature.
    oracle.javatools.db.Database db = oracle.javatools.db.DatabaseFactory.findOrCreateDatabase("sample", conn);
    If I supply a name for the database as the above line using "sample", the database connection is closed after the first op, i.e., you can call
    db.listObjects once, but the second time, it will fail with StackOverFlowException. But the culprit is the database connection is closed after the first op.
    However, if I don't give it a name, using null,
    oracle.javatools.db.Database db = oracle.javatools.db.DatabaseFactory.findOrCreateDatabase(null, conn);
    There's no problem at all.
    Is this a bug or a feature?
    If a feature, the JavaDoc made it worse, by using the following example:
    http://www.oracle.com/technology/products/jdev/esdk/api1013/oracle/javatools/db/DatabaseFactory.html
    The DatabaseFactory should be used over the DBObjectProviderFactory when a Database specifically is required, and the name and Connection of that Database are available.
    e.g.
    java.sql.Connection conn = // the Connection to the db
    DatabaseFactory.findOrCreateDatabase( "ora10g", conn );
    The example sure sounds like a name is mandatory. Or perhaps the name is not some random name, but TNSName? If so, the Doc should certainly mention that.

    I am not sure if this is a bug or a feature.
    oracle.javatools.db.Database db = oracle.javatools.db.DatabaseFactory.findOrCreateDatabase("sample", conn);
    If I supply a name for the database as the above line using "sample", the database connection is closed after the first op, i.e., you can call
    db.listObjects once, but the second time, it will fail with StackOverFlowException. But the culprit is the database connection is closed after the first op.
    However, if I don't give it a name, using null,
    oracle.javatools.db.Database db = oracle.javatools.db.DatabaseFactory.findOrCreateDatabase(null, conn);
    There's no problem at all.
    Is this a bug or a feature?
    If a feature, the JavaDoc made it worse, by using the following example:
    http://www.oracle.com/technology/products/jdev/esdk/api1013/oracle/javatools/db/DatabaseFactory.html
    The DatabaseFactory should be used over the DBObjectProviderFactory when a Database specifically is required, and the name and Connection of that Database are available.
    e.g.
    java.sql.Connection conn = // the Connection to the db
    DatabaseFactory.findOrCreateDatabase( "ora10g", conn );
    The example sure sounds like a name is mandatory. Or perhaps the name is not some random name, but TNSName? If so, the Doc should certainly mention that.

  • Connection is closed?

    Hi, i am using tomcat 4.1.24 and MS Access 2000 to create a web application. I try to use datasource to make database connection. After start the tomcat, i run my application. First i login to the application and then go to create user. However, fail to create user due to CONNECTION IS CLOSED (error message from SQLException).
    Questions:
    1)Why the connection is closed just after the logging is successful?
    2)Time out problem? How to configure the timeout of connection?
    Thanks.

    I'm sorry not having used tomcat I can not give you any more suggestions. When I searched (using the advanced search against the forums) I did see several answers dealing with tomcat timeout. I still do not think it is a timeout problem. I could be wrong but any connections including TCP connections, I have dealt with do not timeout in the time span you have.
    Try using the advanced search and see if any of the answers point the way.
    rykk

  • Database connecting problem using iPlanet Server

    hi experts,
    i am new begi to iPlanet server.
    before that i was using JWS2.0.
    simple servlet is working fine in iPlanet.
    when coming to database connectivity, there is error shown as
    "SQLException java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified "
    below is my servlet
    import javax.servlet.*;          
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class test1 extends HttpServlet
    Connection dbCon;
    Statement stat;
    public void init(ServletConfig config) throws javax.servlet.ServletException
    public void doGet (HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException
    ResultSet rs;
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    dbCon = DriverManager.getConnection("jdbc:odbc:collegeodbc","","");
    stat = dbCon.createStatement();
    rs = stat.executeQuery("select * from degrees");
    rs.next();
    out.println(rs.getString(1));
    rs.close();
    catch(ClassNotFoundException ce)
    out.println("Class Not Found "+ce);
    catch(SQLException se)
    out.println("SQLException "+se);
    public void destroy()
    this same coding with void main() in system working fine.
    still that servlet working fine with JWS2.0 also, but not in iPlanet.
    any idea.
    Plz help experts
    thanks in adv.

    hi,
    yes u can avoid restarting the server after compiling a servlet
    just follow the following instruction
    go to \Netscape\Server4\https-admserv\config\contexts.properties
    and uncomment the following lines
    context.global.reloadInterval=1
    context.global.isModifiedCheckAggressive=true
    and do the same step for the following properties file in
    \Netscape\Server4\https-"ur machine name"\config\contexts.properties
    and u can avoid restarting the server after u compile a servlet

  • Database connectivity

    Dear all,
    Iam doing my project with database connectivity . the following error is occuring  frequently or some time once in 2 or 3 days .
    Error -2147467259 occured at DB Tools Open
    Connec (String).vi --> DB Tools Open Connec
    (Path ).vi -->OQC:vi-->iconsensor.vi.
    Possible reasons
    Exception occured in DB Provider for ODBC Drivers,
    [MySQL][ODBC 3.51 Driver]Cant connect to MySQL
    server on 'localhost'(10048).in DB Tools Open Connec (String).vi -->DB Tools Open Connec.
    KINDLY POST YOUR VALID SUGESSTION  FOR AVOIDING ABOVE  ERROR

    Hi Marcelo,
    Sorry about that, I had a lapse of focus.  You are right that this is unlikely to be a Microsoft problem.  However, it still looks like it is an issue with the ODBC drivers.  Searching google I've found people encountering the same error in Python:
    http://groups.google.com/group/mailing.database.myodbc/browse_thread/thread/635e32bd80aefb88/e4b7659...)
    and more
    http://groups.google.com/group/mailing.database.myodbc/browse_thread/thread/406ef72aab160032/5e9ed45.... 
    The easiest thing may be to check for this error and try to handle it in LabVIEW (perhaps just clear it and redo the database operation).
    Megan B.
    National Instruments

  • Technical Monitoring - Connect DB Oracle (Error)

    Hi experts,
    I would like to connect a database of an ERP System to our technical monitoring.
    Therefore I go in SOLMAN_SETUP->Managed Systemconfiguration to step 5 - "Enter System Parameters".
    Here I enter in "DB-Parameters" the following data:
    Database Host: "DB Host"
    Service Name: "DB SID"
    Port Number: 1527 (where can I check this???)
    TNS Name: "DB SID"
    Character Set: ????
    National Character Set: ????
    Username: ora<sid>
    password: ****
    But on clicking on "Setup DBA Cockpit connection" I get the following error:
    "The connection "<sid>" is not set up correctly. Database connection <sid>:ADBC error "Internal error 16 has occured"".
    Does anybody know help on this?
    Thank you

    Hello Roland,
    thats the output in the process, it seems, as I need to install oracle libraries???
    B  Loading DB library '/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so' ...
    M  *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so") FAILED
      "Unable to find library 'libclntsh.so.11.1'."  [dlux.c       445]
    M  {root-id=0017A47714101EE484B22C1661F85404}_{conn-id=0017A47714101EE484B2285550A0110C}_1
    B  *** ERROR => Couldn't load library '/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so'
    [dbcon.c      5767]
    B  {root-id=0017A47714101EE484B22C1661F85404}_{conn-id=0017A47714101EE484B2285550A0110C}_1
    B  ***LOG BYG=> could not load library for database connection <db sid>        [dbds         862]
    B  ***LOG BZY=> unexpected return code 8192       calling DBDS       [dbacds       1862]
    B  Loading DB library '/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so' ...
    M  *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so") FAILED
      "Unable to find library 'libclntsh.so.11.1'."  [dlux.c       445]
    M  {root-id=0017A47714101EE484B22C1661F85404}_{conn-id=0017A47714101EE484B2285550A0110C}_1
    B  *** ERROR => Couldn't load library '/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so'
    [dbcon.c      5767]
    B  {root-id=0017A47714101EE484B22C1661F85404}_{conn-id=0017A47714101EE484B2285550A0110C}_1
    B  ***LOG BYG=> could not load library for database connection <dbsid>        [dbds         862]
    B  ***LOG BZY=> unexpected return code 8192       calling DBDS       [dbacds       1862]
    B  Loading DB library '/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so' ...
    M  *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so") FAILED
      "Unable to find library 'libclntsh.so.11.1'."  [dlux.c       445]
    M  {root-id=0017A47714101EE484B22C1661F85404}_{conn-id=0017A47714101EE484B2285550A0110C}_1
    B  *** ERROR => Couldn't load library '/usr/sap/<sid>/DVEBMGS<sidno>/exe/dboraslib.so'

  • Database Connection Timed out

    Hi,
    I am new in OEM so please tell me, Which type of alert should i set to understand Database Connection Timed out in OEM 12c.

    Hi ,
    The Database Connection Timed out error are logged in the DB alert.log
    You can set the Setting thresholds for alert log metrics in Cloud Control 12c to get alert for the same
    Refer to below metalink doc for details
    Database Alert log monitoring in 12c explained (Doc ID 1538482.1)
    Also you can refer to below doc in case you want to generate a report for these errors
    How to create a Customized Report in 12c Cloud Control for Database Alert log Errors (Doc ID 1528268.1)
    Regards,
    Rahul

  • WSUS sync fails with "Webexception the underlying connection was closed. The connection was closed unexpectedly"

    While I have my WSUS integrated with SCCM. I think this error has nothing to do with SCCM, so I put it here in the WSUS forum. On one of my networks, the nightly WSUS sync worked until two weeks ago. I've made no progress in fixing it. Ocassionally it'll
    say the sync was successful (about 1 in 15 attempts). I keep getting "WebException: The underlying connection was closed. The connection was closed unexpectedly. at System.WebServices.Protocols.WebClientProtocol.GetWebResponse(WebRequest
    request) at System.WebServices.Protocols.GetWebResponse(WebRequest request) at MicroSoft.UpdateServices.ServerSync.ServerSyncCompressionProxy.GetWebResponse(WebRequest webrequest) at System.Web.Services.Protocols.SoapHttpClientProtocol.(Invoke StringMethodName,Object[]
    Parameters) at Microsoft.UpdateServices.ServerSync.ServerSyncWebServices.ServerSync.ServerSyncProxy.GetRevisionIdList(Cookie cookie, ServerSyncFilter filter) at Microsoft.Update.Services.ServerSync.CatalogSyncAgentCore.WebserviceGetRevisionIdList(ServerSyncFilter
    filter, Boolean isConfigData), at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.SyncConfigUpdatesfromUSS() at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)"
    Our enterprise has it's own WSUS server we have to sync from. The problem may be at that end, not mine. A sync will start and will fail about 4 minutes later. Our network guy watched the traffic leave our compound but saw only a trickle of traffic coming
    back. Any ideas?
    Ben JohnsonWY

    Hi,
    Please try this fix below first:
    FIX: Intermittent "Underlying connection was closed" error message when you call a Web service from ASP.NET
    http://support.microsoft.com/kb/819450
    I guess you are maintaining a downstream server. If it isn’t a replica server, please try to sync with Microsoft update.
    Hope this helps.

Maybe you are looking for