Exception error everywhere in JSP
I've wrote a JSP to access SQL Server database in J2SE sucessfully, but when
I try that on a different server using Java 1.1 I get the same type of
errors complaining about
"the method " blah blah blah" can throw the checked exception
"java/lang/ClassNotFoundException", but its invocation is neither enclosed
in a try statement that can catch that exception nor in the body of a method
or constructor that "throws" that exception."
this is another sample of my errors
31. Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
<------------------------------------------->
*** Error: The method "java.lang.Class forName(java.lang.String $1);" can
throw the checked exception "java/lang/ClassNotFoundException", but its
invocation is neither enclosed in a try statement that can catch that
exception nor in the body of a method or constructor that "throws" that
exception.
33. Connection con=DriverManager.getConnection(url, "ema", "ema");
<-------------------------------------------->
*** Error: The method "java.sql.Connection getConnection(java.lang.String
$1, java.lang.String $2, java.lang.String $3);" can throw the checked
exception "java/sql/SQLException", but its invocation is neither enclosed in
a try statement that can catch that exception nor in the body of a method or
constructor that "throws" that exception.
Am I missing some libraries or calling the method incorrectly because of the
version of Java was older?
Here I also attached my code
<%
//connection and query
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:DB";
Connection con=DriverManager.getConnection(url, "sa", "password");
PreparedStatement query = con.prepareStatement("select Quarter, Month,
WeekDay, statusCode, Responded, CNT from REQUEST",
ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rs = query.executeQuery();
rs.last();
int numrows = rs.getRow();
rs.beforeFirst();
%>
Thanks in advanced
Ku
The compiler is telling you that you must handle all possible thrown
exceptions
example:
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch (ClassNotFoundException anCNFExcp)
//Error page telling of error
try
Connection con=DriverManager.getConnection(url, "ema", "ema");
catch (java.sql.SQLException anSQLExcp)
//Error Page Telling Of error
you must check each method's signiture that you are calling and handle
the exceptions that it throws, a simpler way would be to handle the
whole block of code with a generic handler if you don't care what
piece of that code blows up
ex.
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:DB";
Connection con=
DriverManager.getConnection(url, "sa","password");
PreparedStatement query =
con.prepareStatement("select Quarter, Month,
WeekDay, statusCode, Responded, CNT from REQUEST",
ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rs = query.executeQuery();
rs.last();
int numrows = rs.getRow();
rs.beforeFirst();
catch (Exception anEx)
//Error Page
or nest the exceptions to find the specific
catch (ClassNotFoundException aCNFExcp)
//Display warning that driver could not be loaded
catch (SQLException anSQLExcp)
//display warning that SQL statements blew up
catch (Exception anEx)
//display warning that another error occured
Don Stacy
On 2 Nov 2001 15:24:05 -0800, "ku916" <[email protected]> wrote:
>
>I've wrote a JSP to access SQL Server database in J2SE sucessfully, but when
>I try that on a different server using Java 1.1 I get the same type of
>errors complaining about
>
>"the method " blah blah blah" can throw the checked exception
>"java/lang/ClassNotFoundException", but its invocation is neither enclosed
>in a try statement that can catch that exception nor in the body of a method
>or constructor that "throws" that exception."
>
>this is another sample of my errors
>
> 31. Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> <------------------------------------------->
>*** Error: The method "java.lang.Class forName(java.lang.String $1);" can
>throw the checked exception "java/lang/ClassNotFoundException", but its
>invocation is neither enclosed in a try statement that can catch that
>exception nor in the body of a method or constructor that "throws" that
>exception.
>
>
> 33. Connection con=DriverManager.getConnection(url, "ema", "ema");
> <-------------------------------------------->
>*** Error: The method "java.sql.Connection getConnection(java.lang.String
>$1, java.lang.String $2, java.lang.String $3);" can throw the checked
>exception "java/sql/SQLException", but its invocation is neither enclosed in
>a try statement that can catch that exception nor in the body of a method or
>constructor that "throws" that exception.
>
>Am I missing some libraries or calling the method incorrectly because of the
>version of Java was older?
>
>Here I also attached my code
><%
>//connection and query
>Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>String url="jdbc:odbc:DB";
>Connection con=DriverManager.getConnection(url, "sa", "password");
>
>PreparedStatement query = con.prepareStatement("select Quarter, Month,
>WeekDay, statusCode, Responded, CNT from REQUEST",
>ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
>ResultSet rs = query.executeQuery();
>
>
>rs.last();
>int numrows = rs.getRow();
>rs.beforeFirst();
>
>%>
>
>Thanks in advanced
>Ku
Similar Messages
-
Throw exception error everywhere in JSP!
I've wrote a JSP to access SQL Server database in J2SE sucessfully, but when
I try that on a different server using Java 1.1 I get the same type of
errors complaining about
"the method " blah blah blah" can throw the checked exception
"java/lang/ClassNotFoundException", but its invocation is neither enclosed
in a try statement that can catch that exception nor in the body of a method
or constructor that "throws" that exception."
this is another sample of my errors
31. Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
<------------------------------------------->
*** Error: The method "java.lang.Class forName(java.lang.String $1);" can
throw the checked exception "java/lang/ClassNotFoundException", but its
invocation is neither enclosed in a try statement that can catch that
exception nor in the body of a method or constructor that "throws" that
exception.
33. Connection con=DriverManager.getConnection(url, "ema", "ema");
<-------------------------------------------->
*** Error: The method "java.sql.Connection getConnection(java.lang.String
$1, java.lang.String $2, java.lang.String $3);" can throw the checked
exception "java/sql/SQLException", but its invocation is neither enclosed in
a try statement that can catch that exception nor in the body of a method or
constructor that "throws" that exception.
Am I missing some libraries or calling the method incorrectly because of the
version of Java was older?
Here I also attached my code
<%
//connection and query
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:DB";
Connection con=DriverManager.getConnection(url, "sa", "password");
PreparedStatement query = con.prepareStatement("select Quarter, Month,
WeekDay, statusCode, Responded, CNT from REQUEST",
ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rs = query.executeQuery();
rs.last();
int numrows = rs.getRow();
rs.beforeFirst();
%>
Thanks in advanced
KuI've wrote a JSP to access SQL Server database in J2SE sucessfully, but when
I try that on a different server using Java 1.1 I get the same type of
errors complaining about
"the method " blah blah blah" can throw the checked exception
"java/lang/ClassNotFoundException", but its invocation is neither enclosed
in a try statement that can catch that exception nor in the body of a method
or constructor that "throws" that exception."
this is another sample of my errors
31. Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
<------------------------------------------->
*** Error: The method "java.lang.Class forName(java.lang.String $1);" can
throw the checked exception "java/lang/ClassNotFoundException", but its
invocation is neither enclosed in a try statement that can catch that
exception nor in the body of a method or constructor that "throws" that
exception.
33. Connection con=DriverManager.getConnection(url, "ema", "ema");
<-------------------------------------------->
*** Error: The method "java.sql.Connection getConnection(java.lang.String
$1, java.lang.String $2, java.lang.String $3);" can throw the checked
exception "java/sql/SQLException", but its invocation is neither enclosed in
a try statement that can catch that exception nor in the body of a method or
constructor that "throws" that exception.
Am I missing some libraries or calling the method incorrectly because of the
version of Java was older?
Here I also attached my code
<%
//connection and query
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:DB";
Connection con=DriverManager.getConnection(url, "sa", "password");
PreparedStatement query = con.prepareStatement("select Quarter, Month,
WeekDay, statusCode, Responded, CNT from REQUEST",
ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rs = query.executeQuery();
rs.last();
int numrows = rs.getRow();
rs.beforeFirst();
%>
Thanks in advanced
Ku -
Exception-Error when excecuting JSP-File in Crystal reports for Eclipse
Hi,
I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
Coud anyone help me?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
An error occurred at line: 10 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
ReportClientDocument cannot be resolved to a type
10: try catch (ReportSDKExceptionBase e)
60:
An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
e cannot be resolved
55:
56:
57: } catch (ReportSDKExceptionBase e)
60:
61: %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26
Bericht1.jsp:
<%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.reports.sdk.ReportClientDocument,
com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
// This sample code calls methods from the JRCHelperSample class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the JRCHelperSample class.
try {
String reportName = "Bericht1.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null) {
// Report can be opened from the relative location specified in the CRConfig.xml, or the report location
// tag can be removed to open the reports as Java resources or using an absolute path
// (absolute path not recommended for Web applications).
clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
// set the reportsource property of the viewer
IReportSource reportSource = clientDoc.getReportSource();
crystalReportPageViewer.setReportSource(reportSource);
// set viewer attributes
crystalReportPageViewer.setOwnPage(true);
crystalReportPageViewer.setOwnForm(true);
// Apply the viewer preference attributes
// Process the report
crystalReportPageViewer.processHttpRequest(request, response, application, null);
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
} catch (ReportSDKExceptionBase e) {
out.println(e);
%>
Thanks
ArnoldAccording to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using. -
REQUEST HELP ON JSP ODBC EXCEPTION ERROR
hello.
1)currently im using the tomcat server 4.1.31 and am using jsp technology along with the microsoft access database as the backend. i havd placed the jsp files and the microsoft access database in a dir under the webapps/root/ on the tomcat server
2) i get the following error below and am unable to determine the root cause
3) im using the win xp professional .. please help
when i login i get the following exception error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:82)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:54)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Apache Tomcat/4.1.31hello.
1)currently im using the tomcat server 4.1.31 and am
using jsp technology along with the microsoft access
database as the backend. i havd placed the jsp files
and the microsoft access database in a dir under the
webapps/root/ on the tomcat server
2) i get the following error below and am unable to
determine the root cause
3) im using the win xp professional .. please help
when i login i get the following exception error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error
() that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: [Microsoft][ODBC
Microsoft Access Driver] Could not find file
'(unknown)'.
at
t
org.apache.jasper.runtime.PageContextImpl.handlePageEx
ception(PageContextImpl.java:498)
at
t
org.apache.jsp.loginHandler_jsp._jspService(loginHandl
er_jsp.java:82)
at
t
org.apache.jasper.runtime.HttpJspBase.service(HttpJspB
ase.java:92)
at
t
javax.servlet.http.HttpServlet.service(HttpServlet.jav
a:809)
at
t
org.apache.jasper.servlet.JspServletWrapper.service(Js
pServletWrapper.java:162)
at
t
org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
pServlet.java:240)
at
t
org.apache.jasper.servlet.JspServlet.service(JspServle
t.java:187)
at
t
javax.servlet.http.HttpServlet.service(HttpServlet.jav
a:809)
at
t
org.apache.catalina.core.ApplicationFilterChain.intern
alDoFilter(ApplicationFilterChain.java:200)
at
t
org.apache.catalina.core.ApplicationFilterChain.doFilt
er(ApplicationFilterChain.java:146)
at
t
org.apache.catalina.core.StandardWrapperValve.invoke(S
tandardWrapperValve.java:209)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:596)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:433)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:948)
at
t
org.apache.catalina.core.StandardContextValve.invoke(S
tandardContextValve.java:144)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:596)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:433)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:948)
at
t
org.apache.catalina.core.StandardContext.invoke(Standa
rdContext.java:2358)
at
t
org.apache.catalina.core.StandardHostValve.invoke(Stan
dardHostValve.java:133)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:596)
at
t
org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:118)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:594)
at
t
org.apache.catalina.valves.ErrorReportValve.invoke(Err
orReportValve.java:116)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:594)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:433)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:948)
at
t
org.apache.catalina.core.StandardEngineValve.invoke(St
andardEngineValve.java:127)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:596)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:433)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:948)
at
t
org.apache.coyote.tomcat4.CoyoteAdapter.service(Coyote
Adapter.java:152)
at
t
org.apache.coyote.http11.Http11Processor.process(Http1
1Processor.java:799)
at
t
org.apache.coyote.http11.Http11Protocol$Http11Connecti
onHandler.processConnection(Http11Protocol.java:705)
at
t
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolT
cpEndpoint.java:577)
at
t
org.apache.tomcat.util.threads.ThreadPool$ControlRunna
ble.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
java.sql.SQLException: [Microsoft][ODBC Microsoft
Access Driver] Could not find file '(unknown)'.
at
t
sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.jav
a:6958)
at
t
sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:711
5)
at
t
sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:
3074)
at
t
sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcCo
nnection.java:323)
at
t
sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.ja
va:174)
at
t
java.sql.DriverManager.getConnection(DriverManager.jav
a:512)
at
t
java.sql.DriverManager.getConnection(DriverManager.jav
a:193)
at
t
org.apache.jsp.loginHandler_jsp._jspService(loginHandl
er_jsp.java:54)
at
t
org.apache.jasper.runtime.HttpJspBase.service(HttpJspB
ase.java:92)
at
t
javax.servlet.http.HttpServlet.service(HttpServlet.jav
a:809)
at
t
org.apache.jasper.servlet.JspServletWrapper.service(Js
pServletWrapper.java:162)
at
t
org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
pServlet.java:240)
at
t
org.apache.jasper.servlet.JspServlet.service(JspServle
t.java:187)
at
t
javax.servlet.http.HttpServlet.service(HttpServlet.jav
a:809)
at
t
org.apache.catalina.core.ApplicationFilterChain.intern
alDoFilter(ApplicationFilterChain.java:200)
at
t
org.apache.catalina.core.ApplicationFilterChain.doFilt
er(ApplicationFilterChain.java:146)
at
t
org.apache.catalina.core.StandardWrapperValve.invoke(S
tandardWrapperValve.java:209)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:596)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:433)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:948)
at
t
org.apache.catalina.core.StandardContextValve.invoke(S
tandardContextValve.java:144)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:596)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:433)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:948)
at
t
org.apache.catalina.core.StandardContext.invoke(Standa
rdContext.java:2358)
at
t
org.apache.catalina.core.StandardHostValve.invoke(Stan
dardHostValve.java:133)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:596)
at
t
org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:118)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:594)
at
t
org.apache.catalina.valves.ErrorReportValve.invoke(Err
orReportValve.java:116)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:594)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:433)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:948)
at
t
org.apache.catalina.core.StandardEngineValve.invoke(St
andardEngineValve.java:127)
at
t
org.apache.catalina.core.StandardPipeline$StandardPipe
lineValveContext.invokeNext(StandardPipeline.java:596)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:433)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:948)
at
t
org.apache.coyote.tomcat4.CoyoteAdapter.service(Coyote
Adapter.java:152)
at
t
org.apache.coyote.http11.Http11Processor.process(Http1
1Processor.java:799)
at
t
org.apache.coyote.http11.Http11Protocol$Http11Connecti
onHandler.processConnection(Http11Protocol.java:705)
at
t
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolT
cpEndpoint.java:577)
at
t
org.apache.tomcat.util.threads.ThreadPool$ControlRunna
ble.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Apache Tomcat/4.1.31*************************************************************************
Hi,
I think u didn't create the DSN for ur Microsoft Access database.
First create the DSN name by giving the location of ur .mdb file. U can browse and select the file by clicking the "select " button in the DSN creation window. U should give the DSN name in ur connection URL. If u need any further assistance let me know.
Regards
null -
PleaseHelp on jsp and Mysql connectivity and a lot of exception errors
Hi,
I am Trying to connect a JSP page with Mysql database. I am having a lot of probelms. After having a lot of problems in connecting the JSp with Mysql. Intilally it was giving me the exception error that " NO appropriate driver was found. After modifying the URl it was fine. Now It is giving the Following errors.
servlet.ServletException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream
In a window before loading the Explorer page it is giving the following error that The port 8081 is already in use and i should expand to other ports. Noraml JSP Files which used to work before are also not working .
Internal Tomcat JWSDP is alos not working. If i try to start the server it says that port 8081 is already in USe . A java.net.connection exception is also occuring. The normal JSP files are also not working. What is Happening. I am also giving the code i have writted. PLease tellme why so many exception errors are occuring.
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:8081/mis_project", "root", " ");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("Select study_semester FROM Semester");
while(rs.next()) {
%>
<option value="<%= rs.getString("Study_Semester") %>">
</option>
<% }
if(rs!=null) rs.close();
if(stmt!=null) stmt.close();
if(con!=null) con.close();
I am trying to connect to Mysql and automatocally populate a field in a Form in later JSp pages i intend to record the data entered in these fields into other tables.<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/myDB?user=username&password=mypass");
Statement stmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY);
String cat = "";
try{
cat = request.getParameter("category");
}catch(NullPointerException npe){}
ResultSet rs = stmt.executeQuery("SELECT id,fullname FROM users WHERE category LIKE '%motor%' AND subcategory like '%"+cat+"%'");
%>
This piece gets a category parameter from a form post and uses it to search for a specific category in a database table. I think maybe u need to download JConnector from mysql site and unzip it to the classes folder of your WEB-INF in Tomcat server...... i hope this helps a bit -
Error on deploying JSP web module
Hi,
I've created a JSP web module that consumes a web service. I'm following this tutorial
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true]
But when I deploy my ear project, I had this error
Application error occurred during the request procession.
Details: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException:
Error compiling [/sample.jsp] of alias [LocalDevelopmentdc_webmodulesap.com] of J2EE application [sap.com/dc_webmoduleear].
Exception id: [001CC43ABAC00086000056FB00006CEA0004A5A7E1A64FD3]
Here's the java code in the JSP:
InitialContext ctx = new InitialContext();
WS_Preview obj = (WS_Preview).ctx.lookup("java:comp/env/newproxy");
WS_PreviewViDocument port = (WS_PreviewViDocument)obj.getLogicalPort("Config1Port_Document",WS_PreviewViDocument.class);
GetElementXHTMLValueResponse result = new GetElementXHTMLValueResponse();
result = port.GetElementXHTMLValue("A","A","A");
out.print(result);
Does anyone know how to solve this error? ThanksBecause you do not have an infrastructure database, you will not be able to deploy your web service from OEM as one of its steps is to register the service in the UDDI registy - the Web service deployment and UDDI registration are tied tightly together in OEM right now.
All is not lost, however. You have two routes to deploy the Web Service on Oracle9iAS:
1. Use DCM, which is the command line interface to deploy applications/webservices/wars/ears on Oracle9iAS. It does not have the dependency on UDDI.
To deploy a Web service using DCM, say your Web service ear file were named test.ear your deployment command would look something like:
c:\oracle\ora903\dcm\bin\dcmctl deployApplication -file test.ear
See the doc for much more detail to let you tailor DCM to do all the stuff that is available through EM or specific to your application:
http://download-west.oracle.com/docs/cd/A97329_03/core.902/a92171/dcm.htm#643834
2. In JDeveloper 9.0.3, there is a DCM Servlet that lets you do remote deployment to Oracle9iAS:
http://otn.oracle.com/products/jdev/htdocs/readme_9031.html#viadcm
I suspect your deployment problem from Oracle9i JDeveloper may be (this may be an incorrect assumption) due to trying to use a connection that is setup as if Oracle9iAS is a standalone OC4J.
Mike. -
Exception error while running the page? help me please
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select
opi.invoice_num
,opi.purchase_orders
,op.payment_num
,opi.amount_paid Amountpaid
,op.check_date paymentDate
,op.check_number
,op.currency
,op.payment_method
,opi.invoice_amount
,opi.invoice_payment_status
,op.vendor_name
,op.vendor_site_code
from ofsap_paid_invoices opi ,ofsap_payments op where opi.INVOICE_PAYMENT_ID=op.PAYMENT_ID) QRSLT WHERE (( UPPER(PaymentAmountFrom) like :1 AND (PaymentAmountFrom like :2 OR PaymentAmountFrom like :3 OR PaymentAmountFrom like :4 OR PaymentAmountFrom like :5)AND UPPER(PaymentAmountTo) like :6 AND (PaymentAmountTo like :7 OR PaymentAmountTo like :8 OR PaymentAmountTo like :9 OR PaymentAmountTo like :10)))
at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
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:303)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
java.sql.SQLException: ORA-00904: "PAYMENTAMOUNTTO": invalid identifier
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(Unknown Source)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(Unknown Source)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(Unknown Source)
at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(Unknown Source)
at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
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:303)
at java.lang.Thread.run(Thread.java:595)
java.sql.SQLException: ORA-00904: "PAYMENTAMOUNTTO": invalid identifier
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(Unknown Source)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(Unknown Source)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(Unknown Source)
at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(Unknown Source)
at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
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:303)
at java.lang.Thread.run(Thread.java:595)hi ,
I have created a search page with autocustomization mode.
I have created 2 transient attributes PaymentAmountFrom and PaymentAmountTo,
I have wirtten coding for setting where clause dynamically.
I have checked the Vo, attribute PaymentAmountTo is there.but still iam getting that exception error
when i enter PaymentAmountFrom and PaymentAmountToand click go button,
Iam getting the exception error.
This is the code in AM
public void setwhereclause(
String amtFrom
,String amtTo
,String DateFrom
,String DateTo)
PosPaymentVOImpl vo=getPosPaymentVO1();
vo.setWhereClauseParams(null);
vo.setWhereClause(null);
System.out.println(vo.getQuery());
String sql = " 1=1 ";
if(amtFrom != "" && amtTo != "")
sql = sql + " and AMOUNT_PAID " +
" between '"+ amtFrom + "' and '"+ amtTo +"'";
if(DateFrom != "" && DateTo != "")
sql =" and trunc(Check_date) " +
" between '"+ DateFrom + "' and '"+ DateTo +"'";
vo.setWhereClause(sql);
System.out.println(vo.getQuery());
code in CO
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am=pageContext.getApplicationModule(webBean);
OAQueryBean oaquerybean = (OAQueryBean)webBean.findIndexedChildRecursive("NQueryRN");
if (pageContext.getParameter(oaquerybean.getGoButtonName()) != null)
//OAViewObject vo= (OAViewObject)am.findViewObject("PosPaymentVO1");
System.out.println("In Controller");
String AmountFrom=pageContext.getParameter("SearchPaymentAmntFrom");
String AmountTo=pageContext.getParameter("SearchPaymentAmntTo");
String DateFrom=pageContext.getParameter("SearchPaymentDateFrom");
String DateTo=pageContext.getParameter("SearchPaymentDateTo");
Serializable[] para1 = {AmountFrom,AmountTo,DateFrom,DateTo};
am.invokeMethod("setwhereclause",para1);
please help.
Edited by: 859076 on Jun 10, 2011 12:26 AM
Edited by: 859076 on Jun 10, 2011 12:26 AM
Edited by: 859076 on Jun 10, 2011 12:30 AM -
Java Index Out Of Bounds Exception error
In the Query Designer when I choose access type for Result value as Master data, and execute, I get the following java Index Out Of Bounds Exception error:
com.sap.ip.bi.webapplications.runtime.controller.MessageException: Error while generating HTML
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2371)
at com.sap.ip.bi.webapplications.runtime.impl.Page.doServerRedirect(Page.java:2642)
at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:2818)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2293)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:841)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:775)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:412)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while generating HTML
at com.sap.ip.bi.webapplications.ui.items.UiItem.render(UiItem.java:380)
at com.sap.ip.bi.webapplications.runtime.rendering.impl.ContainerNode.render(ContainerNode.java:62)
at com.sap.ip.bi.webapplications.runtime.rendering.impl.PageAssemblerRenderingRoot.processRendering(PageAssemblerRenderingRoot.java:50)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:3188)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:2923)
at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:2877)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2293)
... 39 more
Caused by: java.lang.IndexOutOfBoundsException: fromIndex = -7
at java.util.SubList.<init>(AbstractList.java:702)
at java.util.RandomAccessSubList.<init>(AbstractList.java:860)
at java.util.AbstractList.subList(AbstractList.java:569)
at com.sap.ip.bi.bics.dataaccess.base.impl.ModifiableList.remove(ModifiableList.java:630)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsDataCells.removeRows(RsDataCells.java:480)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.removeTuples(RsAxis.java:550)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1312)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1326)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1326)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1326)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1272)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1170)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.ResultSet.applyPostProcessing(ResultSet.java:282)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.ResultSet.refreshData(ResultSet.java:262)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.QueryView.getResultSet(QueryView.java:267)
at com.sap.ip.bi.webapplications.ui.items.analysis.control.AcPivotTableInteractive.checkResultSetState(AcPivotTableInteractive.java:368)
at com.sap.ip.bi.webapplications.ui.items.analysis.control.AcPivotTableExport.validateDataset(AcPivotTableExport.java:249)
at com.sap.ip.bi.webapplications.ui.items.analysis.control.AcPivotTableInteractive.buildUrTree(AcPivotTableInteractive.java:282)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:33)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayoutItem.iterateOverChildren(FlowLayoutItem.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayout.iterateOverChildren(FlowLayout.java:69)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayoutCell.iterateOverChildren(MatrixLayoutCell.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayoutRow.iterateOverChildren(MatrixLayoutRow.java:56)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayout.iterateOverChildren(MatrixLayout.java:69)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.container.matrixlayout.control.AcMatrixControlGrid.iterateOverChildren(AcMatrixControlGrid.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.Group.iterateOverChildren(Group.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.container.group.control.AcGroupControl.iterateOverChildren(AcGroupControl.java:259)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayoutItem.iterateOverChildren(FlowLayoutItem.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayout.iterateOverChildren(FlowLayout.java:69)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.Group.iterateOverChildren(Group.java:63)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.container.group.control.AcGroupControl.iterateOverChildren(AcGroupControl.java:259)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.start(CompositeBuildUrTreeTrigger.java:59)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.triggerComposites(ExtendedRenderManager.java:69)
at com.sap.ip.bi.webapplications.ui.framework.base.impl.BICompositeManager.renderRoot(BICompositeManager.java:79)
at com.sap.ip.bi.webapplications.ui.items.UiItem.render(UiItem.java:376)
Any help in solving this error is highly appreciated. Points will be given
Best Regards,
Vidyut K SamantaHi.
Go to line 9 of your code.
You are trying to use an array there.
Suppose you have an array x[4] - this array has 4 elements indexed 0..3.
you are trying to access an element with an index higher than 3.
Nimo. -
SXMB_MONI : Mapping exception error - cause unknown
Hi! ALL
I am getting a mapping exception error....
However, if i copy the payload and run it through my test tab it is getting processed successfully.
Is there any other way i can debug this issue....as i do not see any problem with payload or the message mapping and I am getting the following error...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_mm_204: RuntimeException in Message-Mapping transformatio</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Your help is greatly appreciated!!
Thank you,
Patrick.Dear Patrick,
As our experts told you can trace by using ST01 and select your ID and start the trace then again test be editing and reactivating the scenario and test it again then you ill came to know if in case any issues.
1. Other way to test the scenario is Goto RWB--> Component Monitoring --> Select Adapter Monitoring --> Then select the TEST MESSAGE TAB and give Interface details inputs or copy or take your pay load from MONI and past here and check and changes are to be made and then test the message there itself .
2. Also as u can test the message in Message Mapping TEST TAB and test the mapping and also parallely do Cache Refresh in SXI_CACHE.
3. You can also check the status of the message in SYSEM STACK of message monitoring this is different from RWB message moni
[http://Host name:PORT/MessagingSystem/monitor/systemStatus.jsp]
4. YOu can also trace the message through this system stack also.
Regards:
Amar Srinivas Eli
Edited by: Amar Srinivas Eli on Jan 30, 2009 8:53 AM -
Exceptions thrown after a jsp:include
Hi all,
At the beginning of my JSP, I can't use the JSP include directive because I
need to do a specific include from another webapp servlet context. Thus I
wrote my own include tag <mytag:include page="" context=""/> where I use
RequestDispatcher.include().
But then I am facing the following problem with this JSP :
[myjsp.jsp]
<mytaglib:include page="" context=""/>
<mytaglib:stgElse/>
if the second tag <mytaglib:stgElse> is throwing a JspException, and if I
use the error handling system of the webapp :
[web.xml]
<error-page>
<exception-type>javax.servlet.jsp.JspException</exception-type>
<location>/web/en/pf/error.jsp</location>
</error-page>
I get : "java.lang.IllegalStateException: Cannot forward a response that is
already committed"
because it tries to do a forward after an include which needed a flush of
the buffer previously, what means the response was already comitted.
Thus the question is : how to handle exceptions coming after an include was
done, that is to say after a flush of the buffer has already been committed
Thanks for any help.
Yann
In the doc, it states:
sendRedirect
If the response has already been committed, this method throws an
IllegalStateException. After using this method, the response should be
considered to be committed and should not be written to.
In other words, you must not do anything before or after with the response.
Cameron Purdy, LiveWater
"Lawrence Lourduraj" <[email protected]> wrote in message
news:8ip9p4$r0g$[email protected]..
>
Friends,
How do I do a redirect either through HttpServletResponse.sendRedirect ()or
<jsp:forward /> in a JSP that does a <jsp:include /> at the top.
I am getting a IllegalState exception.
Thanks
Regards
Lawrence Lourduraj
VocaLoca Inc. -
hi,
in my jsp
i have some code like this..
<%@page --------------------------%>
<html>
file://header part of page using html goes here
-------------so on
<%
try{
file://som functionalites
}catch(SQLException e)
%>
</html>
here if any error occures in jsp page functionalites
i should display the error page..but unfortunately
in my browser its displaying the header parth
and then displaying the erorpage in belows making the page ugly..
how can i avoid this..if any error occurs its should display only errorpage.jsp with exception
Regards,i resolved in this way..
<%@page buffer="96kb" autoFlush="true" %>
is this correct way..when we are dealing with huge amount of data..lets say while search i got 10k records..any way i will display only10 perpage..for next 10 it will hit server again.
this buffer will create any problem.
Regards, -
[Urgent] Uncaught exception: Errors!
Hello Blackberry Support!
So I'm in a pretty bad situation at the moment. It seems as though my mothers Blackberry Torch 9810 is receiving quite a lot of errors. The phone was operational and at occasions, restarts itself (probably because the ram gets clogged up). However, this time the phone was stuck on the loading screen. I decided it was best to see if taking the battery out and in again would work but unfortunately it didn't. So I left it aside for a while incase it isn't frozen and loads up to the home screen but instead of that, Uncaught Exception Errors began popping up with a menu behind it which had a list of stock and third-party applications.
Errors such as Uncaught exception: java.lang.nullpointerexception
and
Uncaught exception: ApplicationRegistry.getOrWaitFor (0x...) owner died Thread [Thread-...]
keep occuring.
We're very reluctant at restoring the whole phone as we dont want any sort of data being deleted, especially photos and videos.
Any help will be greatly appreciated!Hi and Welcome to the Community!!
There's pretty much no diagnosing those -- they are the equivalent of the random errors in Windows for which tracing the root cause is fruitless. Basically, these are the last out in the programming code -- some event occurred for which there is no handler in the code. The fix is a code update that handles the event...but, again, knowing what the event is is pretty much impossible. So, there are a few things to try:
Sometimes, the code simply becomes corrupt and needs to be refreshed -- just like a reboot:
Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
If it won't boot up cleanly, then you may need to try Safe Mode:
KB17877 How to start a BlackBerry smartphone in safe mode
There might be an updated code set from the carrier -- check them via this portal:
http://na.blackberry.com/eng/support/downloads/download_sites.jsp
The toughest possible cause is a badly behaving app. To find it, there are a couple of options. One is to see if you can read the log file:
Go to the home screen. Hold down the "alt" key and type 'lglg'. (You will not see anything while you type).This will bring up the log file. Scroll down (probably many pages) untill you see a line that says 'uncaught execption'. Click on this line. The name of the app will be in the info. Alternative methods for bringing up the logs are in this KB:
KB05349How to enable, access, and extract the event logs on a BlackBerry smartphone
The other method is to remove apps one at a time, waiting a while in between (I usually recommend a week), until the problem ceases...thereby discovering the offending app. Still another method is to reload the BB OS cleanly, leaving some time between adding other apps onto the BB so as to be able to determine exactly which one is the cause.
As for backing up your data, that requires the device to be running normally and not failing for one reason or another. If, for example, you can get it to run stable in Safe Mode, you might then be able to take a backup. But, please do realize that, like insurance, backups are neither a reactive nor an optional activity. The time to take a backup is when things are running fine, not after problems arise.
Good luck and let us know!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Error Page in JSP Having Problems.
Hi all,
I am having some issues with error pages in JSP.
I am trying to display one simple error image when my JSP is having any kind of error, lets say when it throws any exception. Here goes the code
throwError.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page errorPage="errorPage.jsp" %>
<html>
<body>
Hello All,
<%! int x = 12/0; %>
</body>
</html>errorPage.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page isErrorPage="true" %>
<html>
<body>
<img src="error.jpg" height="100" width="100">
</body>
</html>web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<error-page>
<error-code>500</error-code>
<location>/errorPage.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.ArithmeticException</exception-type>
<location>/errorPage.jsp</location>
</error-page>
</web-app>Please see if you can help
Currently when I run the throwError.jsp in Eclipse, nothing happens. It shows "500 Internal server error". But the error.jpg doesn't appear on browser. I have copied the error.jpg properly in the WebContent folder of the Web App root.
Thanks much...
GoldestRaghu,
You need to fix your syntax:
<%=someObje.getNo()>
not
<=someObje.getNo()>
Your concept of how to use error.jsp seems correct.
--BobC -
May I know how to prompt an error message in JSP?? can I use alert() as in javascript? what's the proper syntax to do it???
Just to simplify what is already said: All JSP code, without exception, is executed on the server side, and when the JSP page is shown to the user (client) there is no execution of any JSP CODE, you can only use the information supplied by the JSP code.
/R -
Out of Memory Error when generating JSP
Hi,
I have a bit of a problem. I?m trying to generate quite a large JSP file (a table with about 1500 rows). The problem is that I get an out of memory error when the JSP is being generated. And it is definitely that the JSP is too large, or rather the HTML being generated from it. Now I was under the impression that the JSP page was flush now and again, but I tried to set all the different flush options and I have also tried to manually flush the page. Nothing of this made any difference except for displaying a white page instead of an error page since the header was already sent. Now this suggests to me that the page is being cached internally by the server and then sent to the client. So is there anything I can do about this?
Regards
HertzYou are building an HTML table with 1500 rows? That is definitely a lot. And I assume you are also putting some styling on that table...
These days programmers resource to [url en.wikipedia.org/wiki/AJAX]AJAX techniques for things like that.
You can, for example, send the table data as a list of comma separated values, and then use Javascript on the browser to create a partial table with options to browse through the different pages of data.
If you need to show all that data in one single page, you can still try sending just the data as CSV or XML and then building the table on the browser via a Javascript loop. Use CSS for the styling so you don't overload the HTML code with styling information.
Marcos Broc
Hi,
I have a bit of a problem. I?m trying to generate
quite a large JSP file (a table with about 1500
rows). The problem is that I get an out of memory
error when the JSP is being generated. And it is
definitely that the JSP is too large, or rather the
HTML being generated from it. Now I was under the
impression that the JSP page was flush now and again,
but I tried to set all the different flush options
and I have also tried to manually flush the page.
Nothing of this made any difference except for
displaying a white page instead of an error page
since the header was already sent. Now this suggests
to me that the page is being cached internally by the
server and then sent to the client. So is there
anything I can do about this?
Regards
Hertz
Maybe you are looking for
-
Plugin-container issue. Works in v 3.6 but not in 12.0
So im having a issue here. I love the 3.6.28 Firefox version as its simple and fastest for my Slow PC. I though installed the new 12.0 version as FF decided not to support 3.6 anymore and was hugely disappointed with how slow it is. Anyway my issue:
-
How do I reinstall mail.app on OS 10.6.8 without an install disk
Software update recently updated my software automatically to 10.6.8 on my MacBook 2.4 Ghz Intel Core Duo. Apparently because i organize my applications into folders inside the root Applications folder, the mail app was not updated properly. I put th
-
Urgent : PO deletion in saved status
Hi, We have a PO X which has been copied in from PO Y. X has been copied and saved and not ordered. How do i delete the PO from both portal and SRM. Kindly advise. A
-
Is it possible to create a 'layer' over the top of a PDF in Captivate?
I am trying to integrate a 3dpdf within captivate 8 for a software training program, for this it is important to retain functionality to the pdf menu, Captivate handles this well : ) HOWEVER on importing the pdf it becomes clear that the pdf 'trumps'
-
Why do I have to convert t2i files to pro res in fcp x? What difference does it make ?
Hey Guys, Just wondering why do I have to convert canon t2i files to prores in fcp x? What difference does it make ? I'm able to edit in fcpx the files that have just been imported diectly in. Does it cause any problems in export? Thanks so much, Jam