Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Feb 10, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant