Database access by Bean, error in JSP(view)

Hello,
I have a web application. All my database connection logic, execution of query is done in my bean. I have verified that the code in my bean is fine and so I have not posted that code.
My jsp code is as follows:
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<html>
<head><title>Trial JSP Page</title>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</head>
<jsp:useBean id="data" class="com.bean.samples.ConnectionBean"/>
<jsp:setProperty name="data" property="drivername" value="oracle.jdbc.driver.OracleDriver"/>
<jsp:setProperty name="data" property="url" value="jdbc:oracle:thin:@someurl"/>
<jsp:setProperty name="data" property="username" value="name"/>
<jsp:setProperty name="data" property="password" value="passwd"/>
<jsp:setProperty name="data" property="query" value="SELECT * FROM tablename"/>
<%
data.processQuery();
ResultSet rs = data.getRs();
ResultSetMetaData rsmd = data.getRsmd();
%>
<body text="black">
The table has <jsp:getProperty name="data" property="count"/> columns and <jsp:getProperty name="data" property="rowcnt"/>
rows in it.
The first column name is <%= rsmd.getColumnLabel(1) %>.
The current row is <%= rs.getRow() %>.
</pre>
</body>
</html>
Output of browser:
The table has 2 columns and 6 rows in it. The first column name is ITEMNO. The current row is
Error: 500
Location: /schedule/jsp/Trial.jsp
Internal Servlet Error:
java.lang.IllegalStateException: Response has already been committed
     java.lang.Throwable(java.lang.String)
     java.lang.Exception(java.lang.String)
     java.lang.RuntimeException(java.lang.String)
     java.lang.IllegalStateException(java.lang.String)
     void org.apache.tomcat.core.HttpServletResponseFacade.sendError(int, java.lang.String)
     void org.apache.jasper.runtime.JspServlet.unknownException(javax.servlet.http.HttpServletResponse, java.lang.Throwable)
     void org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
     void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
     void org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
     void org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection, java.lang.Object [])
     void org.apache.tomcat.service.TcpConnectionThread.run()
     void java.lang.Thread.run()
Error is being thorwn on the statemnt:
The current row is <%= rs.getRow() %>.
Can anyone help with this?
Thanks in advance.

