Ideal Payment module TemplateProcessingException / NullPoint
Posted: Fri Dec 14, 2012 7:37 am
I created a payment module based on the Paypal module. It makes use of the Ideal payment sites offered by all the Dutch (and some other European) banks. The banksite always returns to a single
URL address (whether the payment was successful or not). The success decision is made by a call to the bank API checking the status of the transaction. If the status is successful all works fine.
However if something went wrong Transaction-success will be set to false, followed by a null pointer exception processing the layout/checkoutLayout. Since there are no line numbers or other explanation
I am left in the dark with this exception.
http://localhost:8080/ideal/process?trx ... 84952D7B9A
setting TransactionSuccess to false:
URL address (whether the payment was successful or not). The success decision is made by a call to the bank API checking the status of the transaction. If the status is successful all works fine.
However if something went wrong Transaction-success will be set to false, followed by a null pointer exception processing the layout/checkoutLayout. Since there are no line numbers or other explanation
I am left in the dark with this exception.
- [TRACE] 12:32:07 HeadProcessor - [THYMELEAF][9][layout/checkoutLayout] Processing element "blc:head"
[TRACE] 12:32:07 PriceTextDisplayProcessor - [THYMELEAF][9][layout/checkoutLayout] Processing attribute "blc:price" with value "${cart.subTotal}" in element "td"
[TRACE] 12:32:07 PriceTextDisplayProcessor - [THYMELEAF][9][layout/checkoutLayout] Processing attribute "blc:price" with value "${cart.totalTax}" in element "td"
[TRACE] 12:32:07 PriceTextDisplayProcessor - [THYMELEAF][9][layout/checkoutLayout] Processing attribute "blc:price" with value "${cart.totalShipping}" in element "td"
[TRACE] 12:32:07 PriceTextDisplayProcessor - [THYMELEAF][9][layout/checkoutLayout] Processing attribute "blc:price" with value "${cart.total}" in element "div"
[TRACE] 12:32:07 PriceTextDisplayProcessor - [THYMELEAF][9][layout/checkoutLayout] Processing attribute "blc:price" with value "*{price}" in element "td"
[TRACE] 12:32:07 PriceTextDisplayProcessor - [THYMELEAF][9][layout/checkoutLayout] Processing attribute "blc:price" with value "*{price.multiply(quantity)}" in element "td"
[ERROR] 12:32:07 TemplateEngine - [THYMELEAF][9] Exception processing template "layout/checkoutLayout": null
[TRACE] 12:32:07 MergeXmlWebApplicationContext - Publishing event in Root WebApplicationContext: ServletRequestHandledEvent: url=[/ideal/process]; client=[127.0.0.1]; method=[GET]; servlet=[bvb]; session=[1hmfkkl4ydhu51c7jk7icvnflt]; user=[null]; time=[858ms]; status=[failed: org.thymeleaf.exceptions.TemplateProcessingException: Exception processing template (layout/checkoutLayout)]
2012-12-14 12:32:07.820:WARN:oejs.ServletHandler:/ideal/process
org.thymeleaf.exceptions.TemplateProcessingException: Exception processing template (layout/checkoutLayout)
http://localhost:8080/ideal/process?trx ... 84952D7B9A
setting TransactionSuccess to false:
Code: Select all
responseItem.setTransactionSuccess(response.getTransaction().getStatus().equals("Success"));