Error due to accessing database connection using jsp

Hi,
I have an error, during accessing a datbase using jsp:useBean from jsp.Urgent i need this one
my source code is
DbBean.java
package SQLBean;
import java.sql.*;
import java.io.*;
public class DbBean implements java.io.Serializable{
private String dbDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
private Connection dbCon;
public DbBean(){
super();
public boolean connect() throws ClassNotFoundException,SQLException{
Class.forName(dbDriver);
dbCon = DriverManager.getConnection("jdbc dbc:mybean","","");
return true;
public void close() throws SQLException{
dbCon.close();
public ResultSet execSQL(String sql) throws SQLException{
Statement s = dbCon.createStatement();
ResultSet r = s.executeQuery(sql);
return (r == null) ? null : r;
public int updateSQL(String sql) throws SQLException{
Statement s = dbCon.createStatement();
int r = s.executeUpdate(sql);
return (r == 0) ? 0 : r;
database.jsp
<HTML>
<HEAD><TITLE>DataBase Search</TITLE></HEAD>
<BODY>
<%@ page language="Java" import="java.sql.*" %>
<jsp:useBean id="db" scope="application" class="SQLBean.DbBean" />
<jsp:setProperty name="db" property="*" />
<center>
<h2> Results from </h2>
<hr>
<br><br>
<table>
<%
db.connect();
ResultSet rs = db.execSQL("select * from employ");
int i = db.updateSQL("UPDATE employ set fname = 'hello world' where empno='000010'");
out.println(i);
%>
<%
while(rs.next()) {
%>
<%= rs.getString("empno") %>
<BR>
<%
%>
<BR>
<%
db.close();
%>
Done
</table>
</body>
</HTML>
The error like this
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: Invalid class file format in C:\Program Files\Apache Tomcat 4.0\webapps\muthu\WEB-INF\classes\SQLBean\DbBean.class. The major.minor version '49.0' is too recent for this tool to understand.
An error occurred at line: 7 in the jsp file: /database.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\localhost\muthu\database$jsp.java:65: Class SQLBean.DbBean not found.
SQLBean.DbBean db = null;
^
An error occurred at line: 7 in the jsp file: /database.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\localhost\muthu\database$jsp.java:68: Class SQLBean.DbBean not found.
db= (SQLBean.DbBean)
^
An error occurred at line: 7 in the jsp file: /database.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\localhost\muthu\database$jsp.java:73: Class SQLBean.DbBean not found.
db = (SQLBean.DbBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "SQLBean.DbBean");
^
4 errors, 1 warning
Anybody help me?
Thanx in advance

Your code is ok . The problem is in java version witch you use to compile the DbBean class . I think you are using java 1.5 try to change to 1.4 compile and run again should help .

Similar Messages

  • EXCEPTION_ACCESS_VIOLATION error with MS ACCESS database connection

    Hello,
    I got the EXCEPTION_ACCESS_VIOLATION error in the hs_err_pidXXXX.log file.
    I am using MS ACCESS and jdbc-odbc bridge to access to it.
    The problem is the tomcat server crashes every a couple of hours.
    The error log is attached.
    I searched this error on line and tried a couple of things that they suggested. But no helps.
    I tried increasing the heap size, and change the Java option to -Xint.
    But all no help.
    Would you take a look at the log file and suggest anythings?
    Thank you!!!
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c82f350, pid=4100, tid=1204
    # Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 interpreted mode)
    # Problematic frame:
    # C [ntdll.dll+0x2f350]
    --------------- T H R E A D ---------------
    Current thread (0x490eeb08): JavaThread "TP-Processor2" daemon [_thread_in_native, id=1204]
    siginfo: ExceptionCode=0xc0000005, writing address 0x00000008
    Registers:
    EAX=0x00000000, EBX=0x00000000, ECX=0x00000008, EDX=0x00000004
    ESP=0x4d4ae9e0, EBP=0x4d4ae9ec, ESI=0x00000008, EDI=0x00000000
    EIP=0x7c82f350, EFLAGS=0x00010297
    Top of Stack: (sp=0x4d4ae9e0)
    0x4d4ae9e0: 00000000 00000000 00000008 4d4aea08
    0x4d4ae9f0: 4bfa4c16 00000004 497f150c 4bf727af
    0x4d4aea00: 497f150c 497f14e8 4d4aea40 4bf78af9
    0x4d4aea10: 497f150c 4bfa0000 490eebc4 43c06010
    0x4d4aea20: 00000001 00000000 4d4aea14 4d4ae60c
    0x4d4aea30: 4d4afce8 4bfa5705 4bf78ac8 ffffffff
    0x4d4aea40: 4d4aea58 4bf78a9d 497f14e8 4d4aea78
    0x4d4aea50: 49151ad8 490eebc4 4d4aea70 6d371157
    Instructions: (pc=0x7c82f350)
    0x7c82f340: 56 8d 72 04 57 89 75 fc b8 00 00 00 00 8b 4d fc
    0x7c82f350: f0 0f b3 01 0f 92 c0 84 c0 0f 84 95 0f 00 00 64
    Stack: [0x4d3b0000,0x4d4b0000), sp=0x4d4ae9e0, free space=1018k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [ntdll.dll+0x2f350]
    C [ODBC32.dll+0x34c16]
    C [ODBC32.dll+0x8af9]
    C [ODBC32.dll+0x8a9d]
    C [JdbcOdbc.dll+0x1157]
    j sun.jdbc.odbc.JdbcOdbc.allocConnect(J[B)J+0
    j sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(J)J+30
    j sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(J)J+6
    j sun.jdbc.odbc.JdbcOdbcConnection.initialize(Ljava/lang/String;Ljava/util/Properties;I)V+37
    j sun.jdbc.odbc.JdbcOdbcDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+129
    j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+165
    j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
    j gov.chi.oemc.pagegate.dao.jdbc.JdbcConnection.getConnection(Z)Ljava/sql/Connection;+18
    j gov.chi.oemc.pagegate.dao.jdbc.MessageDaoJdbc.getMsgHistories(Ljava/lang/String;Ljava/lang/String;ZI)Ljava/util/List;+13
    j gov.chi.oemc.pagegate.service.dwr.impl.MessageDwrManagerImpl.getMsgHistories(Ljava/lang/String;Ljava/lang/String;ZI)Ljava/util/List;+9
    j sun.reflect.GeneratedMethodAccessor79.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+31
    j org.springframework.aop.framework.JdkDynamicAopProxy.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+318
    j $Proxy15.getMsgHistories(Ljava/lang/String;Ljava/lang/String;ZI)Ljava/util/List;+35
    j sun.reflect.GeneratedMethodAccessor80.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j uk.ltd.getahead.dwr.impl.ExecuteQuery.execute(Ljavax/servlet/http/HttpServletRequest;)Luk/ltd/getahead/dwr/Calls;+955
    j uk.ltd.getahead.dwr.impl.DefaultExecProcessor.handle(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+26
    j uk.ltd.getahead.dwr.impl.DefaultProcessor.handle(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+225
    j uk.ltd.getahead.dwr.AbstractDWRServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+33
    j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139
    j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+362
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)Lcom/opensymphony/module/sitemesh/Page;+18
    j com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+84
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+105
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+324
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+105
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+65
    j org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Lorg/acegisecurity/intercept/web/FilterInvocation;)V+87
    j org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+15
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+37
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+144
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+143
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.ui.AbstractProcessingFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+141
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.ui.logout.LogoutFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+169
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+281
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.util.FilterChainProxy.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+172
    j org.acegisecurity.util.FilterToBeanProxy.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+18
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+105
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+29
    j org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+90
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+105
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+699
    j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285
    j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
    j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
    j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
    j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+154
    j org.apache.jk.server.JkCoyoteHandler.invoke(Lorg/apache/jk/core/Msg;Lorg/apache/jk/core/MsgContext;)I+123
    j org.apache.jk.common.HandlerRequest.invoke(Lorg/apache/jk/core/Msg;Lorg/apache/jk/core/MsgContext;)I+327
    j org.apache.jk.common.ChannelSocket.invoke(Lorg/apache/jk/core/Msg;Lorg/apache/jk/core/MsgContext;)I+191
    j org.apache.jk.common.ChannelSocket.processConnection(Lorg/apache/jk/core/MsgContext;)V+105
    j org.apache.jk.common.ChannelSocket$SocketConnection.runIt([Ljava/lang/Object;)V+8
    j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167
    j java.lang.Thread.run()V+11
    v ~StubRoutines::call_stub
    V [jvm.dll+0x8168d]
    V [jvm.dll+0xd4179]
    V [jvm.dll+0x8155e]
    V [jvm.dll+0x812bb]
    V [jvm.dll+0x9bbe9]
    V [jvm.dll+0xfe77f]
    V [jvm.dll+0xfe74d]
    C [MSVCRT.dll+0x2b530]
    C [kernel32.dll+0x2608b]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j sun.jdbc.odbc.JdbcOdbc.allocConnect(J[B)J+0
    j sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(J)J+30
    j sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(J)J+6
    j sun.jdbc.odbc.JdbcOdbcConnection.initialize(Ljava/lang/String;Ljava/util/Properties;I)V+37
    j sun.jdbc.odbc.JdbcOdbcDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+129
    j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+165
    j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
    j gov.chi.oemc.pagegate.dao.jdbc.JdbcConnection.getConnection(Z)Ljava/sql/Connection;+18
    j gov.chi.oemc.pagegate.dao.jdbc.MessageDaoJdbc.getMsgHistories(Ljava/lang/String;Ljava/lang/String;ZI)Ljava/util/List;+13
    j gov.chi.oemc.pagegate.service.dwr.impl.MessageDwrManagerImpl.getMsgHistories(Ljava/lang/String;Ljava/lang/String;ZI)Ljava/util/List;+9
    j sun.reflect.GeneratedMethodAccessor79.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+31
    j org.springframework.aop.framework.JdkDynamicAopProxy.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+318
    j $Proxy15.getMsgHistories(Ljava/lang/String;Ljava/lang/String;ZI)Ljava/util/List;+35
    j sun.reflect.GeneratedMethodAccessor80.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j uk.ltd.getahead.dwr.impl.ExecuteQuery.execute(Ljavax/servlet/http/HttpServletRequest;)Luk/ltd/getahead/dwr/Calls;+955
    j uk.ltd.getahead.dwr.impl.DefaultExecProcessor.handle(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+26
    j uk.ltd.getahead.dwr.impl.DefaultProcessor.handle(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+225
    j uk.ltd.getahead.dwr.AbstractDWRServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+33
    j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139
    j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+362
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)Lcom/opensymphony/module/sitemesh/Page;+18
    j com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+84
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+105
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+324
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+105
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+65
    j org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Lorg/acegisecurity/intercept/web/FilterInvocation;)V+87
    j org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+15
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+37
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+144
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+143
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.ui.AbstractProcessingFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+141
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.ui.logout.LogoutFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+169
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+281
    j org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+185
    j org.acegisecurity.util.FilterChainProxy.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+172
    j org.acegisecurity.util.FilterToBeanProxy.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+18
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+105
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+29
    j org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+90
    j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+105
    j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
    j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+699
    j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285
    j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
    j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
    j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
    j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+154
    j org.apache.jk.server.JkCoyoteHandler.invoke(Lorg/apache/jk/core/Msg;Lorg/apache/jk/core/MsgContext;)I+123
    j org.apache.jk.common.HandlerRequest.invoke(Lorg/apache/jk/core/Msg;Lorg/apache/jk/core/MsgContext;)I+327
    j org.apache.jk.common.ChannelSocket.invoke(Lorg/apache/jk/core/Msg;Lorg/apache/jk/core/MsgContext;)I+191
    j org.apache.jk.common.ChannelSocket.processConnection(Lorg/apache/jk/core/MsgContext;)V+105
    j org.apache.jk.common.ChannelSocket$SocketConnection.runIt([Ljava/lang/Object;)V+8
    j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167
    j java.lang.Thread.run()V+11
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x4921e3d8 JavaThread "TP-Monitor" daemon [_thread_blocked, id=1264]
    0x48f8c7d8 JavaThread "TP-Processor4" daemon [_thread_in_native, id=5264]
    0x490e8168 JavaThread "TP-Processor3" daemon [_thread_in_Java, id=4632]
    =>0x490eeb08 JavaThread "TP-Processor2" daemon [_thread_in_native, id=1204]
    0x490cf398 JavaThread "TP-Processor1" daemon [_thread_in_native, id=3144]
    0x4935f3d0 JavaThread "http-8090-Monitor" [_thread_blocked, id=1128]
    0x490f2448 JavaThread "http-8090-Processor50" daemon [_thread_in_native, id=6052]
    0x49468c00 JavaThread "http-8090-Processor49" daemon [_thread_blocked, id=456]
    0x494680a8 JavaThread "http-8090-Processor48" daemon [_thread_blocked, id=3548]
    0x4921f440 JavaThread "http-8090-Processor47" daemon [_thread_blocked, id=4308]
    0x4944e8a8 JavaThread "http-8090-Processor46" daemon [_thread_blocked, id=4080]
    0x4902a1e8 JavaThread "http-8090-Processor45" daemon [_thread_blocked, id=3716]
    0x490295f0 JavaThread "http-8090-Processor44" daemon [_thread_blocked, id=5496]
    0x49121540 JavaThread "http-8090-Processor43" daemon [_thread_blocked, id=5284]
    0x492078a0 JavaThread "http-8090-Processor42" daemon [_thread_blocked, id=4232]
    0x490a2d48 JavaThread "http-8090-Processor41" daemon [_thread_blocked, id=2016]
    0x490a2290 JavaThread "http-8090-Processor40" daemon [_thread_blocked, id=4056]
    0x0080c0f0 JavaThread "http-8090-Processor39" daemon [_thread_blocked, id=4476]
    0x49337af0 JavaThread "http-8090-Processor38" daemon [_thread_blocked, id=3132]
    0x491f5be8 JavaThread "http-8090-Processor37" daemon [_thread_blocked, id=2976]
    0x491f5130 JavaThread "http-8090-Processor36" daemon [_thread_blocked, id=4772]
    0x49107408 JavaThread "http-8090-Processor35" daemon [_thread_blocked, id=4784]
    0x4920b9f8 JavaThread "http-8090-Processor34" daemon [_thread_blocked, id=5844]
    0x493163d0 JavaThread "http-8090-Processor33" daemon [_thread_blocked, id=5968]
    0x49315918 JavaThread "http-8090-Processor32" daemon [_thread_blocked, id=5048]
    0x492d11e0 JavaThread "http-8090-Processor31" daemon [_thread_blocked, id=4260]
    0x492c7628 JavaThread "http-8090-Processor30" daemon [_thread_blocked, id=4780]
    0x4936cd48 JavaThread "http-8090-Processor29" daemon [_thread_blocked, id=6136]
    0x4940b590 JavaThread "http-8090-Processor28" daemon [_thread_blocked, id=4612]
    0x00782630 JavaThread "http-8090-Processor27" daemon [_thread_blocked, id=4316]
    0x4927ab60 JavaThread "http-8090-Processor26" daemon [_thread_blocked, id=3964]
    0x4927a808 JavaThread "http-8090-Processor25" daemon [_thread_blocked, id=532]
    0x49354ab8 JavaThread "http-8090-Processor24" daemon [_thread_blocked, id=5040]
    0x4924bbd8 JavaThread "http-8090-Processor23" daemon [_thread_blocked, id=5640]
    0x490fb430 JavaThread "http-8090-Processor22" daemon [_thread_blocked, id=6096]
    0x4943fd90 JavaThread "http-8090-Processor21" daemon [_thread_blocked, id=4280]
    0x4916b8a0 JavaThread "http-8090-Processor20" daemon [_thread_blocked, id=3624]
    0x4914a8a8 JavaThread "http-8090-Processor19" daemon [_thread_blocked, id=1540]
    0x4939cc68 JavaThread "http-8090-Processor18" daemon [_thread_blocked, id=1324]
    0x4923f408 JavaThread "http-8090-Processor17" daemon [_thread_blocked, id=5900]
    0x49071188 JavaThread "http-8090-Processor16" daemon [_thread_blocked, id=5544]
    0x49071008 JavaThread "http-8090-Processor15" daemon [_thread_blocked, id=220]
    0x49460408 JavaThread "http-8090-Processor14" daemon [_thread_blocked, id=5796]
    0x492fbe80 JavaThread "http-8090-Processor13" daemon [_thread_blocked, id=3140]
    0x492fbd00 JavaThread "http-8090-Processor12" daemon [_thread_blocked, id=5876]
    0x49190e50 JavaThread "http-8090-Processor11" daemon [_thread_blocked, id=3128]
    0x49190cd0 JavaThread "http-8090-Processor10" daemon [_thread_blocked, id=5576]
    0x49108b28 JavaThread "http-8090-Processor9" daemon [_thread_blocked, id=5644]
    0x492d5d38 JavaThread "http-8090-Processor8" daemon [_thread_blocked, id=5296]
    0x4914e5c0 JavaThread "http-8090-Processor7" daemon [_thread_blocked, id=4556]
    0x49210708 JavaThread "http-8090-Processor6" daemon [_thread_blocked, id=4332]
    0x49106488 JavaThread "http-8090-Processor5" daemon [_thread_blocked, id=5164]
    0x4930e408 JavaThread "http-8090-Processor4" daemon [_thread_blocked, id=4736]
    0x49208008 JavaThread "http-8090-Processor3" daemon [_thread_blocked, id=4456]
    0x492263b8 JavaThread "http-8090-Processor2" daemon [_thread_blocked, id=4936]
    0x4905d008 JavaThread "http-8090-Processor1" daemon [_thread_blocked, id=4708]
    0x49130400 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=5468]
    0x007a6b10 JavaThread "Store userCache Expiry Thread" daemon [_thread_blocked, id=352]
    0x49016a08 JavaThread "Store userCache Spool Thread" daemon [_thread_blocked, id=5736]
    0x007f5530 JavaThread "Thread-1" [_thread_in_native, id=4996]
    0x007d09e8 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5612]
    0x007cf640 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3112]
    0x007ce930 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1156]
    0x007c5d90 JavaThread "Finalizer" daemon [_thread_blocked, id=5456]
    0x003cfa18 JavaThread "Reference Handler" daemon [_thread_blocked, id=4444]
    0x003c5da0 JavaThread "main" [_thread_in_native, id=4520]
    Other Threads:
    0x007799f8 VMThread [id=5660]
    0x007d1cf8 WatcherThread [id=1764]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 18240K, used 3084K [0x02810000, 0x03bd0000, 0x076d0000)
    eden space 16256K, 16% used [0x02810000, 0x02aaa4b0, 0x037f0000)
    from space 1984K, 21% used [0x039e0000, 0x03a48eb0, 0x03bd0000)
    to space 1984K, 0% used [0x037f0000, 0x037f0000, 0x039e0000)
    tenured generation total 241984K, used 14251K [0x076d0000, 0x16320000, 0x42810000)
    the space 241984K, 5% used [0x076d0000, 0x084bac88, 0x084bae00, 0x16320000)
    compacting perm gen total 24064K, used 24061K [0x42810000, 0x43f90000, 0x46810000)
    the space 24064K, 99% used [0x42810000, 0x43f8f6f8, 0x43f8f800, 0x43f90000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040f000      C:\tomcats\Tomcat5.5\bin\tomcat5.exe
    0x7c800000 - 0x7c8c0000      C:\WINDOWS\system32\ntdll.dll
    0x77e40000 - 0x77f42000      C:\WINDOWS\system32\kernel32.dll
    0x77380000 - 0x77412000      C:\WINDOWS\system32\USER32.dll
    0x77c00000 - 0x77c49000      C:\WINDOWS\system32\GDI32.dll
    0x77f50000 - 0x77fec000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77c50000 - 0x77cef000      C:\WINDOWS\system32\RPCRT4.dll
    0x77ba0000 - 0x77bfa000      C:\WINDOWS\system32\MSVCRT.dll
    0x7c8d0000 - 0x7d0d4000      C:\WINDOWS\system32\SHELL32.dll
    0x77da0000 - 0x77df2000      C:\WINDOWS\system32\SHLWAPI.dll
    0x77420000 - 0x77523000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.2778_x-ww_A8F04F11\comctl32.dll
    0x6d640000 - 0x6d7c5000      C:\Program Files\Java\jre1.5.0\bin\client\jvm.dll
    0x76aa0000 - 0x76acd000      C:\WINDOWS\system32\WINMM.dll
    0x6d280000 - 0x6d288000      C:\Program Files\Java\jre1.5.0\bin\hpi.dll
    0x76b70000 - 0x76b7b000      C:\WINDOWS\system32\PSAPI.DLL
    0x76f50000 - 0x76f63000      C:\WINDOWS\system32\Secur32.dll
    0x6d610000 - 0x6d61c000      C:\Program Files\Java\jre1.5.0\bin\verify.dll
    0x6d300000 - 0x6d31d000      C:\Program Files\Java\jre1.5.0\bin\java.dll
    0x6d630000 - 0x6d63f000      C:\Program Files\Java\jre1.5.0\bin\zip.dll
    0x6d4c0000 - 0x6d4d3000      C:\Program Files\Java\jre1.5.0\bin\net.dll
    0x71c00000 - 0x71c17000      C:\WINDOWS\system32\WS2_32.dll
    0x71bf0000 - 0x71bf8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71b20000 - 0x71b61000      C:\WINDOWS\system32\mswsock.dll
    0x5f270000 - 0x5f2c9000      C:\WINDOWS\system32\hnetcfg.dll
    0x71ae0000 - 0x71ae8000      C:\WINDOWS\System32\wshtcpip.dll
    0x76ed0000 - 0x76eff000      C:\WINDOWS\system32\DNSAPI.dll
    0x76f70000 - 0x76f77000      C:\WINDOWS\System32\winrnr.dll
    0x76f10000 - 0x76f3e000      C:\WINDOWS\system32\WLDAP32.dll
    0x76f80000 - 0x76f88000      C:\WINDOWS\system32\rasadhlp.dll
    0x68000000 - 0x6802f000      C:\WINDOWS\system32\rsaenh.dll
    0x6d370000 - 0x6d37d000      C:\Program Files\Java\jre1.5.0\bin\JdbcOdbc.dll
    0x4bf70000 - 0x4bfad000      C:\WINDOWS\system32\ODBC32.dll
    0x77530000 - 0x775c7000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.2778_x-ww_497C098C\COMCTL32.dll
    0x762b0000 - 0x762fa000      C:\WINDOWS\system32\comdlg32.dll
    0x49930000 - 0x49947000      C:\WINDOWS\system32\odbcint.dll
    0x77670000 - 0x777a4000      C:\WINDOWS\system32\ole32.dll
    0x77d00000 - 0x77d8c000      C:\WINDOWS\system32\OLEAUT32.dll
    0x777b0000 - 0x77833000      C:\WINDOWS\system32\CLBCatQ.DLL
    0x77010000 - 0x770d6000      C:\WINDOWS\system32\COMRes.dll
    0x77b90000 - 0x77b98000      C:\WINDOWS\system32\VERSION.dll
    0x4ae30000 - 0x4ae3b000      C:\WINDOWS\system32\VBAJET32.DLL
    VM Arguments:
    jvm_args: -Xint -Dcatalina.home=C:\tomcats\Tomcat5.5 -Dcatalina.base=C:\tomcats\Tomcat5.5 -Djava.endorsed.dirs=C:\tomcats\Tomcat5.5\common\endorsed -Djava.io.tmpdir=C:\tomcats\Tomcat5.5\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\tomcats\Tomcat5.5\conf\logging.properties -Djava.compiler=NONE vfprintf -Xms256m -Xmx1024m -Xss1024k
    java_command: <unknown>
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.5.0
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 1
    CPU:total 2 fami

    There are some other solutions possible.
    1. Get another driver. The only one known is java only so it wont crash. But is not not free.
    2. Use a proxy driver. That means that another app actually does the database work. If it crashes you just start it again (which you can do in your main code.) That way it won't take down your server. There are commercial jdbc drivers that claim MS Access but are are really just proxy implementations as an option in this area.

  • Oracle Database Connection using JSP

    I am attempting to create a simple web app using Oracle 9i and JSP. I am trying to create a connection to my database and do not seem to be having much luck. I have worked with ASP and can find my way around fairly well in that environment, however, JSP seems to be not as closely related as I initially thought. Can anyone point me to a good site that can give a beginner the basics on using this technology. I have been to several sites off of Oracle and Sun, but I seem to be more confused after reading them. With JSP, can I code as I would in ASP i.e JavaScript, etc? I have downloaded and installed the JDBC drivers from Oracle's website, but I receive errors when trying to establish a connection. If there is a site that can explain from the ground up how to set up a connection, I would be very greatful!

    Hi,
    This example uses Interbase, but hopefully you will find it useful anyway -
    http://www.kpi.com.au/interbase/connect.jsp
    Cheers,
    Lars

  • Jsp and database connection using bean

    * I want create a bean to handle database connectivity.The
              <jsp:usebean> tag uses
              no argument constructor ..so I cannot pass the userid and password to
              the constructor.
              So how can I create a database connection when the user_id and password
              will be a part of parameter ?
              * Now I'm opening database connection in the jsp scriplets. Everytime I
              refresh the
              jsp page a new connection is created ? Is it not going to choke the
              database ? I cannot use connection pool because every user logs in with
              different userid.
              Thanks
              

    You can pass your arguments in this way:
              <jsp:usebean id="myBean" scope="page"/>
              <jsp:setProperty name="myBean" property="userId", value=<%= user_id%>/>
              <jsp:setProperty name="myBean" property="password", value=<%=
              user_password%>/>
              of course, in your bean class, you should create two setter methods,
              setUserId and setPassword.
              Hopefully, this will help you.
              sonia WEN
              Chiranjib Misra wrote:
              > * I want create a bean to handle database connectivity.The
              > <jsp:usebean> tag uses
              > no argument constructor ..so I cannot pass the userid and password to
              > the constructor.
              > So how can I create a database connection when the user_id and password
              > will be a part of parameter ?
              >
              > * Now I'm opening database connection in the jsp scriplets. Everytime I
              > refresh the
              > jsp page a new connection is created ? Is it not going to choke the
              > database ? I cannot use connection pool because every user logs in with
              > different userid.
              >
              > Thanks
              

  • Database Connection Problem, JSP, Tomcat5.5.9, Oracle9i

    hi,
    Am trying to make database connection using Oracle9i thin driver, what am doing is:
    I put classes12.zip and classes12_dms.jar in the classpath and also added these libraries in netbeans library folder.
    I make jsp page like this --------
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="java.util.*, java.sql.*"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Testing Page</title>
    </head>
    <body>
    <%
    String url = "jdbc:oracle:thin:@SERVERNAME:1521:DBNAME";
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection(url,"scott","tiger");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select * from person order by name");
    %>
    <h1>Testing Page</h1><hr>
    <table border="1">
    <tbody>
    <tr>
    <th>Name</th>
    <th>Email</th>
    </tr>
    <% while(rs.next()) {%>
    <tr>
    <td><%= rs.getString(1)%></td>
    <td><%= rs.getString(2)%></td>
    </tr>
    <%
    rs.close();
    stmt.close();
    conn.close();
    } catch(ClassNotFoundException CNFEx) {
    out.println("<b>Error !</b><br>" + CNFEx.getMessage());
    } catch(Exception Ex) {
    out.println("<b>Error !</b><br>" + Ex.getMessage());
    %>
    </tbody>
    </table>
    </body>
    </html>
    when I run this page i got this error messages ----
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
    org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:138)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    root cause
    java.lang.NoClassDefFoundError
    oracle.jdbc.driver.OracleConnection.createDMSSensors(OracleConnection.java:506)
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:330)
    oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:485)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:337)
    java.sql.DriverManager.getConnection(Unknown Source)
    java.sql.DriverManager.getConnection(Unknown Source)
    org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:79)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    any kind of help is appericiable.
    thanks.....

    I'd start by checking for a more recent driver version on Oracle's web site.
    Or: googling for "createDMSSensors" (the "root cause" in the stack trace) has as the first hit: Re: Java Help Please! HttpServlet doFilter() Exception

  • Error While creating new database connection from HFM workspace

    Hi,
    We have recently installed HFM and was trying to create database connection from database connection manager in HFM workspace.
    I am getting below error:
    "Error connecting to database connection : no HssJNIDriver950 in java.library.path" initially and later
    "Error connecting to database connection : com/hyperion/ap/adm/HssConn".
    Any information in this direction would helpful.
    Thanks,
    Bhargav
    Edited by: bhargavr on Jan 24, 2011 6:55 PM

    Hi bhargavr,
    We came accross the same issue. Try the following solution below for this 'KNOWN ISSUE' and let me know how you get on. Drop me a note if you have any questions regarding this post.
    Error: *"Error connecting to database connection: com/hyperion/ap/adm/HssConn" While Creating a Financial Management Database Connection* [ID 1102697.1]
    Modified 04-JAN-2011 Type PROBLEM Status PUBLISHED
    Applies to:
    Hyperion BI+ - Version: 11.1.2.0.00 and later [Release: 11.1 and later ]
    Microsoft Windows x64 (64-bit)
    Symptoms:
    You are running the Financial Reporting Web Server on a 64-bit server.
    When you try to create a new Financial Management (HFM) database connection using the Database Connection Manager in Workspace you receive the following message:
    “Error connecting to database connection <connection_name>: com/hyperion/ap/adm/HssConn”
    You can create a database connection in Financial Reporting Studio. When you refresh a report with a Financial Management database connection, you receive one of the following messages:
    “1001: Error connecting to database connection <DATABASE_CONNECTION_NAME>: com/hyperion/ap/adm/HssConn”
    or
    “1001: Error connecting to database connection <DATABASE_CONNECTION_NAME>: no HssJNIDriver950 in java.library.path”
    Cause:
    The issue is documented in unpublished bug 9537050, and in Known Issues in the 11.1.2 Reporting and Analysis Readme. Cross-reference unpublished bug 9707353.
    Solution:
    In the Windows registry, take the following steps:
    Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\HyperionSolutions\FinancialReporting0\HyS9FRReports.
    For each of the following entries, prefix the contents with text in the blue box: Env2, JVMOption13, and JVMOption17 (note that the JVMOption numbers might be slightly different in your environment).
    C:\Oracle\Middleware\EPMSystem11R1\common\ADM\11.1.2.0\bin-64
    If your EPM_ORACLE_HOME is not located at C:\Oracle\Middleware\EPMSystem11R1, replace that location with your location.
    Restart the server.
    G'Luck,
    -David

  • When and How to close database connection in JSP?

    Hi there,
    I am using MySQL and JDBC 3.0, in my system, When and How to close database connection in JSP?
    Thanks in advance.
    Lonely Wolf
    <%@ page session="true" language="java" %>
    <jsp:include page="checkauthorization.jsp" />
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <%--
    Execute query, with wildcard characters added to the
    parameter values used in the search criteria
    --%>
    <sql:query var="availablecomputerList" dataSource="jdbc/Bookingcomputer" scope="request">
    SELECT * FROM computer where status=0
    order by s_code
    </sql:query>
    <html>
    <head>
    <title>Search Result</title>
    </head>
    <body bgcolor="white">
    <center>
    <form action="checkin.jsp" method="post">
    <input type="submit" value="Back to Check-in Page">
    </form>
    <c:choose>
    <c:when test="${availablecomputerList.rowCount == 0}">
    Sorry, no available computer found.
    </c:when>
    <c:otherwise>
    The following available computers were found:
    <table border="1">
    <th>Computer</th>
    <th>Description</th>
    <th>Status</th>
    <c:forEach items="${availablecomputerList.rows}" var="row">
    <tr>
    <td><c:out value="${row.s_code}" /></td>
    <td><c:out value="${row.description}" /></td>
    <td><c:out value="${row.status}" /></td>
    </tr>
    </c:forEach>
    </table>
    </c:otherwise>
    </c:choose>
    </center>
    </body>
    </html>

    when should you close the connection? when you're done with it.
    how should you close the connection? like this: conn.close();
    that said, doing this in a JSP page is bad form and not recommended
    JSP's typically don't contain ANY business or data logic

  • How to create database connection using DB2Driver in JDeveloper 10.1.2.1.0?

    I am trying to create a JDeveloper/Data Connection using com.oracle.ias.jdbc.db2.DB2Driver. The driver is registered from a User Libraries: DataDirect JDBC. I have the following class path for the library:
    E:\DataDirect\3.4\lib\YMdb2.jar;E:\DataDirect\3.4\lib\YMbase.jar;E:\DataDirect\3.4\lib\YMutil.jar
    I have no trouble configuring the connection but when I test it and I got ‘No suitable driver Vendor code 0’. What’s wrong? I have successfully created several database connections using Oracle thin driver. This is first time I am using a third party driver. Has any one successfully create a database connection using the com.oracle.ias.jdbc.db2.DB2Driver?

    Hi
    Since the error points to the unavailability of the driver class,can you double check your library claspath entries again.
    I just tried a DB2 connection using the following properties and the connection went through fine:
    Driver class name: com.oracle.ias.jdbc.db2.DB2Driver
    URL: jdbc:merant:db2://<host_name>:50000;DatabaseName=SAMPLE
    Thanks
    Prasanth

  • Problem in Oracle Database Connectivity in JSP

    I am having big problem such as Oracle Database connectivity problem
    Following code i am used for database connection. but it throw an exception call class not found exception.
    Pls any one can help me. With a sample code for Oracle Database connection in JSP
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    String url="jdbc:oracle:thin:@172.25.44.54:1521:bbo";
    con = DriverManager.getConnection(url,"user", "user123");
    Thank you

    Well i've never used oracle or their drivers before but i'm presuming that you'd go to oracle.com or something and look for downloads. Otherwise you could goodle for Oracle JDBC drivers. Then just follow the instructions.
    Again i've never used JSP but if you have a manifest file somewhere you'll need to put a class-path: entry in their referecning the jar file with the driver so that it is availble at run-time.
    Wes

  • Please Help me in Labview and MS Access Database Connective

    Please Help me in LabVIEW and MS Access Database Connective through an example . I am new to LabVIEW .I need simple example that take a data from a table and display it on front panel .
    thanks in advance .

    duplicate post

  • How to establish a MYSQL Database connection in JSP page.

    Hi People,
    Tell me how to establish mysql database connection in JSP page.
    Needed details on:
    1) what are all the mysql drivers need to be included.
    2) what is the syntax for establish a database connection

    hi,
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.htmlsee down for mysql config with tomcat

  • Checking Oracle Database availblity using JSP

    Hello All,
    How to check the database availablity using JSP like whether the TNS Listener is up or not, or the whole database is up or not.
    Thanks
    Rahul

    Hi,
    To see if your listener is up or down you can use the lsnrctl status, and to start use start option. You can make a similar operation for database, use the sqlplus program.
    Another option is program a batch script, if you wan't use the commands.
    Afonso

  • Can we directly access database by using BI Accelerator ?

    Hi Experts,
    I have several question about BIA NetWeaver2004:
            1. Can we directly accessing database by using BIA?
            2. What is advantage and disadvantage of BIA? Why'd some people rather use BIA than Aggregates?
            3. Could anyone show me the example or demonstration about BIA
    I am a newbie in BI, so please give me information about BIA.
    Thanks a bunch.

    Hi,
    Welcome to SDN. Remember the rule --- before posting, you should search the forum first.
    1. Can we directly accessing database by using BIA?
    ---> No.
    2. What is advantage and disadvantage of BIA? Why'd some people rather use BIA than Aggregates?
    --> search SDN
    3. Could anyone show me the example or demonstration about BIA
    --> search SDN
    Thanks...
    Shambhu
    Edited by: Shambhu Kumar Gupta on Mar 17, 2009 11:22 AM

  • Error in new/select database connection

    i am new at sql developer. i am getting the following error in new/select database connection
    I have filled the following details
    Connection Name : hr_orcl
    Username : hr
    Password : hr
    Connection Typer: Basic, Role: Default
    Hostname: localhost
    Port : 1521
    SID : orcl
    I click on TEST & get the following error message displayed
    " Status : Failure -Test failed: Listener refused connection with the following error:ORA-12505, TNS:listener does not currently know of SID given in connec desciptor"

    Hi,
    You don't say if you actually have a local database installed. If not, you need too. If you already do, then the most common case is Oracle 10g or 11g Express Edition. In that case the default SID is XE, as noted in the following similar thread:
    Re: Connecting to Oracle Database 10g Express Edition
    If you need to install a database, you can get 10g or 11g XE here:
    http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
    The 10g XE release has a smaller memory and disk footprint if that makes a difference to you.
    Regards,
    Gary
    SQL Developer Team

  • Crystal Reports and Access database connection error

    I had this in a different forum with no hits, so I am trying this one.
    A person that I work with has multiple reports set up that pulls from an Access database that is password protected. When we moved everything over to a new computer, those reports now say that it cannot access the fields inside the database. It never pops up with a login screen either, like it does on the old computer. I played around with the ODBC, with no luck, couldn't get anything to work. I have also tryed relinking the database, but I keep getting connection problems. We are on a network, so her settings should have all moved with the new computer. Along with the database and the reports being on the server, so they were never moved. I am thinking it has something to do with a system file.
    I also found this document on this site, but cannot find the download it mentions, sounds similar to my problem.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/208b8fe5-681e-2b10-d2bb-b201f266d0ab
    Does anybody know how to fix this without the utility mentioned in the above link, or know where I can get the utility??
    We are using Access 2007 and Crystal Reports 7.  The database is not save as an Access 2007 database, but a regular mdb.
    Please Help!

    Post Author: ejthunder
    CA Forum: Crystal Reports
    Hello Chris,
    Crystal Reports does not store the database password with the RPT file.  This is by design (Crystal is not a database security product).  This is true of all versions of Crystal Reports.
    If your users need to see fresh data when opening the reports then they will have to log in by providing at least the password.
    You can send reports with Saved Data that won't try to hit the database, but the data won't refresh either.  To save data with the report go to the File menu and click next to Save Data with Report.  Refresh the report and then save it.  The report will now have saved data and won't try to hit the database when opened.  If the user hits the refresh button then they will get prompted to log into the database.
    I hope this helps.
    EJ

Maybe you are looking for

  • Error Message When Opening Reader on Vista: Reader V 9.1

    I have been using reader for awhile with no problems. Tonight I tried to view a .pdf file saved on my desktop and got the following error message: Microsoft Visual C++ Runtime Library Program C:\\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.32exe T

  • Handset on the wall in front of the business door

    Hello, I am looking for a solution. I have a client that has analog system at this time. I am moving them to Lync with Enterprise Voice. At this time, in front of the door they have a handset hanging on the wall with cable going inside the wall. When

  • (Another) Mail crashes on retrieving e-mail

    Could anyone help with my crash report & shedding light on why Mail crashes? I had this problem before & deleted the plist & it seemed to work, but now it's back to the same problem - when I collect e-mail, it crashes after about getting 5 mails & th

  • How to Install Adob Flash Player on Wordpress Site?

    I am doing work on an Cricket Site and i have to show highlights but i have no vedio feature in my site so anyone will please help me to Install Adobe on my Site.... [url removed by host]

  • Endeca cross domain problem

    We are currently using Endeca Commerce 3.1 on a distributed environment with MDEX installed on one server and Experience Manager on another but both on the same domain. When we use the RecordSpotlight cartridge in Experience Manager the record select