Hello,
Why do i get the feeling that I'm not supossed to be receiving this kind of exception:
While placing with the appropriate headers:
I Receive Response:
Am I doing something wrong? Both my clientId and hash are correctly setup. My string encoding is right. I'm using python.
Cheers,
x
Why do i get the feeling that I'm not supossed to be receiving this kind of exception:
While placing with the appropriate headers:
Code:
<postBetOrder xmlns="urn:betfair:games:api:v1" round="2" marketId="37608130" currency="EUR"> <betPlace> <bidType>BACK</bidType> <price>2.28</price> <size>4</size> <selectionId>658439</selectionId> </betPlace> </postBetOrder>
I Receive Response:
Code:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="/rest/apiStylesheet.xsl" ?>
<error xmlns="urn:betfair:games:api:v1">
<errorCode>
EXCEPTION
</errorCode>
<credentialCheck>
LOGIN_SUCCESS
</credentialCheck>
<userStatus>
ACTIVE
</userStatus>
<errorDetails>
com.sportex.SportexException: java.lang.ClassCastException: com.sportex.gamex.api.commons.v1.impl.PostBetOrderImpl;
(Exception raised at address: mltgxw03.aws.is.qor.mt.betfair/10.70.10.97);
(Exception raised on date: Tue May 24 14:22:53 UTC 2011);
at com.sportex.gamex.api.ActionInvocationAOP.handleError(ActionInvocationAOP.java:53)
at com.sportex.gamex.api.ActionInvocationAOP.doBasicWrapping(ActionInvocationAOP.java:37)
at sun.reflect.GeneratedMethodAccessor186.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:576)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:562)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:60)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.bets.action.MultipleBetsManipulationAction$$EnhancerByCGLIB$$b176b077.execute(<generated>)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at com.sportex.gamex.api.struts.GamexActionServlet.process(GamexActionServlet.java:41)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sportex.gamex.api.common.LoginFilterX.doFilter(LoginFilterX.java:88)
at com.sportex.gamex.api.common.LoginFilterX$$FastClassByCGLIB$$330bf74a.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.common.LoginFilterX$$EnhancerByCGLIB$$4f834ad.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sportex.gamex.api.common.UserAgentTrackerFilter.doFilter(UserAgentTrackerFilter.java:63)
at com.sportex.gamex.api.common.UserAgentTrackerFilter$$FastClassByCGLIB$$10831449.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.common.UserAgentTrackerFilter$$EnhancerByCGLIB$$adf5af62.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sportex.gamex.api.common.AnonymousLoginFilter.doFilter(AnonymousLoginFilter.java:46)
at com.sportex.gamex.api.common.AnonymousLoginFilter$$FastClassByCGLIB$$f58431a7.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.common.AnonymousLoginFilter$$EnhancerByCGLIB$$b586c1ec.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sportex.gamex.api.common.CachingFilter.doFilter(CachingFilter.java:70)
at com.sportex.gamex.api.common.CachingFilter$$FastClassByCGLIB$$c2e0df64.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.common.CachingFilter$$EnhancerByCGLIB$$ff509c4b.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sportex.gamex.api.common.HttpsFilter.doFilter(HttpsFilter.java:45)
at com.sportex.gamex.api.common.HttpsFilter$$FastClassByCGLIB$$45fdd2d0.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.common.HttpsFilter$$EnhancerByCGLIB$$c3699cef.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sportex.gamex.api.common.VersionFilter.doFilter(VersionFilter.java:94)
at com.sportex.gamex.api.common.VersionFilter$$FastClassByCGLIB$$a81c11bd.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.common.VersionFilter$$EnhancerByCGLIB$$56dc05e.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sportex.gamex.api.common.TimingFilter.doFilter(TimingFilter.java:62)
at com.sportex.gamex.api.common.TimingFilter$$FastClassByCGLIB$$42bbeb75.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.common.TimingFilter$$EnhancerByCGLIB$$c7c96946.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sportex.gamex.api.common.InvocationContextFilter.doFilter(InvocationContextFilter.java:23)
at com.sportex.gamex.api.common.InvocationContextFilter$$FastClassByCGLIB$$8d901264.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.sportex.gamex.api.common.InvocationContextFilter$$EnhancerByCGLIB$$71708d4b.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at uk.co.exemel.watchdog.agent.timers.TopLevelFilterTimer.doFilter(TopLevelFilterTimer.java:63)
at uk.co.exemel.watchdog.agent.timers.TopLevelFilterTimer$$FastClassByCGLIB$$75101d86.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at uk.co.exemel.watchdog.spring2.TimerInterceptor.invokeUnderTrace(TimerInterceptor.java:51)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at uk.co.exemel.watchdog.agent.timers.TopLevelFilterTimer$$EnhancerByCGLIB$$66585841.doFilter(<generated>)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: com.sportex.gamex.api.commons.v1.impl.PostBetOrderImpl
at com.sportex.gamex.api.bets.action.MultipleBetsManipulationAction.exec(MultipleBetsManipulationAction.java:36)
at com.sportex.gamex.api.GamexAction.execute(GamexAction.java:76)
at com.sportex.gamex.api.GamexAction$$FastClassByCGLIB$$32e6804c.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:76)
at com.sportex.gamex.api.ActionInvocationAOP.doBasicWrapping(ActionInvocationAOP.java:29)
... 152 more
Cheers,
x

