JSP sporadic stringoutofbounds errors
I'm returning rows from a sql query using:
String xxxxx = rset.getString(#)
where xxxxx => variable name
and # => my index number
Half of the time I don't get any error messages, while the other
half I get messages like:
java.lang.StringIndexOutOfBoundsException: String index out of
range: 4
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(Compiled Code)
at java.lang.IndexOutOfBoundsException.(Compiled Code)
at java.lang.StringIndexOutOfBoundsException.(Compiled
Code)
at java.lang.String.substring(Compiled Code)
I know that this generally means that index 4 is having issues,
such as size, etc.
But even if I remove the index it is still having issues. And
this is only happening for some of my queries.
Any ideas?
null
Could you let us know the query you are executing
and also print the index everytime and let us know
what the index is in the failure case.
Also, please display the entire stack trace. Nothing
in the stack trace indicates its a JDBC error.
Ravi Thakur (guest) wrote:
: I'm returning rows from a sql query using:
: String xxxxx = rset.getString(#)
: where xxxxx => variable name
: and # => my index number
: Half of the time I don't get any error messages, while the
other
: half I get messages like:
: java.lang.StringIndexOutOfBoundsException: String index out of
: range: 4
: at java.lang.Throwable.(Compiled Code)
: at java.lang.Exception.(Compiled Code)
: at java.lang.RuntimeException.(Compiled Code)
: at java.lang.IndexOutOfBoundsException.(Compiled Code)
: at java.lang.StringIndexOutOfBoundsException.(Compiled
: Code)
: at java.lang.String.substring(Compiled Code)
: I know that this generally means that index 4 is having issues,
: such as size, etc.
: But even if I remove the index it is still having issues. And
: this is only happening for some of my queries.
: Any ideas?
null
Similar Messages
-
Jsp import package error after upgrading to jdk1.4.2_08 and tomcat 5.0
I am trying to upgrade the jdk and tomcat from 1.3/3.3 to 1.4/5.0.
My jsp imports worked fine prior to the upgrade, but now I get the following:
Jun 6, 2005 10:01:17 AM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file: /C:/Tomcat/work/Catalina/localhost/Print//org/apac
he/jsp\BillingPrompt_jsp.java [javac] Compiling 1 source file
C:\Tomcat\work\Catalina\localhost\Print\org\apache\jsp\BillingPrompt_jsp.java:11
: package com.adware.print.database.inquire does not exist
import com.adware.print.database.inquire.*;
^
1 error
A fatal error has occured for user: Unable to compile class for JSP
Generated servlet error:
C:\Tomcat\work\Catalina\localhost\Print\org\apache\jsp\BillingPrompt_jsp.java:11
: package com.adware.print.database.inquire does not exist
import com.adware.print.database.inquire.*;
The package in the import statement "import com.adware.print.database.inquire.*" actually has no classes in it. The classes are contained in "import com.adware.print.database.inquire.controller.*". If I change the import statement everything works. The problem is that I have 100s of jsps. If there is a work-around outside of changing the import statements, that would be best.
Can anyone help? Thanks.do you know what url is being looked up? the message is complaining that the url is starting with the string "an]", which seems pretty bogus.
-
I am facing a strange SQL exception:-
The code flow is like this:
.Net 4.0 --> Entity Framework --> SQL 2008 ( StoredProc --> Function {Exception})
In the SQL Table-Valued Function, I am selecting a column (nvarchar(50)) from an existing table and (after some filtration using inner joins and where clauses) inserting the values in a Table Type Object having a column (nvarchar(50))
This flow was working fine in SQL 2008 but now all of sudden the Insert into @TableType is throwing "string or binary data would be truncated" exception.
Insert Into @ObjTableType
Select * From dbo.Table
The max length of data in the source column is 24 but even then the insert statement into nvarchar temp column is failing.
Moreover, the same issue started coming up few weeks back and I was unable to find the root cause, but back then it started working properly after few hours
(issue reported at 10 AM EST and was automatically resolved post 8 PM EST). No refresh activity was performed on the database.
This time however the issue is still coming up (even after 2 days) but is not coming up in every scenario. The data set, for which the error is thrown, is valid and every value in the function is fetched from existing tables.
Due to its sporadic nature, I am unable to recreate it now :( , but still unable to determine why it started coming up or how can i prevent such things to happen again.
It is difficult to even explain the weirdness of this bug but any help or guidance in finding the root cause will be very helpful.
I also Tried by using nvarchar(max) in the table type object but it didn't work.
Here is a code similar to the function which I am using:
BEGIN
TRAN
DECLARE @PID
int = 483
DECLARE @retExcludables
TABLE
PID
int NOT
NULL,
ENumber
nvarchar(50)
NOT NULL,
CNumber
nvarchar(50)
NOT NULL,
AId
uniqueidentifier NOT
NULL
declare @PSCount int;
select @PSCount =
count('x')
from tblProjSur ps
where ps.PID
= @PID;
if (@PSCount = 0)
begin
return;
end;
declare @ExcludableTempValue table (
PID
int,
ENumber
nvarchar(max),
CNumber
nvarchar(max),
AId
uniqueidentifier,
SIds
int,
SCSymb
nvarchar(10),
SurCSymb
nvarchar(10)
with SurCSymbs as (
select ps.PID,
ps.SIds,
csl.CSymb
from tblProjSur ps
right
outer join tblProjSurCSymb pscs
on pscs.tblProjSurId
= ps.tblProjSurId
inner join CSymbLookup csl
on csl.CSymbId
= pscs.CSymbId
where ps.PID
= @PID
AssignedValues
as (
select psr.PID,
psr.ENumber,
psr.CNumber,
psmd.MetaDataValue
as ClaimSymbol,
psau.UserId
as AId,
psus.SIds
from PSRow psr
inner join PSMetadata psmd
on psmd.PSRowId
= psr.SampleRowId
inner join MetaDataLookup mdl
on mdl.MetaDataId
= psmd.MetaDataId
inner join PSAUser psau
on psau.PSRowId
= psr.SampleRowId
inner
join PSUserSur psus
on psus.SampleAssignedUserId
= psau.ProjectSampleUserId
where psr.PID
= @PID
and mdl.MetaDataCommonName
= 'CorrectValue'
and psus.SIds
in (select
distinct SIds from SurCSymbs)
FullDetails
as (
select asurv.PID,
Convert(NVarchar(50),asurv.ENumber)
as ENumber,
Convert(NVarchar(50),asurv.CNumber)
as CNumber,
asurv.AId,
asurv.SIds,
asurv.CSymb
as SCSymb,
scs.CSymb
as SurCSymb
from AssignedValues asurv
left outer
join SurCSymbs scs
on scs.PID
= asurv.PID
and scs.SIds
= asurv.SIds
and scs.CSymb
= asurv.CSymb
--Error is thrown at this statement
insert into @ExcludableTempValue
select *
from FullDetails;
with SurHavingSym as (
select distinct est.PID,
est.ENumber,
est.CNumber,
est.AId
from @ExcludableTempValue est
where est.SurCSymb
is not
null
delete @ExcludableTempValue
from @ExcludableTempValue est
inner join SurHavingSym shs
on shs.PID
= est.PID
and shs.ENumber
= est.ENumber
and shs.CNumber
= est.CNumber
and shs.AId
= est.AId;
insert @retExcludables(PID, ENumber, CNumber, AId)
select distinct est.PID,
Convert(nvarchar(50),est.ENumber)
ENumber,
Convert(nvarchar(50),est.CNumber)
CNumber,
est.AId
from @ExcludableTempValue est
RETURN
ROLLBACK
TRAN
I have tried by converting the columns and also validated the input data set for any white spaces or special characters.
For the same input data, it was working fine till yesterday but suddenly it started throwing the exception.Remember, the CTE isn't executing the SQL exactly in the order you read it as a human (don't get too picky about that statement, it's at least partly true enough to say it's partly true), nor are the line numbers or error messages easy to read: a mismatch
in any of the joins along the way leading up to your insert could be the cause too. I would suggest posting the table definition/DDL for:
- PSMetadata, in particular PSRowID, but just post it all
- tblProjectSur, in particularcolumns CSymbID and TblProjSurSurID
- cSymbLookup, in particular column CSymbID
- PSRow, in particular columns SampleRowID, PID,
- PSAuser and PSUserSur, in particualr all the USERID and RowID columns
- SurCSymbs, in particular colum SIDs
Also, a diagnostic query along these lines, repeat for each of your tables, each of the columns used in joins leading up to your insert:
Select count(asurv.sid) as count all
, count(case when asurv.sid between 0 and 9999999999 then 1 else null end) as ctIsaNumber
from SurvCsymb
The sporadic nature would imply that the optimizer usually chooses one path to the data, but sometimes others, and the fact that it occurs during the insert could be irrelevant, any of the preceding joins could be the cause, not the data targeted to be inserted. -
Jsp:useBean giving error while compiling JSP's in JDeveloper
Hello,
I am having another problem with JSP's in JDeveloper 10.1.3. jsp:useBean and jsp:setProperty are all giving problems. I am not sure what I need to do to get rid of this error
Thanks,
LakshmisriYour original post mentions issues with jsp:useBean and jsp:setProperty, now you're talking about tag libraries and directives. Can you be more specific about what you're trying to do? Are you having problems getting JDev to recognize a tag library or are you having problems with the tag library when running the app? What directive are you trying to use that causes the termination error?
-
Java Application working fine,JSP App. throwing error for same reference
hi all
i had written java(window) application and jsp(web) application with the same reference(third party reference)
Java Application is working fine but when i try run JSP application the following error came up
java.lang.NoClassDefFoundError: com/documentum/fc/client/DfClient
could any one help me out of this issue? i am in very need of that one it will be very helpfull to me.
Thank You
Regards
Oersla Afrzoe Ahmedhi thanks for reply
cant i put the reference to the JAR Files(such as classpath e.t.c.,) so that all my JSP Application take a reference from thier?
is that i have to copy all my jar files physically to al my each individual JSP application web-inf/lib folder?
how to find out where my particular JSP App. web-inf folder exists?
Regards
Oersla Afroze Ahmed -
New to jsp, login page errors
Hi
I'm totally new to using jsp and as part of a project I need to create a login page which compares the
entered email and password with those contained in a database.
I've created the java code and jsp pages, there's no obvious errors (to me anyway) but everytime I try to run it I get the same error.
The code for the login page is:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<body>
<form action="validate.jsp" method="POST">
email address - <input type="text" name="emailAddress">
<br>
password - <input type="password" name="passWord">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
<br>
new customer? To sign up <a href="new%20customer.jsp">Click here</a>
</body>
</html>The validation page code is:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="java.util.*" %>
<jsp:useBean id="idHandler" class="org.login" scope="request">
<jsp:setProperty name="idHandler" property="*"/>
</jsp:useBean>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<body>
<%
String username=(String) session.getAttribute("username");
String password = (String) session.getAttribute("password");
String emailAddress = request.getParameter("emailAddress");
String passWord = request.getParameter("passWord");
if (idHandler.authenticate(emailAddress, passWord)) {
response.sendRedirect("index.jsp");
} else {
response.sendRedirect("login.jsp");
%>
</body>
</head>
</html>and the java code is:
package org;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class login {
private DataSource getJdbcConnectionPool() throws NamingException {
Context c = new InitialContext();
return (DataSource) c.lookup("java:comp/env/jdbc/connectionPool");
//method that is called from validateuser.jsp and this checks for the authentic user and
public boolean authenticate(String emailAdd, String pass)
throws SQLException, IOException, IOException, NamingException {
String emailAddress = null, Password = null;
// connection instance
Connection connection = null;
try {
DataSource dataSource = getJdbcConnectionPool();
connection = dataSource.getConnection();
String sql = "SELECT emailAdd, pword FROM customer WHERE emailAdd='" + emailAdd + "'" + "AND pword='" + pass + "'";
PreparedStatement ps = connection.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
if (rs.next()) {
emailAddress = rs.getString("emailAdd");
Password = rs.getString("pword");
if (emailAddress != null && Password != null && emailAddress.equals(emailAddress) && pass.equals(Password)) {
return true;
} else {
return false;
}finally {
// close the connection so it can be returned to
// the connection pool then return the list
connection.close();
}finally the error message I get is:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
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)
root cause
java.lang.NullPointerException
org.login.authenticate(login.java:56)
org.apache.jsp.validate_jsp._jspService(validate_jsp.java:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
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.
help?login.java:56 is:
connection.close();right? So, it looks like the call to getJdbcConnectionPool within authenticate throws an exception and control is passed to the finally block where connection is still null, resulting in the NPE. You should probably catch any exceptions thrown by the lookup for your datasource so you can see what the "real' error is. -
My Jsp is showing error while using tag liabrary in code
Error(3,48): FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
Error(4,14): Attribute 'xmlns:xsi' used but not declared.
Error(5,23): Attribute 'xsi:schemaLocation' used but not declared.
Error(6,12): Attribute 'version' used but not declared.
Error(8,15): Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
Error(8,15): Element 'description' used but not declared.
Error(9,16): Invalid element 'display-name' in content of 'taglib', expected elements '[tlibversion]'.
Error(9,16): Element 'display-name' used but not declared.
Error(10,16): Invalid element 'tlib-version' in content of 'taglib', expected elements '[tlibversion]'.
Error(3): Unable to load taghandler class: http://java.sun.com/jsp/jstl/coreWhat is the JDeveloper version? What is the JSP version required for the tag library?
-
Included JSPs gives comilation error, even in the JBuilder plugin
Dears,
I'm making a web application, it contains a header, and footer JSPs.
These two JSPs are included in every JSP in the site, and I use the <%@ include The problem in this is that I define variables in every parent JSP including these two JSPs, but when I build my project using JBuilder, it gives me complation error as it tries to compile the JSPs and the vatiables are still not defined, as they r defined only when included.
This prevents me from deployment using JBuilder, also if I try deployment on SUN ONE 7 platform edition with precompile JSPs checked.
Do anyone know a solution for this?
ThanksHi,
IF you are using EPCF.doNavigate then you should give the iview address as the url. If should be something like this
<%
String componentName = componentRequest.getComponentContext().getApplicationName();
String helpUrl = "ROLES://portal_content/administrator/super_admin/super_admin_role/com.sap.portal.system_administration/com.sap.portal.system_admin_ws/com.sap.portal.support/com.sap.portal.support_desk";
%>
<a href="tools" onClick = "return EPCM.doNavigate("<%=helpUrl %>");">click here</a>
Or as Ranjith said use the href option
Regards
Prakash -
10.1.3 JBO - show JSP line # on error, not the java one?
Hi,
Another issue I'm bumping into on the JBO migration to 10.1.3(.1) are OC4J's stack traces for the JSPs are showing the line number of the error from the compiled java class, not the JSP file. Previous version used to do this. How can I get this back?
Example:
Application Error
Return
Error Message: JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[4258 ].
oracle.jbo.RowInconsistentException: JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[4258 ].
at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:939)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5591)
at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3845)
at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:4326)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4470)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2996)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2807)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2640)
at oracle.jbo.html.jsp.datatags.PostChangesTag.doStartTag(PostChangesTag.java:33)
at _completeInterview__action._jspService(_completeInterview__action.java:252) ... <-- WHERE??Hi,
Another issue I'm bumping into on the JBO migration to 10.1.3(.1) are OC4J's stack traces for the JSPs are showing the line number of the error from the compiled java class, not the JSP file. Previous version used to do this. How can I get this back?
Example:
Application Error
Return
Error Message: JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[4258 ].
oracle.jbo.RowInconsistentException: JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[4258 ].
at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:939)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5591)
at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3845)
at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:4326)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4470)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2996)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2807)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2640)
at oracle.jbo.html.jsp.datatags.PostChangesTag.doStartTag(PostChangesTag.java:33)
at _completeInterview__action._jspService(_completeInterview__action.java:252) ... <-- WHERE?? -
I have tried a lot searching for such issue, but cd not find any solution which
cd help me.
We have a jsp which compiles well in one enviroment, but does not compile in another.
The enviroment in which it compiles is as follows:
OS: Solaris 2.6, Patch level 32
wls version: 6.1 with no service pak
The enviroment in which it does not compile is as follows:
OS: Solaris 8, Patch level 19
wls version: 6.1 with no service pak
In the second enviroment, it gives the folowing error, when invoked...
//error start....
/requisition/reqteamwiz.jsp(532): scriptlet close brace '}' unbalanced at line
532 which breaks scope '_base_service_scope_'
probably occurred due to an error in /requisition/reqteamwiz.jsp line 532:
<strong><font face="Verdana" size="1"><input type="button" style="font-family:
Verdana; font-size: 8pt" name="B1" value=" Submit " onClick="FrontPage_Form1_Validator(document.FrontPage_Form1,
'<%= i%>')"></td></font></strong>
//error end
The line seems OK, and this works fine in the first enviroment.
Cd anyone pls give any suggestions or references as to any known issues with the
second enviroment.
Thanks a lot...
[email protected] (David M. Karr) wrote:
>>>>>> "vinay" == vinay s <[email protected]> writes:
>
> vinay> I have tried a lot searching for such issue, but cd not find
>any solution which
> vinay> cd help me.
> vinay> We have a jsp which compiles well in one enviroment, but does
>not compile in another.
> vinay> The enviroment in which it compiles is as follows:
> vinay> OS: Solaris 2.6, Patch level 32
> vinay> wls version: 6.1 with no service pak
>
> vinay> The enviroment in which it does not compile is as follows:
> vinay> OS: Solaris 8, Patch level 19
> vinay> wls version: 6.1 with no service pak
>
> vinay> In the second enviroment, it gives the folowing error, when
>invoked...
> vinay> //error start....
> vinay> /requisition/reqteamwiz.jsp(532): scriptlet close brace '}'
>unbalanced at line
> vinay> 532 which breaks scope '_base_service_scope_'
> vinay> probably occurred due to an error in /requisition/reqteamwiz.jsp
>line 532:
> vinay> <strong><font face="Verdana" size="1"><input type="button"
>style="font-family:
> vinay> Verdana; font-size: 8pt" name="B1" value=" Submit " onClick="FrontPage_Form1_Validator(document.FrontPage_Form1,
> vinay> '<%= i%>')"></td></font></strong>
> vinay> //error end
>
> vinay> The line seems OK, and this works fine in the first enviroment.
> vinay> Cd anyone pls give any suggestions or references as to any
>known issues with the
> vinay> second enviroment.
> vinay> Thanks a lot...
>
>If you use an expression scriptlet for an attribute value, it has to
>be the
>entire attribute value, not just a portion of it.
>
>--
>===================================================================
>David M. Karr ; Java/J2EE/XML/Unix/C++
>[email protected] ; SCJP; SCWCD
>
>
I am using the scriplet for entire value, seems the post got jumbled up.
FrontPage_Form1_Validator is a javascript function which takes 2 parameters, one
of which is provided by the expression scriplet.
<strong><font face="Verdana" size="1"><input type="button" style="font-family:
Verdana; font-size: 8pt" name="B1" value=" Submit " onClick="FrontPage_Form1_Validator(document.FrontPage_Form1,
'<%= i%>')"></td></font></strong>
-
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 -
Oracle.jsp.parse.JspParseException Error
I am trying to migrate for Oracle 9ias 9.0.3 to ias 10G (10.1.2.0.2) and i have obtaining errors with jsp´s:
OracleJSP: oracle.jsp.parse.JspParseException: /WEB-INF/jsp/primary/./actualidad/./ultimosDocsLegisAutoyCalendario.jsp: Line # 199, <aranzadi:actual tipo="<%=tipo%>"><%=xml%><%aranzadi:actual%>
Error: actual must be terminated with /> or %> not >
The jsp worked in the 9.0.3
That is the jsp content:
<%@ page contentType="text/html;charset=iso-8859-1" language="java" %>^M
<%@page import="es.aranzadi.base.SessionNames"%>^M
<%@page import="es.aranzadi.seguridad.ServiciosSeguridad"%>^M
<%@page import="es.aranzadi.seguridad.TipoProducto"%>^M
<%@page import="es.aranzadi.seguridad.TipoZona"%>^M
<%@page import="es.aranzadi.seguridad.ListaProductos"%>^M
<%@page import="java.util.Iterator"%>^M
<%@ page import="java.util.Collection"%>^M
<%@ page import="java.util.ArrayList"%>^M
<%@page import="es.aranzadi.utilidades.actualidad.Actualidad"%>^M
<%@ page import="org.apache.struts.action.ActionForm"%>^M
<%@ page import="es.aranzadi.util.Utilidades"%>^M
<%@page import="org.apache.log4j.Category"%>^M
^M
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>^M
<%@ taglib uri="/WEB-INF/taglibs-session.tld" prefix="session"%>^M
<%@ taglib uri="/WEB-INF/aranzadi.tld" prefix="aranzadi"%>^M
<%@taglib uri="/WEB-INF/cache.tld" prefix="cache"%>^M
<%@page import="es.aranzadi.services.Propiedades"%>^M
<%@page import="es.aranzadi.util.navegacion.ServiciosConfiguracion"%>^M
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>^M
^M
^M
"ultimosDocsLegisAutoyCalendario.jsp" [Read only] 210 lines, 7583 characters
}^M
}^M
String p_tipo = request.getParameter("tipo");^M
if(tipo != null && !tipo.equals(""))^M
tipo = p_tipo;^M
^M
String xml=actualidad.getXMLConsolidada(marcas,cjto, publicaciones,diasA
ctualidad);^M
%>^M
<aranzadi:actual tipo="<%=tipo%>"><%=xml%></aranzadi:actual>^M
</cache:Cache>^M
<INPUT TYPE=HIDDEN NAME="nm" VALUE=""> ^M
<INPUT TYPE=HIDDEN NAME="saltoA" VALUE="">^M
<INPUT TYPE=HIDDEN NAME="saltoDe" VALUE="">^M
<!--INPUT TYPE=HIDDEN NAME="version" VALUE=""-->^M
</form>^M
^M
^M
</body>^M
^M
</html>^Mversion.
Can anybody hep me?
IdoiaSorry, the error is:
OracleJSP: oracle.jsp.parse.JspParseException: /WEB-INF/jsp/primary/./actualidad/./ultimosDocsLegisAutoyCalendario.jsp: Line # 199, <aranzadi:actual tipo="<%=tipo%>"><%=xml%></aranzadi:actual>
Error: actual must be terminated with /> or %> not >
Thanks, -
Hi,
I am trying to get JDeveloper 10.1.3 (JTINTEG_MAIN_NT_050601.1217.428) to work with UIX 2.2.15 (*not* UIX 3.x/ADF).
I am currently getting the following "not a registered TLD namespace" JSP errors during compiling.
Project: C:\jdev1013\jdev\mywork\VTFLite322\VTFLite322\VTFLite322.jpr
C:\jdev1013\jdev\mywork\VTFLite322\VTFLite322\public_html\cabo\bi\jsp\selectItemsShuttle.jsp
Error(1): "http://xmlns.oracle.com/bibeans/jsp" is not a registered TLD namespace
C:\jdev1013\jdev\mywork\VTFLite322\VTFLite322\public_html\cabo\bi\jsp\save.jsp
Error(1): "http://xmlns.oracle.com/bibeans/jsp" is not a registered TLD namespace
C:\jdev1013\jdev\mywork\VTFLite322\VTFLite322\public_html\cabo\bi\jsp\refineSelections.jsp
Error(1): "http://xmlns.oracle.com/bibeans/jsp" is not a registered TLD namespace
C:\jdev1013\jdev\mywork\VTFLite322\VTFLite322\public_html\cabo\bi\jsp\printerFriendly.jsp
Error(1): "http://xmlns.oracle.com/bibeans/jsp" is not a registered TLD namespace
C:\jdev1013\jdev\mywork\VTFLite322\VTFLite322\public_html\cabo\bi\jsp\printOptions.jsp
Error(1): "http://xmlns.oracle.com/bibeans/jsp" is not a registered TLD namespace
Question:
Is it possible to configure JDeveloper 10.1.3 to work with older versions of UIX (e.g. 2.2.x)?
Am I missing something obvious? I have tried various things on OTN that didn't work (i.e. searched JDeveloper forum for 'TLD namespace' and 'UIX 2.2').
I am currently not having problems debugging Thick Java components, but would like to standardize development/debugging for both Thick (Java) and Thin (UIX 2.2.x) on one 10.1.3 JDeveloper platform.
For reference, I am currently trying to migrate from the production JDeveloper 10.1.2.0.0 (Build 1811) release, where UIX 2.2.x applications work fine. Near term I do not have a need migrate previous applications to UIX 3.x/ADF.
ThanksThe PDK parts of JDeveloper are developed by the WebCenter/Portal team, so you might want to cross post here:
http://forums.oracle.com/forums/forum.jspa?forumID=4
WebCenter Portal -
Static JSP Include throws Errors
Hi,
I am facing a issue in my jsp.
I have a .html to include in my jsp.
I have to do a static include. The code snippet is :
The variable categoryName can have different values like weather,events,pets,etc......
Is there anything wrong in the statement?
jsp is giving me error's.
<%@ include file="/community/photo/modules/carousel/"<%=categoryName%>+".html" %>
Error is
File "/community/photo/modules/carousel/<%=categoryName%>.html" not found
Any help is really appreciated. or please let me know if there is any other way to do it?
Thanks
DeeptiDeeptiChhabra wrote:
Hi,
I am facing a issue in my jsp.
I have a .html to include in my jsp.
I have to do a static include. The code snippet is :
The variable categoryName can have different values like weather,events,pets,etc......
Is there anything wrong in the statement?
jsp is giving me error's.
<%@ include file="/community/photo/modules/carousel/"<%=categoryName%>+".html" %>
Error is
File "/community/photo/modules/carousel/<%=categoryName%>.html" not found
Any help is really appreciated. or please let me know if there is any other way to do it?
Thanks
DeeptiOk first thing which you need to understand here is static include is also known as compile time include now as we are trying to use a runtime variable their it is so obvious that we cannot the jasper complier cannot recognize it.
now in order to include the content like this we need to runtime include which <jsp:include/>
However asper the above senario we cannot directly use it aswell. my advice for you would write a servlet which can forward us to this page something like the one below.
Sample JSP Code Snippet:
<%
String pageUrl = "/community/photo/modules/carousel/"+categoryName+".html";
%>
<jsp:include page="/forwardServlet">
<jsp:param name="page" value="<%=pageUrl%>" />
</jsp:include>Sample Servlet Code Snipett:
public class ForwardServlet extends HttpServlet{
public void processAction(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException{
req.getRequestDispatcher(req.getParameter("page")).forward(req,res);
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException{
processAction(req, res);
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException{
processAction(req, res);
}Hope might that help :)
REGARDS,
RaHuL -
Bc4j,jsp,jdev3.22:Error using custom Domain
I have created a domain subclassing from oracle.jbo.domain.Number, to allow for the formatting of numbers.
I attached this new domain to a attribute of an entity object e.g. bid. When using the tester, the number is displayed correctly.
When assessing the view (e.g bidView), from the JSP client, i get the error:
java.lang.VerifyError: package6.common.num
What am i doing wrong or is there a better way to format numbers when using jsp and bc4j?
The code is as follows:
package package6.common;
import oracle.jbo.server.*;
import oracle.jbo.domain.DomainOwnerInterface;
import oracle.jbo.domain.DomainInterface;
import oracle.jbo.JboException;
import oracle.jbo.domain.Number;
import java.text.*;
import java.math.*;
import java.sql.*;
public class num extends Number {
* This is the default constructor (do not remove)
public num() {
public num(String value) throws SQLException, ParseException {
super(new BigDecimal(NumberFormat.getInstance().parse(value).doubleValue()));
//validate();
public String toString() {
NumberFormat nf = NumberFormat.getInstance();
nf.setMinimumFractionDigits(2);
return nf.format(this.doubleValue());Take the code of the jsp file :
<%@ page language="java" %>
<%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
<title> First Struts Application </title>
</head>
<body>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr bgcolor="#36566E">
<td height="68" width="48%">
<div align="left">
<img src="images/hht.gif" width="220" height="74">
</div>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<html:form action="Lookup"
name="lookupForm"
type="wiley.LookupForm" >
<table width="45%" border="0">
<tr>
<td>Symbol:</td>
<td><html:text property="symbol" /> </td>
</tr>
<tr>
<td colspan="2" align="center"><html:submit/> </td>
</tr>
</table>
</html:form>
</body>
</html>
Maybe you are looking for
-
Hello, After you install the 32bit version of Oracle WebLogic 12c , jdevstudio11115install (Windows 7 32 bit platform) . These actions come after the installation of the domain ADF 's and then completed the installation. I receive the following error
-
Picture ok - but no sound, HDMI-connected
The picture is ok on a rented film - but no sound. I have tried both HDMI-connections. Sune, Denmark
-
Canon Pixma MX300 Printer sharing through Windows PC
I have a canon mx300 printer hooked up to a windows pc and share it wireless throught aiport extreme with a Macbook pro and Macbook. Thing is I can not use the CD that came with the printer to install the drivers on the MACS. They will not work when
-
Newbie: help with join in a select query
Hi: I need some help with creating a select statement. I have two tables t1 (fields: id, time, cost, t2id) and t2 (fields: id, time, cost). t2id from t1 is the primary key in t2. I want a single select statement to list all time and cost from both t1
-
Online Redo logs instead of Standby Redo logs
RDBMS Version: 11.2.0.3/Platform : RHEL 6.3 To migrate a 3TB Database to a new DB server , we are going to use RMAN DUPLICATE. Step1. Take full backup of DB + Standby Control file at primary site and transfer the Bkp files to Standby site Step2. At s