Forum Replies Created

Viewing 15 posts - 2,581 through 2,595 (of 4,243 total)
  • Author
    Posts
  • in reply to: Support for box-sizing css property (border-box value)
    #29359

    Hi guys,

    Anyone knows this answer? Please give us an answer if you know it.
    Cheers.

    #28308

    [/color”>[/color] @PD4ML wrote:

    > Copying the url into the browser correctly brings back the image.

    PD4ML supports only JPEG, PNG and GIF. First please make sure, the image is of the supported formats.

    Also if the image generation requires a session context, you need to make sure SESSIONID is propagated to the image generation servlet.

    in reply to: Deployment / Configuration issues
    #26910

    command is called from external integrated system, output:

    execution conversion command:/usr/bin/java -Xmx512m -Djava.awt.headless=true -cp /root/pd4ml.prof.380fx9/lib/pd4ml.jar Pd4Cmd ‘file:/tmp/pdfBK9qb4.html’ 800 -encoding UTF-8 -ttf /root/fonts -pdfa -out /tmp/pdfBK9qb4.pdf

    Exception in thread “main” java.lang.NoClassDefFoundError: Pd4Cmd
    Caused by: java.lang.ClassNotFoundException: Pd4Cmd
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    Could not find the main class: Pd4Cmd. Program will exit.

    from past experience this might be related to java version and/or variables (java_home, etc)

    in reply to: Could not find the main class: Pd4Cmd. Program will exit.
    #29495

    I do not believe there is a problem with java_home, as the java runtime successfully starts. First I would suspect /root/pd4ml.prof.380fx9/lib/pd4ml.jar is invalid or JVM process has no permissions to read it.

    in reply to: Could not find the main class: Pd4Cmd. Program will exit.
    #29496

    reason was found to be missing permissions on parent folder.

    thanks.

    in reply to: General questions / FAQ
    #26911

    Hello ,

    As I m working on applying css styles to pdf generated using pd4ml tool. The problem I m going through is where do i add these lines in my JSP so that external css files are added in my JSP.

    PD4ML pd4ml = new PD4ML();
    pd4ml.addStyle(“url of file containing styles”,true);

    and pd4ml.enableDebugInfo() ain’t working as i don’t know where exactly i should place this code in my JSP file which transform to pdf.

    in reply to: how to add css files in jsp which is transformed to pdf ??
    #29497

    If you use custom tag, you may enable debug info with debug=”true” attribute.

    There is no need to call pd4ml.addStyle() in JSP, as you may add inline

    in reply to: how to add css files in jsp which is transformed to pdf ??
    #29501

    When I link css . this is wat i m getting.

    17:46:18,954 INFO [stdout] (default task-35) I m in summary PDF

    17:46:18,957 INFO [stdout] (default task-35) version: PD4ML 385fx6 Pro (eval)

    17:46:19,141 INFO [stdout] (default task-35)

    17:46:19,142 INFO [stdout] (default task-35)

    17:46:19,142 INFO [stdout] (default task-35)

    17:46:19,142 INFO [stdout] (default task-35)

    17:46:19,142 INFO [stdout] (default task-35)

    17:46:19,142 INFO [stdout] (default task-35)

    17:46:19,142 ERROR [stderr] (default task-35) org.w3c.css.sac.CSSException: Encountered “<" at line 2, column 1. 17:46:19,143 ERROR [stderr] (default task-35) Was expecting one of: 17:46:19,143 ERROR [stderr] (default task-35)

    17:46:19,143 ERROR [stderr] (default task-35)

    17:46:19,143 ERROR [stderr] (default task-35) “.” …

    17:46:19,143 ERROR [stderr] (default task-35) “:” …

    17:46:19,143 ERROR [stderr] (default task-35) “*” …

    17:46:19,144 ERROR [stderr] (default task-35) “[” …

    17:46:19,144 ERROR [stderr] (default task-35) “::” …

    17:46:19,144 ERROR [stderr] (default task-35)

    17:46:19,144 ERROR [stderr] (default task-35) “” …

    17:46:19,144 ERROR [stderr] (default task-35) “@import” …

    17:46:19,144 ERROR [stderr] (default task-35) “@page” …

    17:46:19,144 ERROR [stderr] (default task-35) “@media” …

    17:46:19,144 ERROR [stderr] (default task-35) “@font-face” …

    17:46:19,145 ERROR [stderr] (default task-35)

    17:46:19,145 ERROR [stderr] (default task-35)

    17:46:19,145 ERROR [stderr] (default task-35)

    17:46:19,145 ERROR [stderr] (default task-35) at com.steadystate.css.parser.SACParser.parseStyleSheet(SACParser.java:60)

    17:46:19,146 ERROR [stderr] (default task-35) at org.zefer.html.doc.css.d.Ò00000(Unknown Source)

    17:46:19,146 ERROR [stderr] (default task-35) at org.zefer.html.doc.css.c.super(Unknown Source)

    17:46:19,146 ERROR [stderr] (default task-35) at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)

    17:46:19,146 ERROR [stderr] (default task-35) at org.zefer.pd4ml.PD4ML.super(Unknown Source)

    17:46:19,146 ERROR [stderr] (default task-35) at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    17:46:19,146 ERROR [stderr] (default task-35) at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    17:46:19,147 ERROR [stderr] (default task-35) at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    17:46:19,147 ERROR [stderr] (default task-35) at org.zefer.pd4ml.taglib.PD4MLTransformerTag.render(Unknown Source)

    17:46:19,147 ERROR [stderr] (default task-35) at org.zefer.pd4ml.taglib.PD4MLTransformerTag.doEndTag(Unknown Source)

    17:46:19,147 ERROR [stderr] (default task-35) at org.apache.jsp.WEB_002dINF.Jsp.itembank.SummaryPDF_jsp._jspService(SummaryPDF_jsp.java:503)

    17:46:19,147 ERROR [stderr] (default task-35) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)

    17:46:19,148 ERROR [stderr] (default task-35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

    17:46:19,148 ERROR [stderr] (default task-35) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365)

    17:46:19,148 ERROR [stderr] (default task-35) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)

    17:46:19,148 ERROR [stderr] (default task-35) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:254)

    17:46:19,148 ERROR [stderr] (default task-35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

    17:46:19,149 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87)

    17:46:19,149 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)

    17:46:19,149 ERROR [stderr] (default task-35) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

    17:46:19,149 ERROR [stderr] (default task-35) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

    17:46:19,149 ERROR [stderr] (default task-35) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

    17:46:19,150 ERROR [stderr] (default task-35) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)

    17:46:19,150 ERROR [stderr] (default task-35) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56)

    17:46:19,150 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

    17:46:19,150 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

    17:46:19,150 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:57)

    17:46:19,151 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

    17:46:19,151 ERROR [stderr] (default task-35) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    17:46:19,151 ERROR [stderr] (default task-35) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    17:46:19,151 ERROR [stderr] (default task-35) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    17:46:19,151 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:207)

    17:46:19,152 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:150)

    17:46:19,152 ERROR [stderr] (default task-35) at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:157)

    17:46:19,152 ERROR [stderr] (default task-35) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)

    17:46:19,152 ERROR [stderr] (default task-35) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:263)

    17:46:19,152 ERROR [stderr] (default task-35) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208)

    17:46:19,153 ERROR [stderr] (default task-35) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)

    17:46:19,153 ERROR [stderr] (default task-35) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)

    17:46:19,153 ERROR [stderr] (default task-35) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

    17:46:19,153 ERROR [stderr] (default task-35) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)

    17:46:19,154 ERROR [stderr] (default task-35) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)

    17:46:19,154 ERROR [stderr] (default task-35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

    17:46:19,154 ERROR [stderr] (default task-35) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)

    17:46:19,154 ERROR [stderr] (default task-35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

    17:46:19,154 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87)

    17:46:19,155 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)

    17:46:19,155 ERROR [stderr] (default task-35) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

    17:46:19,155 ERROR [stderr] (default task-35) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

    17:46:19,155 ERROR [stderr] (default task-35) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

    17:46:19,155 ERROR [stderr] (default task-35) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)

    17:46:19,156 ERROR [stderr] (default task-35) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56)

    17:46:19,156 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

    17:46:19,156 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

    17:46:19,156 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:59)

    17:46:19,156 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

    17:46:19,157 ERROR [stderr] (default task-35) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:81)

    17:46:19,157 ERROR [stderr] (default task-35) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    17:46:19,157 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)

    17:46:19,157 ERROR [stderr] (default task-35) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)

    17:46:19,157 ERROR [stderr] (default task-35) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

    17:46:19,158 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:65)

    17:46:19,158 ERROR [stderr] (default task-35) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70)

    17:46:19,158 ERROR [stderr] (default task-35) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    17:46:19,158 ERROR [stderr] (default task-35) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    17:46:19,158 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:218)

    17:46:19,159 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:205)

    17:46:19,159 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:69)

    17:46:19,159 ERROR [stderr] (default task-35) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:134)

    17:46:19,159 ERROR [stderr] (default task-35) at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36)

    17:46:19,160 ERROR [stderr] (default task-35) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:619)

    17:46:19,160 ERROR [stderr] (default task-35) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    17:46:19,160 ERROR [stderr] (default task-35) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    17:46:19,160 ERROR [stderr] (default task-35) at java.lang.Thread.run(Thread.java:744)

    17:46:19,207 INFO [stdout] (default task-35) done in 251ms.

    what should I do..???
    and Thanks for your quick response ..:)

    in reply to: how to add css files in jsp which is transformed to pdf ??
    #29502

    Obviously you have HTML-like comments in the CSS file. It is invalid from CSS file format perspective. Correct comment syntax is /* */

    Try to remove constructs like .

    in reply to: how to add css files in jsp which is transformed to pdf ??
    #29499

    As I have gone through all 3 css files that is linked to the jsp. I could not notice any comments starting from . But still I m getting that exception.

    Can yu tell me the where i m lacking..

    in reply to: how to add css files in jsp which is transformed to pdf ??
    #29500

    You should not enclose CSS links to

    [/language:3a7shx90]

    Correct (must be placed to ):
    [language=xml:3a7shx90] [/language:3a7shx90]

    in reply to: how to add css files in jsp which is transformed to pdf ??
    #29498

    Now I am able to load the css files in my JSP , I could see it in console. I could see all 3 css linked to jsp and der code in console window. But still i m getting this error.

    org.w3c.css.sac.CSSException: Encountered “}” at line 564, column 1.

    I dont know which line and column its referring to.

    Thanks,
    Abida

    in reply to: how to add css files in jsp which is transformed to pdf ??
    #29503

    I have included pd4ml_demo.jar , pd4ml_tl_demo.jar , ss_css2.jar and w3c.jar files in lib of web-inf folder and have included the respective tlds. Do I need to add any more jars..??

    Can you please let me know the solution to handle this exception .

    org.w3c.css.sac.CSSException & at com.steadystate.css.parser.SACParser.parseStyleSheet..

    in reply to: css @media parsing
    #28344

    Hello All,

    I want to include external css files in jsp which is to be transform to pdf.

    How do i fix this below issue :

    org.w3c.css.sac.CSSException: Encountered ” “screen “” at line 59, column 13.

    12:49:42,111 ERROR [stderr] (default task-60) Was expecting one of:

    12:49:42,111 ERROR [stderr] (default task-60)

    12:49:42,111 ERROR [stderr] (default task-60) “{” …

    12:49:42,111 ERROR [stderr] (default task-60) “,” …

    12:49:42,111 ERROR [stderr] (default task-60)

    12:49:42,112 ERROR [stderr] (default task-60) at com.steadystate.css.parser.SACParser.parseStyleSheet(SACParser.java:60)

    12:49:42,112 ERROR [stderr] (default task-60) at org.zefer.html.doc.css.d.Ò00000(Unknown Source)

    12:49:42,112 ERROR [stderr] (default task-60) at org.zefer.html.doc.css.c.super(Unknown Source)

    12:49:42,112 ERROR [stderr] (default task-60) at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)

    12:49:42,112 ERROR [stderr] (default task-60) at org.zefer.pd4ml.PD4ML.super(Unknown Source)

    12:49:42,112 ERROR [stderr] (default task-60) at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    12:49:42,112 ERROR [stderr] (default task-60) at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    12:49:42,112 ERROR [stderr] (default task-60) at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    12:49:42,112 ERROR [stderr] (default task-60) at org.zefer.pd4ml.taglib.PD4MLTransformerTag.render(Unknown Source)

    12:49:42,113 ERROR [stderr] (default task-60) at org.zefer.pd4ml.taglib.PD4MLTransformerTag.doEndTag(Unknown Source)

    12:49:42,113 ERROR [stderr] (default task-60) at org.apache.jsp.WEB_002dINF.Jsp.itembank.SummaryPDF_jsp._jspService(SummaryPDF_jsp.java:494)

    12:49:42,113 ERROR [stderr] (default task-60) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)

    12:49:42,113 ERROR [stderr] (default task-60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

    12:49:42,113 ERROR [stderr] (default task-60) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365)

    12:49:42,113 ERROR [stderr] (default task-60) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)

    12:49:42,113 ERROR [stderr] (default task-60) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:254)

    12:49:42,113 ERROR [stderr] (default task-60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

    12:49:42,114 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87)

    12:49:42,114 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)

    12:49:42,114 ERROR [stderr] (default task-60) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

    12:49:42,114 ERROR [stderr] (default task-60) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

    12:49:42,114 ERROR [stderr] (default task-60) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

    12:49:42,114 ERROR [stderr] (default task-60) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)

    12:49:42,114 ERROR [stderr] (default task-60) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56)

    12:49:42,114 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

    12:49:42,115 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

    12:49:42,115 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:57)

    12:49:42,115 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

    12:49:42,115 ERROR [stderr] (default task-60) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    12:49:42,115 ERROR [stderr] (default task-60) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    12:49:42,115 ERROR [stderr] (default task-60) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    12:49:42,115 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:207)

    12:49:42,116 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:150)

    12:49:42,116 ERROR [stderr] (default task-60) at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:157)

    12:49:42,116 ERROR [stderr] (default task-60) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)

    12:49:42,116 ERROR [stderr] (default task-60) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:263)

    12:49:42,116 ERROR [stderr] (default task-60) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208)

    12:49:42,116 ERROR [stderr] (default task-60) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)

    12:49:42,116 ERROR [stderr] (default task-60) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)

    12:49:42,117 ERROR [stderr] (default task-60) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

    12:49:42,117 ERROR [stderr] (default task-60) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)

    12:49:42,117 ERROR [stderr] (default task-60) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)

    12:49:42,117 ERROR [stderr] (default task-60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

    12:49:42,117 ERROR [stderr] (default task-60) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)

    12:49:42,117 ERROR [stderr] (default task-60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

    12:49:42,117 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87)

    12:49:42,117 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)

    12:49:42,118 ERROR [stderr] (default task-60) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

    12:49:42,118 ERROR [stderr] (default task-60) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

    12:49:42,118 ERROR [stderr] (default task-60) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

    12:49:42,118 ERROR [stderr] (default task-60) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)

    12:49:42,118 ERROR [stderr] (default task-60) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56)

    12:49:42,118 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

    12:49:42,119 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

    12:49:42,119 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:59)

    12:49:42,119 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

    12:49:42,119 ERROR [stderr] (default task-60) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:81)

    12:49:42,119 ERROR [stderr] (default task-60) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    12:49:42,119 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)

    12:49:42,119 ERROR [stderr] (default task-60) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)

    12:49:42,119 ERROR [stderr] (default task-60) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

    12:49:42,120 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:65)

    12:49:42,120 ERROR [stderr] (default task-60) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70)

    12:49:42,120 ERROR [stderr] (default task-60) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    12:49:42,120 ERROR [stderr] (default task-60) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

    12:49:42,120 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:218)

    12:49:42,120 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:205)

    12:49:42,120 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:69)

    12:49:42,120 ERROR [stderr] (default task-60) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:134)

    12:49:42,121 ERROR [stderr] (default task-60) at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36)

    12:49:42,121 ERROR [stderr] (default task-60) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:619)

    12:49:42,121 ERROR [stderr] (default task-60) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    12:49:42,121 ERROR [stderr] (default task-60) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    12:49:42,121 ERROR [stderr] (default task-60) at java.lang.Thread.run(Thread.java:744)

    12:49:42,747 INFO [stdout] (default task-60) done in 1648ms.

    my Jsp contains:

    <%@page import="com.schoolcity.stars.controller.itembank.ItemBankController"%>
    <%@ page import="java.util.Map"%><%@ page import="java.util.List"%><%@ page import="java.util.ArrayList"%><%@ page import="java.util.HashMap"%><%@ page import="com.schoolcity.stars.dto.itembank.ItemSummary"%><%@ page import="com.schoolcity.stars.entity.assessment.Assessment"%><%@ page import="com.schoolcity.stars.entity.assessment.AssessmentForm"%><%@ page import="com.schoolcity.stars.entity.common.InstanceSubject"%><%@ page import="com.schoolcity.stars.entity.itembank.ItemChoice"%><%@ page import="com.schoolcity.stars.entity.itembank.Item"%>
    <% Map mpItemSummary = (Map ) request.getAttribute(“SUMMARY_PDF”);
    Map mpItemDetail = (Map) request.getAttribute(“ITEM_SELECTED_DETAILS”);
    List lstDifficultyCode = (List) request.getAttribute(“DIFFICULTY_CODE”);
    List
    lstBloomsCode = (List) request.getAttribute(“BLOOMS_CODE”);
    Assessment objAssessmentData = (Assessment) request.getAttribute(“ASSESSMENT_DATA”);
    Map mpTotalPoints = (Map) request.getAttribute(“TOTAL_POINTS”);

    String strContextPath = request.getContextPath();
    System.out.println(“>>>>>>>>>>>>>>>


    >>>>>>>>>>>>>>>>>>>>” + strContextPath);
    System.out.println(“I m in summary PDF”);
    %>
    <%@ taglib uri="/WEB-INF/tlds/pd4ml.tld" prefix="pd4ml"%><%@ page contentType="text/html; charset=ISO8859_1"%> PD4ML pd4ml = new PD4ML();
    pd4ml.enableDebugInfo();

    Assessment Name:


    Year:
    Subject:

    <% int index = 1; for(Map.Entry mpeItemSummary : mpItemSummary.entrySet()) {
    %>

    <% } %>

    Item # Standard Item ID Correct Answer Points Passage Name Difficulty Level DOK
    <%=index++%> <%=mpeItemSummary.getValue().getFullNumber()%> <%=mpeItemSummary.getValue().getPublisherExtId()%> <%=mpeItemSummary.getValue().getCorrectAnswer()%> <%=mpeItemSummary.getValue().getPoints()%> <%=mpeItemSummary.getValue().getPassageTitle()%> <%=mpeItemSummary.getValue().getDifficultyCode()%> <%=mpeItemSummary.getValue().getDepthOfKnowledgeCode()%>
    <% for(String strDC : lstDifficultyCode){ %>

    <% } %>
    <% for(String strBC : lstBloomsCode){ %>

    <% } %>

    <% int iDLC = 0, iDMC = 0, iDHC = 0, iDNC = 0, iBCr = 0, iBEv = 0, iBAn = 0, iBAp = 0, iBUn = 0, iBRe = 0, iBNa = 0; for(Map.Entry mpeItemSummary : mpItemSummary.entrySet()) {
    %>

    <% for(String strDC : lstDifficultyCode){ %>
    <% if(strDC.equals(mpeItemSummary.getValue().getDifficultyCode())) { if(mpeItemSummary.getValue().getDifficultyCode().equals("Low")) iDLC++; if(mpeItemSummary.getValue().getDifficultyCode().equals("Medium")) iDMC++; if(mpeItemSummary.getValue().getDifficultyCode().equals("High")) iDHC++; if(mpeItemSummary.getValue().getDifficultyCode().equals("N/A")) iDNC++; %>

    <% } else { %>

    <% } %>
    <% } %>
    <% for(String strBC : lstBloomsCode){ %>
    <% if(strBC.equals("N/A") && mpeItemSummary.getValue().getBloomsCode().equals("-")) { iBNa++; %>

    <% } else { if(mpeItemSummary.getValue().getBloomsCode().equals("Create")) iBCr++; if(mpeItemSummary.getValue().getBloomsCode().equals("Evaluate")) iBEv++; if(mpeItemSummary.getValue().getBloomsCode().equals("Analyze")) iBAn++; if(mpeItemSummary.getValue().getBloomsCode().equals("Apply")) iBAp++; if(mpeItemSummary.getValue().getBloomsCode().equals("Understand")) iBUn++; if(mpeItemSummary.getValue().getBloomsCode().equals("Remember")) iBRe++; %>

    <% } %>
    <% } %>

    <% } %>

    STANDARD DIFFICULTY LEVEL BLOOM’S TAXONOMY Total
    <%=strDC%> <%=strBC%>
    <%=mpeItemSummary.getValue().getFullNumber()%> 1 N/A <%=mpeItemSummary.getValue().getBloomsCode()%>
    Total: <%=iDLC%> <%=iDMC%> <%=iDHC%> <%=iDNC%> <%=iBCr%> <%=iBEv%> <%=iBAn%> <%=iBAp%> <%=iBUn%> <%=iBRe%> <%=iBNa%>
    <% int count = 1; %>
    <% for(Map.Entry mpeItems : mpItemDetail.entrySet()) {
    %>

    <% List lstItemChoice= mpeItems.getValue().getItemChoices();
    %>

    <% String st[] = new String[mpeItems.getValue().getStandards().size()]; StringBuilder sbfullname = null; StringBuilder sbdesc = null; for(Map.Entry mpeStandard : mpeItems.getValue().getStandards().entrySet()){
    sbfullname = new StringBuilder();
    sbdesc = new StringBuilder();
    st = mpeStandard.getValue().split(“~”);
    sbfullname.append(st[0]);
    sbdesc.append(st[1]);
    %>

    Question #<%=count++%> (<%=mpeItems.getValue().getName()%>)
    <%=mpeItems.getValue().getStem()%>

    <% for(int i = 0 ; i < lstItemChoice.size() ; i++){ %>

    <% } %>

    (<%=lstItemChoice.get(i).getChoice()%>). <%=lstItemChoice.get(i).getBody()%>
    <%=sbfullname.toString()%> <% } and i am using bellow jars: pd4ml_demo.jar , pd4ml_tl_demo.jar , ss_css2.jar and w3c.jar files in lib of web-inf folder and have included the respective tlds.

in reply to: Troubleshooting
#26909

I’m using pd4ml in a production website.
I constantly get an OutOfMemory at the end of the day, on a 4GB heap.
I run the dump through the YourKit Profiler and, as you can see from the screenshots, I found lots of pd4ml objects not being finalized properly.

I might be doing something wrong in the code, but I’m just using a few jsp tags so I don’t see where the error could be.

The two screenshots show 4GB held by 1M Finalizer instances holding references to 16k instances of org.zefer.html.doc.view.l

Do you have an idea of the reason this could happen?
Thank you

Version details:

PD4ML Pro 385fx6
PD4ML Taglib 385fx6
Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-27-generic x86_64)
java version “1.6.0_30”
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
Apache Tomcat/6.0.35

Code Snippet:


redirectMethod=”redirect”
dir=”<%=path%>”
redirect=”<%=redirect_mode%>”
name=”<%=file_name%>”
debug=”false”/>
Viewing 15 posts - 2,581 through 2,595 (of 4,243 total)