<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Pere</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ptorrodellas@fihoca.com href="mailto:ptorrodellas@fihoca.com">Pere
Torrodellas</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">OpenCms Mail List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, January 16, 2008 9:37
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [opencms-dev] OpenCms 6.2.3
using deprecated class</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Exception in thread "OpenCms: Import from
C:\apache-tomcat-5.5.17\webapps\socweb<BR>\WEB-INF\packages\20080115_PRO_socweb_en.zip
[e12ddc80-c388-11dc-bed2-7585a426f5<BR>40]"
java.lang.NullPointerException<BR>
at
com.opencms.legacy.CmsCosImportExportHandler.matches(CmsCosImportExpo<BR>rtHandler.java:212)<BR>
at
org.opencms.importexport.CmsImportExportManager.getImportExportHandle<BR>r(CmsImportExportManager.java:520)<BR>
at
org.opencms.importexport.CmsImportExportManager.importData(CmsImportE<BR>xportManager.java:619)<BR>
at
org.opencms.workplace.threads.CmsDatabaseImportThread.run(CmsDatabase<BR>ImportThread.java:91)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can someone tell me if this is "working as
designed", and what the origin of the problem may be?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for any help,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Pere</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<P>
<HR>
<P></P><BR>_______________________________________________<BR>This mail is
sent to you from the opencms-dev mailing list<BR>To change your list options,
or to unsubscribe from the list, please
visit<BR>http://lists.opencms.org/mailman/listinfo/opencms-dev</BLOCKQUOTE></BODY></HTML>