Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 91346 invoked from network); 12 Jan 2011 01:29:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2011 01:29:10 -0000 Received: (qmail 61834 invoked by uid 500); 12 Jan 2011 01:29:10 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 61764 invoked by uid 500); 12 Jan 2011 01:29:09 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 61756 invoked by uid 99); 12 Jan 2011 01:29:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 01:29:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 01:29:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0C1Sm61019147 for ; Wed, 12 Jan 2011 01:28:48 GMT Message-ID: <12981296.302751294795728264.JavaMail.jira@thor> Date: Tue, 11 Jan 2011 20:28:48 -0500 (EST) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-3239) idl2wsdl fails if const char is defined in IDL In-Reply-To: <16522719.281411294751566863.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-3239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980488#action_12980488 ] Freeman Fang commented on CXF-3239: ----------------------------------- hmm, yeah, the idl2wsdl tool should be able to honor the invisible const char, the generated wsdl should be like if it's control character. > idl2wsdl fails if const char is defined in IDL > ---------------------------------------------- > > Key: CXF-3239 > URL: https://issues.apache.org/jira/browse/CXF-3239 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.3.1 > Environment: CXF-2.3.1, Windows, idl2wsdl > Reporter: Torsten Mielke > Assignee: Freeman Fang > Attachments: test2.idl > > > Running > {code} > idl2wsdl test2.idl > {code} > on the attached IDL file, produces: > {code} > Error : org.apache.cxf.tools.common.ToolException: WSDLException: faultCode=PARSER_ERROR: : javax.xml.bind.MarshalException > {code} > Running with additional -verbose option prints > {code} > idl2wsdl -verbose Test2.idl > idl2wsdl - Apache CXF 2.3.x-fuse-SNAPSHOT > ( module Test2 ( const char MYCHAR ) ) > Error : org.apache.cxf.tools.common.ToolException: WSDLException: faultCode=PARSER_ERROR: : javax.xml.bind.MarshalException > org.apache.cxf.tools.common.ToolException: org.apache.cxf.tools.common.ToolException: WSDLException: faultCode=PARSER_ERROR: : javax.xml.bind.MarshalE > xception > at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:88) > at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:79) > at org.apache.cxf.tools.corba.IDLToWSDL.execute(IDLToWSDL.java:73) > at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) > at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:58) > at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:40) > at org.apache.cxf.tools.corba.IDLToWSDL.run(IDLToWSDL.java:162) > at org.apache.cxf.tools.corba.IDLToWSDL.main(IDLToWSDL.java:170) > Caused by: org.apache.cxf.tools.common.ToolException: WSDLException: faultCode=PARSER_ERROR: : javax.xml.bind.MarshalException > at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.parseIDL(IDLToWSDLProcessor.java:219) > at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:86) > ... 7 more > Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: : javax.xml.bind.MarshalException > at org.apache.cxf.wsdl.JAXBExtensionHelper.marshall(JAXBExtensionHelper.java:261) > at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source) > at org.apache.cxf.tools.corba.common.WSDLCorbaWriterImpl.printExtensibilityElements(WSDLCorbaWriterImpl.java:159) > at org.apache.cxf.tools.corba.common.WSDLCorbaWriterImpl.printDefinition(WSDLCorbaWriterImpl.java:119) > at org.apache.cxf.tools.corba.common.WSDLCorbaWriterImpl.writeWSDL(WSDLCorbaWriterImpl.java:77) > at org.apache.cxf.tools.corba.common.WSDLUtils.writeWSDL(WSDLUtils.java:84) > at org.apache.cxf.tools.corba.processors.idl.WSDLASTVisitor.writeDefinition(WSDLASTVisitor.java:268) > at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.writeDefinitions(IDLToWSDLProcessor.java:297) > at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.parseIDL(IDLToWSDLProcessor.java:217) > ... 8 more > Caused by: javax.xml.bind.MarshalException > - with linked exception: > [com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output] > at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:322) > at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:172) > at org.apache.cxf.wsdl.JAXBExtensionHelper.marshall(JAXBExtensionHelper.java:258) > ... 16 more > Caused by: com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output > at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteAttr(BaseNsStreamWriter.java:515) > at com.ctc.wstx.sw.BaseNsStreamWriter.writeAttribute(BaseNsStreamWriter.java:224) > at org.apache.cxf.wsdl.PrettyPrintXMLStreamWriter.writeAttribute(PrettyPrintXMLStreamWriter.java:115) > at com.sun.xml.bind.v2.runtime.output.XMLStreamWriterOutput.attribute(XMLStreamWriterOutput.java:131) > at com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl.attribute(XmlOutputAbstractImpl.java:106) > at com.sun.xml.bind.v2.runtime.XMLSerializer.attribute(XMLSerializer.java:446) > at com.sun.xml.bind.v2.runtime.property.AttributeProperty.serializeAttributes(AttributeProperty.java:99) > at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeAttributes(ClassBeanInfoImpl.java:356) > at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:689) > at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65) > at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168) > at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:155) > at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:340) > at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:696) > at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:152) > at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:157) > at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:189) > at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:316) > at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:323) > at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:72) > at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494) > at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:315) > ... 18 more > Caused by: java.io.IOException: Invalid null character in text to output > at com.ctc.wstx.api.InvalidCharHandler$FailingHandler.convertInvalidChar(InvalidCharHandler.java:51) > at com.ctc.wstx.sw.XmlWriter.handleInvalidChar(XmlWriter.java:623) > at com.ctc.wstx.sw.BufferingXmlWriter.writeAttrValue(BufferingXmlWriter.java:1037) > at com.ctc.wstx.sw.BufferingXmlWriter.writeAttribute(BufferingXmlWriter.java:883) > at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteAttr(BaseNsStreamWriter.java:512) > ... 39 more > Error : org.apache.cxf.tools.common.ToolException: WSDLException: faultCode=PARSER_ERROR: : javax.xml.bind.MarshalException > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.