Hi beattris,
No I dont close the rs and conn objects.
The relevant method of my bean is :
public void processQuery() throws Exception{
     try{
          Class.forName(getDrivername());
          conn = DriverManager.getConnection(getUrl(),getUsername(),getPassword());
          st = conn.createStatement();
          rs = st.executeQuery(getQuery());
          rsmd = rs.getMetaData();
          int columncount = rsmd.getColumnCount();
          int rowcount = 0;
          setCount(columncount);
          while(rs.next()){
               rowcount++;
          setRowcnt(rowcount);
     }catch(Exception e){
          throw e;
I did some searching on the internet for this error and found that it is tricky one and so far I havent found a way to correct it.
The link i went to were:
http://developer.java.sun.com/developer/Books/ProJSP/Chap19.pdf
and
http://archives2.real-time.com/rte-tomcat/2000/Jun/msg02490.html
Well, I hope I get some answers soon.
Thanks.

Similar Messages

  • Database access through Beans

    My question is about high level design. I've written some JSP pages and some very simple JavaBeans that work on Tomcat.
    Now I'm trying to design a Database access layer
    I want to have a connection pool class and some other business logic classes communicating with each other.
    How can I start a bean and keep it running and how do I access its methods from other beans?
    Is this even feasible?
    if I declare the scope of the bean as the application would I have to put it in all the pages of the web site or not?
    Also, should I just forget about JavaBeans and do Servlets? Maybe EJB is better for this?
    Please provide some examples in your answer if possible.
    Thanks,
    David A

    My question is about high level design. I've written
    some JSP pages and some very simple JavaBeans that
    work on Tomcat.
    Now I'm trying to design a Database access layerThe design and implementation of a persistence layer has nothing at to do with how the data is eventually displayed. Persistence is the same whether you use a Web or a Swing interface, so the question about Tomcat is moot.
    I'd look at Martin Fowler's "Patterns of Enterprise Application Architecture" for its chapter on persistence or the Hibernate object/relational mapping tool.
    I want to have a connection pool class and some other
    business logic classes communicating with each other.Personally, I prefer to let Tomcat handle the database connection pool. I use the Commons DBCP class and configure my connections that way. Then I have my Java code do a JNDI lookup to access them, do the required database operation, and then close the connection to return it to the pool.
    How can I start a bean and keep it running and how do I access its methods from other beans?
    Is this even feasible? I'm not sure I know what you mean by "start a bean and keep it running". HTTP is a request/response, stateless protocol. You should think about operations as being initiated by a request and then going out of scope once the response is generated, much like the protocol itself. You don't keep a bean running in that case.
    if I declare the scope of the bean as the application would I have to put it in all the pages of the web
    site or not?You have to <jsp:useBean> in every page that needs it. Whether or not application scope is really appropriate or necessary is another matter.
    Also, should I just forget about JavaBeans and do Servlets? You can and should use JSP for View, a servlet as your front controller, and JavaBeans to do the work in the back. It's not an either/or question. You really should be using all three.
    Maybe EJB is better for this?You use EJBs if you have a highly transactional, distributed, clustered application. If none of those things apply to you, there's no reason why you must use EJBs.
    Have a look at the Struts and Spring frameworks.

  • PLEASE HELP:OIM DATABASE ACCESS TABLE CONNECTOR ERROR

    i m using database access table connector with OIM
    the connector is created
    i have created a table (without a column for password) in database (oracle 10g)
    i did create a lookup definition for account status (only created it,not used it anywhere)
    i get the following error at comand prompt when i run the scheduled task( the task did not run  at specified time)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source
    at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
    at $Proxy819.performImport(Unknown Source)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.createGeneric
    ConnectorSuccess(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
    n.java:280)
    at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unkn
    own Source)
    at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.execute(Unkno
    wn Source)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
    2)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown So
    urce)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
    lter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
    yAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
    e.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
    onnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ss(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
    6)
    at java.lang.Thread.run(Thread.java:619)
    *14:40:31,557 ERROR [SERVER] Class/Method: tcTableDataObj/setTimestamp encounter*
    some problems: {1}
    java.lang.NullPointerException
    at com.thortech.xl.dataobj.tcDataSet.setTimestamp(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataSet.setTimestamp(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.setTimestamp(Unknown Source)
    at com.thortech.xl.ddm.instance.visitor.ImportVisitor.visitStarted(Unkno
    wn Source)
    at com.thortech.xl.ddm.instance.SchemaInstance.traverse(Unknown Source)
    at com.thortech.xl.ddm.instance.TableInstance.traverse(Unknown Source)
    at com.thortech.xl.ddm.instance.SchemaInstanceFacade.performImport(Unkno
    wn Source)
    at com.thortech.xl.ejb.beansimpl.tcImportOperationsBean.performImport(Un
    known Source)
    at com.thortech.xl.ejb.beans.tcImportOperationsSession.performImport(Unk
    nown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(St
    atefulSessionContainer.java:598)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
    java:168)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    ke(CachedConnectionInterceptor.java:158)
    at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
    fulSessionInstanceInterceptor.java:333)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
    Interceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
    rceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
    torCMT.java:350)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
    81)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
    ryFinderInterceptor.java:138)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
    48)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
    er.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
    java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(Loca
    lInvoker.java:169)
    at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
    at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerIntercepto
    r.java:209)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
    a:195)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
    java:61)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
    0)
    at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSession
    Interceptor.java:121)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
    at $Proxy606.performImport(Unknown Source)
    at Thor.API.Operations.tcImportOperationsClient.performImport(Unknown So
    urce)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source
    at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
    at $Proxy819.performImport(Unknown Source)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.createGeneric
    ConnectorSuccess(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
    n.java:280)
    at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unkn
    own Source)
    at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.execute(Unkno
    wn Source)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
    2)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown So
    urce)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
    lter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
    yAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
    e.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
    onnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ss(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
    6)
    at java.lang.Thread.run(Thread.java:619)
    14:40:31,573 INFO [DATABASE] delete SUG where SVR_KEY = ?
    14:40:31,589 INFO [DATABASE] delete PUG where PKG_KEY = ?
    14:40:31,604 INFO [DATABASE] delete PRF where TOS_KEY = ?
    14:40:31,620 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:31,620 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:31,635 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:31,651 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,667 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,667 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,682 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,682 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,682 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,682 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,682 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,698 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,698 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,698 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,698 INFO [DATABASE] SELECT STA_KEY SELFKEY FROM STA WHERE STA_STATUS =
    14:40:31,729 INFO [DATABASE] SELECT USR_KEY SELFKEY FROM USR WHERE USR_LOGIN =
    14:40:31,745 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:31,745 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:31,760 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:31,823 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:31,823 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:31,839 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:32,979 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:32,979 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:32,995 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:33,057 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:33,057 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:33,057 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:33,120 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:33,120 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:33,135 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:33,182 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:33,182 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:33,198 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:33,260 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:33,260 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:33,276 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:33,338 INFO [DATABASE] delete MSG where MIL_KEY = ?
    14:40:33,338 INFO [DATABASE] delete MST where MIL_KEY = ?
    14:40:33,354 INFO [DATABASE] delete RML where RML_KEY = ?
    14:40:33,432 INFO [DATABASE] delete OUG where OBJ_KEY = ?
    14:40:33,432 INFO [DATABASE] delete OBA where OBJ_KEY = ?
    14:40:33,682 INFO [DATABASE] delete LKV where LKV_KEY = ?
    14:40:33,682 INFO [DATABASE] delete LKV where LKV_KEY = ?
    14:40:33,682 INFO [DATABASE] delete LKV where LKV_KEY = ?
    14:40:33,682 INFO [DATABASE] delete LKV where LKV_KEY = ?
    14:40:33,682 INFO [DATABASE] delete LKV where LKV_KEY = ?
    14:40:33,682 INFO [DATABASE] delete LKV where LKV_KEY = ?
    14:40:33,682 INFO [DATABASE] delete LKV where LKV_KEY = ?
    14:40:33,682 INFO [DATABASE] delete LKV where LKV_KEY = ?
    14:40:33,745 INFO [STATS] Purging 49 prepared statements
    15:12:12,977 ERROR [DispatchAction] Request[CreateConnector] does not contain h
    andler parameter named method
    Edited by: Chhavi Saluja on Jan 18, 2010 1:11 AM
    Edited by: Chhavi Saluja on Jan 18, 2010 1:12 AM
    Edited by: Chhavi Saluja on Jan 18, 2010 1:42 AM
    Edited by: Chhavi Saluja on Jan 18, 2010 7:13 PM
    i turned off the oim server and then when i started it again this morning, it got started giving following error at command prompt:
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(Mess
    ageDrivenContainer.java:495)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    ke(CachedConnectionInterceptor.java:158)
    at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(Message
    DrivenInstanceInterceptor.java:116)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
    Interceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
    rceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
    torCMT.java:350)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
    81)
    at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityIn
    terceptor.java:109)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
    ryFinderInterceptor.java:138)
    at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenCont
    ainer.java:402)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvo
    ker.java:1092)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onM
    essage(JMSContainerInvoker.java:1392)
    at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:26
    6)
    at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMess
    ageConsumer.java:906)
    at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:17
    0)
    at org.jboss.mq.SpySession.run(SpySession.java:323)
    at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:761)
    at java.lang.Thread.run(Thread.java:619)
    08:49:47,962 ERROR [DATABASE] Error: Error Keyword: DAE.DB_READ_FAILED
    Description: Could not execute database read. The database encountered a proble
    m with the specified SQL query.
    Remedy: Check the database query. Contact your system adminstrator.
    Action: E
    Severity: H
    Help URL:
    Detail:
    com.thortech.xl.orb.dataaccess.tcDataAccessException: DB_READ_FAILEDDetail: SQL:
    select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last
    occurance, erraction, err_help_url, err_severity from err where err_code='DOBJ
    .UPDATE_FAILED'Description: Got a null connectionSQL State: Vendor Code: 0Additi
    onal Debug Info:com.thortech.xl.orb.dataaccess.tcDataAccessException
    at com.thortech.xl.dataaccess.tcDataAccessExceptionUtil.createException(
    Unknown Source)
    at com.thortech.xl.dataaccess.tcDataBase.createException(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataBase.readPartialStatement(Unknown So
    urce)
    at com.thortech.xl.dataobj.tcDataBase.readPartialStatement(Unknown Sourc
    e)
    at com.thortech.xl.dataobj.tcDataBase.readStatement(Unknown Source)
    at com.thortech.xl.dataobj.tcDataBase.getError(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.handleError(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.handleError(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcRCE.finishDataReceived(Unknown Source)
    at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages
    .finishReconciliationEvent(Unknown Source)
    at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages
    .execute(Unknown Source)
    at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.proces
    sMessage(Unknown Source)
    at com.thortech.xl.schedule.jms.messagehandler.ReconMessageHandlerMDB.on
    Message(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(Mess
    ageDrivenContainer.java:495)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    ke(CachedConnectionInterceptor.java:158)
    at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(Message
    DrivenInstanceInterceptor.java:116)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
    Interceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
    rceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
    torCMT.java:350)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
    81)
    at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityIn
    terceptor.java:109)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
    ryFinderInterceptor.java:138)
    at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenCont
    ainer.java:402)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvo
    ker.java:1092)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onM
    essage(JMSContainerInvoker.java:1392)
    at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:26
    6)
    at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMess
    ageConsumer.java:906)
    at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:17
    0)
    at org.jboss.mq.SpySession.run(SpySession.java:323)
    at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:761)
    at java.lang.Thread.run(Thread.java:619)
    Source SQL Exception:
    java.sql.SQLException: Got a null connection
    at com.thortech.xl.dataaccess.tcDataBase.readPartialStatement(Unknown So
    urce)
    at com.thortech.xl.dataobj.tcDataBase.readPartialStatement(Unknown Sourc
    e)
    at com.thortech.xl.dataobj.tcDataBase.readStatement(Unknown Source)
    at com.thortech.xl.dataobj.tcDataBase.getError(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.handleError(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.handleError(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcRCE.finishDataReceived(Unknown Source)
    at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages
    .finishReconciliationEvent(Unknown Source)
    at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages
    .execute(Unknown Source)
    at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.proces
    sMessage(Unknown Source)
    at com.thortech.xl.schedule.jms.messagehandler.ReconMessageHandlerMDB.on
    Message(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(Mess
    ageDrivenContainer.java:495)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    ke(CachedConnectionInterceptor.java:158)
    at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(Message
    DrivenInstanceInterceptor.java:116)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
    Interceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
    rceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
    torCMT.java:350)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
    81)
    at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityIn
    terceptor.java:109)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
    ryFinderInterceptor.java:138)
    at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenCont
    ainer.java:402)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvo
    ker.java:1092)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onM
    essage(JMSContainerInvoker.java:1392)
    at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:26
    6)
    at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMess
    ageConsumer.java:906)
    at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:17
    0)
    at org.jboss.mq.SpySession.run(SpySession.java:323)
    at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:761)
    at java.lang.Thread.run(Thread.java:619)
    08:49:47,977 ERROR [DATABASE] Class/Method: tcDataBase/rollbackTransaction encou
    nter some problems: Rollback Executed From
    java.lang.Exception: Rollback Executed From
    at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Sou
    rce)
    at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcRCE.finishDataReceived(Unknown Source)
    at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages
    .finishReconciliationEvent(Unknown Source)
    at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages
    .execute(Unknown Source)
    at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.proces
    sMessage(Unknown Source)
    at com.thortech.xl.schedule.jms.messagehandler.ReconMessageHandlerMDB.on
    Message(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(Mess
    ageDrivenContainer.java:495)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    ke(CachedConnectionInterceptor.java:158)
    at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(Message
    DrivenInstanceInterceptor.java:116)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
    Interceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
    rceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
    torCMT.java:350)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
    81)
    at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityIn
    terceptor.java:109)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
    ryFinderInterceptor.java:138)
    at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenCont
    ainer.java:402)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvo
    ker.java:1092)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onM
    essage(JMSContainerInvoker.java:1392)
    at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:26
    6)
    at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMess
    ageConsumer.java:906)
    at

    Yes, but looking at your log, make sure you define it in the logger in capital letters (DBADAPTERLOGGER). I've had issues in the past where i defined the log level as noted in the documentation, and it only outputted the errors because it was outputting in all caps.
    The documentation for the connector defines how you should enter your log levels in JBOSS.
    -Kevin

  • Error on load: System.IO.IOException: The process cannot access the file : error in event viewer when users want to view documents from this third party deployed scan solution

    Error on load: System.IO.IOException: The process cannot access the file
    '\\server1\SCANSHARED\.pdf' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
       at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
    I faced this  error in event viewer  when users want to view documents from this third party deployed scan solution
    here I have two WFS servers  and they configured with load balancing in F5 .
    when I enable both servers in F5 I receive this error messages in 2nd server,
    when users want to view documents
    adil

    Do you have antiVirus installed on the sharepoint servers?
    These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
    are uploaded.
    Please follow this KB and exclude the folders from Scanning.
    http://support.microsoft.com/kb/952167
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Accessing managed-bean in a JSP (portal theme).

    I have a tricky situation where I need to access a managed-bean outside a JSF jsr 168 api portlet. Now I need to reference the bean in the themes jsp (just fyi themes loosely relate to JSP's which control the look and feel, navigation within portal page). I was thinking of a way to set a managed-bean variable in the jsp before the portlet where the managed-bean is declared. Is this possible ? Any ideas ?

    You can just access managed beans using JSTL EL.${myBean}or if you strictly want to specify the scope, e.g. session scope${sessionScope.myBean}where "myBean" is the managed bean name. Keep in mind that you cannot use this in input elements, but only in output elements. If you want to use this in input elements, then you should be using JSF components with deferred EL #{myBean.input} and so on.

  • Impossible to access a bean from a JSP in NES 4.0

    We are trying to use a bean in a JSP using the common tag <jsp:useBean id="... /> in a Netscape Enterprise Server 4.0.
    Always we obtain the same error: "JSP compilation error: java.lang.Exception: JSP parse error (line 43) - Incomplete tag ending of /jsp:useBean". Someone can help us?
    Thanks.

    Check NAS4.0 supports jsp 0.92 specs?
    use this tag...
    <USEBEAN name="..." type="..." lifespan="..." >
    </USEBEAN>

  • Can't access a Bean from a JSP page !

    Hello everybody,
    I work with Oracle 8i 8.1.7, it means Oracle HTTP Server + Oracle JSP 1.1.0.0.0. But i don't use the Oracle Servlet Engine.
    In this context, i try to load ` JSP page, which instantiate a Bean. But it is impossible to access to this bean !...
    1) In jserv.properties file, i have mentionned the CLASSPATH to beans directory, as said in the OracleJSP documentation :
    wrapper.classpath=D:\...\myBeansDirectory\
    2) i have copied the .class file of my bean in the bean directory ...
    So did i forget something ?
    Seeking desperatly help !
    Thanks.

    Hi,
    Did you restart the HTTP listener after adding the CLASSPATH to the jserv.properties file? The change in jserv.properties (and in any other configuration files) will take effect only after the listener is restarted.
    Good luck,
    Srinivas.

  • Java Bean Error in JSP: Cannot Resolve Symbol FirstBean

    I have created a java bean with following package statement
    package mybeans;
    and my bean name is
    FirstBean
    it compile secessfully and now my directory structure is following
    WebAppRootDir \ WEB-INF \ classes \ mybeans \ FirstBean.class
    I am using Tomcat 4.1 and in JSP i am declaring the bean with following line
    <jsp:useBean id="b" class="mybeans.FirstBean" />
    and tomcat 4.1 is failed to find this bean and giving me following error
    cannot resolve symbol
    symbol  : class StudentBean 
    location: package mybeans
    mybeans.FirstBean b = null;
    all my class and directory structure is ok i am puzzle why this error is coming, plz help me quickly i need solution quickly ...

    Error is for StudentBean, not for FirstBean. So check for it.

  • Java Bean Error in JSP: Cannot Resolve Symbol Error

    I have created a java bean with following package statement
    package mybeans;
    and my bean name is
    FirstBean
    it compile secessfully and now my directory structure is following
    WebAppRootDir \ WEB-INF \ classes \ mybeans \ FirstBean.class
    I am using Tomcat 4.1 and in JSP i am declaring the bean with following line
    <jsp:useBean id="b" class="mybeans.FirstBean" />
    and tomcat 4.1 is failed to find this bean and giving me following error
    cannot resolve symbol
    symbol  : class FirstBean 
    location: package mybeans
    mybeans.FirstBean b = null;
    all my class and directory structure is ok i am puzzle why this error is coming, plz help me quickly i need solution quickly ...

    It seem to be ok... why dont your try with a newer versi�n of Tomcat?

  • Java.lang.ClassCastException in jsp trying to access session bean

    Ok I'm totally stuck on this. I've been able to deploy my session bean facade to a bunch of entities bean with no problem. Now I'm trying to access the bean from a JSP. I can do a lookup ok, I can even do a PortableRemoteObject.narrow() ok, but when I try to actually cast the object I get an error. I can't understand why narrow works if the object is not of the correct type, when I do reflection I can verify that the object implements the interface I am trying to cast to. But when I do an instanceof the object from narrow is not the right type. I'm totally confused by this.
    Here's my jsp,
    <%@taglib uri="/com/sct/socrates/web/jsp/tld/UserAdmin.tld" prefix="UserAdmin" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.naming.*" %>
    <%@ page import="com.sct.socrates.useradmin.model.UserAdminHome" %>
    <%@page import="javax.rmi.PortableRemoteObject"%>
    <html>
    <body>
    <pre>
    <%
    try {
    InitialContext context = new InitialContext();
    Object object1 = context.lookup("com.sct.socrates.useradmin.model.UserAdminHome");
    out.println(object1.getClass().getName());
    Object object2 = PortableRemoteObject.narrow(object1, UserAdminHome.class);
    out.println(object2.getClass().getName());
    if (object2 instanceof UserAdminHome) out.println("is instance");
    Class[] list = object2.getClass().getInterfaces();
    for(int i=0;i<list.length;i++)
    out.println(list.getName());
    UserAdminHome home = (UserAdminHome) object2;
    } catch (Exception e){
    e.printStackTrace();
    %>
    </pre>
    </body>
    </html>
    Here's the output from the JSP,
    com.sct.socrates.useradmin.model._UserAdminHome_Stub
    com.sct.socrates.useradmin.model._UserAdminHome_Stub
    com.sct.socrates.useradmin.model.UserAdminHome
    Here's the server output,
    FINE: for host 127.0.0.1 trying to GET /socrates/jsp/guest/test.jsp, ntrans-j2ee reports: mapped uri "/jsp/guest/test.jsp" in context "/socrates" to resource
    FINE: context = StandardEngine[null].StandardHost[server1].StandardContext[socrates]
    FINE: contextPath = /socrates
    FINE: wrapper = StandardEngine[null].StandardHost[server1].StandardContext[socrates].StandardWrapper[jsp]
    FINE: servletPath = /jsp/guest/test.jsp
    FINE: pathInfo = null
    FINE: SingleSignOn[server1]: Process request for '/socrates/jsp/guest/test.jsp'
    FINE: SingleSignOn[server1]: Checking for SSO cookie
    FINE: SingleSignOn[server1]: SSO cookie is not present
    FINE: Authenticator[socrates]: Security checking request GET /socrates/jsp/guest/test.jsp
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[community]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[user]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[community]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[moderator]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[admin]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: No applicable constraint located
    FINE: Authenticator[socrates]: Not subject to any constraint
    FINE: JspEngine --> /jsp/guest/test.jsp
    FINE: ServletPath: /jsp/guest/test.jsp
    FINE: PathInfo: null
    FINE: RealPath: E:\dev\app_server\sun\appserv\domains\domain1\server1\applications\j2ee-apps\socrates_3\socrates_war\jsp\guest\test.jsp
    FINE: RequestURI: /socrates/jsp/guest/test.jsp
    FINE: QueryString: null
    FINE: ++++ Entered SecClientRequestInterceptor::send_request()
    FINE: Security context is null (nothing to add to service context)
    FINE: No SAS context element found in service context list
    FINE: ++++ Entered SecClientRequestInterceptor::receive_reply
    FINE: No SAS context element found in service context list
    FINE: Status to be set : 0
    FINE: Invoked receivedReply()
    FINE: ++++ Entered SecClientRequestInterceptor::send_request()
    FINE: Security context is null (nothing to add to service context)
    FINE: No SAS context element found in service context list
    FINE: ++++ Entered SecClientRequestInterceptor::receive_reply
    FINE: No SAS context element found in service context list
    FINE: Status to be set : 0
    FINE: Invoked receivedReply()
    FINE: service-j2ee: name = "com.sct.socrates.useradmin.model._UserAdminHome_Stub", codebase = ""
    FINER: service-j2ee: (thread context class loader: WebappClassLoader
    available:
    delegate: false
    repositories:
    /WEB-INF/classes/
    required:
    ----------> Parent Classloader:
    EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@e1df6e, com.iplanet.ias.loader.EJBClassLoader$URLEntry@13b9fb]
    FINER: service-j2ee: class "com.sct.socrates.useradmin.model._UserAdminHome_Stub" found via codebase, defined by EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@e1df6e, com.iplanet.ias.loader.EJBClassLoader$URLEntry@13b9fb]
    FINE: ++++ Entered SecClientRequestInterceptor::send_request()
    FINE: Security context is null (nothing to add to service context)
    FINE: No SAS context element found in service context list
    FINE: ++++ Entered SecClientRequestInterceptor::receive_reply
    FINE: No SAS context element found in service context list
    FINE: Status to be set : 0
    FINE: Invoked receivedReply()
    FINE: service-j2ee: name = "com.sct.socrates.useradmin.model._UserAdminHome_Stub", codebase = ""
    FINER: service-j2ee: (thread context class loader: WebappClassLoader
    available:
    delegate: false
    repositories:
    /WEB-INF/classes/
    required:
    ----------> Parent Classloader:
    EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@e1df6e, com.iplanet.ias.loader.EJBClassLoader$URLEntry@13b9fb]
    FINER: service-j2ee: class "com.sct.socrates.useradmin.model._UserAdminHome_Stub" found via codebase, defined by EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@e1df6e, com.iplanet.ias.loader.EJBClassLoader$URLEntry@13b9fb]
    WARNING: CORE3283: stderr: java.lang.ClassCastException: com.sct.socrates.useradmin.model._UserAdminHome_Stub
    WARNING: CORE3283: stderr: at jasper.jsp._guest._test_jsp._jspService(_test_jsp.java:89)
    WARNING: CORE3283: stderr: at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
    WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet.service(Unknown Source)
    WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.access$000(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve$1.run(Unknown Source)
    WARNING: CORE3283: stderr: at java.security.AccessController.doPrivileged(Native Method)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(Unknown Source)

    Please configure the classloader to delegate to the parent loader by specifying the following in WEB-INF/sun-web.xml (the Sun ONE Application Server specific deployment descriptor for web applications)
    <class-loader delegate="true"/>
    More information on this can be found at
    http://docs.sun.com/source/816-7150-10/dwdeploy.html#48102
    Thanks,
    Arvind

  • Access bean error, urgent.

    I want to access a bean from my JSP. I am using Tomcat 4.1.
    I put my class file in /web-inf/classes. Please tell me what's wrong?
    This is the part in my jsp:
    <jsp:useBean id="myBean" scope="session" class="MyBean" />This is the error message
    The server encountered an internal error () that prevented it from fulfilling this request.
    exception :
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 50 in the jsp file: /index.jsp
    Generated servlet error:
        [javac] Compiling 1 source file
    D:\Tomcat\work\Standalone\localhost\myApp\index_jsp.java:98: cannot resolve symbol
    symbol  : class MyBean
    location: class org.apache.jsp.index_jsp
          MyBean myBean = null;     This is my Bean class
    public class MyBean
        static final String BEAN_INFO = "MyBean";
        public MyBean()
        public String getBeanInfo()
           return BEAN_INFO;
    }

    If you are using jdk1.3, then add this directive to
    your jsp.
    <%@ page import="MyBean" %>
    And if you are using jdk1.4 then you need to put your
    bean in a package and use,
    <jsp:useBean id="myBean" scope="session"
    class="package_name.MyBean" />AH HAH! That's why the first version doesn't work for me! I'm using JDK 1.4.1! But the books I've been reading cover 1.3! I was wondering about that! (Why is Java never backwards compatible?)
    Don't forget to mention that the package has to be in the correct package directory/folder. In this case:
    WEB-INF/classes/package_name/MyBean.class
    It may be obvious for Java Gurus, but it bears repeating for us newbies!

  • Database access from session bean

    Hello,
    I have a stateless session bean which performs some complex
    calculations, and also does some database access.
    For the database access the bean class has a datasource as
    follows:
    public class TestBean implements SessionBean {
    private DataSource ds_;
    public void ejbCreate() {
         getDataSources();
    private void getDataSources() {
         try {
         Context ictx = new InitialContext();
         ds_ = (DataSource)ictx.lookup("java:comp/env/jdbc/TestDB");
         } catch (Exception e) {
         e.printStackTrace();
         throw new EJBException(e);
    Now this class has a method (which is also in the remote interface)
    calculateSomething(). This method constructs a number of other
    objects that do the actual calculation, and one of these objects
    does the actual database access. How would another object be able to
    use the datasource that was constructed in the bean class?
    I could pass the datasource reference to that object, but that would
    break my encapsulation. This is because that object does not get
    created directly by the bean object, but rather the way the objects
    interact is something like A -> B -> C, where A is the TestBean, and
    C is the object that does the DB access. If I passed the datasource,
    I would need to make B aware of the datasource, which doesn't
    seem good design, because B doesn't do any database access.
    Alternatively I could do the lookup in class C, but that would
    degrade the performance, as an object C gets created and destroyed
    every time the calculateSomething() method is called.
    A third option I have thought of, is to add a public method to the
    bean that returns a connection. Whenever another object gets
    created, a reference to the bean object will be passed along. Then,
    if another object needs to do database access, it will call back
    the bean to get a connection. This seems just as bad (if not worse)
    than the first option.
    Does anyone have an elegant solution for this situation? What is
    the best practice of handling datasources when a bean class doesn't
    do the database access itself? In all the examples I've seen so far,
    all the functionality was in the session bean class, but again that
    doesn't seem good OO design, and would result in a single huge class.
    regards,
    Kostas

    Thanks again to both for the replies. Here are my responses:
    Yi Lin: Yes, I know that an entity bean would solve this problem, however it has been decided not to use entity beans so this is not my call (I think the reason entity beans are not allowed in this project is that they are considered risky: there are other applications that access the same database, so if the container caches entity bean data as you describe, then the users might get inconsistent results).
    Gerard: Actually object B is the one that has the business logic and C is a peer object that only does database access and no calculaitons. For example B can be Customer, and C CustomerDB. This is why object B does not have any knowledge of datasources or connections. So my design does not appear to be that bad!
    As far as the factory you propose is concerned, I cannot understand how this would solve my problem. In order to solve this situation the factory would need to be persistent, i.e. get created by the ejbCreate() method, and destroyed whenever the container decides to destroy the bean. There would be no point in object C creating the factory, as I would have the overhead of doing the JNDI lookup every time I create a C.
    So the question remains the same: how would I pass a reference to the factory from A to C without making B aware of it?

  • Error in jsp accessing beans in OSE

    I have an application with jsps and ejbs I am trying to run from OSE. (Solaris8/9iAS)
    The beans &jsp have been loaded to database and the jsps have been published
    When the jsps try to access the beans I get the following error
    -- The message of the exception is
    Could not instantiate adapter: java.lang.NullPointerException
    org.omg.CORBA.OBJ_ADAPTER: Could not instantiate adapter: java.lang.NullPointerException minor code: 0 completed: No
    From previous topics posted to this Forum others have experienced similar problem.
    Would appreciate any help.
    Thanks in advance.

    refresh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by DG:
    I have an application with jsps and ejbs I am trying to run from OSE. (Solaris8/9iAS)
    The beans &jsp have been loaded to database and the jsps have been published
    When the jsps try to access the beans I get the following error
    -- The message of the exception is
    Could not instantiate adapter: java.lang.NullPointerException
    org.omg.CORBA.OBJ_ADAPTER: Could not instantiate adapter: java.lang.NullPointerException minor code: 0 completed: No
    From previous topics posted to this Forum others have experienced similar problem.
    Would appreciate any help.
    Thanks in advance.<HR></BLOCKQUOTE>
    null

  • Error while accessing OIM UI - OracleJSP error: oracle.jsp.parse.JspParseException

    We have 3 nodes of OIM servers in our clustered production environment. While accessing OIM server on first node, following error is coming in the browser window -
    OracleJSP error: oracle.jsp.parse.JspParseException:
    /oracle/iam/ui/main/signin.jspx: Line # 5, &amp;amp;amp;lt;af:document id="d1" initialFocusId="pt1:_pt_it1" theme="light" title="#{uiBundle['IDENTITY_SELF_SERVICE_TITLE']}"&amp;amp;amp;gt;
    Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral
    The OIM UI is accessible on the other 2 nodes. There are no changes made in the environment. I have also attached the OIM diagnostic logs for your analysis.
    Please let us know the steps to resolve this issue in production environment.

    No..
    I have followed the way to add JSF libray,
    1)Right click the projet->project properties->javadoc->JSP taglibraries
    2)Inside the Distributed Library i have selected the JSTL core 1.2 and click on add.
    3) Then a new dialogue box of Choose tablibraries came.inside that only struts bean,struts Html etc are seeing.
    What i need to select?..Do i am following the right way?
    Please help..

  • BIB-16613 Database access error occurred while connecting to the OLAP insta

    I am trying to connect to the database using the BI Beans sample bootstrap.jpr
    I am getting the BIB-16613 error.
    oracle.dss.security.BISecurityException: BIB-16613 Database access error occurred while connecting to the OLAP instance.
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    The bi_checkconfig utility gives me:
    C:\utils\JDev903\bibeans\bin>bi_checkconfig -h pavelr -po 1521 -sid LOCAL -u BIBDEMO -p BIBDEMO
    BI Beans Diagnostics(v1.0.0.0) 17/03/03
    ===============================================================================
    JDEV_ORACLE_HOME ............................. = C:\utils\JDev903
    JAVA_HOME .................................... = C:\OraHome1\jdk
    JDeveloper version ........................... = 9.0.3.1035 (Production)
    BI Beans version ............................. = 9.0.3.4.0
    BI Beans internal version .................... = 2.7.0.11.3
    Connect to database .......................... = Successful
    JDBC driver version .......................... = 9.2.0.1.0
    JDBC JAR file location ....................... = C:\utils\JDev903\jdbc\lib
    Database version ............................. = 9.2.0.2.1
    OLAP Catalog version ......................... = N/A
    OLAP AW Engine version ....................... = N/A
    OLAP API Server version ...................... = N/A
    BI Beans Catalog version ..................... = N/A; not installed in BIBDEMO
    OLAP API JAR file version .................... = 9.2
    OLAP API JAR file location ................... = C:\utils\JDev903\jdev\lib\ext
    Load OLAP API metadata ....................... = Successful
    Number of metadata folders ................... = 3
    Number of metadata measures .................. = 26
    Number of metadata dimensions ................ = 22
    Metadata output location ..................... = C:\utils\JDev903\bibeans\bin\bi_metadata.txt
    I can connect to OLAP BIBDEMO (and SH) schema using OEM.
    I can connect to BIBDEMO from JDev Connections (Catalog connection to BIBCAT, OLAP connection to BIBDEMO).
    How can I establish the connection from the bootstrap sample?
    Pavel

    Please try follow the steps under "Installing and Configuring the Samples "http://otn.oracle.com/products/bib/htdocs/samples/installing_samples.html - the section titled "Update the samples project settings".

Maybe you are looking for

  • Hp laserjet 4500 color printer connection questions

    I've got a HP 4500 color laser printer which I bought in 2000.  Model # 4084A  Serial number jphcf07074.  I used it at my business on a network with a ethernet card connection.  The business is closed, and the ethernet card has died.  I am trying to

  • J4W 10.5 custom tab icon not visible

    After upgrading to Jabber Windows 10.5, the icon for my custom tab implementation is no longer displayed. Originally configured according to these instructions: http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_7/JABW_BK_C4C679C9_00

  • Saving Project Properties as Defaults-It Always Opens in NTSC and Not PAL.

    Whenever I open LiveType the Project Properties are set to the default NTSC 40:27. All my work is done in PAL 4:3. I have selected File>Settings>Remember Settings but still when I open LT I find it has reverted to NTSC. Am I doing something wrong or

  • E5 connection to OVI stores

    Hi guys, I hope someone can help me. I have had my E5 a couple of weeks now and am having trouble connecting to OVI stores to download apps. I have a nokia account which I have set up using my PC at home but when I enter the correct credentials throu

  • Save selection marquee?

    I have Mac OS X with PS CS5. Is there a way to save an image in which I have selected a portion of an image, and have the selection marquee (marching ants) be part of the saved file so that when I reopen the file, the selection marquee is still visib