cancel
Showing results for 
Search instead for 
Did you mean: 

IllegalArgumentException: BaseSite should not be null

former_member628401
Participant
0 Kudos
385

Hi Experts ,

I'm getting this exception in production as below :

B2BLogoutCartValidationEvaluator is called twice together, and they are in different threads.
Besides, the session is visited again soon after its close/activation/deactivation happens in the second thread.
It seems the second thread has some logical problem, maybe B2BLogoutCartValidationEvaluator (or its caller) should not be triggered, maybe the following action on session should not happen, etc.

INFO | jvm 1 | main | 2019/09/08 21:37:45.679 | [33mWARN [ajp-nio-8010-exec-24] [10.18.130.110] [B2BLogoutCartValidationEvaluator] Warining PopUp Needs to be displayed
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | [m [33mWARN [ajp-nio-8010-exec-14] [10.18.130.110] [B2BLogoutCartValidationEvaluator] Warining PopUp Needs to be displayed
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | [m [33mWARN [ajp-nio-8010-exec-14] [10.18.130.110] [JaloSession] There are some active local session contexts left (2) for tenant master, this might indicate there are not properly freed localsession context instances.
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | [m [1;31mERROR [ajp-nio-8010-exec-14] [10.18.130.110] [SapeHandlerExceptionResolver] ERR_RUNTIME_EXCEPTION_SEV1-Runtime exception occurred - IllegalArgumentException
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | [m java.lang.IllegalArgumentException: BaseSite should not be null
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at org.springframework.util.Assert.notNull(Assert.java:134) ~[spring-core-4.3.21.RELEASE.jar:4.3.21.RELEASE]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at de.hybris.platform.acceleratorservices.config.impl.DefaultSiteConfigService.getProperty(DefaultSiteConfigService.java:71) ~[acceleratorservicesserver.jar:?]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at com.shire.order.populator.B2BAddressPopulator.lambda$0(B2BAddressPopulator.java:172) ~[shirecheckoutserver.jar:?]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) ~[?:1.8.0_202]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_202]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_202]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_202]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_202]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_202]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_202]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_202]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at com.shire.order.populator.B2BAddressPopulator.setOwnerDetails(B2BAddressPopulator.java:173) ~[shirecheckoutserver.jar:?]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at com.shire.order.populator.B2BAddressPopulator.populate(B2BAddressPopulator.java:65) ~[shirecheckoutserver.jar:?]
INFO | jvm 1 | main | 2019/09/08 21:37:45.780 | at de.hybris.platform.commercefacades.user.converters.populator.AddressPopulator.populate(AddressPopulator.java:1)

We further checked logs in lower environments and found that B2BLogoutCartValidationEvaluator is triggered only once each time in STAGE, and no relevant logs found in QA and DEV.

Accepted Solutions (0)

Answers (0)