• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 07, 2025, 08:50:29 am

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - vaibhav1407

1
Hi,
While getting the payment gateway for the order, I am getting the number format exception. The code that i am calling is given below

paymentDetail = getEComEngine().getPaymentGateway(order, orderType,
getLanguageID());


Here order is my order, order type is payment gateway code and getLanguageId returns default language ID.

Below if the exception


2011-02-28 19:03:54,311 INFO  [KKEComContextManager] Logged out customer with session id fa4488031a64b371c8a99a5572d45f42 on KonaKart Engine
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.rmi.RemoteException: java.lang.NumberFormatException: null; nested exception is:
java.lang.NumberFormatException: null
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:STPLserver

java.rmi.RemoteException: java.lang.NumberFormatException: null; nested exception is:
java.lang.NumberFormatException: null
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at konakart.client.ws.KKWebServiceEngSoapBindingStub.getPaymentGateway(KKWebServiceEngSoapBindingStub.java:8596)
at com.stpl.pats.ws.manager.OrderManager.applyPaymentDetails(OrderManager.java:724)
at com.stpl.pats.ws.manager.OrderManager.createAndSaveOrderInternal(OrderManager.java:623)
at com.stpl.pats.ws.manager.OrderManager.createAndSaveOrder(OrderManager.java:469)
at com.stpl.pats.ws.ecom.crt.impl.OrderEComWSImpl.createAndSaveOrder(OrderEComWSImpl.java:113)
at com.stpl.pats.dao.crt.hibernate.OrderDaoImpl.createOrder(OrderDaoImpl.java:119)
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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy126.createOrder(Unknown Source)
at com.stpl.pats.service.crt.impl.StandardOrderService.createOrder(StandardOrderService.java:83)
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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.postRunTheFilter(ServiceFilter.java:39)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.invoke(ServiceFilter.java:31)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.postRunTheFilter(ServiceFilter.java:39)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.invoke(ServiceFilter.java:31)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.postRunTheFilter(ServiceFilter.java:39)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.invoke(ServiceFilter.java:31)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.preRunTheFilter(ServiceFilter.java:63)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.invoke(ServiceFilter.java:27)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.postRunTheFilter(ServiceFilter.java:39)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.invoke(ServiceFilter.java:31)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.postRunTheFilter(ServiceFilter.java:39)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.invoke(ServiceFilter.java:31)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.preRunTheFilter(ServiceFilter.java:63)
at com.stpl.pats.commons.bl.servicefilter.ServiceFilter.invoke(ServiceFilter.java:27)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy137.createOrder(Unknown Source)
at com.stpl.pats.facade.OrderFacade.createOrder(OrderFacade.java:44)
at com.stpl.pats.facade.OrderFacade$$FastClassByCGLIB$$2776df0e.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.stpl.pats.commons.bl.servicefilter.ServiceContextManagerFilter.invoke(ServiceContextManagerFilter.java:27)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.osaf.cosmo.hibernate.ThrowAwayHibernateSessionOnErrorInterceptor.invoke(ThrowAwayHibernateSessionOnErrorInterceptor.java:46)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.stpl.pats.facade.OrderFacade$$EnhancerByCGLIB$$6c58477c.createOrder(<generated>)
at com.stpl.pats.ui.ticketorder.provider.TicketOrderProvider.createOrder(TicketOrderProvider.java:253)
at com.stpl.pats.ui.registration.controller.web.WebAttendeeRegistrationFormController.onSubmit(WebAttendeeRegistrationFormController.java:75)
at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
at com.stpl.pats.ui.BaseFormController.processFormSubmission(BaseFormController.java:50)
at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at org.osaf.cosmo.ui.DispatcherServlet.service(DispatcherServlet.java:44)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.osaf.cosmo.filters.UsernameRequestIntegrationFilter.doFilter(UsernameRequestIntegrationFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.osaf.cosmo.log.HttpLoggingFilter.doFilter(HttpLoggingFilter.java:136)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:87)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:229)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:174)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.stpl.pats.filters.WarningContextClearingFilter.doFilter(WarningContextClearingFilter.java:50)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.osaf.cosmo.ui.VersionHeaderFilter.doFilter(VersionHeaderFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.osaf.cosmo.filters.HttpOverrideFilter.doFilter(HttpOverrideFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.stpl.pats.commons.visitorcontext.filter.HttpSessionVisitorContextIntegrationFilter.doFilterHttp(HttpSessionVisitorContextIntegrationFilter.java:126)
at com.stpl.pats.commons.visitorcontext.filter.HttpSessionVisitorContextIntegrationFilter.doFilter(HttpSessionVisitorContextIntegrationFilter.java:76)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.stpl.pats.commons.metadata.filter.MetaDataIntegrationFilter.doFilterHttp(MetaDataIntegrationFilter.java:127)
at com.stpl.pats.commons.metadata.filter.MetaDataIntegrationFilter.doFilter(MetaDataIntegrationFilter.java:58)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.stpl.pats.filters.HttpSessionEComContextIntegrationFilter.doFilterHttp(HttpSessionEComContextIntegrationFilter.java:163)
at com.stpl.pats.filters.HttpSessionEComContextIntegrationFilter.doFilter(HttpSessionEComContextIntegrationFilter.java:103)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)


What can be the problem. Please help me out
2
Isn't there any built in feature in konakart. Otherwise i need to set distract quantity from product, make the update call and if exception occur re-add the quantity and add update he product again.

If i need to follow on this approach what is the best practice to do this
3
HI,

In one of my application, I need a scenario in which I have to lock the product while the customer is making the payment and filling some kind of forms that application shows him to fill up. Scenario is like this:


  • There is one product P1 with 20 quantity in inventory

  • The customer makes the order of 5 quantity of the product.

  • He will be shown the form to fill up. There I need to show him some form of the timer during which the 5 quantity of the products will be blocked . Now if simultaneously another customer comes he should see the 15 products more . (As 5 are blocking for the customer)

  • If the time period exceeds or there is some error in filling the form , the products should be released for the sale.

  • If filling is complete, customer goes to payment gateway, if payment is success, the product is deliver to him otherwise the products quantity is released for the sale.



My question is how to manage this block and unblock of the product for some duration. Is there any feature in the KonaKart which I can invoke using KonaKart web service or is there any best practice to do this?

Thank You

Regards,
Vaibhav Saxena
4
Konakart admin application also provides the service in its app lib to add the products to the promotion

1. Create the products first

2. create the promotion

3. Add products to the promotion

adminEng.addProductsToPromotion(adminSessionID, allproductstoadd, promotionId, rule)

adminsessionid - ID of the admin session
allproductstoadd = all admin products that you want to add to the promotion include list  (Thsi is array) for more information see http://www.konakart.com/javadoc/admin/
promotionId = promotion id
rule- Rule 1 == Include -1 = Exclude 0 = all
5
HI,
Well i am trying to add the product in the basket, saving it and then trying to rerive back. On save of basket, basket item save in teh database but when i retrieve the basket per customer, no basket items comes as well the basket item from db is also removed. Below is my code snipplet


//initialize the konakart end services and login to the konakart. See below the implement
initKona();

//get the product
Product product = getKkwsEngIf().getProduct(getSessionID(),Integer.valueOf(getEventFromSession(request, response).getTicketID()).intValue(), -1);

// create the basket
Basket basket=new Basket();
basket.setProduct(product);
basket.setProductId(product.getId());

//set quantity from the product custom attr which i have setted previously
if(product.getCustom1()!=null)
   basket.setQuantity(Integer.valueOf(product.getCustom1()).intValue());

//set quantity   
basket.setQuantityInStock(product.getQuantity());

//add basket. after this, the basket get reflected in db
int addToBasket = getKkwsEngIf().addToBasket(getSessionID(), 1, basket);


// get the basket items here. After this the basket items get removed from db. Also the basket items are //not coming
Basket[] basketItemsPerCustomer = getKkwsEngIf().getBasketItemsPerCustomer(getSessionID(), 1, -1);



//initkona implementation
if (kkwsAdmin == null) {
   KKWSAdminIfServiceLocator kkwsAdminIfServiceLocator = new KKWSAdminIfServiceLocator();
   kkwsAdmin = kkwsAdminIfServiceLocator.getKKWSAdmin();
}
         
if(kkwsEngIf == null){
   KKWSEngIfServiceLocator kkwsEngIfServiceLocator=new KKWSEngIfServiceLocator();
   kkwsEngIf=kkwsEngIfServiceLocator.getKKWebServiceEng();
}

sessionID = kkwsAdmin.login("admin@konakart.com", "princess");   



I am using the SOAP to perform all these operation. Please help..

Regards,
Vaibhav         
6
I solve the issue by executing the ant of konakart to enable the SOAP service. I forget this that from the latest version konakart SOAP services by default remains disabled.

Thank You
7
Hi Experts,
I am integrating the konakart to one of my application (build in Spring as backend)  using the SOAP API of the Konakart. I need to show the payment gateway page to the customer on checkout and when the payment succeeded or fails retuen to the url provided with details of payment. please help me as i am not understood how to do it using SOAP API.


Regards,
Vaibhav
8
Well i solve this issue by setting one page check out from the admin panel -> configuration - > Store Configuration.

I have another issue in calling the admin services from SOAP call. I am executing the following code


KKWSAdminIfServiceLocator kkwsAdminIfServiceLocator = new KKWSAdminIfServiceLocator();
      try {
         
         KKWSAdminIf kkwsAdmin = kkwsAdminIfServiceLocator.getKKWSAdmin();
         
         kkwsAdmin.insertProduct("session", new AdminProduct());
         
      } catch (ServiceException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      } catch (RemoteException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }


I am getting the exception


AxisFault
faultCode: {http://xml.apache.org/axis/}Client
faultSubcode:
faultString: No such operation 'insertProduct'
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}hostname:stdel008

No such operation 'insertProduct'
   at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
   at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
   at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(Unknown Source)
   at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
   at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at com.konakartadmin.ws.KKWSAdminSoapBindingStub.insertProduct(KKWSAdminSoapBindingStub.java:8546)
   at com.stpl.ticketpurchase.Test.main(Test.java:22)


Please help...

Thank You

Regards,
Vaibhav
9
Hi,
I want to create the tag from the admin application but when i try to create he tag it is giving me the following exception

/*-------------------------------------------------*/

(java.lang.NullPointerException) - null


Exception Stack Trace =
at com.konakartadmin.bl.AdminTagMgr.getTags(Unknown Source)
at com.konakartadmin.bl.KKAdmin.getTags(Unknown Source)
at com.konakartadmin.server.KKAdminGWTServiceImpl.getTags(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:585)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:595)

