• Welcome to KonaKart Community Forum. Please login or sign up.
 

NullpointerException when Instantiating the kkAppEng

Started by Kim.Zeevaarders, June 07, 2011, 03:05:14 pm

Previous topic - Next topic

Kim.Zeevaarders

Hi,

I created a custom Struts project and configured it to work with the konakart api's (added the jars, copied the property files, etc.).

So far so good.

I also copied the BaseAction from the kkeclips project in my own project and extended my action classes from this superclass.

But when I try to instantiate a KKAppEng object using BaseAction.getKkAppEng (in my action) I get the following:

java.lang.NullPointerException
   at com.konakart.al.KKAppEng.getEngConfCopy(Unknown Source)
   at com.konakart.al.KKAppEng.getAServerEngineInstance(Unknown Source)
   at com.konakart.al.KKAppEng.init(Unknown Source)
   at com.konakart.al.KKAppEng.<init>(Unknown Source)
   at ou.test.actions.BaseAction.getKKAppEng(BaseAction.java:97)
   at ou.test.actions.OverviewAction.execute(OverviewAction.java:21)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

It seems that the EngineConfig is null. What am I missing here. Do I need to instantiate this object also and then instantiate the KKAppEng with this engconfig as a constructor parameter?

I'd like to know how one must instantiate the Konakart enviroment properly if not using the standard eclips project. Or maybe you guys can point out where to find information about this in the user guide?

TIA!

Regards,

Kim