Project

General

Profile

Bug #1867

En V5.6 Export d'un theme java plante un java null pointer

Added by Patrick Schambel almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
High
Target version:
-
Start date:
04/06/2011
Due date:
% Done:

100%

Estimated time:
Spent time:
Navigateur:
Firefox 3.x
Votre version de Silverpeas:
Unknown
Système d'exploitation:
Votre base de données:
Toutes
Livraison en TEST:
Livraison en PROD:

Related issues

Related to GED - Bug #2287: Exporter les publications du composant : java null pointerClosedEmmanuel Hugonnet08/24/2011

Actions
#1

Updated by Nicolas Eysseric almost 10 years ago

Voici l'erreur en détail :

06/04/11-22:11:01,000 - ERROR : util.MSG_EXCEPTION_NOT_EMBEDED | MODULE : util.HomePageUtil.traceException() | Exception non encapsulée dans une Silverpeas...Exception
java.lang.NullPointerException
    at com.silverpeas.importExport.report.ExportReport.getDuration(ExportReport.java:86)
    at org.apache.jsp.importExportPeas.jsp.downloadZip_jsp._jspService(downloadZip_jsp.java:191)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

#2

Updated by Nicolas Eysseric almost 10 years ago

L'erreur survient lors de la génération du fichier importExport.xml.
Voir l'erreur détaillée ci-dessous :

07/04/11-17:57:39,859 - INFO  : importExport.EX_LOADING_XML_MAPPING_FAILED | MODULE : importExport.ImportExport.loadSilverpeasExchange | Echec de Castor lors du chargement du fichier XML de mapping. (XML Filename : )
Echec de Castor lors du chargement du fichier XML de mapping.
nested (Deepest) : 
java.io.IOException
    at org.jboss.vfs.protocol.AbstractURLConnection.toURI(AbstractURLConnection.java:93)
    at org.jboss.vfs.protocol.FileURLConnection.<init>(FileURLConnection.java:52)
    at org.jboss.vfs.protocol.FileURLStreamHandler.openConnection(FileURLStreamHandler.java:38)
    at java.net.URL.openConnection(URL.java:945)
    at java.net.URL.openStream(URL.java:1010)
    at org.exolab.castor.util.DTDResolver.resolveEntity(DTDResolver.java:287)
    at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:243)
    at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:221)
    at com.silverpeas.importExport.control.ImportExport.upLoadSilverpeasExchange(ImportExport.java:152)
    at com.silverpeas.importExport.control.ImportExport.processExport(ImportExport.java:536)
    at com.silverpeas.importExportPeas.control.ExportXMLThread.run(ExportXMLThread.java:53)
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 5: file:\D:\silverpeas-5.6-SNAPSHOT-jboss6\resources\importExport\importExportMapping.xml
    at java.net.URI$Parser.fail(URI.java:2809)
    at java.net.URI$Parser.checkChars(URI.java:2982)
    at java.net.URI$Parser.parse(URI.java:3019)
    at java.net.URI.<init>(URI.java:578)
    at org.jboss.vfs.VFSUtils.toURI(VFSUtils.java:315)
    at org.jboss.vfs.protocol.AbstractURLConnection.toURI(AbstractURLConnection.java:90)
    ... 10 more

#3

Updated by Nicolas Eysseric almost 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Miguel Moquillon
#4

Updated by Miguel Moquillon almost 10 years ago

  • Status changed from Assigned to In progress...
#5

Updated by Miguel Moquillon almost 10 years ago

  • Status changed from In progress... to Resolved

Le chemin du fichier de mapping importExportMapping.xml utilisé lors de l'export contient des caractères invalides ('\') parce qu'il est construit à partir d'un objet File. La correction consiste à passer au mapping de Castor non un objet File mais URL qui indique où se trouve ce fichier de mapping.

#6

Updated by Nicolas Eysseric almost 10 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

OK. Validé.

Also available in: Atom PDF