Hi Vincent
I am trying to convert JSPwiki pages to Xwiki pages.For that I used the code which is in
the link
http://extensions.xwiki.org/xwiki/bin/view/Extension/JSPWiki+To+XWiki+Conve…
After I fixed all jar issues in classpath then I ran the program, JspWikiImporter I got
the null pointer exception.
I saw people posted the same messages in this group. I don’t see the answers for this
matter. Do you have any update for the issue?
java.lang.NullPointerException
at com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:695)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:781)
at
com.xpn.xwiki.XWikiCompatibilityAspect.ajc$interFieldInit$com_xpn_xwiki_XWikiCompatibilityAspect$com_xpn_xwiki_XWiki$defaultReferenceEntityReferenceResolver(XWikiCompatibilityAspect.aj:87)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:6450)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:6441)
at JspWikiImporter.export(JspWikiImporter.java:72)
at JspWikiImporter.main(JspWikiImporter.java:62)
Exception in thread "main" java.lang.RuntimeException: Export failed
at JspWikiImporter.export(JspWikiImporter.java:99)
at JspWikiImporter.main(JspWikiImporter.java:62)
Caused by: java.lang.NullPointerException
at com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:695)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:781)
at
com.xpn.xwiki.XWikiCompatibilityAspect.ajc$interFieldInit$com_xpn_xwiki_XWikiCompatibilityAspect$com_xpn_xwiki_XWiki$defaultReferenceEntityReferenceResolver(XWikiCompatibilityAspect.aj:87)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:6450)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:6441)
at JspWikiImporter.export(JspWikiImporter.java:72)
... 1 more
Thanks
Ken Liang
Contractor
Unisys
Office: 571-468-2782