google-sites-liberation icon indicating copy to clipboard operation
google-sites-liberation copied to clipboard

Crash with NullPointerException in Linux and silent hang in Win7

Open GoogleCodeExporter opened this issue 9 years ago • 4 comments

What steps will reproduce the problem?
1. Attempt to export data from a site
2. use command `java -cp $SCRIPT_DIR/google-sites-liberation-1.0.1.jar 
com.google.sites.liberation.export.Main -d domain.com -f $BACKUP_DIR -u 
login -p passwd -r -w site-name` in a shell script

What is the expected output? What do you see instead?
The contents of our site in $BACKUP_DIR

Exception in thread "main" java.lang.NullPointerException
        at com.google.gdata.util.common.base.Preconditions.checkNotNull(Preconditions.java:187)
        at com.google.sites.liberation.util.XmlElement.addText(XmlElement.java:76)
        at com.google.sites.liberation.export.HistoryExporterImpl.exportHistory(HistoryExporterImpl.java:77)
        at com.google.sites.liberation.export.RevisionsExporterImpl.exportRevisions(RevisionsExporterImpl.java:100)
        at com.google.sites.liberation.export.SiteExporterImpl.exportSite(SiteExporterImpl.java:133)
        at com.google.sites.liberation.export.Main.doMain(Main.java:81)
        at com.google.sites.liberation.export.Main.main(Main.java:97)


What version of the product are you using? On what operating system?
Google Sites Liberation 1.0.1
Ubuntu Linux - Feisty
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

Please provide any additional information below.
This tool works on two of our three sites.
On the third site it fails with the above error.
Attempting to pull the site from the GUI in Win7 hangs without any error 
message.

Original issue reported on code.google.com by [email protected] on 2 Dec 2009 at 8:16

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Attempting without revision history '-r' makes it a bit further but then 
crashes 
again with a null pointer exception.

Exception in thread "main" java.lang.NullPointerException: text
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:203)
        at 
com.google.sites.liberation.renderers.RendererUtils.getHyperLink(RendererUtils.j
ava:1
40)
        at 
com.google.sites.liberation.renderers.RendererUtils.getAuthorElement(RendererUti
ls.ja
va:71)
        at 
com.google.sites.liberation.renderers.AttachmentsRendererImpl.renderAttachments(
Attac
hmentsRendererImpl.java:54)
        at 
com.google.sites.liberation.export.PageExporterImpl.exportPage(PageExporterImpl.
java:
177)
        at 
com.google.sites.liberation.export.SiteExporterImpl.exportPage(SiteExporterImpl.
java:
158)
        at 
com.google.sites.liberation.export.SiteExporterImpl.exportSite(SiteExporterImpl.
java:
131)
        at com.google.sites.liberation.export.Main.doMain(Main.java:81)
        at com.google.sites.liberation.export.Main.main(Main.java:97)

Original comment by [email protected] on 2 Dec 2009 at 8:20

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Original comment by [email protected] on 6 Jan 2010 at 4:42

  • Changed state: Accepted

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

in comment 1, you get the same problem as reported in issue 32.

Original comment by [email protected] on 29 Apr 2010 at 9:49

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

I'll check through our site to see if there's any unknown author entries and 
get back 
to you.

Original comment by [email protected] on 29 Apr 2010 at 10:36

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter