You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rob Clemens <ro...@gmail.com> on 2016/05/09 01:07:11 UTC

dataSource.getConnectionManager() is null

Hello all,

We've had an application that was stable for several years, no changes for
the last few aside from OS/java/tomcat patching. We've had no recent
changes at the web/app server layer and our application started crashing
about every 1-2 hours. We're running the following versions of software:

apache-tomcat-7.0.52
jdk1.6.0_113
SunOS vs-danaus 5.10 Generic_150400-35 sun4v sparc sun4v


Essentially, the only errors I see are the following that repeat themselves
in the logs:

[system:ERROR on 2016-05-08 21:02:27,250 ajp-bio-8009-exec-5]
dataSource.getConnectionManager() is null
[system:ERROR on 2016-05-08 21:02:27,251 ajp-bio-8009-exec-5]
java.lang.NullPointerException trapped in filter: null


A simple restart fixes it, but only for up to a couple of hours. Load does
not matter in this case either. Let me know if you have any other questions
and thank you in advance for your assistance.

Re: dataSource.getConnectionManager() is null

Posted by Rob Clemens <ro...@gmail.com>.
Seeing the following stack traces before the previously mentioned errors:

[config:INFO on 2016-05-08 23:06:25,591 File Monitor] Total memory
allocated to the JVM: 1230Mb
[config:INFO on 2016-05-08 23:06:25,592 File Monitor] Free memory in the
JVM before exit: 891Mb
[searchengine:ERROR on 2016-05-08 23:06:25,624 File Monitor]
java.io.InterruptedIOException
    at java.io.FileInputStream.readBytes(Native Method)
    at java.io.FileInputStream.read(FileInputStream.java:220)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
    at java.io.InputStreamReader.read(InputStreamReader.java:167)
    at java.io.BufferedReader.fill(BufferedReader.java:136)
    at java.io.BufferedReader.readLine(BufferedReader.java:299)
    at java.io.BufferedReader.readLine(BufferedReader.java:362)
    at com.instranet.IIntuitionSearchEngine.a(IIntuitionSearchEngine.java)
    at
com.instranet.IIntuitionContentAdmin.onRemove(IIntuitionContentAdmin.java)
    at com.instranet.lw.b(lw.java)
    at com.instranet.IIntuitionContentAdmin.b(IIntuitionContentAdmin.java)
    at com.instranet.IIntuitionSearchEngine.b(IIntuitionSearchEngine.java)
    at com.instranet.xl.e(xl.java)
    at com.instranet.qo.c(qo.java)
    at com.instranet.iw.run(iw.java)
[config:INFO on 2016-05-08 23:06:26,217 File Monitor] Total memory
allocated to the JVM: 1230Mb
[config:INFO on 2016-05-08 23:06:26,218 File Monitor] Free memory in the
JVM on exit: 890Mb


On Sun, May 8, 2016 at 8:38 PM, Rob Clemens <ro...@gmail.com> wrote:

> Here are the datasource properties as well:
>
> <removed>.properties.datasource.default=defaultds
> <removed>.properties.datasource.defaultds.subtype=Oracle
> <removed>.properties.datasource.defaultds.minreadconnections=1
> <removed>.properties.datasource.defaultds.maxreadconnections=10
> <removed>.properties.datasource.defaultds.minwriteconnections=1
> <removed>.properties.datasource.defaultds.maxwriteconnections=10
>
> <removed>.properties.datasource.defaultds.driver=oracle.jdbc.driver.OracleDriver
> <removed>.properties.datasource.defaultds.url=jdbc:oracle:oci:@
> <hostname>:1521:<SID>
> <removed>.properties.datasource.defaultds.user=<removed>
> <removed>.properties.datasource.defaultds.password=<removed>
>
>
>
> On Sun, May 8, 2016 at 7:36 PM, Rob Clemens <ro...@gmail.com> wrote:
>
>> Oracle 10.2.0.5. Same level oci drivers
>> On May 8, 2016 7:22 PM, "John D. Ament" <jo...@apache.org> wrote:
>>
>>> Rob,
>>>
>>> What database are you trying to connect to? What version of the JDBC
>>> driver?
>>>
>>> On Sun, May 8, 2016 at 9:07 PM Rob Clemens <ro...@gmail.com>
>>> wrote:
>>>
>>> > Hello all,
>>> >
>>> > We've had an application that was stable for several years, no changes
>>> for
>>> > the last few aside from OS/java/tomcat patching. We've had no recent
>>> > changes at the web/app server layer and our application started
>>> crashing
>>> > about every 1-2 hours. We're running the following versions of
>>> software:
>>> >
>>> > apache-tomcat-7.0.52
>>> > jdk1.6.0_113
>>> > SunOS vs-danaus 5.10 Generic_150400-35 sun4v sparc sun4v
>>> >
>>> >
>>> > Essentially, the only errors I see are the following that repeat
>>> themselves
>>> > in the logs:
>>> >
>>> > [system:ERROR on 2016-05-08 21:02:27,250 ajp-bio-8009-exec-5]
>>> > dataSource.getConnectionManager() is null
>>> > [system:ERROR on 2016-05-08 21:02:27,251 ajp-bio-8009-exec-5]
>>> > java.lang.NullPointerException trapped in filter: null
>>> >
>>> >
>>> > A simple restart fixes it, but only for up to a couple of hours. Load
>>> does
>>> > not matter in this case either. Let me know if you have any other
>>> questions
>>> > and thank you in advance for your assistance.
>>> >
>>>
>>
>

