Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to

Received: by 10.43.81.137 with SMTP id zy9mr1721883icb.0.1348751580715;
        Thu, 27 Sep 2012 06:13:00 -0700 (PDT)
X-BeenThere: codegist-crest@googlegroups.com
Received: by 10.50.214.34 with SMTP id nx2ls6484529igc.1.gmail; Thu, 27 Sep
 2012 06:13:00 -0700 (PDT)
Received: by 10.43.81.137 with SMTP id zy9mr1721877icb.0.1348751580309;
        Thu, 27 Sep 2012 06:13:00 -0700 (PDT)
Received: by 10.43.81.137 with SMTP id zy9mr1721871icb.0.1348751580198;
        Thu, 27 Sep 2012 06:13:00 -0700 (PDT)
Return-Path: <laurent.gil...@codegist.org>
Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173])
        by gmr-mx.google.com with ESMTPS id ba5si2099935igb.3.2012.09.27.06.12.59
        (version=TLSv1/SSLv3 cipher=OTHER);
        Thu, 27 Sep 2012 06:13:00 -0700 (PDT)
Received-SPF: neutral (google.com: 209.85.214.173 is neither permitted nor denied by best guess record for domain of laurent.gil...@codegist.org) client-ip=209.85.214.173;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.214.173 is neither permitted nor denied by best guess record for domain of laurent.gil...@codegist.org) smtp.mail=laurent.gil...@codegist.org
Received: by mail-ob0-f173.google.com with SMTP id ta14so2400268obb.18
        for <codegist-crest@googlegroups.com>; Thu, 27 Sep 2012 06:12:59 -0700 (PDT)
        d=google.com; s=20120113;
        h=mime-version:x-originating-ip:in-reply-to:references:date
         :message-id:subject:from:to:content-type:x-gm-message-state;
        bh=khmFWPtk70a+bBMW/9gcedmoF73DJIAWsUNv9CS+CLA=;
        b=E+mL7myNr99aIPme2Fansk/PB9HWxA4MXkup3pZ81IQFCCJu9IVN1MILkJpNLb06Hp
         qh651YyNomEpNvf5YrcYaHFgVTdakrakTbTi9+byaHBlprBluo7TmXlwHSvPEiK3ZmCH
         6Hqf5zBGDPwVC0LGIVdwPKcmlxMUT1x/+G6ta+OZyqSWbNrzmtQJg4C2Me2ptJ0eF10j
         2QsIc/4NDABpUTu1qysnaKkiDv5n+jN7gj7Gz4KSTV/r6reG9/e4acqcL7/PjeVlXN/X
         E1f5CCfw1xOZhlQHSgPDjpqVpj+6X4bXVXVOTOmCmA55sF2uNibWI7ekBoIkWT7catXR
         JY7A==
MIME-Version: 1.0
Received: by 10.182.46.65 with SMTP id t1mr3155885obm.20.1348751579466; Thu,
 27 Sep 2012 06:12:59 -0700 (PDT)
Received: by 10.60.165.38 with HTTP; Thu, 27 Sep 2012 06:12:59 -0700 (PDT)
X-Originating-IP: [212.58.239.38]
In-Reply-To: <2ff1896f-3f7c-40bd-b2c7-b67bde3e8df4@googlegroups.com>
References: <28266974.2.1334689284885.JavaMail.geo-discussion-forums@pbtd9>
	<38616bc7-ffae-4ad8-9249-7d0511c05...@v22g2000vby.googlegroups.com>
	<2f804b01-95b4-4e6d-9b69-59f63d2114c2@googlegroups.com>
	<CACcN37d0mVeLscEHagu7cYK0scMGMdbBq2N+wfsP_BT=-V7...@mail.gmail.com>
	<2ff1896f-3f7c-40bd-b2c7-b67bde3e8df4@googlegroups.com>
Date: Thu, 27 Sep 2012 14:12:59 +0100
Message-ID: <CACcN37epzqm9buQ+-LdXdEi+-c1bayiSf9D1aYSdF0BYULb...@mail.gmail.com>
Subject: Re: How to
From: Laurent Gilles <laurent.gil...@codegist.org>
To: codegist-crest@googlegroups.com
Content-Type: multipart/alternative; boundary=f46d04451749c8cc4504caaeb2a1
X-Gm-Message-State: ALoCoQlxH1Hql8jXdaXgrIDNNZeQlySFyr22FvJJRxWs3cRBOjfNAa+5YNDSBw5LMRLqUya+Hyvl

