Project

General

Profile

Actions

Bug #1103

closed

Génération de PDF avec fichier joint versionné

Added by François Cedelle about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Import/Export
Start date:
10/07/2010
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Navigateur:
Firefox 3.x
Votre version de Silverpeas:
5.3
Système d'exploitation:
Linux
Votre base de données:
PostgreSQL
Livraison en TEST:
Livraison en PROD:

Description

Impossible de générer un pdf dans une GED versionnée si la publi contient un fichier joint :

07/10/10-10:59:09,103 - ERROR : root.EX_REMOTE_EXCEPTION | MODULE : kmelia.PdfGenerator.onOpenDocument | !!! Message root.EX_REMOTE_EXCEPTION NOT INITIALIZED !!! (EXCEPTION : java.net.MalformedURLException: Illegal character in URL)
07/10/10-10:59:09,141 - ERROR : Servlet.service() for servlet KmeliaPdfGeneratorServlet threw exception
Impossible de générer le fichier PDF de la publication
nested (Deepest) :
java.lang.NullPointerException
at com.stratelia.silverpeas.versioning.util.VersioningUtil.isReader(VersioningUtil.java:367)
at com.stratelia.webactiv.kmelia.control.PdfGenerator.generateAttachments(PdfGenerator.java:845)
at com.stratelia.webactiv.kmelia.control.PdfGenerator.generate(PdfGenerator.java:186)
at com.stratelia.webactiv.kmelia.servlets.KmeliaPdfGeneratorServlet.processRequest(KmeliaPdfGeneratorServlet.java:44)
at com.stratelia.webactiv.kmelia.servlets.KmeliaPdfGeneratorServlet.doGet(KmeliaPdfGeneratorServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.silverpeas.whitePages.filters.ComponentRequestRouterFilter.doFilter(ComponentRequestRouterFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)

Actions #1

Updated by François Cedelle about 11 years ago

Nous avons ajouté URIEncoding="UTF-8" dans la conf JBOSS (server.xml), sans succès...

Actions #2

Updated by François Cedelle about 11 years ago

Coté Front office j'ai :

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

com.stratelia.webactiv.kmelia.model.KmeliaRuntimeException: kmelia.EX_CANNOT_SHOW_PDF_GENERATION
com.stratelia.webactiv.kmelia.control.PdfGenerator.generate(PdfGenerator.java:197)
com.stratelia.webactiv.kmelia.servlets.KmeliaPdfGeneratorServlet.processRequest(KmeliaPdfGeneratorServlet.java:44)
com.stratelia.webactiv.kmelia.servlets.KmeliaPdfGeneratorServlet.doGet(KmeliaPdfGeneratorServlet.java:66)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.silverpeas.whitePages.filters.ComponentRequestRouterFilter.doFilter(ComponentRequestRouterFilter.java:96)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
Apache Tomcat/5.5

Actions #3

Updated by Emmanuel Hugonnet about 11 years ago

  • Category set to Import/Export
  • Assignee set to Emmanuel Hugonnet
  • Target version set to Version 5.3.3
  • % Done changed from 0 to 100
  • Estimated time set to 2.00 h

Correction pour que la liste des readers ne soit pas nulle

Actions #4

Updated by Emmanuel Hugonnet about 11 years ago

  • Status changed from New to Closed
Actions #5

Updated by François Cedelle about 11 years ago

  • Status changed from Closed to Re-opened

Le PDF se génère bien maintenant, mais seul la version 1 est listé dans le tableau...

Actions #6

Updated by Emmanuel Hugonnet about 11 years ago

  • Status changed from Re-opened to Closed

Je clos le bug et en ajoute un nouveau pour ce problème.
cf. bug #1148

Actions

Also available in: Atom PDF