RE: [iPlanet-JATO] Parse error in JSP parser in IAS6

10-11  Source: Network gathering  Views:0 

Advertisement
Hi Todd,
removing the defaultValue="" attribute works.
I have not got around to testing the SP3.
BTW. The reason the default value tag was added was to stop Null pointer
exceptions being thrown in the
HrefTag.beginDisplay().
buffer.append("?")
.append(field.getQualifiedName()) // "FooHref"
.append("=")
.append(URLEncoder.encode(value.toString())); // "/foo"
If you don't explicitly add a defaultValue="" to the jsp HREF tag ,
HrefTag.getDefaultValue() returns null.
Our hack was to add the following in HrefTag.java.
if (value==null)
value=getDefaultValue();
//===========================
//IP6 ADDED THE FOLLOWING LINE
value = (value== null? "":value);
//============================
Is that pheasible work-around ? This eliminates the need to add
defaultValue="" to all HREF tags.
Also, I might as well point another behavior that we encountered with HREFS.
In ND, if a HREF's display Field was bound to a column in DataObject and the
particular record had no value, no URL would be rendered on the page.
The HTML would look something like this( from memory ):
<A
HREF="../AppName/PgMsgMain.hrfSubject_onWebEvent(hrfSubject).994226335140? +
ND URL STUFF"></A>
In JATO by default a url get displayed with "null" as the link. ie.
<a href="../AppName/PgMsgMain?PgMsgMain.hrfSubject= + URL STUFF">null</a>
Our hack was modify the HrefTag.doEndTag method to not append "null" to the
buffer.
if (displayed)
buffer.append(getBodyContent().getString().equals("null")? "":
getBodyContent().getString()))
// IP6 HACK buffer.append(getBodyContent().getString())
.append("</a>");
writeOutput(fireEndDisplayEvent(buffer.toString()));
Is there a better way to do this?
thanks
Kostas
-----Original Message-----
From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=189233080150012190218067203043176090006144139218183041">[email protected]</a>]
Sent: Tuesday, July 03, 2001 12:46 AM
Subject: Re: [iPlanet-JATO] Parse error in JSP parser in IAS6
Hey Kostas--
I personally haven't seen this kind of error. Have you tried simplifying
the expression inside the href tag? For example:
<% Object foo =
viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(
vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID);
%>
<jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true">
<%= foo %>
</jato:href>
Also, is there a different version you could upgrade to? iAS SP3 includes
the Jasper compiler from Tomcat, which should behave quite differently.
Todd
----- Original Message -----
From: "Kostas Morfis" <[email protected]>
Sent: Tuesday, July 03, 2001 12:17 AM
Subject: [iPlanet-JATO] Parse error in JSP parser in IAS6
>
Hi all,
has anyone come across the following error in iPlanet?
[02/Jul/2001 12:21:32:1] error: Exception: SERVLET-compile_failed: Failedin
compiling template: /ras/ras/voyager4/pgAssignmentMatch.jsp, Parse errorin
JSP parser. Missing endtag: /jato:href
Exception Stack Trace:
java.lang.Exception: Parse error in JSP parser. Missing endtag: /jato:href
at com.netscape.jsp.JSP.parseBlock(Unknown Source)
at com.netscape.jsp.JSP.parseUserTag(Unknown Source)
at com.netscape.jsp.JSP.parseTag(Unknown Source)
at com.netscape.jsp.JSP.parseNext(Unknown Source)
etc etc.
We have tested the page in Resin and it works fine.
It seems the JSP parser has a problem with the following type of HREFtags.
>
<jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true"
defaultValue=""><%=
viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(com.cb
>
re.ras.voyager4.model.vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID)
%></jato:href></font></td>
anyone have any suggestions/thoughts/comments ?
Kostas Morfis
Senior Consultant
iRise
www.iRise.com
[Non-text portions of this message have been removed]
[email protected]
[email protected]
Hi Todd,
removing the defaultValue="" attribute works.
I have not got around to testing the SP3.
BTW. The reason the default value tag was added was to stop Null pointer
exceptions being thrown in the
HrefTag.beginDisplay().
buffer.append("?")
.append(field.getQualifiedName()) // "FooHref"
.append("=")
.append(URLEncoder.encode(value.toString())); // "/foo"
If you don't explicitly add a defaultValue="" to the jsp HREF tag ,
HrefTag.getDefaultValue() returns null.
Our hack was to add the following in HrefTag.java.
if (value==null)
value=getDefaultValue();
//===========================
//IP6 ADDED THE FOLLOWING LINE
value = (value== null? "":value);
//============================
Is that pheasible work-around ? This eliminates the need to add
defaultValue="" to all HREF tags.
Also, I might as well point another behavior that we encountered with HREFS.
In ND, if a HREF's display Field was bound to a column in DataObject and the
particular record had no value, no URL would be rendered on the page.
The HTML would look something like this( from memory ):
<A
HREF="../AppName/PgMsgMain.hrfSubject_onWebEvent(hrfSubject).994226335140? +
ND URL STUFF"></A>
In JATO by default a url get displayed with "null" as the link. ie.
<a href="../AppName/PgMsgMain?PgMsgMain.hrfSubject= + URL STUFF">null</a>
Our hack was modify the HrefTag.doEndTag method to not append "null" to the
buffer.
if (displayed)
buffer.append(getBodyContent().getString().equals("null")? "":
getBodyContent().getString()))
// IP6 HACK buffer.append(getBodyContent().getString())
.append("</a>");
writeOutput(fireEndDisplayEvent(buffer.toString()));
Is there a better way to do this?
thanks
Kostas
-----Original Message-----
From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=189233080150012190218067203043176090006144139218183041">[email protected]</a>]
Sent: Tuesday, July 03, 2001 12:46 AM
Subject: Re: [iPlanet-JATO] Parse error in JSP parser in IAS6
Hey Kostas--
I personally haven't seen this kind of error. Have you tried simplifying
the expression inside the href tag? For example:
<% Object foo =
viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(
vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID);
%>
<jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true">
<%= foo %>
</jato:href>
Also, is there a different version you could upgrade to? iAS SP3 includes
the Jasper compiler from Tomcat, which should behave quite differently.
Todd
----- Original Message -----
From: "Kostas Morfis" <[email protected]>
Sent: Tuesday, July 03, 2001 12:17 AM
Subject: [iPlanet-JATO] Parse error in JSP parser in IAS6
>
Hi all,
has anyone come across the following error in iPlanet?
[02/Jul/2001 12:21:32:1] error: Exception: SERVLET-compile_failed: Failedin
compiling template: /ras/ras/voyager4/pgAssignmentMatch.jsp, Parse errorin
JSP parser. Missing endtag: /jato:href
Exception Stack Trace:
java.lang.Exception: Parse error in JSP parser. Missing endtag: /jato:href
at com.netscape.jsp.JSP.parseBlock(Unknown Source)
at com.netscape.jsp.JSP.parseUserTag(Unknown Source)
at com.netscape.jsp.JSP.parseTag(Unknown Source)
at com.netscape.jsp.JSP.parseNext(Unknown Source)
etc etc.
We have tested the page in Resin and it works fine.
It seems the JSP parser has a problem with the following type of HREFtags.
>
<jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true"
defaultValue=""><%=
viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(com.cb
>
re.ras.voyager4.model.vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID)
%></jato:href></font></td>
anyone have any suggestions/thoughts/comments ?
Kostas Morfis
Senior Consultant
iRise
www.iRise.com
[Non-text portions of this message have been removed]
[email protected]
[email protected]
Related articles
  • RE: [iPlanet-JATO] Parse error in JSP parser in IAS6 10-11

    Hi Todd, removing the defaultValue="" attribute works. I have not got around to testing the SP3. BTW. The reason the default value tag was added was to stop Null pointer exceptions being thrown in the HrefTag.beginDisplay(). buffer.append("

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

    We have 3 nodes of OIM servers in our clustered production environment. While accessing OIM server on first node, following error is coming in the browser window - OracleJSP error: oracle.jsp.parse.JspParseException: /oracle/iam/ui/main/signin.jspx:

  • Xml parsing error in JSP 1.2 10-11

    Hi, everyone. I'm getting an error trying precompile JSP code using a variable tag in my tag library to define a new scripting variable : Element "tag" does not allow "variable" here. I also get the same error after deployng the JSP co

  • Oracle.jsp.parse.JavaCodeException 10-11

    I have a jsp page, which I am trying to deploy to Webcenter, wls_portlet managed server. UserName: <%= request.getRemoteUser() %> line in code is giving following error. OracleJSP error: oracle.jsp.parse.JavaCodeException: Line # 29, oracle.jsp.pars

  • Parsing Error when using query builder 10-11

    I have a query with a subquery in the WHERE statement witn multiple fields listed in the select statement. For example, the subquery starts with "AND (center, jobid) IN SELECT center, jobid FROM ........ The query runs fine and gives me the correct d

  • As2 Adapter Parser error 10-11

    Hi I am trying to send data from Rfc to As2 .In the As2 adapter i am getting the below error while parsing MP: exception caught with cause com.sap.aii.converter.x12.xml2x12.XML2X12Exception: XML-Parser error occured while parsing: Cannot process clos

  • Server Error 500: Cant find taglibs  oracle.jsp.parse.JspParseException 11-30

    I dont know what iam doing wrong. My project runs under tomcat, but not under oc4j. Here is my stacktrace: 500 Internal Server Error OracleJSP: oracle.jsp.parse.JspParseException: Zeilennummer 3, <%@ taglib uri="/tags/fn" prefix="fn"

  • Oracle.jsp.parse.JspParseException Error 11-30

    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

  • Re: [iPlanet-JATO] sp3 jsp compiler problem 10-11

    Weiguo, First, Matt is correct, the regular expression tool is perfect for general text substitution situations, and as a completely independent tool its use is not restricted to migration situations (or file types for that matter). Second, I sympath

  • XML parsing error: web-jsptaglibrary_1_1.dtd not found 10-11

    I'm getting the following Exception while Tomcat is parsing my welcome jsp page: exception org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/struts-template.tld: Internal Error: File /javax/servlet/jsp/resources/web-jsptaglibrary_

  • Parsing in Weblogic/jsp doesn't work; application-mode (command-line) works 10-11

    Hello- Parsing my XML file in Weblogic/jsp doesn't work, whereas it works in application-mode... (albeit on two different machines) Here are the parameters: server1: weblogic 6.0 win2k server jre1.3 my personal machine: ***no weblogic*** win2k server

  • Parse error when using  ojspc SAMPLE.WAR 10-11

    Hi, I am facing oracle.jsp.parse.JspParseException while using ojspc SAMPLE.WAR Parse error in index.jsp: oracle.jsp.parse.JspParseException: /index.jsp: Line # 20, <%@ taglib uri="/tags/struts-logic" prefix="logic" %> Error: org

  • An error occurred while parsing DA Hierarchy : Document is invalid: no gram 10-11

    When logging in to Portal Administration, I am seeing the following error. Please help me resolve this problem. Many thanks. An exception has been thrown while trying to render this page. Exception Message: An error occurred while parsing DA Hierarch

  • Im parsing error 11-30

    Hi, im is successfuly installed but after trying to launch im with web start i get An error occurred while launching/running the application. Title: IM Vendor: Sun Microsystems, Inc. Category: Launch File Error Could not parse launch file. Error at l

  • Jsp.parse.JspParseException 11-30

    Hi, I am using JDeveloper 3.2 to develop a develop a JSP application. I trying to get records to display on a custom screen layout. The first record is displayed. However, I get the following error message when I use the Navigation Bar to go to the n

  • Exception:oracle.jsp.parse.JspParseException 11-30

    hi, I deploy my bibeans application via jdeveloper in to application server and copy my lib file named bibeans.jar in web-inf/lib. after I try to view my jsp page which view my graph my browser show internal server error message (error 500 in IE)and

  • OracleJSP:oracle.jsp.parse.JspParseException Urgent please 11-30

    Hai, I deployed my application on OC4J and while i am accesing my application, I got this below mentioned error on browser.Can any body have any clues about this error. I am really struggling hard to get out it.If you have any suggessions,please let

  • Oracle.jsp.parse.JspParseException 11-30

    After making minor changes to my jsp's, i deployed the war and now the jsp's cant find the tld's, even though they exist. I get the following error: 500 Internal Server Error OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="

  • Error when starting parser: timeout during allocate / CPIC-CALL:'TfSAPCMRC' 10-11

    Hello experts. When I try to preview or refresh a Crystal Report document built on a BEx query I get the following error msg: Database connector error: BAPI Error #0. Error when starting parser: timeout during allocate / CPIC-CALL: 'TfSAPCMRCV'. We h

  • XML Parse error while loading an XML file 10-11

    HI Folks, I was trying to load and XML file into BODS.. The XML file is well-formed and the same when tested in other tools  is getting loaded without any issues.. I have created a XML-File format with the corresponding XSD.. But here in BODS it is g