Re: dataSource.getConnectionManager() is null

Posted by Rob Clemens <ro...@gmail.com>.
Here are the datasource properties as well:

<removed>.properties.datasource.default=defaultds
<removed>.properties.datasource.defaultds.subtype=Oracle
<removed>.properties.datasource.defaultds.minreadconnections=1
<removed>.properties.datasource.defaultds.maxreadconnections=10
<removed>.properties.datasource.defaultds.minwriteconnections=1
<removed>.properties.datasource.defaultds.maxwriteconnections=10
<removed>.properties.datasource.defaultds.driver=oracle.jdbc.driver.OracleDriver
<removed>.properties.datasource.defaultds.url=jdbc:oracle:oci:@
<hostname>:1521:<SID>
<removed>.properties.datasource.defaultds.user=<removed>
<removed>.properties.datasource.defaultds.password=<removed>



On Sun, May 8, 2016 at 7:36 PM, Rob Clemens <ro...@gmail.com> wrote:

> Oracle 10.2.0.5. Same level oci drivers
> On May 8, 2016 7:22 PM, "John D. Ament" <jo...@apache.org> wrote:
>
>> Rob,
>>
>> What database are you trying to connect to? What version of the JDBC
>> driver?
>>
>> On Sun, May 8, 2016 at 9:07 PM Rob Clemens <ro...@gmail.com> wrote:
>>
>> > Hello all,
>> >
>> > We've had an application that was stable for several years, no changes
>> for
>> > the last few aside from OS/java/tomcat patching. We've had no recent
>> > changes at the web/app server layer and our application started crashing
>> > about every 1-2 hours. We're running the following versions of software:
>> >
>> > apache-tomcat-7.0.52
>> > jdk1.6.0_113
>> > SunOS vs-danaus 5.10 Generic_150400-35 sun4v sparc sun4v
>> >
>> >
>> > Essentially, the only errors I see are the following that repeat
>> themselves
>> > in the logs:
>> >
>> > [system:ERROR on 2016-05-08 21:02:27,250 ajp-bio-8009-exec-5]
>> > dataSource.getConnectionManager() is null
>> > [system:ERROR on 2016-05-08 21:02:27,251 ajp-bio-8009-exec-5]
>> > java.lang.NullPointerException trapped in filter: null
>> >
>> >
>> > A simple restart fixes it, but only for up to a couple of hours. Load
>> does
>> > not matter in this case either. Let me know if you have any other
>> questions
>> > and thank you in advance for your assistance.
>> >
>>
>

Re: dataSource.getConnectionManager() is null

Posted by Rob Clemens <ro...@gmail.com>.
Oracle 10.2.0.5. Same level oci drivers
On May 8, 2016 7:22 PM, "John D. Ament" <jo...@apache.org> wrote:

> Rob,
>
> What database are you trying to connect to? What version of the JDBC
> driver?
>
> On Sun, May 8, 2016 at 9:07 PM Rob Clemens <ro...@gmail.com> wrote:
>
> > Hello all,
> >
> > We've had an application that was stable for several years, no changes
> for
> > the last few aside from OS/java/tomcat patching. We've had no recent
> > changes at the web/app server layer and our application started crashing
> > about every 1-2 hours. We're running the following versions of software:
> >
> > apache-tomcat-7.0.52
> > jdk1.6.0_113
> > SunOS vs-danaus 5.10 Generic_150400-35 sun4v sparc sun4v
> >
> >
> > Essentially, the only errors I see are the following that repeat
> themselves
> > in the logs:
> >
> > [system:ERROR on 2016-05-08 21:02:27,250 ajp-bio-8009-exec-5]
> > dataSource.getConnectionManager() is null
> > [system:ERROR on 2016-05-08 21:02:27,251 ajp-bio-8009-exec-5]
> > java.lang.NullPointerException trapped in filter: null
> >
> >
> > A simple restart fixes it, but only for up to a couple of hours. Load
> does
> > not matter in this case either. Let me know if you have any other
> questions
> > and thank you in advance for your assistance.
> >
>

Re: dataSource.getConnectionManager() is null

Posted by "John D. Ament" <jo...@apache.org>.
Rob,

What database are you trying to connect to? What version of the JDBC driver?

On Sun, May 8, 2016 at 9:07 PM Rob Clemens <ro...@gmail.com> wrote:

> Hello all,
>
> We've had an application that was stable for several years, no changes for
> the last few aside from OS/java/tomcat patching. We've had no recent
> changes at the web/app server layer and our application started crashing
> about every 1-2 hours. We're running the following versions of software:
>
> apache-tomcat-7.0.52
> jdk1.6.0_113
> SunOS vs-danaus 5.10 Generic_150400-35 sun4v sparc sun4v
>
>
> Essentially, the only errors I see are the following that repeat themselves
> in the logs:
>
> [system:ERROR on 2016-05-08 21:02:27,250 ajp-bio-8009-exec-5]
> dataSource.getConnectionManager() is null
> [system:ERROR on 2016-05-08 21:02:27,251 ajp-bio-8009-exec-5]
> java.lang.NullPointerException trapped in filter: null
>
>
> A simple restart fixes it, but only for up to a couple of hours. Load does
> not matter in this case either. Let me know if you have any other questions
> and thank you in advance for your assistance.
>