Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 91771 invoked from network); 23 Feb 2001 21:42:57 -0000 Received: from ballreich.net (HELO starfish.ballreich.net) (207.38.41.113) by h31.sny.collab.net with SMTP; 23 Feb 2001 21:42:57 -0000 Received: from grouper (grouper.ballreich.net [192.168.1.3]) by starfish.ballreich.net (8.11.1/8.11.1) with SMTP id f1NLh9Q04147 for ; Fri, 23 Feb 2001 13:43:09 -0800 Message-Id: <3.0.5.32.20010223134644.00a8b440@starfish> X-Organization: Computer Associates International, Inc. X-Sender: cindy@starfish X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 23 Feb 2001 13:46:44 -0800 To: cocoon-users@xml.apache.org From: Cindy Ballreich Subject: ClassCastException Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Can you stand another FP related question from me? As in my previous postings, I'm working with the form capabilities demonstrated in the "Simple Form Handling" example. Currently, I'm trying to update the value of an attribute and I'm getting a ClassCastException when I try to do this. When I try to edit the CDATA value of a node I don't have any problems at all. It's the attributes that are giving me problems. (I'm using cocoon 1.8, jakarta 3.1.1, and apache 1.3.14 on an NT4.0 system.) This is what I'm trying to edit... ...other elements... Here is a typical bit of XML to do the editing... And here is the error message... java.lang.ClassCastException: org.apache.xerces.dom.DeferredAttrNSImpl at org.apache.cocoon.processor.xsp.library.fp.fpResource.writeAsTextNode(fpReso urce.java:271) at org.apache.cocoon.processor.xsp.library.fp.fpLibrary.handleWrite(fpLibrary.j ava:139) at _C_._Program_Files._Apache_Group._jakarta_tomcat._webapps._cocoon._servlets. _catalog._catalog_edit.populateDocument(_catalog_edit.java:223) at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96) at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:494) at org.apache.cocoon.Engine.handle(Engine.java:359) at org.apache.cocoon.Cocoon.service(Cocoon.java:167) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Unknown Source) Any help would be appreciated. Cindy