Monday, 15 September 2014

Grails Hessian Issues -



Grails Hessian Issues -

we moving production environment customer's info centre. @ moment, purpose of explaining scenario, have apache load balancer load-balancing requests 2 apache tomcat application servers hosting 2 of our grails applications. i'd appreciate help!

to summarize, our setup is: - apache http server acting load balancer

2 tomcat servers (node , node b)

we have 2 java/grails applications beingness hosted on each of tomcat servers. on our current environment send hessian requests 1 of our grails applications grails application, via our load balancer. works perfectly. on environment we're migrating to, failing.

we've been able verify firewalls , security packages turned off. we've been able verify there error in load balancer access log everytime hessian phone call fails (/var/log/httpd/access_log) :

10.30.95.51 - - [19/jun/2014:11:55:13 -0400] "post /application/hessian/remoteticketservice http/1.1" 500 8067 "-" "java/1.6.0_30"

i went ahead , performed tcpdump , able determine there grails application error beingness returned hessian - have ideas?:

l6dàl6<83>¢http/1.1 500 internal server error^m date: fri, 20 jun 2014 14:40:08 gmt^m server: apache/2.2.15 (red hat)^m connection: close^m transfer-encoding: chunked^m content-type: text/html;charset=utf-8^m ^m 1f83^m grails runtime exception .message { border: 1px solid black; padding: 10px; background-color:#e9e9e9; margin: 30px; } .header{ margin: 30px; } .stack { border: 1px solid black; padding: 5px; overflow:auto; height: 300px; } .snippet { padding: 5px; background-color:white; border:1px solid black; margin:3px; font-family:courier; }

looks you've encountered error, sorry message: expected 'h'/'c' (hessian 2.0) or 'c' (hessian 1.0) in hessian input @ -1 caused by: hessian skeleton invocation failed; nested exception java.io.ioexception: expected 'h'/'c' (hessian 2.0) or 'c' (hessian 1.0) in hessian input @ -1 class: unknown at line: [-1] code snippet:

this turned out issue mod_jk module 1.2.39 on apache/2.2.15. swapped mod_jk module out version 1.2.37 , worked fine. using tcpdump , basic hessian java project, able confirm issue resolved setting "chunked post" false on our hessian factory. unfortunately, couldn't perform code alter in our project libraries/dependencies, obviously, worked out forwarding of chunked http requests broken in mod_jk 1.2.39. mod_jk 1.2.40 fixed bug , doesn't seen impact our environment in 1.2.37 either.

http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html

grails hessian

No comments:

Post a Comment