0 Replies Latest reply on May 18, 2017 11:29 PM by ivanwong

    Problem: User Import Export

    ivanwong

      Old server: Openfire 3.6.4 with userImportExport.jar 2.6 on Windows 2000

      New server: Openfire 4.1.4 with userImportExport.jar 2.6 on CentOS 7

       

      I've export user data to file: *.xml

      The format look like this:

      <?xml version="1.0" encoding="UTF-8"?>

      <Openfire>
        <User>
          <Username>admin</Username>
          <Password>****</Password>
          <Email>admin@example.com</Email>
          <Name>Administrator</Name>
          <CreationDate>0</CreationDate>
          <ModifiedDate>0</ModifiedDate>
          <Roster/>
        </User>
      ...
      </Openfire>

       

      I can't import it into the new server. Even on new server, export and then import, also failed.

       

      error.log:

      2017.05.19 02:19:37 org.jivesoftware.openfire.container.PluginServlet - java.util.NoSuchElementException

      at java.util.ArrayList$Itr.next(ArrayList.java:854)

      at org.jivesoftware.openfire.plugin.userImportExport.import_002duser_002ddata_jsp. _jspService(import_002duser_002ddata_jsp.java:100)

      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

      at org.jivesoftware.openfire.container.PluginServlet.handleJSP(PluginServlet.java: 388)

      at org.jivesoftware.openfire.container.PluginServlet.service(PluginServlet.java:10 3)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1669)

      at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:226)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

      at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:165)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

      at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

      at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

      at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:76)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

      at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:53)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

      at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:226)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

      at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:165)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

      ...

       

      How to solve this problem?