when trying to export folder or files, there is sometimes this error :
14:03:38,140 ERROR [STDERR] java.lang.NullPointerException 14:03:38,140 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.command.GetArchiveCommand.zipFiles(GetArchiveCommand.java:112) 14:03:38,140 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.command.GetArchiveCommand.execute(GetArchiveCommand.java:72) 14:03:38,140 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.JCRCommand.dispatch(JCRCommand.java:61) 14:03:38,140 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:436)
private ZipOutputStream zipFiles(String sPath, ZipOutputStream zos) { .... JCRCommand fileList = (JCRCommand) this.mContext.getCommandFactory().createFileGetCommand(node.getPath(), new Locale(this.msLanguage)); File childFile = (File) this.mContext.execute(fileList); ZipEntry entry = new ZipEntry(this.rootFolderName + node.getPath()); zos.putNextEntry(entry); Content content = childFile.getContent(); ...