The first thing is to set Blocking=true.  I think you also want
BlockingTimeoutMillis=5000 or you might block forever. (I think this is the
name of this parameter, it's from memory)

I don't remember seeing about the connection already closed error:
what/when is it?

david jencks

On 2002.06.25 11:27:53 -0400 John Moore wrote:
> 
> 
> We are seeing these "How Can You Manage A Null Connection?" exceptions
> creep
> up randomly when we go to get a connection from a DataSource. I see in
> the
> code where this is thrown but can't figure out how after having the pool
> be
> created (and accessed) successfully I can end up with this exception.
> Unlike the connection already closed that we also get, this one doesn't
> seem
> to go away if you keep trying to grab new connections; it says around
> until
> the jboss is restarted.   Stopping and starting the mbean doesn't seem to
> cut it.   The error occurs on different pools and at no particular
> interval.
> The database servers may be restarted without our knowledge, but in our
> testing this hasn't been a problem.
> 
> We are using JBoss 2.4.3 with embedded Tomcat 3.2.3 and have about 30
> datasources to sybase sqlanywhere 5.5 databases.  JBoss is on a Sun Netra
> X1, Solaris 8 (with patches),  jdk 1.3.1_02, ulimit -s 2048, ulimit -n
> 1024,
> apache 1.3.24 w/ mod_jk & mod_ssl.   Databases are all remote; accessed
> over
> internet connections not LAN or WAN connections.  Some are through VPN
> tunnels. All of the datasources initially startup cleanly and we can
> connect
> to each of them without a problem.   There are no clues in the log file
> either.  Datasources all have the same configuration except the mbean
> name,
> factory name and connection URL in the property attribute.  
> 
> The application is a group of servlets and JSP's deployed as a war.
> 
>         <!-- TEST DATA SOURCE -->
>         <mbean code="org.jboss.resource.ConnectionFactoryLoader"
> name="JCA:service=ConnectionFactoryLoader,name=test">
>             <attribute name="FactoryName">test</attribute>
>             <attribute
> name="RARDeployerName">JCA:service=RARDeployer</attribute>
>             <attribute name="ResourceAdapterName">Minerva JDBC
> LocalTransaction ResourceAdapter</attribute>
>             <attribute name="Properties">
>                         UserName=xxxxxx
>                         Password=yyyyyy
>                         Driver=com.sybase.jdbc2.jdbc.SybDriver
>  
> ConnectionURL=jdbc:sybase:Tds:192.168.0.15:1498/dbname
>             </attribute>
>             <attribute
> name="ConnectionManagerFactoryName">MinervaSharedLocalCMFactory</attribute>
>             <attribute name="ConnectionManagerProperties">
>                         MinSize=1
>                         MaxSize=10
>                         Blocking=false
>                         GCEnabled=true
>                         IdleTimeoutEnabled=true
>                         InvalidateOnError=false
>                         TrackLastUsed=true
>                         GCIntervalMillis=120000
>                         GCIntervazlMillis=120000
>                         GCMinIdleMillis=240000
>                         IdleTimeoutMillis=300000
>                         MaxIdleTimeoutPercent=0.0
>             </attribute>
>             <attribute
> name="PrincipalMappingClass">org.jboss.resource.security.ManyToOnePrincipalM
> apping</attribute>
>         </mbean>
> 
> Has anyone else seen this and is there a solution? I didn't catch
> anything
> in the forums.  We're at 30 connections now and am looking to be around
> 100
> soon, but am going to have a big problem if I can't solve this problem.  
>  
> 
> Thanks,
> John Moore
> 
> Principal Decision Systems International
> 625 The City Drive
> Suite 190
> Orange, CA 92868
> 800-850-7374
> 
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
> <TITLE>How Can You Manage A Null Connection?  Errors</TITLE>
> </HEAD>
> <BODY>
> <BR>
> <BR>
> 
> <P><FONT SIZE=2>We are seeing these &quot;How Can You Manage A Null
> Connection?&quot; exceptions creep up randomly when we go to get a
> connection from a DataSource. I see in the code where this is thrown but
> can't figure out how after having the pool be created (and accessed)
> successfully I can end up with this exception.&nbsp;&nbsp; Unlike the
> connection already closed that we also get, this one doesn't seem to go
> away if you keep trying to grab new connections; it says around until the
> jboss is restarted.&nbsp;&nbsp; Stopping and starting the mbean doesn't
> seem to cut it.&nbsp;&nbsp; The error occurs on different pools and at no
> particular interval.&nbsp;&nbsp; The database servers may be restarted
> without our knowledge, but in our testing this hasn't been a
> problem.</FONT></P>
> 
> <P><FONT SIZE=2>We are using JBoss 2.4.3 with embedded Tomcat 3.2.3 and
> have about 30 datasources to sybase sqlanywhere 5.5 databases.&nbsp;
> JBoss is on a Sun Netra X1, Solaris 8 (with patches),&nbsp; jdk 1.3.1_02,
> ulimit -s 2048, ulimit -n 1024, apache 1.3.24 w/ mod_jk &amp;
> mod_ssl.&nbsp;&nbsp; Databases are all remote; accessed over internet
> connections not LAN or WAN connections.&nbsp; Some are through VPN
> tunnels. All of the datasources initially startup cleanly and we can
> connect to each of them without a problem.&nbsp;&nbsp; There are no clues
> in the log file either.&nbsp; Datasources all have the same configuration
> except the mbean name, factory name and connection URL in the property
> attribute.&nbsp; </FONT></P>
> 
> <P><FONT SIZE=2>The application is a group of servlets and JSP's deployed
> as a war.</FONT>
> </P>
> 
> <P><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- TEST
> DATA SOURCE --&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mbean
> code=&quot;org.jboss.resource.ConnectionFactoryLoader&quot;
> name=&quot;JCA:service=ConnectionFactoryLoader,name=test&quot;&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;attribute name=&quot;FactoryName&quot;&gt;test&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;attribute 
>name=&quot;RARDeployerName&quot;&gt;JCA:service=RARDeployer&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;attribute name=&quot;ResourceAdapterName&quot;&gt;Minerva JDBC
> LocalTransaction ResourceAdapter&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;attribute name=&quot;Properties&quot;&gt;</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> UserName=xxxxxx</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> Password=yyyyyy</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> Driver=com.sybase.jdbc2.jdbc.SybDriver</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> ConnectionURL=jdbc:sybase:Tds:192.168.0.15:1498/dbname</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;attribute 
>name=&quot;ConnectionManagerFactoryName&quot;&gt;MinervaSharedLocalCMFactory&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;attribute name=&quot;ConnectionManagerProperties&quot;&gt;</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> MinSize=1</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> MaxSize=10</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> Blocking=false</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> GCEnabled=true</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> IdleTimeout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bsp;&nbsp;&nbsp;&nbsp;
> IdleTimeoutMillis=300000</FONT>
> <BR><FONT 
>SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> MaxIdleTimeoutPercent=0.0</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;attribute 
>name=&quot;PrincipalMappingClass&quot;&gt;org.jboss.resource.security.ManyToOnePrincipalMapping&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &lt;/mbean&gt;</FONT>
> </P>
> 
> <P><FONT SIZE=2>Has anyone else seen this and is there a solution? I
> didn't catch anything in the forums.&nbsp; We're at 30 connections now
> and am looking to be around 100 soon, but am going to have a big problem
> if I can't solve this problem.&nbsp;&nbsp;&nbsp; </FONT></P>
> 
> <P><FONT SIZE=2>Thanks,</FONT>
> <BR><FONT SIZE=2>John Moore</FONT>
> </P>
> 
> <P><FONT SIZE=2>Principal Decision Systems International</FONT>
> <BR><FONT SIZE=2>625 The City Drive</FONT>
> <BR><FONT SIZE=2>Suite 190</FONT>
> <BR><FONT SIZE=2>Orange, CA 92868</FONT>
> <BR><FONT SIZE=2>800-850-7374</FONT>
> </P>
> <BR>
> 
> </BODY>
> </HTML>
> 


-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to