[Cyclos 3.7.2] Posweb application error

Bug and problem reporting

Moderators: hugo, alexandre, rmvanarkel

Post Reply
mraxai
Posts: 18
Joined: Mon Aug 01, 2011 2:28 pm

[Cyclos 3.7.2] Posweb application error

Post by mraxai »

Hi Hugo, hi all,

we've discovered something strange that happens in the posweb interface.
Indeed if, while choosing between different transfer types, a user goes back to the 1st option (Select transfer type) the application throws the following error and it also display parts of the homepage jsps into the error screen along with the back button. If the user presses the Back button, it is redirected to the homepage.

Hope the error log helps. Looking at the code we've thought it might be something with the receivePayment.js but whatever we've tried didn't solve the issue.
Hope we can help improving the quality of Cyclos

Here the Error log

Code: Select all

	/do/paymentCustomFields
Parameters	
columnWidth= 35%
typeId= Select the payment type
Java error details	
nl.strohalm.cyclos.utils.conversion.ConversionException: Cannot convert Select the payment type to java.lang.Long
at nl.strohalm.cyclos.utils.conversion.CoercionHelper.coerce(CoercionHelper.java:60)
at nl.strohalm.cyclos.utils.conversion.CoercionHelper.convert(CoercionHelper.java:242)
at nl.strohalm.cyclos.utils.conversion.CoercionHelper.coerce(CoercionHelper.java:56)
at nl.strohalm.cyclos.controls.accounts.transfertypes.PaymentCustomFieldsAjaxAction.resolveTransferType(PaymentCustomFieldsAjaxAction.java:100)
at nl.strohalm.cyclos.controls.accounts.transfertypes.PaymentCustomFieldsAjaxAction.executeAction(PaymentCustomFieldsAjaxAction.java:69)
at nl.strohalm.cyclos.controls.BaseAction.execute(BaseAction.java:192)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at nl.strohalm.cyclos.struts.CyclosRequestProcessor.doExecuteAction(CyclosRequestProcessor.java:459)
at nl.strohalm.cyclos.struts.CyclosRequestProcessor.executeAction(CyclosRequestProcessor.java:496)
at nl.strohalm.cyclos.struts.CyclosRequestProcessor.processActionPerform(CyclosRequestProcessor.java:256)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at nl.strohalm.cyclos.struts.CyclosRequestProcessor.process(CyclosRequestProcessor.java:144)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
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 nl.strohalm.cyclos.http.LoggedUserFilter.execute(LoggedUserFilter.java:117)
at nl.strohalm.cyclos.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at nl.strohalm.cyclos.http.RequestProcessingFilter.execute(RequestProcessingFilter.java:74)
at nl.strohalm.cyclos.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at nl.strohalm.cyclos.http.SanitizerFilter.execute(SanitizerFilter.java:66)
at nl.strohalm.cyclos.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
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.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:219)
at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:333)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:470)
at java.math.BigDecimal.<init>(BigDecimal.java:739)
at nl.strohalm.cyclos.utils.conversion.CoercionHelper.convert(CoercionHelper.java:148)
at nl.strohalm.cyclos.utils.conversion.CoercionHelper.coerce(CoercionHelper.java:56)
... 44 more
Along a screenshot
Attachments
screenshot_receivePayment.png
screenshot_receivePayment.png (58.8 KiB) Viewed 2275 times

admin
Site Admin
Posts: 1422
Joined: Mon Jan 24, 2005 10:31 am

Re: [Cyclos 3.7.2] Posweb application error

Post by admin »

Hi Guiseppe,

We made a configuration with various transaction types and custom payment fields but we cannot reproduce the error.
From the the error stack trace we can see that the problem lies with a custom payment field validation. Can you describe what types of payment custom fields you use and their settings? Any additional information will be welcome. The easiest would be if we can have a look at the database. If this is possible you can send it to info@cyclos.org. It would be good to reset all passwords first in the db.

We will investigate further.

mraxai
Posts: 18
Joined: Mon Aug 01, 2011 2:28 pm

Re: [Cyclos 3.7.2] Posweb application error

Post by mraxai »

Hi Hugo,

I'll be sending you the db in a sec or two. Mind that we didn't have any custom payment fields set. It was done on a clean db where we just have two members that have a Select Payment type option because they can perform both two transfer type.

Thanks for the prompt answer,
G

alexandre
Posts: 901
Joined: Wed Sep 06, 2006 9:06 am

Re: [Cyclos 3.7.2] Posweb application error

Post by alexandre »

Hi,

We found the error, the problem is with the the receivePayment.js file.
You can download a updated version of this file here: http://www.cyclos.org/downloads/receivePayment.zip

You will have to replace the file. It is located in the directory "tomcat/webapps/instancedir/pages/posweb".
Make sure to clear the browser cache.

Regards
Alexandre Caurrinhos
Cyclos development team.

mraxai
Posts: 18
Joined: Mon Aug 01, 2011 2:28 pm

Re: [Cyclos 3.7.2] Posweb application error - SOLVED

Post by mraxai »

Hi all,

thanks for the quick fix!

admin
Site Admin
Posts: 1422
Joined: Mon Jan 24, 2005 10:31 am

Re: [Cyclos 3.7.2] Posweb application error

Post by admin »

welcome..

Post Reply