cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Null pointer exception during initialization

Former Member
0 Kudos

Getting Null pointer exception during initialization and update system. After importing all core data, the event does not get published and sample data does not import also. Any one can help with this issue?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi we got the same issue and struggling to understand what's going on with ant initialize

 [java] WARN  [main] [AbstractSystemSetup] Missing setup parameter for key [syncProducts&ContentCatalogs], falling back to defined default [false]
  [java] INFO  [main] [Initialization] Error creating sample data for peginitialdata. See console output.
  [java] ERROR [main] [Initialization] java.lang.NullPointerException
  [java] INFO  [main] [Initialization] Creating project data for catalogssync ...
  [java] INFO  [main] [Initialization] Creating project data for pegfacades ...
  [java] INFO  [main] [Initialization] Creating project data for ycommercewebservices ...


Initialization class is embedded in coreserver.jar but doesn't log anything useful

Former Member
0 Kudos

what version do you use? And which extensions (recipe?) have you installed?

Former Member
0 Kudos

Hybris 6.2.0.2, recipe sap_aom_som_b2b_b2c

Please note that impex have been taken from apparel-uk and customized, but a NPE is pretty strange. Any way to debug that part? Which bean could we override?

Former Member
0 Kudos

The addonsupport extension is being used by addons to install additional data. This might be triggered during an event in InitialDataSystemSetup or your peginitialdata extension. The addonsupport throws a NPE when there's a product catalog without a suffix "ProductCatalog" and when there are content catalogs without the suffix "ContentCatalog". You might have chosen a different naming convention.

This does however not clarify why you don't get more information in the log.

Former Member
0 Kudos

the LOG.error(var8) means that only the exception.getMessage is printed out. Any way to extend the Initialization class?

Former Member
0 Kudos

Same error we are getting in 6.2.0.0, is any one found something to resolve this?

Former Member
0 Kudos

do you have a customized InitialDataSystemSetup? if I remember correctly we fixed it by double checking the way the InitialDataSystemSetup was invoked, and the NPE was given by an improperly generate productCatalog name

Former Member
0 Kudos

Hi Nicole, I am still getting this error in 6.3 version.

Kindly help asap.

Regards

Former Member
0 Kudos

hi Labanya, can you provide the error message? Otherwise its hard help you. A Hybris version number, and the items you are installing would help as well. You should be able to trace the where the import is failing, either through the console or through the HAC.