I also had the same problem as Didier.  Below is a diff to make it work correctly!
 Here is where I found the solution:

http://www.google.com/search?q=cache:xml-archive.webweaving.org/xml-archive-xerces-j-dev/0290.html+java.lang.IllegalStateException:+SER002+No+writer+supplied+for+serializer&hl=en

(I used a copy in the google cache because the mailing list archive broke.)

Dan Diephouse

--begin diff

--- JDBCToXMLSchema.java        Fri Aug 11 01:24:32 2000
+++ JDBCToXMLSchema.java~       Fri Aug 11 00:39:24 2000
@@ -119,7 +119,7 @@
         {
             generateXML();
                  xmlSerializer = new XMLSerializer(new PrintWriter(new
FileOutputStream(xmlSchema)), new OutputFormat(Method.XML,null,true));
-              xmlSerializer.asDOMSerializer().serialize(doc);
+              xmlSerializer.serialize(doc);
         }
         catch (Exception e)
         {

--end diff

Didier Dubois wrote:

> Hi jason,
>
> no probs,
> Here is the Stack.
>
> java -cp ${CLASSPATH} org.apache.turbine.tools.torque.JDBCToXMLSchema
> java.lang.IllegalStateException: SER002 No writer supplied for
> serializer
> java.lang.IllegalStateException: SER002 No writer supplied for
> serializer
>         at
> org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.java,
> Compiled Code)
>         at
> org.apache.turbine.tools.torque.JDBCToXMLSchema.<init>(JDBCToXMLSchema.java,
> Compiled Code)
>         at
> org.apache.turbine.tools.torque.JDBCToXMLSchema.main(JDBCToXMLSchema.java,
> Compiled Code)



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to