--f46d04451749c8cc4504caaeb2a1
Content-Type: text/plain; charset=ISO-8859-1

That part of the stacktrace is not very usefull, have you got the bottom of
it?
Are you using the CRest with Apache HTTPClient or the default
implementation?
You can turn on more logging, see
http://crest.codegist.org/deeper/logging.html
If that's not enough, if you are using HTTPUrlConnection see
http://stackoverflow.com/questions/3428341/java-display-request-of-an-httpurlconnection-before-sending
or if you are using HTTPClient, see
http://hc.apache.org/httpcomponents-client-ga/logging.html

On Thu, Sep 27, 2012 at 2:07 PM, <catalin.moro...@gmail.com> wrote:

> I've added the modifications and now I get
>
> Exception in thread "main" org.codegist.crest.CRestException: Bad Request
> at org.codegist.crest.CRestException.handle(CRestException.java:72)
> at org.codegist.crest.CRestException.handle(CRestException.java:55)
> at
> org.codegist.crest.handler.ErrorDelegatorHandler.handle(ErrorDelegatorHandler.java:36)
> at
> org.codegist.crest.DefaultCRest$CRestInvocationHandler.doInvoke(DefaultCRest.java:85)
> at
> org.codegist.common.reflect.ObjectMethodsAwareInvocationHandler.invoke(ObjectMethodsAwareInvocationHandler.java:42)
> at
> org.codegist.common.reflect.JdkProxyFactory$DelegatorHandler.invoke(JdkProxyFactory.java:50)
>
> Is there a way I can get to see the request body right before sending it
> off? RequestInterceptor doesn't seem to provide a way to do this.
>
> On Thursday, September 27, 2012 3:17:07 PM UTC+3, Laurent Gilles wrote:
>
>> Hi Catalin,
>>
>> Try as follow:
>>
>> Create that class
>>
>> public class MyJsonEntityWriter extends SerializingEntityWriter {
>>
>>     private static final String CONTENT_TYPE = "application/json";
>>
>>     public JsonEntityWriter(CRestConfig crestConfig) {
>>         super(new JsonEncodedFormJacksonSerializ**er(crestConfig),
>> CONTENT_TYPE);
>>     }
>>
>> }
>>
>>
>> Then in your interface:
>>
>>         @POST
>>         @Path("challenges")
>>         @EntityWriter(**MyJsonEntityWriter.class)
>>         public void addChallenge(@FormParam("**useless") Challenge
>> challenge);
>>
>> Haven't tried it myself but I think that might do it given that you have
>> SerializingEntityWriter and JsonEncodedFormJacksonSerializ**er in your
>> classpath (coming from https://github.com/codegist/**crest/tree/master/**
>> entitywriter/<https://github.com/codegist/crest/tree/master/entitywriter/>
>> )
>>
>>
>> On Thu, Sep 27, 2012 at 12:39 PM, <catalin...@gmail.com> wrote:
>>
>>> I have a similar issue. I've checked out the code for the entity writers
>>> you mention and I've added that code to my project.
>>>
>>> The only thing that I'm doing in my code is bind the serializer with my
>>> class that I want to send in the HTTP POST body.
>>>
>>> new CrestBuilder().bindSerializer(**JsonEncodedChallengeJacksonSer**
>>> ializer.class,
>>> Challenge.class).build();
>>>
>>> And the REST interface method is
>>>
>>> @POST
>>> @Path("challenges")
>>> public void addChallenge(@FormParam("**useless")
>>>  Challenge challenge);
>>>
>>> But I get a ClassCastException. Caused by: java.lang.ClassCastException:
>>> Challenge cannot be cast to java.util.List
>>>
>>> Could you guide me in the right direction to solve this? I see that
>>> JsonEncodedFormJacksonSerializ**er expects a List<Param> but I send it
>>> a Challenge object. I've tried to write a serializer for my class but then,
>>> it never gets called.
>>>
>>> I really love crest and is very useful. But I really really need to be
>>> able to send entire objects via json. Thanks for everything.
>>>
>>>
>>> On Wednesday, April 18, 2012 2:34:02 PM UTC+3, Laurent Gilles wrote:
>>>>
>>>> Hi,
>>>>
>>>> First of all, I'm glad you are using the library and that you like
>>>> it :) Always good to get positive feedbacks!
>>>> Regarding your question, this is not the first time I'm being asked if
>>>> CRest can handle this kind of use case.
>>>> Answer is: not completely..
>>>>
>>>> I'm aware this is a quite common use case, but as for now CRest comes
>>>> with 2 standards way of encoding form parameters into the HTTP entity:
>>>>
>>>>     application/x-www-form-**urlenco**ded
>>>>     multipart/form-data
>>>>
>>>> What you are trying to do
>>>>
>>>> public SomeResponse something(SomeRequest request)
>>>>
>>>> is not really doable in CRest as of now, as any parameter, as you've
>>>> guessed, needs a name.
>>>> instead you can do as follow:
>>>>
>>>> public Response something(@FormParam("p1") SomeType1 p1,
>>>> @FormParam("p2") SomeType2[] p2);
>>>>
>>>> with a custom EntityWriter that dump parameters as Json encoded as
>>>> follow:
>>>>
>>>> {
>>>>     "p1": /* SomeType1  json dump */,
>>>>     "p2": [/* SomeType2  json dump */]
>>>> }
>>>>
>>>> You'll see at the bottom of the Serialization page of the website
>>>> (http://crest.codegist.org/**ser**ialization/serialization.**html<http://crest.codegist.org/serialization/serialization.html>)
>>>> a link to
>>>> two sample source code of such Entity writers.
>>>>
>>>> On a side note, a proper way of doing it would be to add an additional
>>>> annotation, @EntityParam, which would be applied to a parameter to
>>>> mark it as to be used to as the HTTP entity.
>>>> I've been thinking about it but have little time to dedicate to it
>>>> lately so I wouldn't expect a fix any time soon..
>>>>
>>>> Hope that helped..
>>>> Regards,
>>>> Laurent
>>>>
>>>> On Apr 17, 8:01 pm, duylee...@gmail.com wrote:
>>>> > First, I want to give my gratitude to the developers of this
>>>> software. It's
>>>> > awesome to use :)
>>>> >
>>>> > Actually, I have a question regarding json in request body using
>>>> CREST
>>>> > For example, I have this jax-rs interface
>>>> >
>>>> > import javax.ws.rs.Consumes;
>>>> > import javax.ws.rs.POST;
>>>> > import javax.ws.rs.Path;
>>>> > import javax.ws.rs.PathParam;
>>>> > import javax.ws.rs.core.MediaType;
>>>> >
>>>> > /**
>>>> >  * Created by IntelliJ IDEA.
>>>> >  * User: duyleekun
>>>> >  * Date: 2/29/12
>>>> >  * Time: 11:21 PM
>>>> >  * To change this template use File | Settings | File Templates.
>>>> >  */
>>>> > @Path("/mobile")
>>>> > public interface PushSVC {
>>>> >
>>>> > /*
>>>> > Sample
>>>> > curl --data
>>>> > '{"collapseKey":"asdf","**conten**tList":{"1234":"you","**5555":"**you2"}}'
>>>> -X POST
>>>> > -H 'Content-type:application/**json**' -vhttp://localhost:8080/**
>>>> notifi**cation/mobile/11111/send
>>>> >  */
>>>> >     @POST
>>>> >     @Path("/{uuid}/send")
>>>> >     @Consumes(MediaType.**APPLICATIO**N_JSON)
>>>> >     String sendPush(MessageVO message, @PathParam("uuid") String
>>>> uuid);
>>>> >
>>>> > }
>>>> >
>>>> > I want crest to produce the request similar to the following curl
>>>> >
>>>> > curl --data
>>>> > '{"collapseKey":"asdf","**conten**tList":{"1234":"you","**5555":"**you2"}}'
>>>> -X POST
>>>> > -H 'Content-type:application/**json**' -vhttp://localhost:8080/**
>>>> notifi**cation/mobile/11111/send
>>>> >
>>>> > Is that possible? Should I use @Serializer (I tried with no luck
>>>> ....)
>>>> > This error always occurs.
>>>> > Caused by: java.lang.**IllegalStateExceptio**n: Parameter name is
>>>> mandatory.
>>>> > This is probably due to a missing or empty named param annotation
>>>> (one of
>>>> > the following: @CookieParam, @FormParam, @HeaderParam, @MatrixParam,
>>>> > @MultiPartParam, @PathParam, @QueryParam).
>>>
>>>
>>

