<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Export: NullPointerException: Permission related? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105772#M73969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was using Alfresco Community 2.0. I recently upgraded to Alfresco Community 2.1. The same java.lang.NullPointerException occurs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 14:47:46 GMT</pubDate>
    <dc:creator>ironman77</dc:creator>
    <dc:date>2007-08-07T14:47:46Z</dc:date>
    <item>
      <title>Export: NullPointerException: Permission related?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105770#M73967</link>
      <description>I' trying to export the content of company home with the exporter utility and these switches:./export.sh -user admin -pwd admin -verbose -zip -overwrite -s workspace://SpacesStore -path /app:company_home -d /home/alfresco/Alfresco/export BazInhalt‍‍the export fails when a folder is reached which con</description>
      <pubDate>Mon, 06 Aug 2007 13:56:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105770#M73967</guid>
      <dc:creator>ironman77</dc:creator>
      <dc:date>2007-08-06T13:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export: NullPointerException: Permission related?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105771#M73968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give details of the system, please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 15:22:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105771#M73968</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-08-06T15:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export: NullPointerException: Permission related?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105772#M73969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was using Alfresco Community 2.0. I recently upgraded to Alfresco Community 2.1. The same java.lang.NullPointerException occurs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:47:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105772#M73969</guid>
      <dc:creator>ironman77</dc:creator>
      <dc:date>2007-08-07T14:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export: NullPointerException: Permission related?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105773#M73970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should not happen and I will protect this call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This affects you as you have an object in your repository that does not have a definition for its type in the data dictionary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check any extentions and changes to the data model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 09:32:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105773#M73970</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-08-08T09:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export: NullPointerException: Permission related?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105774#M73971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The issue is difficult to track down. I created a simple test case:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I create a new empty folder ("space"). This empty folder could be exported w/o any problems … surprise &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I create a new document which is a instance of my own docmodel that is currently registered in alfresco using the&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;WEB-CLIENT(!)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. The export resulted in the exact same error (Nullpointer / permission)!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This leads to some questions/assumptions: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The Web-Client creates invalid document instances (i doubt that)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The export tool does't know about my docmodel? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the export command has to started from a special folder or with special settings if there is a different docmodel?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code which i use to start the exporter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;export ALFRESC0="/home/alfresco/Alfresco"&lt;BR /&gt;export JAVA_HOME="/home/service/java"&lt;BR /&gt;export TOMCAT_HOME="/home/alfresco/Alfresco/tomcat"&lt;BR /&gt;export PATH=${PATH}:${TOMCAT_HOME};&lt;BR /&gt;export IMPORT_LIB=./webapps/alfresco/WEB-INF/lib&lt;BR /&gt;export IMPORT_COMMON=./common/lib&lt;BR /&gt;export JAVA_CLASSPATH=./webapps/alfresco/WEB-INF/lib&lt;BR /&gt;export IMPORT_CLASSES=./webapps/alfresco/WEB-INF/classes&lt;BR /&gt;cd $TOMCAT_HOME&lt;BR /&gt;&lt;BR /&gt;for i in $TOMCAT_HOME/$IMPORT_LIB/*.jar ;&lt;BR /&gt;do export JAVA_CLASSPATH=${JAVA_CLASSPATH}:$i ;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;for i in $TOMCAT_HOME/$IMPORT_COMMON/mysql*.jar ;&lt;BR /&gt;do export JAVA_CLASSPATH=${JAVA_CLASSPATH}:$i ;&lt;BR /&gt;done&lt;BR /&gt;export JAVA_CLASSPATH=${JAVA_CLASSPATH}:${IMPORT_CLASSES} ;&lt;BR /&gt;$JAVA_HOME/bin/java -cp $JAVA_CLASSPATH org.alfresco.tools.Export&amp;nbsp; "$@"&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I start the exporter command from the alfresco top level directory, the same level with alf_data and tomcat.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 12:58:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105774#M73971</guid>
      <dc:creator>ironman77</dc:creator>
      <dc:date>2007-08-10T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export: NullPointerException: Permission related?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105775#M73972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After checking the different spring initialization files, i noticed, that the following classpath entry was missing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;export SHARED_CLASSPATH=${TOMCAT_HOME}/shared/classes&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;setting the classpath as follows solves my problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;export JAVA_CLASSPATH=${JAVA_CLASSPATH}:${IMPORT_CLASSES}:${SHARED_CLASSPATH} ;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So the problem was, that my model which is within the shared folder wasn't known by the alfresco exporter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, the whole process of exporting documents with alfresco community is poorly documented. The error thrown by the exporter tool is&amp;nbsp; confusing and misleading - this should be corrected!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 15:24:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105775#M73972</guid>
      <dc:creator>ironman77</dc:creator>
      <dc:date>2007-08-21T15:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export: NullPointerException: Permission related?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105776#M73973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Feel free to contribute a patch.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 15:28:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/export-nullpointerexception-permission-related/m-p/105776#M73973</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-08-21T15:28:49Z</dc:date>
    </item>
  </channel>
</rss>

