Do the logs indicate the provider is registered and used? There should
be something about a provider being available in the latest Wink 1.1.2
release.

On Tue, Apr 5, 2011 at 7:31 AM, Anish Chaube1 <[email protected]> wrote:
> Hello ,
>
> As a part of my project, I am doing some Prototype development which
> requires custom provider for dojo grid.
> I could successfully run my custom provider on WAS 7, but when i deployed
> it on Apache tomcat 6.0.20 even though it is not giving any error. In
> response content is null.
>
> This is the code snapshot of my custom provider :-
>
> in writeTo method
> .
> .
> .
> //Call back param
> String callbackParam = null;
>                        try {
>                                callbackParam = (String)this.uriInfo
> .getQueryParameters().getFirst("callback");
>                        }
>                        catch (Exception e) {
>                                logger.trace("Could not get the URI
> callback param", e);
>                        }
>
>                        mediaType = MediaTypeUtils.
> setDefaultCharsetOnMediaTypeHeader(map, mediaType);
>                        Charset charset = Charset.forName(ProviderUtils.
> getCharset(mediaType));
>
>
>                        OutputStreamWriter writer = new
> OutputStreamWriter(outputStream,charset);
>
>                        System.out.println("Call back param "
> +callbackParam);
>                        if (callbackParam != null) {
>                                writer.write(callbackParam);
>                        }
>                        //writing my json string
>                        writer.write(finalJsonString);
>
>                        writer.flush();
>
>

Reply via email to