--f46d04451749c8cc4504caaeb2a1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

That part of the stacktrace is not very usefull, have you got the bottom of=
 it?<br>Are you using the CRest with Apache HTTPClient or the default imple=
mentation?<br>You can turn on more logging, see <a href=3D"http://crest.cod=
egist.org/deeper/logging.html">http://crest.codegist.org/deeper/logging.htm=
l</a><br>
If that&#39;s not enough, if you are using HTTPUrlConnection see <a href=3D=
"http://stackoverflow.com/questions/3428341/java-display-request-of-an-http=
urlconnection-before-sending">http://stackoverflow.com/questions/3428341/ja=
va-display-request-of-an-httpurlconnection-before-sending</a><br>
or if you are using HTTPClient, see <a href=3D"http://hc.apache.org/httpcom=
ponents-client-ga/logging.html">http://hc.apache.org/httpcomponents-client-=
ga/logging.html</a><br><br><div class=3D"gmail_quote">On Thu, Sep 27, 2012 =
at 2:07 PM,  <span dir=3D"ltr">&lt;<a href=3D"mailto:catalin.morosan@gmail.=
com" target=3D"_blank">catalin.moro...@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">I&#39;ve added the modifications and now I g=
et=A0<div><br></div><div><div>Exception in thread &quot;main&quot; org.code=
gist.crest.CRestException: Bad Request</div>
<div><span style=3D"white-space:pre-wrap">	</span>at org.codegist.crest.CRe=
stException.handle(CRestException.java:72)</div><div><span style=3D"white-s=
pace:pre-wrap">	</span>at org.codegist.crest.CRestException.handle(CRestExc=
eption.java:55)</div>
<div><span style=3D"white-space:pre-wrap">	</span>at org.codegist.crest.han=
dler.ErrorDelegatorHandler.handle(ErrorDelegatorHandler.java:36)</div><div>=
<span style=3D"white-space:pre-wrap">	</span>at org.codegist.crest.DefaultC=
Rest$CRestInvocationHandler.doInvoke(DefaultCRest.java:85)</div>
<div><span style=3D"white-space:pre-wrap">	</span>at org.codegist.common.re=
flect.ObjectMethodsAwareInvocationHandler.invoke(ObjectMethodsAwareInvocati=
onHandler.java:42)</div><div><span style=3D"white-space:pre-wrap">	</span>a=
t org.codegist.common.reflect.JdkProxyFactory$DelegatorHandler.invoke(JdkPr=
oxyFactory.java:50)</div>
<div><br></div><div>Is there a way I can get to see the request body right =
before sending it off? RequestInterceptor doesn&#39;t seem to provide a way=
 to do this.</div><div class=3D"im"><br>On Thursday, September 27, 2012 3:1=
