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

payment module creation error - class not found

Started by Pier39, May 03, 2012, 07:13:51 pm

Previous topic - Next topic

Pier39

Can someone please help me understand why I'm seeing this error when I try to create a new payment module?

I was able to put breakpoint and can see class loaded and debugger stops. Even after this I get class not found.  I followed the steps provided to create new module but don't see it listed in the admin due to error. Am I missing something?


Konkart Admin [date] WARN  (?:loadModules:?) Class com.konakartadmin.modules.payment.enterpayment1.Enterpayment1 not found but defi
ned in file:/C:/tomcat-7.0.25/webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties
com.konakart.app.KKException: The configuration at index 2 Enterpayment1 is null
        at com.konakartadmin.modules.Module.getKeys(Unknown Source)
        at com.konakartadmin.bl.AdminModulesMgr.loadModules(Unknown Source)
        at com.konakartadmin.bl.AdminModulesMgr.fetchModules(Unknown Source)
        at com.konakartadmin.bl.AdminModulesMgr.refreshConfigs(Unknown Source)
        at com.konakartadmin.bl.AdminModulesMgr.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.konakartadmin.bl.AdminMgrFactory.instantiateAdminModulesMgr(Unknown Source)
        at com.konakartadmin.bl.AdminMgrFactory.getAdminModulesMgr(Unknown Source)
        at com.konakartadmin.bl.KKAdminBase.getModulesMgr(Unknown Source)
        at com.konakartadmin.bl.KKAdmin.getModules(Unknown Source)
        at com.konakartadmin.server.KKAdminGWTServiceImpl.getModules(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1805)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)

ming

In the java code where you define your configuration variables...  probably in com.konakartadmin.modules.payment.enterpayment1.Enterpayment1.java

..you should have a line like this:

configs = new KKConfiguration[8];

Make sure you have the correct number of configurations defined for that array.


When you've completed your payment gateway it would be great if you could post the files to the contribution section of this forum for others in the Community.

Pier39

Thanks, that was the issue.

Our payment gateway is unique in the sense, we are not connecting directly to any PGs and we make use of already existing library API calls.