on 05-23-2011 1:06 PM
Hi, All
I call the ChangeProductionServiceInterface.changeProduction() in an customized web service . recently the changeProduction() method throws NullPointerException as following.
===============================
java.lang.NullPointerException: while trying to invoke the method java.util.Map.keySet() of an object loaded from local variable 'props'
at com.sap.me.globalization.GlobalizationServiceProvider.retrieveUserContext(GlobalizationServiceProvider.java:29)
at com.visiprise.globalization.impl.DefaultGlobalizationServiceProvider.getUserService(DefaultGlobalizationServiceProvider.java:264)
at com.visiprise.globalization.GlobalizationService.getUserService(GlobalizationService.java:141)
at com.sap.me.production.ChangeProductionSOBean.validateItem(ChangeProductionSOBean.java:1411)
at com.sap.me.production.ChangeProductionSOBean.validateChangeProduction(ChangeProductionSOBean.java:119)
===============================
it sames that [GlobalizationService.getUserService("com.sap.me.globalization.LocaleSpecificTextResourcesGlobalizationService") ] throws that Exception.
how can I resolve the prolem.
thanks
Hello,
In general, it looks like a bug in the ME code and I recommend that you submit a ticket (please attach this response to the ticket if you submit).
As far as workaround for now: this defect shows up when trace mode is set to DEBUGGING (me trace level is setup with ME admin page). Try elevating the mode to something less verbose .
If you need a workaround to make it work even with the DEBUG mode enabled, I can give you a couple of approaches but those will require a code change on your side.
Thanks,
Mikhail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.