7:07 PM UTC+3, Laurent Gilles wrote:</div>
<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div class=3D"im">Hi Catalin,<br><b=
r>Try as follow:<br><br>Create that class<br><br>public class MyJsonEntityW=
riter extends SerializingEntityWriter {<br>
<br>=A0=A0=A0 private static final String CONTENT_TYPE =3D &quot;applicatio=
n/json&quot;;<br><br>
=A0=A0=A0 public JsonEntityWriter(CRestConfig crestConfig) {<br>=A0=A0=A0=
=A0=A0=A0=A0 super(new JsonEncodedFormJacksonSerializ<u></u>er(crestConfig)=
, CONTENT_TYPE);<br>=A0=A0=A0 }<br><br>}<br><br><br>Then in your interface:=
<br><br>=A0=A0=A0=A0=A0=A0=A0 @POST<br>
=A0=A0=A0=A0=A0=A0=A0 @Path(&quot;challenges&quot;)<br>
=A0=A0=A0=A0=A0=A0=A0 @EntityWriter(<u></u>MyJsonEntityWriter.class)<br>=A0=
=A0=A0=A0=A0=A0=A0 public void addChallenge(@FormParam(&quot;<u></u>useless=
&quot;) Challenge challenge);<br><br>Haven&#39;t tried it myself but I thin=
k that might do it given that you have SerializingEntityWriter and JsonEnco=
dedFormJacksonSerializ<u></u>er in your classpath (coming from <a href=3D"h=
ttps://github.com/codegist/crest/tree/master/entitywriter/" target=3D"_blan=
k">https://github.com/codegist/<u></u>crest/tree/master/<u></u>entitywriter=
/</a>)<br>

