Thread View: borland.public.optimizeit.servertrace
2 messages
2 total messages
Started by Kiran Rajapur
Wed, 27 Apr 2005 14:30
JDBC Exception
Author: Kiran Rajapur
Date: Wed, 27 Apr 2005 14:30
Date: Wed, 27 Apr 2005 14:30
48 lines
4399 bytes
4399 bytes
Hi,
When we use ServerTrace 3.0 with Weblogic 7.0 Server, We seem to be getting a jdbc exception. The same code when run without servertrace it works fine.
When we run in servertrace, the optit.jar is the first entry in the classpath and it comes with some version of JDBC driver (intuitive.audit.profiler.ext.JDBCCollectorSync.class)
which intercepts all JDBC requests I believe. Is there way we can get thru this issue ?
Please see the exception below
java.lang.ArrayIndexOutOfBoundsException
at intuitive.audit.profiler.ext.JDBCCollectorSync.doCreate(JDBCCollectorSync.java:509)
at java.sql.DriverManager.getConnection(DriverManager.java:194)
at com.ssga.fi.fipricing.DBUtils.getConnect(DBUtils.java:73)
at jsp_servlet.__mainMenu._jspService(mainMenu.jsp:28)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1094)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:437)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:481)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:319)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:316)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1014)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:417)
at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:390)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1094)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:437)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:319)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:316)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:147)
at jsp_servlet.__index._jspService(index.jsp:10)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1094)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:437)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:481)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:319)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5626)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
:q
$ jar tvf /opt/bea/borland/STrace/lib/optit.jar | grep JDBCCollectorSync
13903 Sat Sep 04 17:54:10 EDT 2004 intuitive/audit/profiler/ext/JDBCCollectorSync.class
509 Sat Sep 04 17:54:10 EDT 2004 intuitive/audit/profiler/ext/JDBCCollectorSync$1.class
Re: JDBC Exception
Author: Abe Tewari
Date: Thu, 29 Sep 2005 22:25
Date: Thu, 29 Sep 2005 22:25
117 lines
5440 bytes
5440 bytes
Hi Kiran,
The JDBCCollectorSync class actually keeps track of resource-allocations
(i.e. getConnections) for JDBC. The out-of-bounds exception is thrown when
a stack that records resources are popped one-too-many times. Without
knowing more about how the getConnect() call is made in your case, my
suspicions are that the getConnect() method in com.ssga.fi.fipricing.DBUtils
needs to be recognized by ServerTrace. Have you tried adding
com.ssga.fi.fipricing.DBUtils into the extensions.table?
1. Open <ST3>/ext/strace/audit/extensions.table
2. Go to the "jdbc" section
3. in the lookAtClasses section, add "#com.ssga.fi.fipricing.DBUtils"
4. re-start the application with servertrace.
Regards,
Abe.
"Kiran Rajapur" <kiran_rajapur@ssga.com> wrote in message
news:426fa220$1@newsgroups.borland.com...
>
> Hi,
> When we use ServerTrace 3.0 with Weblogic 7.0 Server, We seem to be
getting a jdbc exception. The same code when run without servertrace it
works fine.
>
> When we run in servertrace, the optit.jar is the first entry in the
classpath and it comes with some version of JDBC driver
(intuitive.audit.profiler.ext.JDBCCollectorSync.class)
> which intercepts all JDBC requests I believe. Is there way we can get
thru this issue ?
>
> Please see the exception below
>
>
>
> java.lang.ArrayIndexOutOfBoundsException
> at
intuitive.audit.profiler.ext.JDBCCollectorSync.doCreate(JDBCCollectorSync.ja
va:509)
> at java.sql.DriverManager.getConnection(DriverManager.java:194)
> at com.ssga.fi.fipricing.DBUtils.getConnect(DBUtils.java:73)
> at jsp_servlet.__mainMenu._jspService(mainMenu.jsp:28)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1094)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:437)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:481)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:319)
> at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:316)
> at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
14)
> at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:417)
> at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:390)
> at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
> at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
> at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1094)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:437)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:319)
> at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:316)
> at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:147)
> at jsp_servlet.__index._jspService(index.jsp:10)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1094)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:437)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:481)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:319)
> at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5626)
> at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:685)
> :q
> $ jar tvf /opt/bea/borland/STrace/lib/optit.jar | grep JDBCCollectorSync
>
> 13903 Sat Sep 04 17:54:10 EDT 2004
intuitive/audit/profiler/ext/JDBCCollectorSync.class
> 509 Sat Sep 04 17:54:10 EDT 2004
intuitive/audit/profiler/ext/JDBCCollectorSync$1.class
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads