[opencms-dev] OpenCms 6.2.3 using deprecated class

Pere Torrodellas ptorrodellas at fihoca.com
Thu Jan 17 11:26:18 CET 2008


Hello,

After a painful investigation I found out why the file was not imported: there are control characters (i.e. Hex 19)  in some Title and Description properties, in places where there should have been a typographical apostrophe (Hex 92).

The bad news is that at least some of the resources with this character had been imported from another OpenCms system where the Hex92 character didn't cause any problem. Apparently (I cannot prove it now, but I'll try later), in the OpenCms processes of exporting/importing these documents, something didn't work. The only difference between the two systems is that the one with no problem is Windows and the other is Solaris.

And anyway, the main subject of my original post is still a mistery: is it as designed that OpenCms 6.2.3 uses its own deprecated class?

Thanks,

Pere
  ----- Original Message ----- 
  From: Pere Torrodellas 
  To: OpenCms Mail List 
  Sent: Wednesday, January 16, 2008 9:37 AM
  Subject: [opencms-dev] OpenCms 6.2.3 using deprecated class


  Hello,

  I'm having a difficult time trying to database-import a zip file into OpenCms 6.2.3. The file is exported from another OpenCms 6.2.3 and the manifest.xml says so. The target OpenCms can import zips from other systems with no problem, but with this one it stops after a second without even starting to write any workplace messages. The console shows an exception:

  Exception in thread "OpenCms: Import from C:\apache-tomcat-5.5.17\webapps\socweb
  \WEB-INF\packages\20080115_PRO_socweb_en.zip [e12ddc80-c388-11dc-bed2-7585a426f5
  40]" java.lang.NullPointerException
          at com.opencms.legacy.CmsCosImportExportHandler.matches(CmsCosImportExpo
  rtHandler.java:212)
          at org.opencms.importexport.CmsImportExportManager.getImportExportHandle
  r(CmsImportExportManager.java:520)
          at org.opencms.importexport.CmsImportExportManager.importData(CmsImportE
  xportManager.java:619)
          at org.opencms.workplace.threads.CmsDatabaseImportThread.run(CmsDatabase
  ImportThread.java:91)

  I'm puzzled by the fact that OpenCms is trying to use class com.opencms.legacy.CmsCosImportExportHandler, which is deprecated according to the .class file itself, and afaik is from a package meant to process older OpenCms versions.

  Can someone tell me if this is "working as designed", and what the origin of the problem may be?

  Thanks for any help,

  Pere




------------------------------------------------------------------------------



  _______________________________________________
  This mail is sent to you from the opencms-dev mailing list
  To change your list options, or to unsubscribe from the list, please visit
  http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080117/1e1ab2ca/attachment.htm>


More information about the opencms-dev mailing list