<br><br></div><div><div class=3D"h5"><div class=3D"gmail_quote">On Thu, Sep=
 27, 2012 at 12:39 PM,  <span dir=3D"ltr">&lt;<a>catalin...@gmail.com</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I have a similar issue. I&#39;ve checked out the code for the entity writer=
s you mention and I&#39;ve added that code to my project.<div><br></div><di=
v>The only thing that I&#39;m doing in my code is bind the serializer with =
my class that I want to send in the HTTP POST body.</div>

<div><br></div><div><div>new CrestBuilder().bindSerializer(<u></u>JsonEncod=
edChallengeJacksonSer<u></u>ializer.class,</div><div><span style=3D"white-s=
pace:pre-wrap">				</span>Challenge.class).build();</div><div><br></div>
<div>And the REST interface method is=A0</div>
<div><br></div><div><div>@POST</div><div><span style=3D"white-space:pre-wra=
p">	</span>@Path(&quot;challenges&quot;)</div><div><span style=3D"white-spa=
ce:pre-wrap">	</span>public void addChallenge(@FormParam(&quot;<u></u>usele=
ss&quot;)</div>

<div><span style=3D"white-space:pre-wrap">	</span>Challenge challenge);</di=
v></div><div><br></div><div>But I get a ClassCastException.=A0Caused by: ja=
va.lang.ClassCastException: Challenge cannot be cast to java.util.List</div=
>

<div><br></div><div>Could you guide me in the right direction to solve this=
? I see that JsonEncodedFormJacksonSerializ<u></u>er expects a List&lt;Para=
m&gt; but I send it a Challenge object. I&#39;ve tried to write a serialize=
r for my class but then, it never gets called.</div>

<div><br></div><div>I really love crest and is very useful. But I really re=
ally need to be able to send entire objects via json. Thanks for everything=
.</div><div><div><div><br></div><br>On Wednesday, April 18, 2012 2:34:02 PM=
 UTC+3, Laurent Gilles wrote:<blockquote class=3D"gmail_quote" style=3D"mar=
gin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,
<br>
<br>First of all, I&#39;m glad you are using the library and that you like
<br>it :) Always good to get positive feedbacks!
<br>Regarding your question, this is not the first time I&#39;m being asked=
 if
