Do not use on any
shared computer
May 17, 2008 06:35am pdt
05.05.2008 at 11:03PM PDT, ID: 23378586 | Points: 500
[x]
Attachment Details
the server facing memory leak and cause the tomcat down
Tags: Java, JSTL, 1.2, Tomcat 6,updated jar like Xalan 2
the server facing memory leak and cause the tomcat down. currently the server is running tomcat 5.5 and JSTL 1.1
the server is more to parsing the external XML which provided and show in TV like Apple TV.

here are the errors:

Variable Unresolvable :$rss
org.apache.taglibs.standard.tag.common.xml.UnresolvableException: $rss
      at org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.notNull(XPathUtil.java:363)
 
      at org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.getVariableValue(XPathUtil.java:298)
      at org.apache.taglibs.standard.tag.common.xml.XPathUtil.adaptParamsForXalan(XPathUtil.java:656)
      at org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(XPathUtil.java:517)
      at org.apache.taglibs.standard.tag.common.xml.SetTag.doStartTag(SetTag.java:69)
      at org.apache.jsp.service.Picasaweb_0020Photo.page_002d1280x720.nouser_jsp._jspx_meth_x_set_0(nouser_jsp.java:196)
      at org.apache.jsp.service.Picasaweb_0020Photo.page_002d1280x720.nouser_jsp.access$1(nouser_jsp.java:185)
      at org.apache.jsp.service.Picasaweb_0020Photo.page_002d1280x720.nouser_jsp$nouser_jspHelper.invoke0(nouser_jsp.java:740)
      at org.apache.jsp.service.Picasaweb_0020Photo.page_002d1280x720.nouser_jsp$nouser_jspHelper.invoke(nouser_jsp.java:820)
      at org.apache.jsp.tag.web.body_tag.doTag(body_tag.java:107)
      at org.apache.jsp.service.Picasaweb_0020Photo.page_002d1280x720.nouser_jsp._jspService(nouser_jsp.java:119)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:296)
      at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:158)
      at org.apache.jsp.page.service_jsp._jspx_meth_c_import_0(service_jsp.java:168)
      at org.apache.jsp.page.service_jsp._jspService(service_jsp.java:91)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
      at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
      at org.apache.jsp.action.showservice_jsp._jspService(showservice_jsp.java:76)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
      at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
      at org.apache.jsp.action.performservice_jsp._jspService(performservice_jsp.java:60)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
      at java.lang.Thread.run(Thread.java:595)
Apr 28, 2008 10:24:43 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of {http://java.sun.com/jstl/xpath/param}portalcat
      at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:145)
      at org.apache.xpath.operations.Operation.fixupVariables(Operation.java:54)
      at org.apache.xpath.axes.PredicatedNodeTest.fixupVariables(PredicatedNodeTest.java:422)
      at org.apache.xpath.axes.WalkingIterator.fixupVariables(WalkingIterator.java:290)
      at org.apache.xpath.axes.WalkingIteratorSorted.fixupVariables(WalkingIteratorSorted.java:195)
      at org.apache.xpath.XPath.fixupVariables(XPath.java:73)
      at org.apache.taglibs.standard.tag.common.xml.JSTLXPathAPI.eval(JSTLXPathAPI.java:286)
      at org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(XPathUtil.java:520)
      at org.apache.taglibs.standard.tag.common.xml.SetTag.doStartTag(SetTag.java:69)
      at org.apache.jsp.service.Portal.page.category_jsp._jspx_meth_x_set_0(category_jsp.java:246)
      at org.apache.jsp.service.Portal.page.category_jsp._jspService(category_jsp.java:193)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:296)
      at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:158)
      at org.apache.jsp.page.service_jsp._jspx_meth_c_import_0(service_jsp.java:168)
      at org.apache.jsp.page.service_jsp._jspService(service_jsp.java:91)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
      at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
      at org.apache.jsp.action.showservice_jsp._jspService(showservice_jsp.java:76)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
      at java.lang.Thread.run(Thread.java:595)


so now, i am facing some problem here.
i tried a lot of ways to solve this.
now i update all lib to the latest version like Xalan,xerces,JSTL 1.2,tomcat 6,jaxen1.1.1,dom4j 1.6.1,commons-httpclient 3.1,saxpath, taglib 1.1.2 and so

