[RESOLVIDO] Deseralizar Json + Vraptor + Extjs

Boa noite. Estou desenvolvendo uma tela de consulta de parceiros, utilizando extjs. Estou mandando para a view, apenas informações em pacote, e a ordenação no servidor.
Só que na hora de o Vraptor atribuir valores para os parametros do controller, esta apresentando um erro, acredito eu na deserealização do json que vem com os dados da ordenação:

Método do Controller:

	@Path("parceiros/consultaparceiro.json")
	public void consultaParceiro(String argumento, int start, int page,
			int limit, List<Ordenacao> sort) {

Classe Ordenação

public class Ordenacao {

	private String property;
	private String direction;

Chamada ajax mada no Formdata no console do desenvolvedor aparece:

argumento:
page:1
start:0
limit:25
sort:[{"property":"id","direction":"ASC"}]
ajax_request:true

O Erro no vraptor:

SEVERE: Servlet.service() for servlet [default] in context with path [/Cygnus] threw exception
br.com.caelum.vraptor.VRaptorException: Unable to find converter for br.com.cygnus.generic.utils.Ordenacao
	at br.com.caelum.vraptor.core.DefaultConverters.to(DefaultConverters.java:59)
	at br.com.caelum.vraptor.http.ognl.VRaptorConvertersAdapter.convert(VRaptorConvertersAdapter.java:59)
	at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.convert(OgnlParametersProvider.java:178)
	at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createList(OgnlParametersProvider.java:185)
	at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createSimpleParameter(OgnlParametersProvider.java:172)
	at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createRoot(OgnlParametersProvider.java:144)
	at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createParameter(OgnlParametersProvider.java:122)
	at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.getParametersFor(OgnlParametersProvider.java:85)
	at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.getParametersFor(ParametersInstantiatorInterceptor.java:105)
	at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.intercept(ParametersInstantiatorInterceptor.java:77)
	at br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:59)
	at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
	at br.com.cygnus.vraptor.interceptor.HibernateTransactionInterceptor.intercept(HibernateTransactionInterceptor.java:48)
	at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
	at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
	at br.com.cygnus.vraptor.interceptor.CheckLoginInterceptor.intercept(CheckLoginInterceptor.java:36)
	at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
	at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
	at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:56)
	at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
	at br.com.caelum.vraptor.interceptor.FlashInterceptor.intercept(FlashInterceptor.java:83)
	at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
	at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
	at br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor.intercept(ExceptionHandlerInterceptor.java:71)
	at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
	at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
	at br.com.caelum.vraptor.interceptor.InstantiateInterceptor.intercept(InstantiateInterceptor.java:48)
	at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
	at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
	at br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:69)
	at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
	at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
	at br.com.caelum.vraptor.core.EnhancedRequestExecution.execute(EnhancedRequestExecution.java:44)
	at br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:92)
	at br.com.caelum.vraptor.ioc.spring.SpringProvider.provideForRequest(SpringProvider.java:58)
	at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:89)
	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:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

pra funcionar assim os parâmetros deveriam ser:

"sort[0].property": "id",
"sort[0].direction":"ASC",

"sort[1].property": "name",
"sort[1].direction":"DESC",
...

[quote=Lucas Cavalcanti]pra funcionar assim os parâmetros deveriam ser:

"sort[0].property": "id",
"sort[0].direction":"ASC",

"sort[1].property": "name",
"sort[1].direction":"DESC",
...

[/quote]

Lucas, blz. vou ver se consigo fazer um override no envio das informações pelo Extjs.

Também estou com outro problema. coloquei a versão do vraptor vraptor-3.5.2-20130725.004258-7 do snapshot
e estou tentando utilizar Gson

e esta apresentando o seguinte erro:

[code]
Jul 26, 2013 12:48:41 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [default] in context with path [/Cygnus] threw exception
br.com.caelum.vraptor.InterceptionException: exception raised, check root cause for details: java.lang.Error: Unresolved compilation problems:
The import br.com.caelum.vraptor.serialization.xstream.Serializee cannot be resolved
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type

at br.com.caelum.vraptor.interceptor.ExecuteMethodInterceptor.intercept(ExecuteMethodInterceptor.java:96)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:61)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.intercept(ParametersInstantiatorInterceptor.java:96)
at br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:59)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:56)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.cygnus.vraptor.interceptor.HibernateTransactionInterceptor.intercept(HibernateTransactionInterceptor.java:48)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:56)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor.intercept(ExceptionHandlerInterceptor.java:67)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.FlashInterceptor.intercept(FlashInterceptor.java:83)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.InstantiateInterceptor.intercept(InstantiateInterceptor.java:48)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:69)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.EnhancedRequestExecution.execute(EnhancedRequestExecution.java:44)
at br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:91)
at br.com.caelum.vraptor.ioc.spring.SpringProvider.provideForRequest(SpringProvider.java:58)
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:88)
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:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.Error: Unresolved compilation problems:
The import br.com.caelum.vraptor.serialization.xstream.Serializee cannot be resolved
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type
Serializee cannot be resolved to a type

at br.com.caelum.vraptor.serialization.gson.GsonSerializer.<init>(GsonSerializer.java:35)
at br.com.caelum.vraptor.serialization.gson.GsonJSONSerialization.getSerializer(GsonJSONSerialization.java:77)
at br.com.caelum.vraptor.serialization.gson.GsonJSONSerialization.from(GsonJSONSerialization.java:72)
at br.com.caelum.vraptor.serialization.gson.GsonJSONSerialization.from(GsonJSONSerialization.java:67)
at br.com.cygnus.desktop.controller.LoginController.selecionarEmpresa(LoginController.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at br.com.caelum.vraptor.interceptor.ExecuteMethodInterceptor.intercept(ExecuteMethodInterceptor.java:61)[/code]

o controller é este:

			this.usersLoggedIn.setEmpresa(this.emEnterpriseDao.getEnterprise(id)
					.getDatabase());
			result.use(json()).withoutRoot().from(new MessageExtjs("", true))
			.serialize();

e web.xml

<context-param>
		<param-name>br.com.caelum.vraptor.packages</param-name>
		<param-value>
        	br.com.caelum.vraptor.deserialization.gson,
        	br.com.caelum.vraptor.serialization.gson,
            br.com.caelum.vraptor.util.extjs</param-value>
    	
	</context-param>

Tem algum problema na utilização do Gson?

sobre esse cara:
The import br.com.caelum.vraptor.serialization.xstream.Serializee cannot be resolved

vc está com mais de um jar do VRaptor no classpath?

essa classe era package protected e ficou public na última versão.

[quote=Lucas Cavalcanti]sobre esse cara:
The import br.com.caelum.vraptor.serialization.xstream.Serializee cannot be resolved

vc está com mais de um jar do VRaptor no classpath?

essa classe era package protected e ficou public na última versão.[/quote]

Valeu Lucas, era isto mesmo…
ficou uma referência a uma versão antiga no classpath
Obrigado