<br>CRest can handle this kind of use case.
<br>Answer is: not completely..
<br>
<br>I&#39;m aware this is a quite common use case, but as for now CRest com=
es
<br>with 2 standards way of encoding form parameters into the HTTP entity:
<br>
<br>=A0 =A0 application/x-www-form-<u></u>urlenco<u></u>ded
<br>=A0 =A0 multipart/form-data
<br>
<br>What you are trying to do
<br>
<br>public SomeResponse something(SomeRequest request)
<br>
<br>is not really doable in CRest as of now, as any parameter, as you&#39;v=
e
<br>guessed, needs a name.
<br>instead you can do as follow:
<br>
<br>public Response something(@FormParam(&quot;p1&quot;) SomeType1 p1,
<br>@FormParam(&quot;p2&quot;) SomeType2[] p2);
<br>
<br>with a custom EntityWriter that dump parameters as Json encoded as
<br>follow:
<br>
<br>{
<br>=A0 =A0 &quot;p1&quot;: /* SomeType1 =A0json dump */,
<br>=A0 =A0 &quot;p2&quot;: [/* SomeType2 =A0json dump */]
<br>}
<br>
<br>You&#39;ll see at the bottom of the Serialization page of the website
<br>(<a href=3D"http://crest.codegist.org/serialization/serialization.html"=
 target=3D"_blank">http://crest.codegist.org/<u></u>ser<u></u>ialization/se=
rialization.<u></u>html</a>) a link to
<br>two sample source code of such Entity writers.
<br>
<br>On a side note, a proper way of doing it would be to add an additional
<br>annotation, @EntityParam, which would be applied to a parameter to
<br>mark it as to be used to as the HTTP entity.
<br>I&#39;ve been thinking about it but have little time to dedicate to it
<br>lately so I wouldn&#39;t expect a fix any time soon..
<br>
<br>Hope that helped..
<br>Regards,
<br>Laurent
<br>
<br>On Apr 17, 8:01=A0pm, <a>duylee...@gmail.com</a> wrote:
<br>&gt; First, I want to give my gratitude to the developers of this softw=
are. It&#39;s
<br>&gt; awesome to use :)
<br>&gt;
<br>&gt; Actually, I have a question regarding json in request body using C=
REST
<br>&gt; For example, I have this jax-rs interface
<br>&gt;
<br>&gt; import javax.ws.rs.Consumes;
<br>&gt; import javax.ws.rs.POST;
<br>&gt; import javax.ws.rs.Path;
<br>&gt; import javax.ws.rs.PathParam;
<br>&gt; import javax.ws.rs.core.MediaType;
<br>&gt;
<br>&gt; /**
<br>&gt; =A0* Created by IntelliJ IDEA.
<br>&gt; =A0* User: duyleekun
<br>&gt; =A0* Date: 2/29/12
<br>&gt; =A0* Time: 11:21 PM
<br>&gt; =A0* To change this template use File | Settings | File Templates.
<br>&gt; =A0*/
<br>&gt; @Path(&quot;/mobile&quot;)
<br>&gt; public interface PushSVC {
<br>&gt;
<br>&gt; /*
<br>&gt; Sample
<br>&gt; curl --data
<br>&gt; &#39;{&quot;collapseKey&quot;:&quot;asdf&quot;,&quot;<u></u>conten=
<u></u>tList&quot;:{&quot;1234&quot;:&quot;you&quot;,&quot;<u></u>5555&quot=
;:&quot;<u></u>you2&quot;}}&#39; -X POST
<br>&gt; -H &#39;Content-type:application/<u></u>json<u></u>&#39; -vhttp://=
localhost:8080/<u></u>notifi<u></u>cation/mobile/11111/send
<br>&gt; =A0*/
<br>&gt; =A0 =A0 @POST
<br>&gt; =A0 =A0 @Path(&quot;/{uuid}/send&quot;)
<br>&gt; =A0 =A0 @Consumes(MediaType.<u></u>APPLICATIO<u></u>N_JSON)
<br>&gt; =A0 =A0 String sendPush(MessageVO message, @PathParam(&quot;uuid&q=
uot;) String uuid);
<br>&gt;
<br>&gt; }
<br>&gt;
<br>&gt; I want crest to produce the request similar to the following curl
<br>&gt;
<br>&gt; curl --data
<br>&gt; &#39;{&quot;collapseKey&quot;:&quot;asdf&quot;,&quot;<u></u>conten=
<u></u>tList&quot;:{&quot;1234&quot;:&quot;you&quot;,&quot;<u></u>5555&quot=
;:&quot;<u></u>you2&quot;}}&#39; -X POST
<br>&gt; -H &#39;Content-type:application/<u></u>json<u></u>&#39; -vhttp://=
localhost:8080/<u></u>notifi<u></u>cation/mobile/11111/send
<br>&gt;
<br>&gt; Is that possible? Should I use @Serializer (I tried with no luck .=
...)
<br>&gt; This error always occurs.
<br>&gt; Caused by: java.lang.<u></u>IllegalStateExceptio<u></u>n: Paramete=
r name is mandatory.
<br>&gt; This is probably due to a missing or empty named param annotation =
(one of
<br>&gt; the following: @CookieParam, @FormParam, @HeaderParam, @MatrixPara=
m,
<br>&gt; @MultiPartParam, @PathParam, @QueryParam).</blockquote></div></div=
></div></blockquote></div><br>
</div></div></blockquote></div></blockquote></div><br>

--f46d04451749c8cc4504caaeb2a1--