on 08-18-2004 1:53 AM
HI,
I am a developer and customizing the masthead for the customer. When I try to compile the jsp, it gives me the following error -
*************************************************
Component : pcd:portal_content/com.sap.pct/every_user/general/com.sap.portal.frameworkpage/com.sap.portal.masthead
Caused by: com.sapportals.portal.prt.component.PortalComponentException: error: compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null, null, null, null, null, null, null
C:/usr/sap/P602/j2ee/j2ee_00/cluster/server/services/servlet_jsp/work/jspTemp/irj/root/WEB-INF/portal/portalapps/com.sap.portal.navigation.masthead/work/jsp/_sapportalsjsp_HeaderiView.java:461: cannot resolve symbol
symbol : method setPageContext (javax.servlet.jsp.PageContext)
location: class com.sapportals.htmlb.taglib.TextViewTag
jspxth_hbj_textView_0.setPageContext(pageContext);
*************************************************
I believe that the MalformedInputException is due to the character encoding, changing from UTF8 to ISO-8859 or vice versa. I would appreciate it if someone could let me know as to what the problem is and if anyone has solved it.
Thanks
Venkat Mahalingam
hi
i had the same problem. in my case, the problem was:
- too long texts and tooltips in htmlb-tags
- special german characters in the jsp
when i read my texts from a bean, everything works fine.
hope this helps
urs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The code is as follows - I have mentioned //Line 461
***********************************************
// begin [file="C:
usr
sap
_sp2
j2ee
j2ee_00
cluster
server
services
servlet_jsp
work
jspTemp
irj
root
WEB-INF
portal
portalapps
com.sap.portal.navigation.masthead
jsp
HeaderiView.jsp";from=(221,129);to=(221,168)]
/* -
hbj:textView -
*/
com.sapportals.htmlb.taglib.TextViewTag jspxth_hbj_textView_0 = new com.sapportals.htmlb.taglib.TextViewTag();
jspxth_hbj_textView_0.setPageContext(pageContext);
jspxth_hbj_textView_0.setParent(_jspx_th_hbj_link_0);
jspxth_hbj_textView_0.setText(helpTextStr);
try {
int jspxeval_hbj_textView_0 = jspxth_hbj_textView_0.doStartTag();
if (_jspx_eval_hbj_textView_0 == BodyTag.EVAL_BODY_TAG)
//Line 461 throw new JspTagException("Since tag handler class com.sapportals.htmlb.taglib.TextViewTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
if (_jspx_eval_hbj_textView_0 != Tag.SKIP_BODY) {
do {
} while (false);
}
if (_jspx_th_hbj_textView_0.doEndTag() == Tag.SKIP_PAGE)
return;
} finally {
jspxth_hbj_textView_0.release();
}
// end
} while (_jspx_th_hbj_link_0.doAfterBody() == BodyTag.EVAL_BODY_TAG);
} finally {
if (_jspx_eval_hbj_link_0 != Tag.EVAL_BODY_INCLUDE)
out = pageContext.popBody();
}
}
if (_jspx_th_hbj_link_0.doEndTag() == Tag.SKIP_PAGE)
return;
} finally {
jspxth_hbj_link_0.release();
}
// end
************************************
Thanks
Venkat
According to sun the exception should be thrown :
Checked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence
I can't see any special characters in the output you have shown. Perhaps the jsp has a corrupt byte due to wrong transfer. Try to filter out the pure text (save as a normal text file) and then create the jsp once more.
Otherwise, it could be some settings on the compiler
I did copy and paste the JSP file into a normal Text editor. Unoforturanly, it still gives me the same error. Could anyone let me know where i can find the JSP compiler setting?
Thanks very much.
Best Regards,
Jack Xu
Technical Consultant
SAP America, Inc.
Five Westbrook Corporate Center, Suite 1000
Westchester, IL. 60154 USA
P +1 708 947-3283
F +1 708 947-3404
E junjie.xu@sap.com
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.