/*-------------------------------------------------*/

you can also see the attached document

Please help me out from this problem

Thank you
Regards,
Vaibhav Saxena
10
Thanks trevor,
Nice to see your reply.We are using Spring as the back-end in the application that we are developing. Well we are deciding to integrate it using the soap calls having the konakart in the same tomcat server but on different port instead. From there i will use the admin soap jar and client soap jar. Can we on successful input taken from the user like quantity etc, open the payment gateway interface using the soap service and provide a url which is redirected when successful payment is made by user and a error url if it fails?

Thank You
Regards,
Vaibhav
11
HI,
Well this is my first post to the KonaKart Forum thread and hope that i will got the best solution of the problem that i am facing.

I am integrating the konakart to one of my application where i need to sell some of the SMS plans and some of the products too. I want to leverage the full flows of the konakart. What I want that if user click on buy sms plans, application redirect him to the konakart server and display the products list. Now when the user pay for the product he comes back to the application again.

In this scenario I want.

1. If user click on say Buy..He redirect to konakart server, but he even dont knows that he is redirected to another server. All header and footer of the view is same.

2. If the user is log in the application, he do not need to log in again in konakart and the user information is also viewable in the header
3. in konakart i need to access the user data from the application.
4. when the user comes back to the application after the payment done, he is seeing himself log in.

Can anyone provide me the best practice to achieve this. Please help

Regards,
Vaibhav Saxena