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: http://apache-wicket.1842946.n4.nabble.com/java-lang-IllegalStateException-Can-t-call-write-CharSequence-after-write-byte-has-been-called-tp

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 Use

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 wrote: > Sorry for another reply but can anybody give me an example solution. > > Thanks > > -- > View this message in c

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-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 c

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 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 8:33 PM, sing

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 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 > provider > page i

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: http://apache-wicket.1842946.n4.nabble.com/java-lang-IllegalStateException-Can-t-call-w

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

2012-02-24 Thread Martin Grigorov
n in my > console > > 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 sendDisco

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 cre