but it stil not able to solve the problem.
some XML which received is able to show.
but few of them like Vuze:
http://www.vuze.com/feed/new/ALL

<feed xmlns="http://www.w3.org/2005/Atom">

or
http://dubainightline.blogspot.com/feeds/posts/default
or
http://www.hd-trailers.net/blog/feed/atom/
or
http://www.rocketboom.com/vlog/atom.xml

it blank!!

another thing is it not support special character, once the xml detected got special character, it wil blank again

somemore i not realy able to test what is the main cause of the memory leak, may be the logs file?


here is some tag file for reading the Tag file:

<%-- Read XML --%>
 
<%@ tag body-content="empty" dynamic-attributes="attrs" %>
<%@ attribute name="var" required="true" rtexprvalue="false" %>
<%@ attribute name="url" required="true" %>
<%@ variable name-from-attribute="var" alias="doc" variable-class="java.lang.Object" scope="AT_END" %>
<%@ variable name-given="error" variable-class="java.lang.Exception" scope="AT_END" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
 
<c:forEach items="${attrs}" var="attr">
  <c:url var="url" value="${url}"><c:param name="${attr.key}" value="${attr.value}"/></c:url>
</c:forEach>
 
<c:catch var="error">
  <c:import var="xml" url="${url}"/>
  <x:parse var="doc" doc="${xml}"/>
</c:catch>



Web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
 
<web-app 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" version="2.4">
  <context-param>
    <param-name>buffer</param-name>
    <param-value>11680</param-value>
  </context-param>
  <taglib>
    <taglib-uri>/WEB-INF/rssutils.tld</taglib-uri>
    <taglib-location>/WEB-INF/rssutils.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
    <taglib-location>/WEB-INF/x.tld</taglib-location>
  </taglib>
      <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/functions</taglib-uri>
    <taglib-location>/WEB-INF/fn.tld</taglib-location>
  </taglib>
</web-app>



index.jsp:
<%@ taglib prefix="msp" uri="msp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page import="java.util.*" %>
<%@ page import="syabas.msp.* " %>
<c:catch var="error">
<msp:xml var="rss" url="http://www.vuze.com/syndication/browse/NEW/ALL/X/X/2/X/_/_/X/X/feed.xml"/>
<x:set var="content" select="$rss//item[position()<4]"/>

<c:set var="asize"><x:out select="count($content)"/></c:set>
<c:set var="msg"><c:out value="${param.msg}"/></c:set>
<c:set var="focusx" value="76"/>
<%
      int focusx = Integer.parseInt((String)pageContext.getAttribute("focusx"));
%>

...............

<x:forEach select="$content" varStatus="s">
            <c:set var="name" value="${i}"/>
            <x:set var="thumb" select="string(enclosure[position()=2]/@url)"/>
            <img src="${thumb}" width="184" height="105" id="side${name}">
            <c:set var="i" value="${i+1}"/>
</x:forEach>


quite new in JSTL actually, hope u guys able to help me up on this.
thx alot
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: CSLEEDS
Question Asked On: 05.05.2008
Participating Experts: 2
Points: 500
Views: 0
Translate:
Loading Advertisement...
05.06.2008 at 02:01PM PDT, ID: 21511028

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 08:34PM PDT, ID: 21513024

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.07.2008 at 06:52AM PDT, ID: 21516348

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 09:00AM PDT, ID: 21556370

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 07:51PM PDT, ID: 21560899

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 08:04PM PDT, ID: 21560945

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 10:41PM PDT, ID: 21561509

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 10:54PM PDT, ID: 21580307

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 10:59PM PDT, ID: 21580327

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.16.2008 at 06:23AM PDT, ID: 21582430

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.06.2008 at 02:01PM PDT, ID: 21511028

Rank: Wizard

I might be able to help you a little until an expert arrives.  Are there two error messages above here ?  
>nouser_jsp.java:119  
>showservice_jsp.java:76    
Look in Tomcat's work folder for those files.   Can you tell us what is on and around those lines ?      
>Variable Unresolvable :$rss  
For debugging, did you try removing tag file ?  Try removing the following lines.
><msp:xml var="rss" url="http://www.vuze.com/syndication/browse/NEW/ALL/X/X/2/X/_/_/X/X/feed.xml"/>
><x:set var="content" select="$rss//item[position()<4]"/>
and instead use
 <c:import var="xml" url="http://www.vuze.com/syndication/browse/NEW/ALL/X/X/2/X/_/_/X/X/feed.xml"/>
 <x:parse var="doc" doc="${xml}"/>
