(solved) import/export plugin v.2.5.0

hi everybody

i have fresh install openfire 4.0.1. OS is ubuntu 14.04 LTS, fresh install also with any updates. i’m tryin import user’s data from xml is created by old wildfire instance. i changed this xml to according with wildfire-user-schema.xsd.xml. and i’ve got error "The import file does not match the user schema", well let look at this xml (just one user for example).

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

  • *

  • valiko*

  • mimino*

  • *

  • Mimino*

  • 1351833278475*

  • 1351833278475*

  • *

  •      <Item>a lot of contacts</Item>*
    
  • *

  • *

Okay. i removed all items from Roster section without any results. same error.

well. i created this user in web-frontend of new installed openfire and did export it to xml. here is it

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

  • *

  • valiko*

  • mimino*

  • *

  • Mimino*

  • 1453978246468*

  • 1453978246468*

  • *

  •  <Item jid="admin@jabber.invex.lol" askstatus="-1" recvstatus="-1" substatus="0" name="admin"/>*
    
  • *

  •  </User>*
    

can anyone able to tell is what the difference between this two? i really do not

and then i tried to import it, and you know? yes, with the same result and with the same error.

i tried deinstall and reinstall export/import plugin, restart openfire and even OS.

maybe trouble in java version?

java version “1.7.0_91”

OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.14.04.1)

OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)

i really have no idea what is wrong with it. what way to go from now to success?

over 700 jabber users are still waiting for new server.

i guarantee a full and detailed answer as far as possible to any question (about this case, not ufo)

and any thoughts are welcome

thank you for attention

p.s. sorry for poor English

listing 1. “Error” tab from web-frontend

*2016.01.29 10:01:35 org.jivesoftware.openfire.plugin.UserSchemaValidator - ERROR: perhaps namespace URI “http://www.w3c.org/2001/XMLSchema” is incorrect? *

*2016.01.29 10:01:35 org.jivesoftware.openfire.plugin.UserSchemaValidator - *

*java.lang.NullPointerException *

*at com.sun.msv.verifier.Verifier.startDocument(Verifier.java:364) *

*at org.dom4j.io.SAXWriter.startDocument(SAXWriter.java:720) *

*at org.dom4j.io.SAXWriter.write(SAXWriter.java:198) *

*at org.jivesoftware.openfire.plugin.UserSchemaValidator.validate(UserSchemaValidat or.java:63) *

*at org.jivesoftware.openfire.plugin.ImportExportPlugin.validateImportFile(ImportEx portPlugin.java:149) *

*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: 296) *

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

*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:80) *

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

*at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:162) *

*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:80) *

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

*at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:162) *

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

*at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) *

*at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) *

*at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) *

*at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 3) *

*at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:11 27) *

*at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) *

*at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185 ) *

*at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:106 1) *

*at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) *

*at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:215) *

*at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:110) *

*at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) *

*at org.eclipse.jetty.server.Server.handle(Server.java:499) *

*at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) *

*at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) *

*at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) *

*at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 ) *

*at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) *

*at java.lang.Thread.run(Thread.java:745) *

listing 2. from “Debug” tab (different time is result of two attempts. doesn’t matter.):

*2016.01.29 10:11:49 org.jivesoftware.openfire.user.DefaultUserProvider - Results: 2 *

*2016.01.29 10:11:49 org.jivesoftware.openfire.user.DefaultUserProvider - getUsers results: admin,toster,. *

*2016.01.29 10:12:03 org.jivesoftware.util.cert.SANCertificateIdentityMapping - Parsing otherName for subject alternative names: 1.3.6.1.5.5.7.8.5 *

*2016.01.29 10:12:03 org.jivesoftware.util.cert.SANCertificateIdentityMapping - … processing DERTaggedObject: [0][0]jabber.invex.lol *

*2016.01.29 10:12:03 org.jivesoftware.util.CertificateManager - CertificateManager: Subject Alternative Name Mapping returned [jabber.invex.lol] *

salvation is in removing one little letter in this string of wildfire-user-schema.xsd.xml file

<xs:schema xmlns:xs=“http://www.w3c.org/2001/XMLSchema” elementFormDefault=“qualified”>

and all works fine

Message was edited by: Gene

1 Like

im problem tp import user

The import file does not match the user schema.

Thanks, it works!

I dont understand. What letter you removed?

p.s. I FOUND!!!

before

<xs:schema xmlns:xs=“http://www.w3c.org/2001/XMLSchema” elementFormDefault=“qualified”>

after

<xs:schema xmlns:xs=“http://www.w3.org/2001/XMLSchema” elementFormDefault=“qualified”>