Focal Point
[CLOSED] Null pointer exception in wfapi sample application

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5187053416

December 15, 2011, 10:27 AM
Dave02
[CLOSED] Null pointer exception in wfapi sample application
I've updated the webfocus_client_root in the web.xml:


webfocus_client_root
C:\ibi\DevStudio76\client\wfc



I'm getting the following error message from the test application when attempting to login. I have no idea what parameter it's having a problem with. Any help would be appreciated.

java.lang.NullPointerException
at com.ibi.common.ApplicationValues.getIBIInitParameter(ApplicationValues.java:176)
at ibi.webfoc.wfutil.WFVariableValidation.init(WFVariableValidation.java:57)
at ibi.webfoc.wfutil.WFVariableValidation.validate(WFVariableValidation.java:96)
at ibi.webfoc.WFRequestWorker.setWFVarsfromQuery(WFRequestWorker.java:1254)
at ibi.webfoc.WFRequestWorker.preInitializeContext(WFRequestWorker.java:505)
at ibi.webfoc.WFRequestWorker.processRequest(WFRequestWorker.java:557)
at ibi.webfoc.WFRequestWorker.processRequest(WFRequestWorker.java:528)
at ibi.webfoc.WFWorkerUtil.processRequest(WFWorkerUtil.java:414)
at ibi.webfoc.WFWorkerUtil.processRequest(WFWorkerUtil.java:332)
at com.ibi.ajs.wfapi.samples.WfApiRequestHandler.execute(WfApiRequestHandler.java:73)
at com.ibi.ajs.wfapi.samples.WfApiRequestHandler.webFocusLogOn(WfApiRequestHandler.java:137)
at com.ibi.ajs.wfapi.LoginAction.execute(LoginAction.java:62)
at com.ibi.ajs.wfapi.ApplController.doRequest(ApplController.java:88)
at com.ibi.ajs.wfapi.ApplController.doPost(ApplController.java:50)
... trimmed ...

Thanks,
Dave

This message has been edited. Last edited by: Kerry,


WebFocus 7.6.11 on Linux for X64 (Intel, AMD) 64 bit - Licensed Cores: 4
HTML, PDF, CSV
December 20, 2011, 03:27 PM
Kerry
Hi Dave,

Suggestions from our technicals: Please check the jar file. The WFAPI.jar file is distributed in the folder:
\install\ibi\WebFOCUS76\samples\webapps\wfapi\WEB-INF\lib\
Try adding it to the classpath. If that doesn’t work, then please open a case for assistance. You may either call at 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.