natasupport / google-sites-liberation

Automatically exported from code.google.com/p/google-sites-liberation
0 stars 0 forks source link

Crash with NullPointerException in Linux and silent hang in Win7 #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 cskratti...@gmail.com on 2 Dec 2009 at 8:16

GoogleCodeExporter commented 8 years ago
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 cskratti...@gmail.com on 2 Dec 2009 at 8:20

GoogleCodeExporter commented 8 years ago

Original comment by gk5...@kickstyle.net on 6 Jan 2010 at 4:42

GoogleCodeExporter commented 8 years ago
in comment 1, you get the same problem as reported in issue 32.

Original comment by joseluis...@gmail.com on 29 Apr 2010 at 9:49

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

Original comment by cskratti...@gmail.com on 29 Apr 2010 at 10:36