Skip to Content
0
Former Member
Aug 18, 2006 at 02:20 PM

UWL Exception

29 Views

Hi,

I am configuring UWL.

I am getting the following exception.

<b>Count=1Count=2com.sap.netweaver.bc.uwl.UWLException: Fri Aug 18 09:05:59 CDT 2006 Fri Aug 18 09:05:59 CDT 2006 (Default) Logged in users context or session doesn't exist</b>

My dynpage code is

public void doProcessBeforeOutput() throws PageException {Form myForm = this.getForm(); // get the form fromDynPage

try{

IUWLService uwlService ;

uwlService = (IUWLService) PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);

IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();

UWLContext uwlContext = new UWLContext();

myForm.addText( "Count=1");

IUser user = request.getUser();

uwlContext.setUser(user);

IUWLViewManager viewManager = uwlService.getViewManager(uwlContext);

IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);

myForm.addText( "Count=2");

(Upto the above statement its working fine.

<b>Having problem with the below statement.</b>

<b>QueryResult result = itemManager.getItems(uwlContext,null,null);</b>

String count = String.valueOf(result.getTotalNumberOfItems());

myForm.addText( "Count=" + count);

}catch(Exception e){

myForm.addText(e.toString());

}

Urgent help in this regard is highly rewarded.