Using jbo tags in 10.1.3 release 3
I migrated some projects created in 10.1.2 to 10.1.3 as we have started using jsf but will also need to use some of our older code which uses jbo tags.
When I try to run a jsp page using the <jbo:ApplicationModule .../> tag I get the following error:
java.lang.NullPointerException at oracle.jbo.http.HttpSessionCookieImpl.(HttpSessionCookieImpl.java:128) at oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(HttpSessionCookieFactory.java:130) at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:451) at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:703) at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:152) at wmshome.WMSHome_2e_jsp._jspService(_WMSHome_2e_jsp.java:171) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:410) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:473) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:404) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:846) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:245) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:231) at oracle.oc4j.network.ServerSocketAcceptHandler.access$1000(ServerSocketAcceptHandler.java:33) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:820) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
I tried just creating the application module using the Configuration class which then was able to create the app module but the datasources couldn't reference it and this would be too large of a change to make on all of our existing code.
You're encountering bug# 5880457
The workaround is that you need to create the additional JSP page by hand.
Similar Messages
-
Master-detail jsp for bc4j using JBO tags
I have created a master-detail jsp for bc4j using JBO tags. However, I can not get the correct result. There are some examples on OTN, but they are about jsp programs. How to define the relationship of the master view-object and the detail view-object?
Thanks for your help.I know you're having a problem upgrading, but...
Could you upgrade to 9.0.3 and tell us what problems you're encountering?
Thanks.
Sung -
How can I use jbo:InputSelect for a char type filed?
How can I use <jbo:InputSelect for a char type filed?
I have two tables. One is room (primary key is room(type is char)), another table is responsibility (foreign ker is room(type is char)). Both tables have same length for room column.
There is a problem:
If I use (in the "DataEditComponent.jsp" file)
<jbo:InputSelect multiple="false" datasource="dsEdit" displaydatasource="roomData" displaydataitem="ROOM" displayvaluedataitem="ROOM" ></jbo:InputSelect>
to get the room input for responsibility from combobox(Datasource roomData is from room table). In the form the room field cannot bind the data in combobox, alway select the first item. And if I select one item and click the update button.There is an error message:
Error Message: JBO-27010: Attribute set with value H409 for Room in Responsibility has invalid precision/scale
I found If I changed the field type from char to varchar2 in database also change the entity objects, it works well. I wonder if there are any diffrence using <jbo:InputSelect tag in char and varchar2 type. How can I use <jbo:InputSelect for a char type filed as i don't want to change my datatype in database at this stage.
I try this in JDeveloper 9.03, 9.034, 9.04. The result is the same.If I were in your shoes, here's how I would do it:
<%-- Assuming you have dsRoom and dsResponsibility --%>
<%-- Select is an HTML tag --%>
<select name="ROOM" size="1">
<% char roomID =""; // Init your character var
// Open a rowsetIterator to get the records and add them to the LOV
<jbo:RowsetIterate datasource="dsResponsibility" changecurrentrow="true" >
<% roomID = (char)dsResponsibility.getRowSet().getCurrentRow().getAttribute("ROOM"); // Grab the char value
// add the value to the LOV
%>
<option value="<%=roomID%>"><%=roomID%></option>
</jbo:RowsetIterate>
</select>
If you are using this as part of an edit page you may want to utilize the "selected" option of the <option> tag. In one instance I am doing this on an edit page because the use may open an existing record. If I don't account for it, then it will change the DB to contain the first value from the list! You can do a simple check like:
//Set the current record's char
char curRecord = (char)rowEdit.getAttribute("ROOM");
// inside the iterate:
if (curRecord == roomID) {
<option value="<%=roomID%>" selected><%=roomID%></option>
} else {
<option value="<%=roomID%>" ><%=roomID%></option>
Hope that helps! -
INPUTSELECTLOV jbo tag is not working properly
Hi,
Developing BC4J/JSP application with struts framework in 9.0.3.1. I'm getting exceptions when i used InputSelectLOV tag.
Here is my jsp code:
<jbo:DataSource id="locProgSvcDS" appid="CSMSModule"
viewobject="RGBModule.LocProgSvcsView"/>
<jbo:DataSource id="programsDS" appid="CSMSModule"
viewobject="RGBModule.ProgramsView"/>
<jbo:InputSelectLOV datasource="locProgSvcDS" dataitem="ProgCd"
displaydatasource="programsDS" displaydataitem="ProgName"
displayvaluedataitem="ProgCd" formname="locProgSvcsForm" />
When click on LOV small button I'm getting popup but with the following exception:
500 Internal Server Error
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.String java.lang.String.substring(int, int)
String.java:1525
int oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag()
ApplicationModuleTag.java:142
void rgb.lovcomp._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
[rgb/lovcomp.jsp]
lovcomp.jsp:80
void com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].http.OrionHttpJspPage.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
OrionHttpJspPage.java:56
[SRC:/rgb/lovcomp.jsp:10]
void
oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:317
void
oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRe
quest, javax.servlet.http.HttpServletResponse)
JspServlet.java:465
void
oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
JspServlet.java:379
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
HttpServlet.java:853
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
ServletRequestDispatcher.java:721
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.Servlet
Request, javax.servlet.http.HttpServletResponse)
ServletRequestDispatcher.java:306
Text continued in next action...
14-APR-04 14:37:58 GMT
Text continued from previous action...
boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS
(9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread,
com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS
(9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse,
java.io.InputStream, java.io.OutputStream, boolean)
HttpRequestHandler.java:767
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:259
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run()
HttpRequestHandler.java:106
void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
PooledExecutor.java:797
void java.lang.Thread.run()
Thread.java:484
Please help me out from this. Thank you in advance.
Rajto further jdeline's answer:
it is also possible your mail server requires authentication.
try adding
username="FROM_account_user_name" and
password="FROM_account_user_password" to your cfmail tag.
there is also such thing as cf logs. and it crates one for
mail it
sends, too... you look there for errors if you have access to
the logs
(i.e. if you are not on a shared hosting)
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
XHTML Generated by JBO tags does not validate
I was wondering if anyone has run into this issue, and if so, what they have done about it....
Our organisation standards state that our web pages must validate to the XHTML V1.0 STRICT standards.
But if I use the JBO tags, such as InputRender, etc, the fact that many of the fields are created in upper case means that the validation fails.
As an example, my JBO tag is
<td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"><jbo:InputRender datasource="dsource" formname="<%=formName%>" /></td>
and the output HTML is
<td title=""><TEXTAREA ROWS="5" MAXLENGTH="256" NAME="Description" CLASS="clsDescription" COLS="70"></TEXTAREA>
<INPUT VALUE TYPE="HIDDEN" NAME="_Description">
</td>
Note that the parameter names are all uppercase (and not found by the validator), and that the <INPUT> tag is not terminated (it requires a / before the closing >).
Is there a workaround for this? Where does JBO get the text it uses for the replacment tags?
thanks for any assistance with this....
BrigetteCould you show us an example of the cflayout code?
-
Creation of triggers using CFQUERY tag is giving error
Hi,
I am creating triggers and stored procedure on ORACLE data
base using <CFQUERY>.
<CFQUERY DATASOURCE="CRM">
create or replace trigger AWC_ACCOUNTINGPERIODSID_TRI
before insert on AWC_ACCOUNTINGPERIODS
for each row
begin
select AWC_ACCOUNTINGPERIODSID_SEQ.nextval into :new.AP_ID
from dual;
end;
</CFQUERY>
But the created trigger is not compiled, it is giving the
following error
"Line # = 1 Column # = 6 Error Text = PLS-00103: Encountered the
symbol "" when expecting one of the following: begin case declare
exit for goto if loop mod null pragma raise return select update
while with <an identifier> << close current delete
fetch lock insert open rollback savepoint set sql execute commit
forall merge pipe The symbol "" was ignored."
If I edit that trigger in enterprise manager console by
pressing space and compile that, it is working fine with out any
error. If i run the above statement in sql *plus, It is working
fine with out any error. Can you please tell me why this is
happening if i run it using cfquery tag and also the possible
solutions.
Thanks in advance,
VinodI can't tell you why your particular trigger is failing, but
here is some "typical" reasons from Oracle's metalink.
Common reasons for PLS-00103
Error Summary
PLS-00103 Encountered the symbol "%s" when expecting one of
the following (Oerr
LS.103)
Error Details
~~~~~~~~~~~~~
Error: PLS-00103
Text: Encountered the symbol "%s" when expecting one of the
following:
Cause: This error message is from the parser. It found a
token
(language element) that is inappropriate in this context.
Action: Check previous tokens as well as the one given in the
error message. The line and column numbers given in the
error
message refer to the end of the faulty language construct.
PLS-00103 errors can often be difficult to localize what the
error is so here are some
common reasons for PLS-00103 errors..
A very common reason for PLS-00103 is when a reserved word is
used, with a reserved word
means words that names an oracle object or a built in
procedure, for example MOD, ABS,
TABLE, VIEW etc..
When trying to use SQL*PLUS commands in PL/SQL procedures,
like SPOOL, SET and other
commands that belongs to SQL*PLUS can result in this error.
Using parameter declaration at the IN/OUT clause in a
procedure, this works in versions
prior to 8.0.4, but it just ignored the declaration.
Using DDL commands in PL/SQL will fail in PLS-00103, the way
to use DDL commands is
to build a procedure in dynamic sql.
When creating package specification and a package body, a
PLS-00103 error will occur
if there is no slash, '/', after the package specification.
Phil -
How to get the values of an Array using JSP Tags
Hey guys,
I need some help. I've splited a String using
fn:split(String, delim) where String = "1,2,3,4" and delim is ,
This method returns an Array of splited Strings. how do i get the values from this array using jsp tags. I don't wanna put java code to achive that.
Any help would be highly appreciated
ThanksThe JSTL forEach tag.
In fact if all you want to do is iterate over the comma separated list, the forEach tag supports that without having to use the split function.
<c:set var="list" value="1,2,3,4"/>
<c:forEach var="num" items="${list}">
<c:out value="${num}"/>
</c:forEach>The c:forTokens method will let you do this with delimiters other than a comma, but the forEach tag works well just with the comma-delimited string. -
How to use HTML Tags in Smartforms
Hi,
Can you please help me out in knowing how to use HTML tags in Smartforms,
suppose i want to display some text in BOLD i should use the tag </b> as shown
</b> Header Information <b>
regards
RanveerHi Ranveer ,
check this following links,
hope this wil helps you
<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/smartforms/smartform%20in%20abap.pdf">check this link,to know abt HTML in smartforms</a>
rgds,
shan -
Error when run a simple sample using jsp tag
When i run a jsp using jsp tag, the tomcat gave me the following information:
Resolve entity failed-//Sun Microsystems,Inc.//DTD JSP Tag Library 1.2//EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
My tld file is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>sample</short-name>
<uri>WEB-INF/sampleTag</uri>
<display-name>SampleTag</display-name>
<description>Sample TLD</description>
<tag>
<name>time</name>
<tag-class>com.sample.taglib.TimeTag</tag-class>
<body-content>empty</body-content>
</tag>
</taglib>
Anybody can tell me why?
Thanks!!!It's strange bacause DTD is available under given address.
Which JSP version are you using?
Do you have any other tld file, which uses the same DTD version? Do tags define in it work properly?
Maby try to use 1.1 version of DTD?
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">But remember than version 1.1 has another node names (see http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd). -
How to use Flex tag library in jsp
Hi All,
We are planning to use flex in our J2EE application in order
to show some charts. Our j2ee application is in JSP,Struts. I have
searched on google about this and found that I can include flex 3
tab library in the jsp in order to use mxml tag in the jsp. I have
written a sample program in the jsp which uses flex.
<%@ taglib uri="FlexTagLib" prefix="mm" %>
<SCRIPT LANGUAGE="JavaScript">
function showMessage() {
message.value = "Use this application wisely";
function hideMessage() {
message.value = "";
</SCRIPT>
<mm:mxml border="5" onmouseover="showMessage();"
onmouseout="hideMessage();">
</mm:mxml>
<TABLE>
<TR>
<TD><input type="text" name="message"
size="50"></TD>
</TR>
</TABLE>
I have added entry inweb.xml. See below,
<taglib>
<taglib-uri>FlexTagLib</taglib-uri>
<taglib-location>/WEB-INF/tlds/flex-bootstrap.jar</taglib-location>
</taglib>
Following are the problems that I am currently facing.
1) Could anybody let me know whether the entry of
<taglib> tag is correct in the web.xml. Is it the correct
jar(flex-bootstrap.jar) that I should include?
2) If yes, from where to download it? or
If no, what is correct jar that i should include and how?
your response will be highly appriciated as this is the major
requirement in our project?
Thanks ,
ChandanHi,
Pleas find details at the URL below.
http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP
Hope this helps. -
How to achive in this data in oracle using xml tag ?
hi All ,
i am using sql 3.1
i have one question that how can i achieve this below XML tag using XML query. this below whatever i am showing here data is one table . how can i achieve this things using XML tag like xml forest or whatever may be
please help me .
---code
<Metadata>
<Dept Deptno="10">
<Name>Administration</Name>
<Location>Seattle</Location>
<Employees>
<Emp empid="200">
<FirstName>Jennifer</FirstName>
<LastName>Whalen</LastName>
</Emp>
</Employees>
</Dept>
<Dept Deptno="20">
<Name>Marketing</Name>
<Location>Toronto</Location>
<Employees>
<Emp empid="201">
<FirstName>Michael</FirstName>
<LastName>Hartstein</LastName>
</Emp>
<Emp empid="202">
<FirstName>Pat</FirstName>
<LastName>Fay</LastName>
</Emp>
</Employees>
</Dept>
</metadata>
Thanks
Dambyplease reply
-
I want to display BLOB image in JSP Using html tags IMG src=
GoodAfternoon Sir/Madom
I Have got the image from oracle database but want to display BLOB image using <IMG src="" > Html tags in JSP page . If it is possible than please give some ideas or
Send me sample codes for display image.
This code is ok and working no problem here Please send me code How to display using html tag from oracle in JSP page.
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@ page import="javax.swing.ImageIcon;" %>
<%
out.print("hiiiiiii") ;
// declare a connection by using Connection interface
Connection connection = null;
/* Create string of connection url within specified format with machine
name, port number and database name. Here machine name id localhost
and database name is student. */
String connectionURL = "jdbc:oracle:thin:@localhost:1521:orcl";
/*declare a resultSet that works as a table resulted by execute a specified
sql query. */
ResultSet rs = null;
// Declare statement.
PreparedStatement psmnt = null;
// declare InputStream object to store binary stream of given image.
InputStream sImage;
try {
// Load JDBC driver "com.mysql.jdbc.Driver"
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
/* Create a connection by using getConnection() method that takes
parameters of string type connection url, user name and password to
connect to database. */
connection = DriverManager.getConnection(connectionURL, "scott", "root");
/* prepareStatement() is used for create statement object that is
used for sending sql statements to the specified database. */
psmnt = connection.prepareStatement("SELECT image FROM img WHERE id = ?");
psmnt.setString(1, "10");
rs = psmnt.executeQuery();
if(rs.next()) {
byte[] bytearray = new byte[1048576];
int size=0;
sImage = rs.getBinaryStream(1);
//response.reset();
response.setContentType("image/jpeg");
while((size=sImage.read(bytearray))!= -1 ){
response.getOutputStream().write(bytearray,0,size);
catch(Exception ex){
out.println("error :"+ex);
finally {
// close all the connections.
rs.close();
psmnt.close();
connection.close();
%>
ThanksI have done exactly that in one of my applications.
I have extracted the image from the database as a byte array, and displayed it using a servlet.
Here is the method in the servlet which does the displaying:
(since I'm writing one byte at a time, it's probably not terribly efficient but it works)
private void sendImage(byte[] bytes, HttpServletRequest request, HttpServletResponse response) throws IOException {
ServletOutputStream sout = response.getOutputStream();
for(int n = 0; n < bytes.length; n++) {
sout.write(bytes[n]);
sout.flush();
sout.close();
}Then in my JSP, I use this:
<img src="/path-to-servlet/image.jpg"/>
The name of the image to display is in the URL as well as the path to the servlet. The servlet will therefore need to extract the image name from the url and call the database. -
How to use standard tags in JSP
Hi all,
Just wanted to know how to use standard tags of endeca in JSP ... say for example to display Dimension Name using standard tags.
Thanks
--Sami was just checking whether we can use endeca TAG'S ( typo mistake in my earlier post not the JSTL standard library )....in my JSP
We cannot use endeca TAG ...as they are for different purpose.
Sameer -
How to write this java code in jsp using jstl tags?
Can anybody help me on this?
I dont know how to check the containsKey using jstl tags?
<%
LinkedHashMap yearMap = (LinkedHashMap)request.getAttribute("yearMap");
TreeSet nocSet = (TreeSet)request.getAttribute("nocSet");
Iterator yearMapIt = yearMap.keySet().iterator();
while(yearMapIt.hasNext())
int yearValue = (Integer)yearMapIt.next();
%>
<tr>
<td><%=yearValue%></td>
<%
LinkedHashMap monthMap = (LinkedHashMap)yearMap.get(yearValue);
Iterator nocSetIt = nocSet.iterator();
while(nocSetIt.hasNext())
String nCase=(String)nocSetIt.next();
if(monthMap.containsKey(nCase))
String count = (String)monthMap.get(nCase);
%>
<td> <%= count %> </td>
<% }
else
%>
<td> 0 </td>
<%
%>
</tr>
<% } %>Edited by: avn_venki on Feb 18, 2008 11:54 PM<c:forEach var="yearMap" items="${requestScope.yearMap}">
<th> <c:out value="${yearMap.key}"/> </th>
<bean:define id="monthMap" value="${yearMap.value}"/>
<c:forEach var="nocSet" items="${nocSet}">
then how to write containsKey using tags?? -
How to use custome tag lib in the JSP page?
How to use custome tag lib in the JSP page?...with JDeveloper
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.working_with_jsp_pages%7Cjsp_ptagsregistering~html/
Maybe you are looking for
-
ITunes match and library problems
Hi I'm getting very frustrated. i have a massive music library, and I recently subscribed to iTunes Match. Half of the songs on the library are greyed out both on my iPhone and my PC (where my music is stored. Mostly the music is not bought from iTun
-
BI switching to new ECC 6.0 box from R/3 4.7, question on delta init?
Hi all, Our BI has been already upgraded to 7.0. Currently connected to R/3 4.7. Now a new box is made with ECC 6.0 and Oracle 8 which is a mirror copy of the r/3 4.7.Once the new box is ready the BI 7.0 connection will be switched from R/3 4.7 to th
-
Digital Signature for Subform, How?
Hey, I have a process in which I pass one long form between a number of users. each user have to fill different section (subform) and sigh on it without broking the signs of other users. anybody have an idea if it is possible in LC ES????? thanks in
-
Username and password in page0
i have developed an application where in which i have to register new users with their own username and password. i want to write the code without using the default login page where in which there are stored packages and procedures, can any body just
-
Should i uninstall FCX before i download FCPX
should i uninstall FCX before i download FCPX?