<x:set var="content" select="$doc//item[position()<4]"/>  
What is the result ?
 
05.06.2008 at 08:34PM PDT, ID: 21513024
thx for reply..
i tried to remove the tag file and try, the result is the same..
actually the <msp:xml is calling the reading tag which i provided above, then loop, X:set cal it out and display all the content that all..

hmm..
now i think we should start on the parsing part
like what i mention above(blank problem)
cause of Cross Site Scripting attacks, JSTL not accept any special character. but now most of the XML we received are contain special character, i think is nessary we have to display it out and make the JSTL able to accept those special character. from the research i have done, i found WEB4J able to help me on this, but beside that is it any alternative way?

another problem
some of the XML which i received are contain the namespaces like :
<feed xmlns="http://www.w3.org/2005/Atom">
and it causes the JSTL not able to show it out.
but once i delete the xmlns="http://www.w3.org/2005/Atom"
everything fine again.
first i tot i might have to update the JSTL ,Xalan and tomcat to the latest version. who know it stil not able to solve

for your info, the nouser.jsp already solved, so i think now i should put high priority on this which i mention now.

day by day, different errors come out, locally there are no error at all..but once upload to the server, everything popup again. it quite hard for me to trace the problem actually.
 
05.07.2008 at 06:52AM PDT, ID: 21516348

Rank: Wizard

>and it causes the JSTL not able to show it out.  
Please explain. Which tags are you using that causes problem. Maybe you can show us a small test case.
The <c:out> tag escapes XML by default.
<c:out value='<feed xmlns="http://www.w3.org/2005/Atom">'/>
This sends the following to the browser
&lt;feed xmlns=&#034;http://www.w3.org/2005/Atom&#034;&gt;  
and is rendered correctly.
 
05.13.2008 at 09:00AM PDT, ID: 21556370

Rank: Wizard

>>some of the XML which i received are contain the namespaces like :
<feed xmlns="http://www.w3.org/2005/Atom">
and it causes the JSTL not able to show it out.
but once i delete the xmlns="http://www.w3.org/2005/Atom"
everything fine again.
first i tot i might have to update the JSTL ,Xalan and tomcat to the latest version. who know it stil not able to solve

To the best of my knowledge JSTL does not have support for namespace ( atleast it was not there till 1.1). So given that you may not be able to use xmls with namespace in them.
 
05.13.2008 at 07:51PM PDT, ID: 21560899
hi, sorry for late reply..
regrading the namespace. i not agree as what u mention that JSTL 1.2 is not support the namespace as there are some XML which currently using in our system are contain the namespace
such as :
http://blip.tv/rss
http://ipod.break.com/channel/movies/

example:
<rss version="2.0"
      xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
      xmlns:media="http://search.yahoo.com/mrss/"
      xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
      xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
      xmlns:blip="http://blip.tv/dtd/blip/1.0"
      xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:amp="http://www.adobe.com/amp/1.0"
      xmlns:dcterms="http://purl.org/dc/terms"
      xmlns:gm="http://www.google.com/schemas/gm/1.1"
      xmlns:mediaad="http://blip.tv/dtd/mediaad/1.0"
>


here is some example for testing purpose :

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    <channel>                
        <item>
           
            <description>21122Meet pastors who turn the good book&apos;s details into good tips for the bedroom.</description>

        </item>
   
</channel>
</rss>

this xml no error!!!
but..if i try this one

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns="http://www.w3.org/2005/Atom" version="2.0">
    <channel>                
        <item>
           
            <description>21122Meet pastors who turn the good book&apos;s details into good tips for the bedroom.</description>

        </item>
   
</channel>
</rss>

it blank again...


 
05.13.2008 at 08:04PM PDT, ID: 21560945
hi,rrz@871311
thank for reply.

may be the code which explain everything :
let see

