Mail Archive Home | exoplatform List | August 2006 Index
Backup problem
- Subject: Backup problem
- From: Gabriela Chiribau <gabriela@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 Aug 2006 17:21:02 -0500
- Disposition-notification-to: Gabriela Chiribau <gabriela@halcyonsolutions.biz>
Hi,
I added the forums portlet to my application and then tried a backup...
I got this error...
java.lang.NullPointerException
at
org.exoplatform.portlets.backup.component.ZipFilePageList.<init>(ZipFilePageList.java:29)
at
org.exoplatform.portlets.backup.component.UIBackupData.refresh(UIBackupData.java:86)
at
org.exoplatform.portlets.backup.component.UIBackupData.setDirectory(UIBackupData.java:77)
at
org.exoplatform.portlets.backup.component.UIBackupServiceData.<init>(UIBackupServiceData.java:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.exoplatform.container.ExoContainer.createComponent(ExoContainer.java:129)
at
org.exoplatform.container.ExoContainer.createComponent(ExoContainer.java:107)
at
org.exoplatform.faces.UIComponentFactory.createComponent(UIComponentFactory.java:84)
at
org.exoplatform.faces.core.component.UIExoComponentBase.addChild(UIExoComponentBase.java:160)
at
org.exoplatform.portlets.backup.component.UIBackupPortlet.<init>(UIBackupPortlet.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
Fixed this code in
projects/v2.x/exo-portal/portlets/admin/src/java/org/exoplatform/portlets/backup/component/ZipFilePageList
on line 29:
this.setAvailablePage( files==null?0:files.length);
It adds just a bit of robustness to protect against the null pointer...
Please let me know if it is ok to commit the change...
Thank you,
Gabriela
begin:vcard
fn:Gabriela Chiribau
n:Chiribau;Gabriela
org:Halcyon Consulting LLC
adr:;;PO BOX 189;Pearland;TX;77588;US
email;internet:gabriela@xxxxxxxxxxxxxxxxxxxx
title:CEO
tel;work:916 705 5517
tel;fax:832 201 9852
tel;pager:keelath@xxxxxxxxx
tel;cell:916 705 5517
x-mozilla-html:FALSE
url:http://www.halcyon-solutions.com
version:2.1
end:vcard
- Backup problem,
Gabriela Chiribau
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.