You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Berin Loritsch <bl...@apache.org> on 2001/03/09 16:14:36 UTC

[C2] Serializers and Readers

I get

java.lang.IllegalStateException: you are not a serializer or reader

	at org.apache.cocoon.environment.http.HttpResponse.getOutputStream(HttpResponse.java:130)

	at org.apache.cocoon.reading.DatabaseReader.serialize(DatabaseReader.java:211)

	at org.apache.cocoon.reading.DatabaseReader.generate(DatabaseReader.java:116)


When I try to use my DatabaseReader.  I need for this to work _today_.  Can
someone help me with how to get a correct version of the HttpResponse object?

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [C2] Serializers and Readers

Posted by Berin Loritsch <bl...@apache.org>.
I got it to work!  There is a little variable called "out" in AbstractReader that I
am supposed to use.  So small, I overlooked it!

Berin Loritsch wrote:
> 
> I get
> 
> java.lang.IllegalStateException: you are not a serializer or reader
> 
>         at org.apache.cocoon.environment.http.HttpResponse.getOutputStream(HttpResponse.java:130)
> 
>         at org.apache.cocoon.reading.DatabaseReader.serialize(DatabaseReader.java:211)
> 
>         at org.apache.cocoon.reading.DatabaseReader.generate(DatabaseReader.java:116)
> 
> When I try to use my DatabaseReader.  I need for this to work _today_.  Can
> someone help me with how to get a correct version of the HttpResponse object?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org