Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010645Openbravo ERP01. General setuppublic2009-09-17 12:402009-10-06 10:53
arunkumar 
marvintm 
immediatecriticalhave not tried
closedfixed 
5
pi 
2.50MP6 
Core
No
0010645: Unable to setup the Initial client
While setting up the initial client in Pi context gives error - NullPointerException
    * Login as Openbravo/openbravo
    * Click on icon "user info" and select the role "System Administrator"
    * Go General Setup -> Client-> Initial client setup
    * Fill the client field : SampleClient
    * Fill the Client Username: SampleClientAdmin
    * Fill the currency. EUR
    * Unmark the flag Include accounting
    * Click OK

It shows java.lang.NullPointerException error. Please refer the screenshot.
No tags attached.
jpg Initialclientsetup.JPG (149,606) 2009-09-17 12:40
https://issues.openbravo.com/file_download.php?file_id=1760&type=bug
jpg
Issue History
2009-09-17 12:40arunkumarNew Issue
2009-09-17 12:40arunkumarAssigned To => rafaroda
2009-09-17 12:40arunkumarFile Added: Initialclientsetup.JPG
2009-09-17 14:13rafarodaNote Added: 0020142
2009-09-17 14:13rafarodaPrioritynormal => immediate
2009-09-17 14:13rafarodaSeveritymajor => critical
2009-09-17 14:13rafarodaStatusnew => acknowledged
2009-09-17 15:06rafarodaAssigned Torafaroda => marvintm
2009-09-17 15:06rafarodaStatusacknowledged => scheduled
2009-09-17 15:17hgbotCheckin
2009-09-17 15:17hgbotNote Added: 0020144
2009-09-17 15:17hgbotStatusscheduled => resolved
2009-09-17 15:17hgbotResolutionopen => fixed
2009-09-17 15:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c02eb5b9178453279cbe8f30dfa7a1c143c59ddc [^]
2009-09-17 15:22marvintmNote Added: 0020145
2009-09-17 17:52hgbotCheckin
2009-09-17 17:52hgbotNote Added: 0020150
2009-09-17 17:52hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/c02eb5b9178453279cbe8f30dfa7a1c143c59ddc [^] => http://code.openbravo.com/erp/devel/pi/rev/c517a8f39fc4eb7ff4d72d2d596fc345372e3a81 [^]
2009-09-18 08:47sureshbabuStatusresolved => closed
2009-09-18 08:47sureshbabuNote Added: 0020181
2009-09-18 08:47sureshbabuFixed in Version => 2.50MP6
2009-09-19 00:00anonymoussf_bug_id0 => 2861745
2009-09-29 14:12hgbotCheckin
2009-09-29 14:12hgbotNote Added: 0020481
2009-09-29 14:12hgbotStatusclosed => resolved
2009-09-29 14:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/c517a8f39fc4eb7ff4d72d2d596fc345372e3a81 [^] => http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/c02eb5b9178453279cbe8f30dfa7a1c143c59ddc [^]
2009-09-29 14:13hgbotCheckin
2009-09-29 14:13hgbotNote Added: 0020482
2009-09-29 14:13hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/c02eb5b9178453279cbe8f30dfa7a1c143c59ddc [^] => http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/c517a8f39fc4eb7ff4d72d2d596fc345372e3a81 [^]
2009-10-06 10:53psarobeStatusresolved => closed
2009-10-06 10:53psarobeNote Added: 0020738

Notes
(0020142)
rafaroda   
2009-09-17 14:13   
Seem to have been caused by https://code.openbravo.com/erp/devel/pi/rev/f011e8d56e91 [^]

I debugged it and fails when trying to execute

yourCompanyBigImage.setBindaryData(sys.getYourCompanyBigImage().getBindaryData());

inside

// Add images
      Client newClient = OBDal.getInstance().get(Client.class, AD_Client_ID);
      SystemInformation sys = OBDal.getInstance().get(SystemInformation.class, "0");
      Image yourCompanyBigImage = OBProvider.getInstance().get(Image.class);
      yourCompanyBigImage.setBindaryData(sys.getYourCompanyBigImage().getBindaryData());
      yourCompanyBigImage.setName(sys.getYourCompanyBigImage().getName());
      newClient.getClientInformationList().get(0).setYourCompanyBigImage(yourCompanyBigImage);
(0020144)
hgbot   
2009-09-17 15:17   
Repository: erp/devel/pi
Changeset: c02eb5b9178453279cbe8f30dfa7a1c143c59ddc
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Sep 17 15:17:19 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c02eb5b9178453279cbe8f30dfa7a1c143c59ddc [^]

Fixed issue 10645. Improved the InitialClientSetup and InitialOrganizationSetup so that they don't fail if logo images weren't correctly loaded to SystemInfo table.

---
M src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java
M src/org/openbravo/erpCommon/ad_forms/InitialOrgSetup.java
---
(0020145)
marvintm   
2009-09-17 15:22   
With the change, neither Initial Client Setup nor Initial Org Setup should fail when images weren't loaded in the system. However, images _should_ be loaded into the System.
(0020150)
hgbot   
2009-09-17 17:52   
Repository: erp/devel/pi
Changeset: c517a8f39fc4eb7ff4d72d2d596fc345372e3a81
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Sep 17 15:27:32 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c517a8f39fc4eb7ff4d72d2d596fc345372e3a81 [^]

Small mistake in fix of issue 10645.

---
M src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java
---
(0020181)
sureshbabu   
2009-09-18 08:47   
Tested able to create a new client
(0020481)
hgbot   
2009-09-29 14:12   
Repository: erp/devel/pi-pageddatagrid
Changeset: c02eb5b9178453279cbe8f30dfa7a1c143c59ddc
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Sep 17 15:17:19 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/c02eb5b9178453279cbe8f30dfa7a1c143c59ddc [^]

Fixed issue 10645. Improved the InitialClientSetup and InitialOrganizationSetup so that they don't fail if logo images weren't correctly loaded to SystemInfo table.

---
M src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java
M src/org/openbravo/erpCommon/ad_forms/InitialOrgSetup.java
---
(0020482)
hgbot   
2009-09-29 14:13   
Repository: erp/devel/pi-pageddatagrid
Changeset: c517a8f39fc4eb7ff4d72d2d596fc345372e3a81
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Sep 17 15:27:32 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/c517a8f39fc4eb7ff4d72d2d596fc345372e3a81 [^]

Small mistake in fix of issue 10645.

---
M src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java
---
(0020738)
psarobe   
2009-10-06 10:53   
Closed again because hudson has reopened without no reason