Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-03-06 Thread singh13
Hi, thanks for the reply. I tried that but unfortunately I still get the same error. Resetting it did not alter anything. -- View this message in context:

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-03-05 Thread singh13
Hi, thanks for the reply. I tried that but unfortunately I still get the same error. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-IllegalStateException-Can-t-call-write-CharSequence-after-write-byte-has-been-called-tp4416819p4446728.html Sent from the

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-03-04 Thread singh13
Sorry for another reply but can anybody give me an example solution. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-IllegalStateException-Can-t-call-write-CharSequence-after-write-byte-has-been-called-tp4416819p190.html Sent from the Users forum

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-03-04 Thread Martin Grigorov
Hi, Just try with: WebResponse response = (WebResponse)getResponse(); response.reset(); OpenIDService.sendDiscoveryResponse(response); On Sun, Mar 4, 2012 at 10:19 PM, singh13 gso...@gmail.com wrote: Sorry for another reply but can anybody give me an example solution. Thanks -- View this

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-03-02 Thread singh13
I have looked at the DownloadLink class. Would you suggest that i use something like this: getRequestCycle().scheduleRequestHandlerAfterCurrent ? I am passing my response to my discovery method as follows: OpenIDService.sendDiscoveryResponse((WebResponse)getResponse()); -- View this message in

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-02-29 Thread singh13
Hi there, I am not too sure what you mean about DownloadLink. I am not using download link in any part of my code. To link to the provider page i am just using a normal link. -- View this message in context:

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-02-29 Thread Pierre Goupil
Sure. But Martin is just telling you to use this as a code example. Regards, Pierre On Wed, Feb 29, 2012 at 8:33 PM, singh13 gso...@gmail.com wrote: Hi there, I am not too sure what you mean about DownloadLink. I am not using download link in any part of my code. To link to the

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-02-29 Thread Martin Grigorov
On Wed, Feb 29, 2012 at 11:34 PM, Pierre Goupil goupilpie...@gmail.com wrote: Sure. But Martin is just telling you to use this as a code example. Right. See how DownloadLink schedules a new IRequestHandler that cares to deliver a file as a byte[]. Regards, Pierre On Wed, Feb 29, 2012 at

java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-02-24 Thread singh13
Hi there I am using OpenID4java to implement an OpenID relying party and a provider. Whenever I try to access the provider page I get this exception in my console java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called. In this method I am creating

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-02-24 Thread Martin Grigorov
java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called. In this method I am creating an XRDS document to send to the relying party. Could there be an issue with the outputstream          public static void sendDiscoveryResponse(Response response) throws IOException