<c:import var="xml" url="${path}/xml/abc.xml"/>
 <x:parse var="doc" doc="${xml}"/>
<x:set var="rss" select="$doc//item[position()<4]"/>

<table border="0" cellspacing="0" cellpadding="0">
      <x:forEach select="$rss" varStatus="s">
            <x:set var="title" select="string(description)"/>
            <tr>
               <td width="619" height="25" bgcolor="black-alpha">
      <font class="title">
      <x:out select="substring(description, 0, 49)" escapeXml="false"/>
      </font>      
               </td>
            </tr>
      </x:forEach>
</table>

by using JSTL 1.2 and the link as below:

http://dubainightline.blogspot.com/feeds/posts/default

http://www.hd-trailers.net/blog/feed/atom/

http://www.rocketboom.com/vlog/atom.xml

RDF
http://www.alittlepregnant.com/alittlepregnant/index.rdf
http://feeds.feedburner.jp/netafull
http://minami.typepad.com/blogcabin/index.rdf
http://feeds.feedburner.com/CarsCarsCars

(note: simply replace the link and change select from item to entry if needed)


for your info, i am trying to display everything that given by the XML, special character or whatever, it is posible to change all the special character to HTML entitles? so escapexml is not nessary.

<
<c:out value='<feed xmlns="http://www.w3.org/2005/Atom">'/>
This sends the following to the browser
&lt;feed xmlns=&#034;http://www.w3.org/2005/Atom&#034;&gt;  
and is rendered correctly.
>
can you explain in more detail, i not really understand.. sorry

anyway thank for reply..
 
05.13.2008 at 10:41PM PDT, ID: 21561509

Rank: Wizard

I am not an expert in xml. I just know JSTL. So I can't explain xml.  Is output below, close to what you want displayed ?
Maybe you could ask question at  
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XML/
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<c:import var="xml" url="http://www.vuze.com/syndication/browse/NEW/ALL/X/X/2/X/_/_/X/X/feed.xml"/>
<x:parse var="doc" doc="${xml}"/>
<x:set var="rss" select="$doc//item[position()<4]"/> 
<html><body>
<table border="0" cellspacing="0" cellpadding="0">
      <x:forEach select="$rss">
            <x:set var="title" select="string(description)"/>
            <tr>
               <td width="619" height="25" bgcolor="black-alpha">
      <font class="${title}"/>
      <x:out select="substring(description, 0, 49)" escapeXml="false"/>
      </font>      
               </td>
            </tr>
      </x:forEach>
</table>
</body></html>
Open in New Window
 
output from code ; displayed in my browser.
output from code ; displayed in my browser.
 
 
05.15.2008 at 10:54PM PDT, ID: 21580307
yea, it close to what i want, but i need to make sure that every single XML i accept can be display, and it support the namespace as what i found that the problem is happen all cause of the namespace, as what i mention earlier, once got the certain namespace it not able to show already, mean blank.

anyway, for your information, i already solve the problem on special character.
i just detect the encoding of every single XML which i accepted..then replace the encoding part inside the XML with the correct encoding if necessary
for exp:
<?xml version="1.0" encoding="UTF-8"?>

change to :

<?xml version="1.0" encoding="UTF-16"?>

i just notice that..most of the xml provide the wrong encoding, they just simply put UTF-8 as it have the wide support on the encoding part
if the XML which received originally is  UTF-16, and inside the xml stated UTF-8
then the problem will happen on display the certain character, as there are different byte.

anyway just sharing out my experience
 
05.15.2008 at 10:59PM PDT, ID: 21580327
the server memory leak problem have been solved.
i just simply add the catch exception inside the jsp by using JSTL, reject all the unnecessary rubbish code or XML.mean if there any error happen. it will stop and wont go further anymore.
as by this method, it dynamically reduce the memory usage.
but still,further improvement still need to be done.

now just leave some problem on the namespace part,
hope any expert can help me out on this.

thx alot
 
05.16.2008 at 06:23AM PDT, ID: 21582430

Rank: Wizard

>the server memory leak problem have been solved.  
Good, you solved your own problem. You can ask to have this question deleted.  
>now just leave some problem on the namespace part,  
I suggest you ask at  
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XML/
 
 
20080206-EE-VQP-25 / EE_QW_2_20070628