Oracle ArrayIndexOutOfBoundsException on rs.getString

I receive the following error calling
ts.getString method with oracle thin jdbc driver.
Do you have any Idea?
Thanks..
Ivan
java.lang.ArrayIndexOutOfBoundsException
at oracle.sql.NUMBER.toString(NUMBER.java:824)
at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java:3482)
at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:434)
at isidenet.it.sar.Query.eseguiSQLC2(Query.java:87)
at isidenet.it.sar.Query.main(Query.java:282)
Exception in thread "main"

Hi My Friends here I am first please solve my problem
The Program on JSP ,MS Access
<%
String dept_name=request.getParameter("D1");
String itmp,itmcd,sn;
%>
<%
Connection con;
PreparedStatement ps;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:acc");
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery("select * from item_details where Item_Name='"+dept_name+"'
%>
<div align="left">
<table border="0" width="100%" height="400" >
<td><font color="e8e800" size="4" face="arial unicode ms">Product name</td>
<td><font color="#ffffff" size="4" face="arial unicode ms">Product description</td>
<td><font color="#ffffff" size="4" face="arial unicode ms">Product code</td>
<td><font color="#cc6600" size="4" face="arial unicode ms">Product price</td></tr>
<form method=post action="mycreate.jsp">
<%
while(rs.next())
%><tr>
<td><font color="#ffffff" size="3" face="arial unicode
ms">    <%=rs.getString(1)%></td>
<td><font color="#ffffff" size="3" face="arial unicode
ms">    <%=rs.getString(4)%></td>
<td><font color="#ffffff" size="3" face="arial unicode
ms">    <%=rs.getString(3)%></td>
<% String temp=rs.getString(3);%>
<%=temp%>
<td><font color="#ffffff" size="3" face="arial unicode
ms">    <%=rs.getString(5)%></td>
<td><input type=submit value="Add to cart"></td></tr>
<form method=post action="mycreate.jsp">
<%
con.close();
%>
</tr>
</table></tr></table></tr></table>
</form>
</form>
I have facing a problem on followed line:
<%=rs.getString(3)%></td>
<% String temp=rs.getString(3);%>
<%=temp%>
I want the value by fetching into a variable but I can't

Similar Messages

  • Oracle.sql.LnxLibThin.lnxnuc

    When I try to retrieve a value from a simple select in a SQL
    I get the following ugly error:
    java.lang.ArrayIndexOutOfBoundsException
    at oracle.sql.LnxLibThin.lnxnuc(LnxLibThin.java:6070)
    at oracle.sql.NUMBER.toText(NUMBER.java:2664)
    at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java:3531)
    at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:434)
    The exception is thrown in point ticked below
    while (rs.next())
    for (int i=1; i<=numberOfColumns; i++) {
    // here the exception is THROWN in the first row of Resultset
    myvar = "" + rs.getString(i);
    The SQL works in PL/SQL bringing the following resultset:
    0,0
    2,0
    2,0
    1,5
    0,0
    Do u have any idea?
    Thanks.
    C.

    I too am getting the same exception. Pls let me know if you have found any solution to this problem.
    Here I get user define object from Oracle8i DB using aoracle 9i client.
    the code is
    ResultSet rs = (ResultSet)call.getObject(10);
    Stack trace on rs.getString(5)
    java.lang.ArrayIndexOutOfBoundsException: 2
         at oracle.sql.LnxLibThin.lnxnuc(LnxLibThin.java:6070)
         at oracle.sql.NUMBER.toText(NUMBER.java:2664)
         at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java:3531)
         at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:434)
         at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1482)
         at com.cisco.is.cpapp.dbaccess.CpappCertDAOImpl.processGetPartnerCertInfoPrResults(CpappCertDAOImpl.java:189)
         at com.cisco.is.cpapp.dbaccess.CpappCertDAO.getPartnerCertInfoPr(CpappCertDAO.java:405)

  • Issue while selecting XMLType column in Oracle 10G

    HI All.
         We are trying to get some value from XML Type column and it works fine with Oracle 11g, we are trying the same with Oracle 10g but it fails with below  stack Trace . looking at the stack Trace we feel it is the issue with ODP.net ,
    we have below oracle Versions installed in our Server .
    Oracle Data Access Components    ---  10.2.0.2.21
    Oracle Database 10g Release 2 Patch Set 3  --- 10.2.0.4.0
    Kindly let us know if it is specific to any ODP.net issue, or anyone has some sought of work around to resolve this issue .
    -----------Stack Trace --------------------------------------------------------
    Message: Exception has been thrown by the target of an invocation.
    StackTrace:    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at System.Web.Services.Protocols.WebServiceHandler.Invoke()
       at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
       at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
       at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
       at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
       at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
       at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    InnerException: System.AccessViolationException
    Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    StackTrace:    at Oracle.DataAccess.Types.OpsXmlStream.GetValueBuffer(IntPtr opsConCtx, IntPtr opsErrCtx, IntPtr opsXmlTypeCtx, IntPtr& opsXmlStreamValueBuffer, Int32& numCharsInBuffer)
       at Oracle.DataAccess.Client.OracleDataReader.GetString(Int32 i)
       at Oracle.DataAccess.Client.OracleDataReader.GetValue(Int32 i)
       at Oracle.DataAccess.Client.OracleCommand.ExecuteScalar()
       at ProVation.DataAccess.CProvDatabase.GetScalar(SQLText& sql, Object& returnval, String& user)
       at ProVation.DataAccess.CProvDatabase.GetScalar(SQLText& sql, String& returnval, String defaultvalue, String& user)
       at ProVation.BusinessRules.ConfigsBR.GetDocumentXML(String specialty, Boolean isProvationXML, Boolean isEdit)
       at ProVation.BusinessRules.ConfigsBR.GetTreeXML(String terminal, String site, String speciality, DataSet& ds, DataSet& dsXML)
       at WKOSAWS.GetTreeXML(String terminal, String key, String strSpeciality, String strSite, DataSet& dsSpeciality) in c:\inetpub\wwwroot\WKOSAWS\App_Code\WKOSAWS.cs:line 207
    Thanks in Advance
    Suren

    Thanks Alex .
    We will try to Install ODP.NET 11.2 Release 5 and proceed further .
    Thanks,
    Suren

  • Running CMP EJB in remote OC4J fails, works in embedded. Oracle 9i

    I more or less followed the EJB Tutorial (in the help) for creating a session-entity bean facade from Oracle 9i tables. Everything executes correctly in the embedded oc4j but it fails on the remote oc4j with
    java.sql.SQLException: Invalid column name
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:229)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:292)
         at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.java:5632)
         at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:716)
         at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1506)
         at com.evermind.sql.FilterResultSet.getString(FilterResultSet.java:585)
         at EmployeeLocalHome_EntityHomeWrapper13.findAll(EmployeeLocalHome_EntityHomeWrapper13.java:1260)
    Then I also created another simpler CMP EJB that just has 3 fields from Oracle table. This one doesn't even work in embedded oc4j :
    com.evermind.server.rmi.OrionRemoteException: Database error: ORA-01747: invalid user.table.column, table.column, or column specification
         java.util.Collection TimesheetHoursHome_EntityHomeWrapper11.findAll()
    Are there any known problems I should look out for with generating CMP EJBS with wizards?
    I think the IDE is more intuitive than WSAD. It would be great it things worked though.
    Another question is regarding relationships. Do the wizards always use ejb-refs to implement relationships? It should be easy enough to add them with EJB Editor if they do not.
    Thanks for any help.

    Known issues are documented in the release notes
    http://otn.oracle.com/products/jdev/htdocs/readme_903Preview.html#ejb
    <<<Another question is regarding relationships. Do the wizards always use ejb-refs to implement relationships? >>>>
    Not sure what you meant here. If you reverse engineer let us say DEPT and EMP tables, foreign key relationships between the tables are reverse engineered as CMR but there aren't any ejb-ref/ejb-local-ref tags which get generated in the deployment descriptor.
    <<It should be easy enough to add them with EJB Editor if they do not. >>
    You can double-click on the EJB to bring the EJB Module Editor and select "Relationships" node to add/edit/delete relationships visually.
    raghu
    JDev Team

  • "Conversion to String failed"  When attempting to call rs.getString()

    Hello All,
    I'm getting a "Conversion to String failed" exception being thrown from oracle jdbc when I attempting to call the rs.getString(1) method on a column type of DATE.
    During investigations we've found the following:
    1. The query is fine, and is performing a "select * from table".
    2. I see this problem when using 9i database (v 9.2.0.7) with 9i jdbc drivers (v9.2.0.7).
    3. Strangely enough, if I use 10g jdbc drivers with the 9i database this problem goes away, and naturally I don't see this problem at all using a 10g driver working against a 10g database.
    4. Grabbing the DATE value using the getDate() instead of getString() API works just fine in 9i.
    5. The 9i rs.getString() API call will work with some date values in the database and not with others.
    6. The data placed into the DATE column in question could have been placed there using different driver type from the 9i.
    So, the 9i getString() API seems to be a problem.
    At this point, based upon points 5 and 6 above, I'm thinking there is a bug in the oracle 9i jdbc drivers that is unable to convert DATE type data using the getString() API if the data was initially placed into the database using a different driver type. But, this would mean that the format of the data in the database would be different depending upon the means of getting the data there in the first place (which doesn't make much sense).
    Here is the pertinent Stack Trace:
    java.sql.SQLException: Conversion to String failed
    at oracle.sql.Datum.stringValue(Datum.java:173)
    at oracle.jdbc.driver.ScrollableResultSet.getString(ScrollableResultSet.java:684)
    at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1549)
    at com.revenuesolutionsinc.dali.sql.DALResultSet.getString(DALResultSet.java:325)
    Any help on this matter would be greatly appreciated.
    Thanks,
    Doug Newcomb

    Doug,
    Pardon me for stating the obvious, but is there a
    reason why you cannot use method "getDate()" instead
    of method "getString()"?
    For your information, you can report bugs via the
    MetaLink
    Web site.
    Good Luck,
    Avi.Thanks for the reply Avi,
    The main reason is that we've got mountains of code that would need to be refactored. Also, the getString() method worked fine for over a year.
    So we are looking towards finding out why this is happening before making the decision to refactor.
    I will be placing a TAR with Oracle on Monday, but I thought I'd try to find out if anyone else has run into a similar problem.

  • (oracle.jbo.ConfigException) JBO-33001: Configuration file /tester.xcfg is

    I am getting the error "(oracle.jbo.ConfigException) JBO-33001: Configuration file /tester.xcfg is not found on the classpath" when I try to run the Application module.
    stack trace
    SEVERE: MDSConfigurationException encountered in parseADFConfigurationMDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
    oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
         at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
         at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
         at oracle.mds.config.CustConfig.<init>(CustConfig.java:242)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:1145)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:1218)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:781)
         at oracle.mds.core.MDSInstance.getMDSConfigFromDocument(MDSInstance.java:2788)
         at oracle.mds.core.MDSInstance.findAndStoreMDSInstanceWithCustConfig(MDSInstance.java:2621)
         at oracle.mds.core.MDSInstance.getOrCreateInstanceInternal(MDSInstance.java:2118)
         at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:812)
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:146)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:541)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:612)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:590)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:655)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:650)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.readAdfConfig(AppBundleInfoRT.java:341)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.loadData(AppBundleInfoRT.java:123)
         at oracle.javatools.resourcebundle.AppBundleInfoFactoryRT.createAppBundleInfo(AppBundleInfoFactoryRT.java:83)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfoUnlocked(ResourceBundleUtils.java:334)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfo(ResourceBundleUtils.java:325)
         at oracle.javatools.resourcebundle.ResourceBundleCacheConfig.getCurrentAppConfig(ResourceBundleCacheConfig.java:109)
         at oracle.javatools.resourcebundle.ResourceBundleManagerRT.<init>(ResourceBundleManagerRT.java:84)
         at oracle.javatools.resourcebundle.ResourceBundleManager.getResourceBundleManager(ResourceBundleManager.java:183)
         at oracle.javatools.resourcebundle.BundleFactory.getMap(BundleFactory.java:86)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:245)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:206)
         at oracle.jbo.common.StringManager.getStringFromBundle(StringManager.java:590)
         at oracle.jbo.common.StringManager.getStringInternal(StringManager.java:538)
         at oracle.jbo.common.StringManager.getString(StringManager.java:485)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:267)
         at oracle.jbo.common.JboExHelperLocalized.getErrorMsg(JboExHelperLocalized.java:278)
         at oracle.jbo.common.JboExceptionHelper.getLocalizedMessage(JboExceptionHelper.java:203)
         at oracle.jbo.common.JboExHelperLocalized.getLocalizedMessage(JboExHelperLocalized.java:157)
         at oracle.jbo.common.JboExceptionHelper.getMessage(JboExceptionHelper.java:147)
         at oracle.jbo.JboWarning.getMessage(JboWarning.java:231)
         at oracle.jbo.JboException.<init>(JboException.java:347)
         at oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper.<init>(ErrorHandler.java:42)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:442)
    Apr 23, 2013 5:24:47 AM oracle.javatools.resourcebundle.AppBundleInfoRT loadData
    SEVERE: { type : AppBundleInfoRT, id : 'en_US-ScmEss.oracle.apps.scm-null', moRefName : null, appBundleName : null, writable : false, dirty : false, hasMdsConfig : false, appOverrideBundle : null}: Fail to read adf-config.xml
    oracle.adf.share.ADFShareException: MDSConfigurationException encountered in parseADFConfiguration
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:209)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:541)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:612)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:590)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:655)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:650)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.readAdfConfig(AppBundleInfoRT.java:341)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.loadData(AppBundleInfoRT.java:123)
         at oracle.javatools.resourcebundle.AppBundleInfoFactoryRT.createAppBundleInfo(AppBundleInfoFactoryRT.java:83)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfoUnlocked(ResourceBundleUtils.java:334)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfo(ResourceBundleUtils.java:325)
         at oracle.javatools.resourcebundle.ResourceBundleCacheConfig.getCurrentAppConfig(ResourceBundleCacheConfig.java:109)
         at oracle.javatools.resourcebundle.ResourceBundleManagerRT.<init>(ResourceBundleManagerRT.java:84)
         at oracle.javatools.resourcebundle.ResourceBundleManager.getResourceBundleManager(ResourceBundleManager.java:183)
         at oracle.javatools.resourcebundle.BundleFactory.getMap(BundleFactory.java:86)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:245)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:206)
         at oracle.jbo.common.StringManager.getStringFromBundle(StringManager.java:590)
         at oracle.jbo.common.StringManager.getStringInternal(StringManager.java:538)
         at oracle.jbo.common.StringManager.getString(StringManager.java:485)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:267)
         at oracle.jbo.common.JboExHelperLocalized.getErrorMsg(JboExHelperLocalized.java:278)
         at oracle.jbo.common.JboExceptionHelper.getLocalizedMessage(JboExceptionHelper.java:203)
         at oracle.jbo.common.JboExHelperLocalized.getLocalizedMessage(JboExHelperLocalized.java:157)
         at oracle.jbo.common.JboExceptionHelper.getMessage(JboExceptionHelper.java:147)
         at oracle.jbo.JboWarning.getMessage(JboWarning.java:231)
         at oracle.jbo.JboException.<init>(JboException.java:347)
         at oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper.<init>(ErrorHandler.java:42)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:442)
    Caused by: oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
         at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
         at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
         at oracle.mds.config.CustConfig.<init>(CustConfig.java:242)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:1145)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:1218)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:781)
         at oracle.mds.core.MDSInstance.getMDSConfigFromDocument(MDSInstance.java:2788)
         at oracle.mds.core.MDSInstance.findAndStoreMDSInstanceWithCustConfig(MDSInstance.java:2621)
         at oracle.mds.core.MDSInstance.getOrCreateInstanceInternal(MDSInstance.java:2118)
         at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:812)
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:146)
         ... 35 more
    Apr 23, 2013 5:24:51 AM oracle.jbo.jbotester.MainFrame exit
    INFO: BC4J Tester exit code(-3)Please help me to solve this.
    Edited by: Manikanda Prabhu on Apr 23, 2013 5:29 AM

    I am getting the error "(oracle.jbo.ConfigException) JBO-33001: Configuration file /tester.xcfg is not found on the classpath" when I try to run the Application module.
    stack trace
    SEVERE: MDSConfigurationException encountered in parseADFConfigurationMDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
    oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
         at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
         at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
         at oracle.mds.config.CustConfig.<init>(CustConfig.java:242)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:1145)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:1218)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:781)
         at oracle.mds.core.MDSInstance.getMDSConfigFromDocument(MDSInstance.java:2788)
         at oracle.mds.core.MDSInstance.findAndStoreMDSInstanceWithCustConfig(MDSInstance.java:2621)
         at oracle.mds.core.MDSInstance.getOrCreateInstanceInternal(MDSInstance.java:2118)
         at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:812)
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:146)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:541)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:612)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:590)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:655)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:650)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.readAdfConfig(AppBundleInfoRT.java:341)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.loadData(AppBundleInfoRT.java:123)
         at oracle.javatools.resourcebundle.AppBundleInfoFactoryRT.createAppBundleInfo(AppBundleInfoFactoryRT.java:83)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfoUnlocked(ResourceBundleUtils.java:334)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfo(ResourceBundleUtils.java:325)
         at oracle.javatools.resourcebundle.ResourceBundleCacheConfig.getCurrentAppConfig(ResourceBundleCacheConfig.java:109)
         at oracle.javatools.resourcebundle.ResourceBundleManagerRT.<init>(ResourceBundleManagerRT.java:84)
         at oracle.javatools.resourcebundle.ResourceBundleManager.getResourceBundleManager(ResourceBundleManager.java:183)
         at oracle.javatools.resourcebundle.BundleFactory.getMap(BundleFactory.java:86)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:245)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:206)
         at oracle.jbo.common.StringManager.getStringFromBundle(StringManager.java:590)
         at oracle.jbo.common.StringManager.getStringInternal(StringManager.java:538)
         at oracle.jbo.common.StringManager.getString(StringManager.java:485)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:267)
         at oracle.jbo.common.JboExHelperLocalized.getErrorMsg(JboExHelperLocalized.java:278)
         at oracle.jbo.common.JboExceptionHelper.getLocalizedMessage(JboExceptionHelper.java:203)
         at oracle.jbo.common.JboExHelperLocalized.getLocalizedMessage(JboExHelperLocalized.java:157)
         at oracle.jbo.common.JboExceptionHelper.getMessage(JboExceptionHelper.java:147)
         at oracle.jbo.JboWarning.getMessage(JboWarning.java:231)
         at oracle.jbo.JboException.<init>(JboException.java:347)
         at oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper.<init>(ErrorHandler.java:42)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:442)
    Apr 23, 2013 5:24:47 AM oracle.javatools.resourcebundle.AppBundleInfoRT loadData
    SEVERE: { type : AppBundleInfoRT, id : 'en_US-ScmEss.oracle.apps.scm-null', moRefName : null, appBundleName : null, writable : false, dirty : false, hasMdsConfig : false, appOverrideBundle : null}: Fail to read adf-config.xml
    oracle.adf.share.ADFShareException: MDSConfigurationException encountered in parseADFConfiguration
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:209)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:541)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:612)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:590)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:655)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:650)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.readAdfConfig(AppBundleInfoRT.java:341)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.loadData(AppBundleInfoRT.java:123)
         at oracle.javatools.resourcebundle.AppBundleInfoFactoryRT.createAppBundleInfo(AppBundleInfoFactoryRT.java:83)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfoUnlocked(ResourceBundleUtils.java:334)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfo(ResourceBundleUtils.java:325)
         at oracle.javatools.resourcebundle.ResourceBundleCacheConfig.getCurrentAppConfig(ResourceBundleCacheConfig.java:109)
         at oracle.javatools.resourcebundle.ResourceBundleManagerRT.<init>(ResourceBundleManagerRT.java:84)
         at oracle.javatools.resourcebundle.ResourceBundleManager.getResourceBundleManager(ResourceBundleManager.java:183)
         at oracle.javatools.resourcebundle.BundleFactory.getMap(BundleFactory.java:86)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:245)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:206)
         at oracle.jbo.common.StringManager.getStringFromBundle(StringManager.java:590)
         at oracle.jbo.common.StringManager.getStringInternal(StringManager.java:538)
         at oracle.jbo.common.StringManager.getString(StringManager.java:485)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:267)
         at oracle.jbo.common.JboExHelperLocalized.getErrorMsg(JboExHelperLocalized.java:278)
         at oracle.jbo.common.JboExceptionHelper.getLocalizedMessage(JboExceptionHelper.java:203)
         at oracle.jbo.common.JboExHelperLocalized.getLocalizedMessage(JboExHelperLocalized.java:157)
         at oracle.jbo.common.JboExceptionHelper.getMessage(JboExceptionHelper.java:147)
         at oracle.jbo.JboWarning.getMessage(JboWarning.java:231)
         at oracle.jbo.JboException.<init>(JboException.java:347)
         at oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper.<init>(ErrorHandler.java:42)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:442)
    Caused by: oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
         at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
         at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
         at oracle.mds.config.CustConfig.<init>(CustConfig.java:242)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:1145)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:1218)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:781)
         at oracle.mds.core.MDSInstance.getMDSConfigFromDocument(MDSInstance.java:2788)
         at oracle.mds.core.MDSInstance.findAndStoreMDSInstanceWithCustConfig(MDSInstance.java:2621)
         at oracle.mds.core.MDSInstance.getOrCreateInstanceInternal(MDSInstance.java:2118)
         at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:812)
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:146)
         ... 35 more
    Apr 23, 2013 5:24:51 AM oracle.jbo.jbotester.MainFrame exit
    INFO: BC4J Tester exit code(-3)Please help me to solve this.
    Edited by: Manikanda Prabhu on Apr 23, 2013 5:29 AM

  • FailAL32UTF8Conv when runnjing Toplink 9.0.4.2 w/ Oracle/JDBC 9.2.0.6

    Hi folks, I wonder if anyone has run across this issue. Our DBA's recently upgraded our database from Oracle 9.2.0.5 to 9.2.0.6. Our Toplink code (we're using Toplink 9.0.4.2) which was integrated with PL/SQL stored procs stopped working until we changed the 10.1.0.2.0 JDBC driver to the 9.2.0.6.0 driver included with the database upgrade distribution. Problem is that when running the 9.2.0.6.0 JDBC driver, we're now getting the below error when attempting to query a table that may have UTF-8 characters. I've also tried the 10.1.0.3.0 JDBC driver found in the Instant Client download and it also has problems with the stored procs. Does anybody have any idea how to get around these incompatibilities?
    2005.03.16 01:15:27.893--ServerSession(9867226)--Thread[main,5,main]--Connection(31761534)--SELECT XXX
    2005.03.16 01:15:27.893--ServerSession(9867226)--Thread[main,5,main]--Connection(31761534)--reconnecting to external connection pool
    2005.03.16 01:15:27.893--ServerSession(9867226)--Thread[Thread-1,5,main]--Initializing local discovery communication socket
    2005.03.16 01:15:27.893--ServerSession(9867226)--Thread[Thread-1,5,main]--Place local remote session dispatcher into naming service
    2005.03.16 01:15:27.893--ServerSession(9867226)--Thread[Thread-1,5,main]--Getting local initial context
    2005.03.16 01:15:28.409--ClientSession(25463023)--Thread[main,5,main]--Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.2) (Build 040311)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: Invalid character encountered in: failAL32UTF8Conv
    Internal Exception: java.sql.SQLException: Invalid character encountered in: failAL32UTF8Conv
    Error Code: 17055Local Exception Stack:
    Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.2) (Build 040311)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: Invalid character encountered in: failAL32UTF8Conv
    Internal Exception: java.sql.SQLException: Invalid character encountered in: failAL32UTF8Conv
    Error Code: 17055
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:226)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:1066)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:829)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:682)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:134)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:197)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:567)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:732)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:707)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:424)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
         at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
         at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java:629)
         at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java:392)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
         at com.emc.km.dao.toplink.DAOImpl.queryByExpression(DAOImpl.java:797)
         at com.emc.km.companysearch.CompanySearchServiceImpl.getCompanyBeans(CompanySearchServiceImpl.java:231)
         at com.emc.km.companysearch.tests.CompanySearchServiceTest.testGetCompaniesToCreateProfile(CompanySearchServiceTest.java:81)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.mockejb.OptionalCactusTestCase.runTestLocally(OptionalCactusTestCase.java:139)
         at org.mockejb.OptionalCactusTestCase.runBareLocally(OptionalCactusTestCase.java:100)
         at org.mockejb.OptionalCactusTestCase.runBare(OptionalCactusTestCase.java:74)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)
    Caused by: java.sql.SQLException: Invalid character encountered in: failAL32UTF8Conv
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
         at oracle.jdbc.dbaccess.DBConversion.failAL32UTF8Conv(DBConversion.java:2837)
         at oracle.jdbc.dbaccess.DBConversion.al32utf8BytesToJavaChars(DBConversion.java:2437)
         at oracle.jdbc.dbaccess.DBConversion.charBytesToJavaChars(DBConversion.java:884)
         at oracle.jdbc.dbaccess.DBConversion.CHARBytesToJavaChars(DBConversion.java:807)
         at oracle.jdbc.ttc7.TTCItem.getChars(TTCItem.java:298)
         at oracle.jdbc.dbaccess.DBDataSetImpl.getCharsItem(DBDataSetImpl.java:1519)
         at oracle.jdbc.driver.OracleStatement.getCharsInternal(OracleStatement.java:3570)
         at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java:3774)
         at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:460)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:1026)
         ... 36 more
    2005.03.16 01:15:28.424--ClientSession(25463023)--Thread[main,5,main]--client released

    HI All,
    I am also facing the same error while using the Oracle 9i with toplink.
    I have migrated fro oracle 10g to Oracle 9i. Still facing the same error.
    Can anybody has solution on this? Please let me know.
    2008-01-16 11:03:51,683 [ebContainer : 2] INFO - getHomeProc()() Before Stored Proc Call:
    2008-01-16 11:03:51,683 [ebContainer : 2] INFO - SubmissionSearchDAOImpl.getHomeProc()() getHomePageSearchParams
    2008-01-16 11:03:51,683 [ebContainer : 2] INFO - SubmissionSearchDAOImpl.getHomeProc()() Invoking Stored Proc
    2008.01.16 11:03:51.683--ServerSession(1080233087)--Thread[WebContainer : 2,5,main]--client acquired
    [16/01/08 11:03:51:683 IST] 00000035 SystemOut O 2008.01.16 11:03:51.683--ClientSession(1437600832)--Thread[WebContainer : 2,5,main]--Execute query ReadAllQuery(com.ubs.ibd.ba.dto.SubmissionSearchDTOImpl)
    [16/01/08 11:03:51:683 IST] 00000035 SystemOut O 2008.01.16 11:03:51.683--ServerSession(1080233087)--Thread[WebContainer : 2,5,main]--Connection(1781500992)--BEGIN PK_BA_SEARCH_HOMEPAGE.pr_approval_homepage_search(P_EMPLOYEE_ID=>?, P_RESULTS=>?); END;
         bind => [3156641]
    [16/01/08 11:03:51:683 IST] 00000035 SystemOut O 2008.01.16 11:03:51.683--ServerSession(1080233087)--Thread[WebContainer : 2,5,main]--Connection(1781500992)--reconnecting to external connection pool
    [16/01/08 11:03:51:683 IST] 00000035 SystemOut O 2008.01.16 11:03:51.683--ClientSession(1437600832)--Thread[WebContainer : 2,5,main]--Exception [b[b]][TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.2) (Build 040311)): oracle.toplink.exceptions.DatabaseExceptionException Description: java.sql.SQLException: OALL8 is in an inconsistent state.
    Internal Exception: java.sql.SQLException: OALL8 is in an inconsistent state.
    Error Code: 0[16/01/08 11:03:51:683 IST] 00000035 SystemOut O 2008.01.16 11:03:51.683--ClientSession(1437600832)--Thread[WebContainer : 2,5,main]--client released
    [16/01/08 11:03:51:698 IST] 00000035 SystemOut O 2008-01-16 11:03:51,698 [ebContainer : 2] INFO - getHomeProc()() After Stored Proc Call: Time Taken [15]
    2008-01-16 11:03:51,698 [ebContainer : 2] INFO - getHomeProc()() Sorting
    2008-01-16 11:03:51,698 [ebContainer : 2] DEBUG - SubmissionSearchService() sort: Entered
    2008-01-16 11:03:51,698 [ebContainer : 2] DEBUG - SubmissionSearchService() sort: Start Sort: size of collection[0]
    2008-01-16 11:03:51,698 [ebContainer : 2] DEBUG - SubmissionSearchService() sort: End Sort: ETime taken[0]
    2008-01-16 11:03:51,698 [ebContainer : 2] DEBUG - SubmissionSearchService() sort: Exiting
    2008-01-16 11:03:51,698 [ebContainer : 2] DEBUG - setInvolvedCompanyNamesAndType() setInvolvedCompanyNamesAndType: Entered
    2008-01-16 11:03:51,698 [ebContainer : 2] DEBUG - setInvolvedCompanyNamesAndType() setInvolvedCompanyNamesAndType Start:[0]
    2008-01-16 11:03:51,698 [ebContainer : 2] DEBUG - SubmissionSearchService() setInvolvedCompanyNamesAndType: time taken[0]
    2008-01-16 11:03:51,698 [ebContainer : 2] DEBUG - SubmissionSearchService() setInvolvedCompanyNamesAndType: Exiting
    2008-01-16 11:03:51,698 [ebContainer : 2] INFO - execute()() Collection of store proc size :: 0
    2008-01-16 11:03:51,698 [ebContainer : 2] INFO - HomeAction() @@@@@@@@
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R org.springframework.jdbc.UncategorizedSQLException: TopLinkAccessor: encountered SQLException [OALL8 is in an inconsistent state.]; nested exception is java.sql.SQLException: OALL8 is in an inconsistent state.
    java.sql.SQLException: OALL8 is in an inconsistent state.
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4C8Oall.init(T4C8Oall.java:309)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:166)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:784)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2957)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4133)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:527)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:724)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:778)
         at oracle.toplink.internal.databaseaccess.DatabasePlatform.executeStoredProcedureCall(DatabasePlatform.java:1673)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:646)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:134)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:197)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:567)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:424)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
         at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
         at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java:629)
         at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java:392)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1055)
         at org.springframework.orm.toplink.TopLinkTemplate$2.readFromSession(TopLinkTemplate.java:223)
         at org.springframework.orm.toplink.SessionReadCallback.doInTopLink(SessionReadCallback.java:75)
         at org.springframework.orm.toplink.TopLinkTemplate.execute(TopLinkTemplate.java:150)
         at org.springframework.orm.toplink.TopLinkTemplate.executeQuery(TopLinkTemplate.java:220)
         at org.springframework.orm.toplink.TopLinkTemplate.executeQuery(TopLinkTemplate.java:214)
         at com.ubs.ibd.ba.dao.impl.SubmissionSearchDAOImpl.getHomeProc(SubmissionSearchDAOImpl.java:64)
         at com.ubs.ibd.ba._business.SubmissionSearchService.getHomeProc(SubmissionSearchService.java:47)
         at com.ubs.ibd.ba.control.HomeAction.execute(HomeAction.java:49)
         at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:105)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
         at com.ubs.ibd.ba.filter.SecurityFilter.doFilter(SecurityFilter.java:87)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ubs.ibd.ba.filter.UTFFilter.doFilter(UTFFilter.java:51)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1804)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R java.sql.SQLException: OALL8 is in an inconsistent state.
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4C8Oall.init(T4C8Oall.java:309)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:166)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:784)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2957)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4133)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:527)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:724)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:778)
         at oracle.toplink.internal.databaseaccess.DatabasePlatform.executeStoredProcedureCall(DatabasePlatform.java:1673)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:646)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:134)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:197)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:567)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:424)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
         at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
         at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java:629)
         at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java:392)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1055)
         at org.springframework.orm.toplink.TopLinkTemplate$2.readFromSession(TopLinkTemplate.java:223)
         at org.springframework.orm.toplink.SessionReadCallback.doInTopLink(SessionReadCallback.java:75)
         at org.springframework.orm.toplink.TopLinkTemplate.execute(TopLinkTemplate.java:150)
         at org.springframework.orm.toplink.TopLinkTemplate.executeQuery(TopLinkTemplate.java:220)
         at org.springframework.orm.toplink.TopLinkTemplate.executeQuery(TopLinkTemplate.java:214)
         at com.ubs.ibd.ba.dao.impl.SubmissionSearchDAOImpl.getHomeProc(SubmissionSearchDAOImpl.java:64)
         at com.ubs.ibd.ba._business.SubmissionSearchService.getHomeProc(SubmissionSearchService.java:47)
         at com.ubs.ibd.ba.control.HomeAction.execute(HomeAction.java:49)
         at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:105)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
         at com.ubs.ibd.ba.filter.SecurityFilter.doFilter(SecurityFilter.java:87)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ubs.ibd.ba.filter.UTFFilter.doFilter(UTFFilter.java:51)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1804)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.jdbc.driver.T4C8Oall.init(T4C8Oall.java:309)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:166)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:784)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2957)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4133)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:527)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:724)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:778)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.toplink.internal.databaseaccess.DatabasePlatform.executeStoredProcedureCall(DatabasePlatform.java:1673)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:646)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
    [16/01/08 11:03:51:683 IST] 00000035 SystemErr R      at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:134)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:197)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:567)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:424)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java:629)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java:392)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1055)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.springframework.orm.toplink.TopLinkTemplate$2.readFromSession(TopLinkTemplate.java:223)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.springframework.orm.toplink.SessionReadCallback.doInTopLink(SessionReadCallback.java:75)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.springframework.orm.toplink.TopLinkTemplate.execute(TopLinkTemplate.java:150)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.springframework.orm.toplink.TopLinkTemplate.executeQuery(TopLinkTemplate.java:220)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.springframework.orm.toplink.TopLinkTemplate.executeQuery(TopLinkTemplate.java:214)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ubs.ibd.ba.dao.impl.SubmissionSearchDAOImpl.getHomeProc(SubmissionSearchDAOImpl.java:64)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ubs.ibd.ba._business.SubmissionSearchService.getHomeProc(SubmissionSearchService.java:47)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ubs.ibd.ba.control.HomeAction.execute(HomeAction.java:49)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:105)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ubs.ibd.ba.filter.SecurityFilter.doFilter(SecurityFilter.java:87)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ubs.ibd.ba.filter.UTFFilter.doFilter(UTFFilter.java:51)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1804)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
    [16/01/08 11:03:51:698 IST] 00000035 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)
    2008-01-16 11:03:54,042 [ebContainer : 2] INFO - execute() Page URL = /BusinessApprovals/do/Search/Submission?pressed=link
    2008-01-16 11:03:54,448 [ebContainer : 1] DEBUG - BAUtilDAO() getEmployeeBusinessAreas: Entered: employeeId[3156641]
    2008.01.16 11:03:54.448--ServerSession(1080233087)--Thread[WebContainer : 1,5,main]--client acquired
    [16/01/08 11:03:54:448 IST] 00000033 SystemOut O 2008.01.16 11:03:54.448--ClientSession(575622211)--Thread[WebContainer : 1,5,main]--Execute query ReadAllQuery(com.ubs.ibd.ba.vo.EmployeeInformationBarrierVO)
    [16/01/08 11:03:54:448 IST] 00000033 SystemOut O 2008.01.16 11:03:54.448--ServerSession(1080233087)--Thread[WebContainer : 1,5,main]--Connection(571034691)--SELECT IBSS_BUSINESS_AREA_ID, EMPLOYEEID FROM IBSS_EMPLOYEE_BARRIER_ACCESS_V WHERE (EMPLOYEEID = ?)
         bind => [3156641]
    [16/01/08 11:03:54:448 IST] 00000033 SystemOut O 2008.01.16 11:03:54.448--ServerSession(1080233087)--Thread[WebContainer : 1,5,main]--Connection(571034691)--reconnecting to external connection pool
    [16/01/08 11:03:54:448 IST] 00000033 ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adaptor for resource jdbc/com/ubs/ibd/ba/ibarpds. The exception which was received is com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
    [16/01/08 11:03:54:464 IST] 00000033 SystemOut O 2008.01.16 11:03:54.464--ClientSession(575622211)--Thread[WebContainer : 1,5,main]--Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.2) (Build 040311)): oracle.toplink.exceptions.DatabaseException
    Exception Description: com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
    Internal Exception: com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
    Error Code: 17401
    [16/01/08 11:03:54:464 IST] 00000033 SystemOut O 2008.01.16 11:03:54.464--ClientSession(575622211)--Thread[WebContainer : 1,5,main]--client released
    [16/01/08 11:03:54:464 IST] 00000033 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet Action. Exception thrown : java.lang.NullPointerException
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:441)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
         at com.ubs.ibd.ba.filter.SecurityFilter.doFilter(SecurityFilter.java:87)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ubs.ibd.ba.filter.UTFFilter.doFilter(UTFFilter.java:51)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1804)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)
    [16/01/08 11:03:54:526 IST] 00000033 WebApp E SRVE0026E: [Servlet Error]-[Action]: java.lang.NullPointerException
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:441)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
         at com.ubs.ibd.ba.filter.SecurityFilter.doFilter(SecurityFilter.java:87)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ubs.ibd.ba.filter.UTFFilter.doFilter(UTFFilter.java:51)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1804)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)
    [16/01/08 11:03:54:464 IST] 00000033 SystemErr R java.lang.NullPointerException
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:441)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
         at com.ubs.ibd.ba.filter.SecurityFilter.doFilter(SecurityFilter.java:87)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ubs.ibd.ba.filter.UTFFilter.doFilter(UTFFilter.java:51)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1804)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:441)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ubs.ibd.ba.filter.SecurityFilter.doFilter(SecurityFilter.java:87)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ubs.ibd.ba.filter.UTFFilter.doFilter(UTFFilter.java:51)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1804)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
    [16/01/08 11:03:54:480 IST] 00000033 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)

  • Resultset.getString(). error

    I'm using Oracle 10g with jrockit 1.4.2_13.
    While looping through a cursor it blows up while executing resultset.getString().
    This code has been working for years and just blows up on a specific piece of data.
    The data it's trying to retrieve is .0548. Similar data is retrieved successfully.
    at oracle.sql.LnxLibThin.lnxnuc(LnxLibThin.java:6071)
    at oracle.sql.NUMBER.toText(NUMBER.java:2682)
    at oracle.jdbc.driver.NumberCommonAccessor.getString(NumberCommonAccessor.java:5303)
    at oracle.jdbc.driver.T4CNumberAccessor.getString(T4CNumberAccessor.java:83)
    at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:355)
    I've tried to upgrade to the latest ojdbc14.jar driver with negative results.
    Here is the code snippet:
    for(int i=1;i<=size;i++){
    str_columnName = (String)ht_elementMappings.get((i)+"");
    sbf_rowData.append("\t\t<"+str_columnName+">");
    //Blows up on the 18th column during the getString
    str_columnValue = rs_object.getString(i);
    sbf_rowData.append( str_columnValue );
    sbf_rowData.append("</"+str_columnName+">");
    sbf_rowData.append("\n");
    sbf_rowData.append("\t</ROW>");
    sbf_rowData.append("\n");
    bufferedWriter.write(sbf_rowData.toString());
    Thanks in advance for any thoughts.

    (1) and (3) are related to gcc versions to use with OCCI. OCCI 10.1 and 10.2 support gcc 3.2.3 (and gcc 2.96). In addition, OCCI 10.2 supports gcc 3.4.3 (libraries are available on OTN).
    2) For retreiving the column names in a ResutSet, you need to use the ResultSet::getColumnListMetaData() interface. You can implement your own solution to call ResultSet::getXXX methods by column name e.g :-
    vector<MetaData> md = rs->getColumnListMetaData();
    map<string, int> columns;//column names to number mapping
    for (int i = 0; i < md.size(); i++) columns[md[i].getString(MetaData::ATTR_NAME)] = i;
    //now "use" column names!
    string ename = rs->getString(columns["ENAME"));
    -Shankar

  • Random NullPointerException on resultset.getstring

    I have been getting random NullPointerException ever since I have moved my code to a new dev server. I was using tomcat 3 and oracle 9i but moved to tomcat 6 and oracle10g express edition.
    The errors happen mostly when the server is under load.
    here is the code where is breaks
             while(rset.next()) {
                  signNum++;                                //LINE:2172
                  signed.set(rset.getString(1),"CHECKED");  //LINE:2173
                  mark.set(rset.getString(1));              //LINE:2174
              }and here is the stack trace:
    SEVERE: Servlet.service() for servlet MyServlet threw exception
    java.lang.NullPointerException
         at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:397)
         at runner.MyServlet.getSignUp(MyServlet.java:2174)
    The exception does not happen everytime. It is also odd that the previous line was able to successfully call rset.getString but the very next line gets NullPointerException. Perhaps express edition is to blame?
    This is not the only code that gets exceptions. It happens all over seemingly random. It happens to resultset.getstring and resultset.getint.
    Frustrating

    You were right, it was a multithreading issue.
    Did a google search on "servlet multithreading" and got this article:
    http://www.javaworld.com/javaworld/jw-07-2004/jw-0712-threadsafe.html
    And I realized My servlet had a private variable that was being shared. Been a while since I have been using servlets. The funny thing is that this code ran for years w/o problem on jserv (the really old tomcat). They must not have implemented servlets with multithreading.
    Anyways, mega thanks.

  • How to fetch the image file from oracle database and display it.

    hi... i've inserted the image file into the oracle database... now i want to retreive it and want to display it... can anybody help me... pls

    not a big deal dude... i fetched the image from database and saved it into my local hard disk.. but when tried to open it,ends up with no preview... dont know what d prob is... any idea... i've inserted the image as bytes n trying to fetch it as binary stream.. is that the problem... here im giving my insertion and retireving code.. jus go through it...
    Insertion code:_
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.io.File;
    import java.io.FileInputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class Browse_java
    static Connection con=null;
    public static void main(String args[])
    try{
    System.out.println("(browse.java) just entered in to the class");
    con = new PMS.DbConnection().getConnection();
    System.out.println("(browse.java) connection string is"+con);
    PreparedStatement ps = con.prepareStatement("INSERT INTO img_exp VALUES(?,?)");
    System.out.println("(browse.java) prepare statement object is"+ps);
    File file =new File("E:/vanabojanalu-/DSC02095.JPG");
    FileInputStream fs = new FileInputStream(file);
    System.out.println("lenth of file"+file.length());
    byte blob[]=new byte[(byte)file.length()];
    System.out.println("lenth of file"+blob.length);
    fs.read(blob);
    ps.setString(1,"E:/vanabojanalu-/DSC02095.JPG");
    ps.setBytes(2, blob);
    // ps.setBinaryStream(2, fs,(int)file.length());
    System.out.println("(browse.java)length of picture is"+fs.available());
    int i = ps.executeUpdate();
    System.out.println("image inserted successfully"+i);
    catch(Exception e)
    e.printStackTrace();
    finally
    try {
    con.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    and Retrieving code is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.beans.Statement;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jdbc.OracleResultSet;
    * @author Administrator
    public class view_image2 extends HttpServlet {
    * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("image/jpeg");
    //PrintWriter out = response.getWriter();
    try
    javax.servlet.http.HttpServletResponse res=null;;
    int returnValue = 0;
    Connection con = null;
    PreparedStatement stmt = null;
    ResultSet rs = null;
    InputStream in = null;
    OutputStream os = null;
    Blob blob = null;
    //String text;
    //text=request.getParameter("text");
    //Class.forName("com.mysql.jdbc.Driver");
    con=new PMS.DbConnection().getConnection();
    System.out.println("jus entered the class");
    //String query = "SELECT B_IMAGE FROM img_exp where VC_IMG_PATH=?";
    //conn.setAutoCommit(false);
    PreparedStatement pst = con.prepareStatement("select b_image from img_exp where vc_img_path=?");
    System.out.println("before executing the query");
    pst.setString(1,"C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    rs = pst.executeQuery();
    //System.out.println("status of result set is"+rs.next());
    System.out.println("finished writing the query");
    int i=1;
    if(rs.next())
    System.out.println("in rs") ;
    byte[] byte_image=rs.getBytes(1);
    // byte blob_byte[]= new byte[(byte)blob.length()];
    //System.out.println("length of byte is"+blob_byte);
    //String len1 = (Oracle.sql.blob)rs.getString(1);
    //System.out.println("value of string is"+len1);
    //int len = len1.length();
    //byte [] b = new byte[len];
    //in = rs.getBinaryStream(1);
    int index = in.read(byte_image, 0, byte_image.length);
    System.out.println("value of in and index are"+in+" "+index);
    FileOutputStream outImej = new FileOutputStream("C://"+i+".JPG");
    //FileOutputStream fos = new FileOutputStream (imgFileName);
    BufferedOutputStream bos = new BufferedOutputStream (outImej);
    //byte [] byte_array = new byte [blob_byte.length]; //assuming 512k size; you can vary
    //this size depending upon avlBytes
    //int bytes_read = in.read(blob_byte);
    bos.write(index);
    /*while (index != -1)
    outImej.write(blob_byte, 0, index);
    index = in.read(blob_byte, 0, blob_byte.length);
    //System.out.println("==========================");
    //System.out.println(index);
    //System.out.println(outImej);
    //System.out.println("==========================");
    /*ServletOutputStream sout = response.getOutputStream(outImej);
              for(int n = 0; n < blob_byte.length; n++) {
                   sout.write(blob_byte[n]);
              sout.flush();
              sout.close();*/
    outImej.close();
    //i++;
    else
    returnValue = 1;
    catch(Exception e)
    System.out.println("SQLEXCEPTION : " +e);
    finally {
    //out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    * Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    * Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    * Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    }

  • NPE 10.1.3.1 - Can you solve it?

    I get an NPE in OC4J 10.1.3.1 that I did not get in OC4J 9.0.4.
    The easisest way to explain it that it seems that a ResultSet that is populated in a bean, via JSP javascript invocation, is "lost" once that same JSP attempts to access it for display.
    You will see by my debug statements that ResultSet is populated (in SQLDataSource.java) with 1902 rows. I have commented out debug statements that I previoulsy executed to access the ResultSetMetaData and that is all in tact. Further, I even debugged the getString in the that same code and found it to be in tact.
    First I'll give you the trace and then I'll provide the JSPs java file where the error is on line 66 as:
    out.print( detail.getString("ACCT") );
    All of this is followed by links to view all pertinent code:
    TRACE
    =====
    07/04/27 10:42:57 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    07/04/27 10:43:10 [DEBUG]: Using old session!
    07/04/27 10:43:12 [DEBUG]: User is not Inactive.
    07/04/27 10:43:12 [DEBUG]: defaultTemplate in ServletAdapter is /myinetmrp/my.jsp
    07/04/27 10:43:17 [DEBUG]: ReportWriter.service()
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[null]: SQLDataSource(AcctList_Count)
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList_Count]: End FileDataSource. Setting this.queryFile
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[null]: SQLDataSource(AcctList)
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: End FileDataSource. Setting this.queryFile
    07/04/27 10:43:17 [DEBUG]: The method is defaultMethod
    07/04/27 10:43:17 [DEBUG]: ReportWriter.defaultMethod
    07/04/27 10:43:17 [DEBUG]: refresh(req, res)
    07/04/27 10:43:17 [DEBUG]: Setting first = 1, last = 20 and ServeletEventFetchSize = 20
    07/04/27 10:43:17 [DEBUG]: defaultTemplate in ServletAdapter is /apps/AcctList.jsp
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: execute()
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: Loading query from FileDataSource file C:\OC4J_10131\j2ee\home\applications\intemrp\intemrp\apps\AcctList.sql
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: command:
    select ACCT
    ,VDESC
    ,TYPE
    ,MISC_TAX_CODE
    from GL
    where ACCT <> ' '
    and 1=1
    order by ACCT
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: total Rows in resultSet = 1902
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: execute() in finally.
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: getString string(ACCT)
    07/04/27 10:43:17 java.lang.NullPointerException
    07/04/27 10:43:17 at oracle.jdbc.driver.ScrollableResultSet.findColumn(ScrollableResultSet.java:1308)
    07/04/27 10:43:17 at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1572)
    07/04/27 10:43:17 at com.sage.servlet.SQLDataSource.getString(SQLDataSource.java:432)
    07/04/27 10:43:17 at apps.AcctList._jspService(_AcctList.java:66)
    07/04/27 10:43:17 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
    07/04/27 10:43:17 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:50)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
    07/04/27 10:43:17 at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
    07/04/27 10:43:17 at com.sage.servlet.ServletAdaptor.includeJSP(ServletAdaptor.java:124)
    07/04/27 10:43:17 at com.sage.servlet.ServletAdaptor.includeDefaultJSP(ServletAdaptor.java:96)
    07/04/27 10:43:17 at com.sage.servlet.ReportWriter.service(ReportWriter.java:79)
    07/04/27 10:43:17 at inetmrp.servlet.HttpsReportWriter.service(HttpsReportWriter.java:91)
    07/04/27 10:43:17 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/04/27 10:43:17 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/04/27 10:43:17 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/04/27 10:43:17 at java.lang.Thread.run(Thread.java:595)
    Here is the _AcctList.java
    ===================
    package _apps;
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    public class _AcctList extends com.orionserver.http.OrionHttpJspPage {
    // ** Begin Declarations
    // ** End Declarations
    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
    response.setContentType( "text/html;charset=iso-8859-1");
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, "/JspError.jsp", true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    int __jsp_tag_starteval;
    ServletContext application = pageContext.getServletContext();
    JspWriter out = pageContext.getOut();
    _AcctList page = this;
    ServletConfig config = pageContext.getServletConfig();
    com.evermind.server.http.JspCommonExtraWriter __ojsp_s_out = (com.evermind.server.http.JspCommonExtraWriter) out;
    try {
    __ojsp_s_out.write(__oracle_jsp_text[0]);
    __ojsp_s_out.write(__oracle_jsp_text[1]);
    com.inetmrp.beans.WebUserSession webUserSession;
    synchronized (session) {
    if ((webUserSession = (com.inetmrp.beans.WebUserSession) pageContext.getAttribute( "webUserSession", PageContext.SESSION_SCOPE)) == null) {
    webUserSession = (com.inetmrp.beans.WebUserSession) new com.inetmrp.beans.WebUserSession();
    pageContext.setAttribute( "webUserSession", webUserSession, PageContext.SESSION_SCOPE);
    __ojsp_s_out.write(__oracle_jsp_text[2]);
    com.sage.servlet.SQLDataSource detail = ((com.sage.servlet.SQLDataSource)request.getAttribute( "AcctList" ));
    // Utility variables:
    int firstRow = Integer.parseInt( (String)request.getAttribute( "firstRow" ) );
    int lastRow = Integer.parseInt( (String)request.getAttribute( "lastRow" ) );
    int fetchSize = Integer.parseInt( (String)request.getAttribute( "ServletEventFetchSize" ) );
    int fetchRow = 0;
    boolean isFirstPage = (firstRow==1?true:false);
    boolean isLastPage = false;
    __ojsp_s_out.write(__oracle_jsp_text[3]);
    while ( !(isLastPage = !detail.next()) && (detail.getRow() <= lastRow) ) {
    fetchRow = detail.getRow();
    __ojsp_s_out.write(__oracle_jsp_text[4]);
    out.print( detail.getString("ACCT") );
    __ojsp_s_out.write(__oracle_jsp_text[5]);
    out.print( detail.getString("ACCT"));
    __ojsp_s_out.write(__oracle_jsp_text[6]);
    out.print( detail.getString("ACCT") );
    __ojsp_s_out.write(__oracle_jsp_text[7]);
    out.print( detail.getString("ACCT"));
    __ojsp_s_out.write(__oracle_jsp_text[8]);
    out.print( detail.getString("VDESC") );
    __ojsp_s_out.write(__oracle_jsp_text[9]);
    __ojsp_s_out.write(__oracle_jsp_text[10]);
    out.print( request.getParameter( "SELECT1" ) );
    __ojsp_s_out.write(__oracle_jsp_text[11]);
    out.print( request.getParameter("COMPARE1") );
    __ojsp_s_out.write(__oracle_jsp_text[12]);
    out.print( request.getParameter("TEXT1") );
    __ojsp_s_out.write(__oracle_jsp_text[13]);
    out.print( request.getParameter( "SELECT2" ) );
    __ojsp_s_out.write(__oracle_jsp_text[14]);
    out.print( request.getParameter("COMPARE2") );
    __ojsp_s_out.write(__oracle_jsp_text[15]);
    out.print( request.getParameter("TEXT2") );
    __ojsp_s_out.write(__oracle_jsp_text[16]);
    out.print( fetchSize );
    __ojsp_s_out.write(__oracle_jsp_text[17]);
    out.print( fetchRow );
    __ojsp_s_out.write(__oracle_jsp_text[18]);
    if ( !isFirstPage ) {
    __ojsp_s_out.write(__oracle_jsp_text[19]);
    __ojsp_s_out.write(__oracle_jsp_text[20]);
    if ( !isLastPage ) {
    __ojsp_s_out.write(__oracle_jsp_text[21]);
    __ojsp_s_out.write(__oracle_jsp_text[22]);
    catch (Throwable e) {
    if (!(e instanceof javax.servlet.jsp.SkipPageException)){
    try {
    if (out != null) out.clear();
    catch (Exception clearException) {
    pageContext.handlePageException(e);
    finally {
    OracleJspRuntime.extraHandlePCFinally(pageContext, true);
    JspFactory.getDefaultFactory().releasePageContext(pageContext);
    private static final byte __oracle_jsp_text[][]=new byte[23][];
    static {
    try {
    __oracle_jsp_text[0] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[1] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[2] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[3] = (etc....)
    catch (Throwable th) {
    System.err.println(th);
    And now the links to view all pertinent code:
    http://www.sagesoftwaresystems.com/inetmrp/AppsMenu.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctSearch.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.java
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.sql
    http://www.sagesoftwaresystems.com/inetmrp/AcctList_Count.sql
    http://www.sagesoftwaresystems.com/inetmrp/FileDataSource.java
    http://www.sagesoftwaresystems.com/inetmrp/SQLDataSource.java
    http://www.sagesoftwaresystems.com/inetmrp/ReportWriter.java
    http://www.sagesoftwaresystems.com/inetmrp/HttpsReportWriter.java
    http://www.sagesoftwaresystems.com/inetmrp/HttpsServletAdapter.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdapter_inetmrp.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdapter_sage.java
    TIA for the answer to this seemingly unsolvable probelm,
    Ed.

    Sorry, mis-spelled the following file names.
    http://www.sagesoftwaresystems.com/inetmrp/HttpsServletAdaptor.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdaptor_inetmrp.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdaptor_sage.java

  • Error while calling bpel process from jsp page

    Hi,
    I am trying to access bpel process from a jsp page..i could successfully deploy bpel and run it from bpel console.however accessing the bpel from a jsp gives an error. I have attached the code and error. I am using jdev10.3.1 with SOA suite.Any help is greatly appreciated.
    Thanks,
    p
    Hashtable env = null;
    env = new Hashtable();
    env.put("java.naming.factory.initial", "oracle.j2ee.naming.ApplicationClientInitialContextFactory");
    env.put("java.naming.provider.url", "opmn:ormi://fs-sys-414:6005:home/orabpel");
    env.put("java.naming.security.principal", "oc4jadmin");
    env.put("java.naming.security.credentials", "xxxxx");
    try{
    String xml = "<input xmlns=\"http://xmlns.oracle.com/Pr_Bpel_Process\">" + "HELLO" + "</input>";
    Locator locator = new Locator("default","bpel",env);
    System.out.println("locator object" +locator);
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to Oracle BPEL Process Manager
    System.out.println("delivery service name="+IDeliveryService.SERVICE_NAME);
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload",xml);
    System.out.println("adding payload to nm");
    deliveryService.post("Pr_Bpel_Process", "initiate", nm);
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: com.collaxa.common.util.NonSyncStringWriter
         Dependent class: com.oracle.bpel.client.ClientResources
         Loader: current-workspace-app.web.pra_appln-pra_proj-webapp:0.0.0
         Code-Source: /C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
         Configuration: <classpath> in C:\jdev10131SOA\jdev\mywork\pra_appln\pra_proj\public_html
    The missing class is not available from any code-source or loader in the system.
    06/11/23 14:33:29      at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [C:/jdev10131SOA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [C:/jdev10131SOA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [C:/jdev10131SOA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [C:/jdev10131SOA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at com.oracle.bpel.client.ClientResources.sanitizeArgs (ClientResources.java:123) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.ClientResources.getString (ClientResources.java:93) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean (BeanRegistry.java:293) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean (DeliveryService.java:250) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.delivery.DeliveryService.post (DeliveryService.java:174) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.delivery.DeliveryService.post (DeliveryService.java:149) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at testbpel.jspService (_testbpel.java:79) [C:/jdev10131SOA/jdev/mywork/prashant_appln/pra_proj/classes/.jsps/ (from *.jsp in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\classes\.jsps), by current-workspace-app.web.prashant_appln-pra_proj-webapp.jsp27809090:0.0.0]
         at com.orionserver.http.OrionHttpJspPage.service (OrionHttpJspPage.java:59) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.jsp.runtimev2.JspPageTable.service (JspPageTable.java:453) [C:/jdev10131SOA/j2ee/home/lib/ojsp.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.jsp.runtimev2.JspServlet.internalService (JspServlet.java:591) [C:/jdev10131SOA/j2ee/home/lib/ojsp.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.jsp.runtimev2.JspServlet.service (JspServlet.java:515) [C:/jdev10131SOA/j2ee/home/lib/ojsp.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at javax.servlet.http.HttpServlet.service (HttpServlet.java:856) [C:/jdev10131SOA/j2ee/home/lib/servlet.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by api:1.4.0]
         at com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:711) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:368) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:866) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:448) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest (HttpRequestHandler.java:216) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.run (HttpRequestHandler.java:117) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.run (HttpRequestHandler.java:110) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket (ServerSocketAcceptHandler.java:239) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700 (ServerSocketAcceptHandler.java:34) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run (ServerSocketAcceptHandler.java:880) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:298) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]

    Hi,
    Now i am getting different kind of exception::
    06/11/24 08:11:06 java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NamingException: META-INF/application-client.xml not found (see J2EE spec, application-client chapter for requirements and format of the file)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getRequiredClasspathResource(ApplicationClientInitialContextFactory.java:239)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getArchive(ApplicationClientInitialContextFactory.java:161)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:111)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:277)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
         at _testbpel._jspService(_testbpel.java:79)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    06/11/24 08:11:06      at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
    06/11/24 08:11:06      at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    06/11/24 08:11:06      at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    06/11/24 08:11:06      at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    06/11/24 08:11:06      at testbpel.jspService(_testbpel.java:79)
    06/11/24 08:11:06      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    06/11/24 08:11:06      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
    06/11/24 08:11:06      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
    06/11/24 08:11:06      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
    06/11/24 08:11:06      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    06/11/24 08:11:06      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    06/11/24 08:11:06      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    06/11/24 08:11:06      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    06/11/24 08:11:06      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    06/11/24 08:11:06      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    06/11/24 08:11:06      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    06/11/24 08:11:06      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    06/11/24 08:11:06      at java.lang.Thread.run(Thread.java:595)

  • Why named parameter can't be used multiple times in PL/SQL block in JDBC

    with the following PL/SQL block, when I run int in JDBC, I get an error,
    it says, The number of parameter names does not match the number of registered parameters.
    if all named parameters are used only once, then my program works fine.
    My old program uses Oracle Forms to run the attached PL/SQL block correctly, I just want to run them in JDBC without more efforts, I don't want to rewrite all PL/SQL blocks.
    Does oracle driver support this case? why the PL/SQL block can work in Oracle Forms but failed in JDBC?
    Can we have an another solutions to avoid rewriting the PL/SQL block to stored procedure?
    if I use following SQL:
    BEGIN if :q is null then :q := 'X'; else :q := 'Y'; end if; END;
    , Using java program:
    import java.sql.*; public class RunPLSQLBlock { public static void main(String s[]) throws SQLException { String URL = "jdbc:oracle:thin:@192.168.11.199:1521:TIBSTEST"; Connection con = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); con = (Connection) DriverManager.getConnection(URL, "FBP1DEV", "FBP1DEV"); String SQL = "BEGIN  if :q is null then  :q := 'X'; else :q := 'Y'; end if; END;"; CallableStatement stmt = con.prepareCall(SQL); stmt.registerOutParameter("q", Types.VARCHAR); stmt.setString("q", "A"); stmt.execute(); } catch (Exception e) { e.printStackTrace(); } finally { if (con != null) { con.close(); } } } }
    in the coding, only "q" registered, I got:
    java.sql.SQLException: The number of parameter names does not match the number of registered praremeters at oracle.jdbc.driver.OracleSql.setNamedParameters(OracleSql.java:314) at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:10096) at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:5693) at RunPLSQLBlock.main(RunPLSQLBlock.java:28)
    now, tried to register 3 indexes, changed fragments are below.
    import java.sql.*; public class RunPLSQLBlock { public static void main(String s[]) throws SQLException { String URL = "jdbc:oracle:thin:@192.168.11.199:1521:TIBSTEST"; Connection con = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); con = (Connection) DriverManager.getConnection(URL, "FBP1DEV", "FBP1DEV"); String SQL = "BEGIN  if :q is null then  :q := 'X'; else :q := 'Y'; end if; END;"; CallableStatement stmt = con.prepareCall(SQL); stmt.registerOutParameter(1, Types.VARCHAR); stmt.registerOutParameter(2, Types.VARCHAR); stmt.registerOutParameter(3, Types.VARCHAR); stmt.setString(1, "A"); stmt.execute(); } catch (Exception e) { e.printStackTrace(); } finally { if (con != null) { con.close(); } } } }
    now error changed to:
    java.sql.SQLException: ORA-01006: bind variable does not exist at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:400) at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:926) at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476) at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:200) at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:543) at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:208) at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1416) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1757) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:4372) at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:4595) at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:10100) at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:5693) at RunPLSQLBlock.main(RunPLSQLBlock.java:26)
    , now tried register only 1 position like below,
      CallableStatement stmt = con.prepareCall(SQL);   stmt.registerOutParameter(1, Types.VARCHAR);   stmt.setString(1, "A");   stmt.execute();
    , it says:
    java.sql.SQLException: Missing IN or OUT parameter at index:: 2 at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2177) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:4356) at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:4595) at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:10100) at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:5693) at RunPLSQLBlock.main(RunPLSQLBlock.java:26)
    , now let try a OK case, which use all named parameters only once. coding like below, SQL and Java listed below.
    BEGIN if :q is null then :r := 'X'; else :s := 'Y'; end if; EXCEPTION   WHEN NO_DATA_FOUND THEN     NULL; END;
    import java.sql.*; public class RunPLSQLBlock { public static void main(String s[]) throws SQLException { String URL = "jdbc:oracle:thin:@192.168.11.199:1521:TIBSTEST"; Connection con = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); con = (Connection) DriverManager.getConnection(URL, "FBP1DEV", "FBP1DEV"); String SQL = "BEGIN  if :q is null then  :r := 'X'; else :s := 'Y'; end if; END;"; CallableStatement stmt = con.prepareCall(SQL); stmt.registerOutParameter("q", Types.VARCHAR); stmt.registerOutParameter("r", Types.VARCHAR); stmt.registerOutParameter("s", Types.VARCHAR); stmt.setString("q", "A"); stmt.execute(); System.out.println("Q :" + stmt.getString("q")); System.out.println("R :" + stmt.getString("r")); System.out.println("S :" + stmt.getString("s")); } catch (Exception e) { e.printStackTrace(); } finally { if (con != null) { con.close(); } } } }
    , the case give us the following output:
    Q :A R :null S :Y
    2nd part, I also tried another scheme, to use 'execute immediate', test code attached below, it also have errors.
    begin execute immediate 'begin if :q is null then :q := ''X''; else :q := ''Y''; :r := ''Z''; end if; end;' using in out :q, out :r; end;
    , Java Code:
    import java.sql.*; public class RunDynamicSQL { public static void main(String s[]) throws SQLException { String URL = "jdbc:oracle:thin:@192.168.11.199:1521:TIBSTEST"; Connection con = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); con = (Connection) DriverManager.getConnection(URL, "FBP1DEV", "FBP1DEV"); String SQL ="begin execute immediate 'begin if :q is null then :q := ''X''; else :q := ''Y''; :r := ''Z''; end if; end;' using in out :q, out :r; end;"; CallableStatement stmt = con.prepareCall(SQL); stmt.registerOutParameter("q", Types.VARCHAR); stmt.registerOutParameter("r", Types.VARCHAR); stmt.setString("q", "A"); stmt.execute(); System.out.println("Q :" + stmt.getString("q")); System.out.println("R :" + stmt.getString("r")); } catch (Exception e) { e.printStackTrace(); } finally { if (con != null) { con.close(); } } } }
    , the output is, we can find when parameter 'q' is IN OUT mode, we can't get its final value:
    Q :null R :Z
    , now I tried my workaround, it works fine by using a temporary variable, now my named parameter is split to 2 roles, one is for IN, another is for OUT, now I can get final out value.
    declare q clob; r clob; begin q := ?; r := ?; execute immediate 'begin if :q is null then :q := ''X''; else :q := ''Y''; :r := ''Z''; end if; end;' using in out q, out r; ? := q; ? := r; end;
    , my test java code,
    import java.sql.*; public class RunDynamicSQL { public static void main(String s[]) throws SQLException { String URL = "jdbc:oracle:thin:@192.168.11.199:1521:TIBSTEST"; Connection con = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); con = (Connection) DriverManager.getConnection(URL, "FBP1DEV", "FBP1DEV"); String SQL ="declare q clob;r clob; begin q := ?; r := ?; execute immediate 'begin if :q is null then :q := ''X''; else :q := ''Y''; :r := ''Z''; end if; end;' using in out q, out r; ? := q; ? := r; end;"; CallableStatement stmt = con.prepareCall(SQL); stmt.registerOutParameter(3, Types.VARCHAR); stmt.registerOutParameter(4, Types.VARCHAR); stmt.setString(1, "A"); stmt.setString(2, "A"); stmt.execute(); System.out.println("Q :" + stmt.getString(3)); System.out.println("R :" + stmt.getString(4)); } catch (Exception e) { e.printStackTrace(); } finally { if (con != null) { con.close(); } } } }
    , the output is expected,
    Q :Y R :Z
    Database:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    JDBC Driver, extracted from ojdbc6_g.jar/META-INF/MANIFEST.MF :
    Created-By: 1.5.0_30-b03 (Sun Microsystems Inc.)
    Implementation-Vendor: Oracle Corporation
    Implementation-Title: JDBC debug
    Implementation-Version: 11.2.0.3.0
    Repository-Id: JAVAVM_11.2.0.3.0_LINUX_110823
    Specification-Vendor: Sun Microsystems Inc.
    Specification-Title: JDBC
    Specification-Version: 4.0
    Main-Class: oracle.jdbc.OracleDriver
    JDK:
    java version "1.7.0"
    Java(TM) SE Runtime Environment (build 1.7.0-b147)
    Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
    Edited by: jamxval on 2013-3-22 2:01PM (UTC+08:00), Give full test java program and SQL, added environment/API level; Attached another problem.
    Edited by: jamxval on 2013-3-26 17:57 (UTC +08), Adjust code style

    Hi, thanks for your response, now I see, the named parameter is for stored procedure only, for PL/SQL block we name it placeholder name.
    After cast my java.sql.CallableStatement to oracle.jdbc.OracleCallableStatement, I can find setStringAtName,
    now, I have only one question:I can't find corresponding methods for registerOutputParameter, how we fetch output value?
    I tried to callableStatement.getString("q"); it reports errors, but there are no ordinal binding in my source code, does placeholder names doesn't support OUT mode?
    Java:
    CallableStatement stmt = con.prepareCall("BEGIN  if :q is null then  :r := 'X'; else :s := 'Y'; end if; END;");
    oracle.jdbc.OracleCallableStatement call = (oracle.jdbc.OracleCallableStatement) stmt;
    call.registerOutParameter("q", Types.VARCHAR);
    call.registerOutParameter("r", Types.VARCHAR);
    call.registerOutParameter("s", Types.VARCHAR);
    call.setStringAtName("q", "A");
    call.setStringAtName("r", "A");
    call.setStringAtName("s", "A");
    call.execute();
    System.out.println("Q :" + call.getString("q"));
    </Java>
    <output>
    java.sql.SQLException: 不允许的操作: Ordinal binding and Named binding cannot be combined!
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
         at oracle.jdbc.driver.OracleCallableStatement.getString(OracleCallableStatement.java:2834)
         at RunPLSQLBlock.main(RunPLSQLBlock.java:33)
    </output>by the way, in my below-mentioned SQL 'problematic', when my code uses 'execute immediate' and use placeholder names in IN OUT mode, we always get NULL value (i.e. ':q'), but we can get final value of ':r' when ':r' is OUT mode only; now I get a workaround attached in below-mentioned 'my workaround' block, which split the IN OUT roles to 2 parts, it can work now;
    It seems that the difference between 'problematic' and 'my workaround' imply that there are something work unexpectedly when the driver process the placeholder names, because 'my workaround' and ':r in problematic case' make sure the 'execute immediate' returned output values correctly, unluckly driver layer can't get return values.
    <SQL name = 'problematic'>
    begin
         execute immediate 'begin if :q is null then :q := ''X''; else :q := ''Y''; :r := ''Z''; end if; end;'
         using in out :q, out :r;
    end;
    </SQL>
    <SQL name='my workaround'>
    declare     
         q clob;
         r clob;
    begin
         q := ?;
         r := ?;
         execute immediate 'begin if :q is null then :q := ''X''; else :q := ''Y''; :r := ''Z''; end if; end;' using in out q, out r;
         ? := q;
         ? := r;
    end;Edited by: EJP on 26/03/2013 14:14

  • Use of NOT IN leads to an invalid column name error

    The query works just fine when placed directly into sql plus
    The query works, called from a Java using an Oracle Statement, ONLY IF I remove the NOT.
    However, with NOT it chokes, and gives me this:
    selQ=select lenum, zeugn from stock_rpt where lenum NOT in ('X12345', 'X23456')
    Could Select or Read Selected data
    java.sql.SQLException: Invalid column name
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3319)
    at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:1926)
    at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1515)
    at ecspack.StockRpt.selRecsByQ(StockRpt.java:172)
    at ecspack.StockRpt.selByDiff(StockRpt.java:261)
    at teste.main(teste.java:40)
    The column does have an index.
    The above is my simplified test query, I am using to narrow down the problem.
    SelQ is the value of the Select String.
    Really I want to do something like this:
    select x1, x2 from tableX where x1 NOT IN (select y1 from tableY)
    I know I can just compare records one at a time, but I would rather not, if there is a way to make NOT IN work.
    Thank you

    Hi Eileen Keeney ,
    may be you can use prepared statement but beware of sql injection
    selQ=select lenum, zeugn from stock_rpt where lenum NOT in ('X12345', 'X23456')
    Try :
    selQ=select lenum, zeugn from stock_rpt where lenum NOT in (?, ?)
    Then try running it with this fixed parameter binding:
    prest.setString(1, "X12345");
    prest.setString(2, "X23456");

  • Query in ASWE XML code doesn't return data

    Hello, since people on the Oracle Metalink site are to lazy to give an answer to this question. I'll try it via this forum. Here we go:
    I'm developing wireless applications running on Oracle9i Application Server Wireless Edition. I'v tried to implement the employee sample from Oracle Online Mobile Studio (studio.oraclemobile.com). The sample name is employee.jsp. This sample combines XML code with JSP.
    (code at the end of the text)
    When I test the sample I get no query results.
    When you take the first option for example, (search by dept number) the query result will not be displayed. I think it has something to do with the "executeQuery" line.
    rset = stmt.executeQuery("select * from EMP where EMPNO='" + empNum + "'");
    After giving the following input (employeenumber) 7369 (which excists in the
    database). I get the following errors:
    The panama server log returns the following error:
    1/14/02 5:19:28 PM NOTIFY : [Thread-13]
    core.XSLTransformerImpl.getXSLProc(XSLTransformerImpl.java:120)
    Create 10 number of XSL-processor for TINY_HTML
    1/14/02 5:19:35 PM NOTIFY : [Thread-15]
    adapter.URLAdapter.invoke(URLAdapter.java:240)
    URL = http://host/portal/test/employee.jsp
    1/14/02 5:19:37 PM NOTIFY : [Thread-17] adapter.URLAdapter.invoke(URLAdapter.java:240)
    URL =http://host/portal/test/employee.jsp?choice=empNum
    1/14/02 5:19:49 PM NOTIFY : [Thread-19]adapter.URLAdapter.invoke(URLAdapter.java:240)
    URL =http://host/portal/test/employee.jsp?&empNum=7369
    1/14/02 5:19:50 PM ERROR : [Thread-19]rt.common.Controller.reportServiceInvocationError(Controller.java:707)
    Service Invocation Error: Stream closed.
    The jserv.log returns the following error:
    [14/01/2002 17:19:50:431 CET] Invalid column name
    java.sql.SQLException: Invalid column name
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:273)
    at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.java:4383)
    at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:667)
    at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1374)
    at portal.test._employee._jspService(_employee.java:201)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
    at oracle.jsp.JspServlet.internalService(JspServlet.java)
    at oracle.jsp.JspServlet.service(JspServlet.java)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:402)
    at org.apache.jserv.JServConnection.run(JServConnection.java:260)
    at java.lang.Thread.run(Thread.java:479)
    Does this have something to do with the encoding of the query result in the select statement? As you can see the variable is in the requeststring (URL = http://host/portal/test/employee.jsp?&empNum=7369)
    My database connection works fine (I've also tested the query using SQL plus and the SQL adapter also works).
    Is this the right statement?: ("select * from EMP where EMPNO='" + empNum + "'");
    I can not do anything with the error in the jserv.log (java.sql.SQLException: Invalid column name).
    The columnname EMPNO excists in the example table. The query in SQL plus gives a result.
    Can someone give my any suggestions?
    Thanks in advance.
    Thomas Wesseling, UCC
    ### Code of employee.jsp ###
    <?xml version="1.0" encoding="UTF-8"?>
    <SimpleResult>
    <SimpleContainer>
    <%@ page language="java" import="java.sql.*, java.util.*, java.text.* "%>
    <%
    //URL variables
    String choice = request.getParameter("choice");
    String empNum = request.getParameter("empNum");
    String lastName = request.getParameter("lastName");
    String jobTitle = request.getParameter("jobTitle");
    String deptNum = request.getParameter("deptNum");
    String notFoundMsg = null; //String for containing varying not found msg
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@172.16.0.51:1521:ora816", "scott", "tiger");
    Statement stmt = conn.createStatement();
    ResultSet rset = null;
    //**** Start of service - first card ****
    if (choice==null && empNum==null && lastName==null &&
    jobTitle==null && deptNum==null)
    %>
    <SimpleMenu title="Employee Search by:">
    <SimpleMenuItem target="employee.jsp?choice=empNum">Employee Number</SimpleMenuItem>
    <SimpleMenuItem target="employee.jsp?choice=lastName">Name</SimpleMenuItem>
    <SimpleMenuItem target="employee.jsp?choice=jobTitle">Job Title</SimpleMenuItem>
    <SimpleMenuItem target="employee.jsp?choice=deptNum">Dept Number</SimpleMenuItem>
    </SimpleMenu>
    <%
    //**** SECOND CARD - which search criteria ****
    if (choice!=null)
    if (choice.equals("empNum") && empNum == null)
    %>
    <!-- show search by employee number -->
    <SimpleForm target="employee.jsp?">
    <SimpleFormItem name="empNum" format="*N">Enter Employee Number: </SimpleFormItem>
    </SimpleForm>
    <%
    else if (choice.equals("lastName") && lastName == null)
    %>
    <!-- show search by last name -->
    <SimpleForm target="employee.jsp?">
    <SimpleFormItem name="lastName" format="*A">Enter Last Name: </SimpleFormItem>
    </SimpleForm>
    <%
    else if (choice.equals("jobTitle") && jobTitle == null)
    %>
    <!-- show search by job title -->
    <SimpleForm target="employee.jsp?">
    <SimpleFormSelect name="jobTitle" title="Enter Job Title:">
    <SimpleFormOption value="CLERK">Clerk</SimpleFormOption>
    <SimpleFormOption value="SALESMAN">Salesman</SimpleFormOption>
    <SimpleFormOption value="MANAGER">Manager</SimpleFormOption>
    <SimpleFormOption value="ANALYST">Analyst</SimpleFormOption>
    <SimpleFormOption value="PRESIDENT">President</SimpleFormOption>
    </SimpleFormSelect>
    </SimpleForm>
    <%
    else if (choice.equals("deptNum") && deptNum == null)
    %>
    <!-- show search by dept number -->
    <SimpleForm target="employee.jsp?">
    <SimpleFormItem name="deptNum" format="*N">Enter Dept Number: </SimpleFormItem>
    </SimpleForm>
    <%
    //**** THIRD CARD - query DB based on criteria ****
    //**** empNum entered as search criteria ****
    if (empNum != null) //empNum is entered as search criteria- NEED TO TEST FOR NON-int
    rset = stmt.executeQuery("select * from EMP where EMPNO='" + empNum + "'");
    if (rset.next()) //if rset returns data, show data
    do {
    %>
    <%@ include file="showResult.jsp" %>
    <%
    } while (rset.next());
    } //end rset.next() is true
    else
    notFoundMsg = "Employee Number " + empNum + " Not Found";
    %>
    <%@ include file="notFound.jsp" %>
    <% }
    } //end if empNum != null
    //**** lastName as search criteria ****
    else if (lastName != null)
    rset = stmt.executeQuery("select * from EMP where ENAME='" + lastName + "'");
    if (rset.next())
    do {
    %>
    <%@ include file="showResult.jsp" %>
    <%
    } while (rset.next());
    } //end rset.next is true
    else
    notFoundMsg = "Name " + lastName + " Not Found";
    %>
    <%@ include file="notFound.jsp" %>
    <% }
    } //end if lastName != null
    //**** jobTitle as search criteria ****
    else if (jobTitle != null)
    rset = stmt.executeQuery("select * from EMP where JOB='" + jobTitle + "'");
    if (rset.next())
    do {
    %>
    <%@ include file="showResult.jsp" %>
    <%
    } while (rset.next());
    } //end rset.next is true
    else
    notFoundMsg = "Job Title " + jobTitle + " Not Found";
    %>
    <%@ include file="notFound.jsp" %>
    <% }
    } //end if jobTitle != null
    //**** deptNum as search criteria ****
    else if (deptNum != null) //deptNum is entered as search criteria
    rset = stmt.executeQuery("select * from EMP where DEPTNO='" + deptNum + "'");
    if (rset.next())
    do {
    %>
    <%@ include file="showResult.jsp" %>
    <%
    } while (rset.next());
    else
    notFoundMsg = "Dept Number " + deptNum + " Not Found";
    %>
    <%@ include file="notFound.jsp" %>
    <% }
    } //end if deptNum != null
    conn.close();
    %>
    </SimpleContainer>
    </SimpleResult>
    ### Code of NotFound.jsp ###
    <SimpleText>
    <SimpleTextItem><%=notFoundMsg%></SimpleTextItem>
    <Action label="Search" type="ACCEPT" task="GO" target="employee.jsp?"></Action>
    </SimpleText>
    ### Code of ShowResult.jsp ###
    <%
    //format date from query
    java.sql.Date date = rset.getDate("HIREDATE");
    String hireDate = DateFormat.getDateInstance(DateFormat.MEDIUM).format(date);
    %>
    <SimpleText>
    <SimpleTextItem>Emp#: <%=rset.getString("EMPNO")%></SimpleTextItem>
    <SimpleTextItem>Name: <%=rset.getString("ENAME")%></SimpleTextItem>
    <SimpleTextItem>Job: <%=rset.getString("JOB")%></SimpleTextItem>
    <SimpleTextItem>Manager: <%=rset.getString("MGR")%></SimpleTextItem>
    <SimpleTextItem>Hire Date: <%=hireDate %></SimpleTextItem>
    <SimpleTextItem>Salary: <%=rset.getString("SAL")%></SimpleTextItem>
    <SimpleTextItem>Commission: <%=rset.getString("COMM")%></SimpleTextItem>
    <SimpleTextItem>Dept#: <%=rset.getString("DEPTNO")%></SimpleTextItem>
    <SimpleTextItem>Email: <%=rset.getString("EMAIL")%></SimpleTextItem>
    <SimpleTextItem>Phone: <%=rset.getString("PHONE")%></SimpleTextItem>
    <Action label="Search" type="SOFT1" task="GO" target="employee.jsp"></Action>
    <Action label="Call" type="OPTIONS" task="CALL" number="<%=rset.getString("PHONE")%>"></Action>
    </SimpleText>

    Is EMPNO really a string field and not a numeric field? Your query is like
    ... where EMPNO='1949'
    and should it perhaps be
    ... where EMPNO=1949
    ?

Maybe you are looking for

  • How to add more special characters

    hello, is there any possibility to add more special characters ? I know how to use characters from windows, i read that tutorial, but if i want to add into special characters toolbar from fireworks is there any chance ? Because i have a problem with

  • Confused about color profile support in PNG

    NOTE -- you have to hover over the image to see the real images.  The images embedded in the webpage have their profiles stripped -- just like photoshop does!  Interesting. I ask a similar question on this before, but couldn't give a satisfactory dem

  • Can I stop a system update on my phone once it has started

    Can I stop a system update on my phone once it has started

  • CRS on Redhat 5 auto-start problem

    Dear all Recently I tried to install Oracle 10gR2 on Redhat 5. I did research and took all the necessary actions to install it on Redhat. Everything went well, according to the documents and at the end of the installation, all the resources were up a

  • Error on BD87 -Error Passing data to Port

    Hi All, I'm facing an issue with ECC Quality system to BI Quality in BD87, In Logical System For Quality client ->IDocs in outbound Processing->RSINFO->E0(266):  Could not find code page. I have done restore and connection test in SM 59, connection i