|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[Issue 579] New - ClassCastException when extending a complex type which also extends a simple typehttps://jax-ws.dev.java.net/issues/show_bug.cgi?id=579
Issue #|579 Summary|ClassCastException when extending a complex type which | also extends a simple type Component|jax-ws Version|2.1.4 Platform|All OS/Version|All URL| Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P1 Subcomponent|wsimport Assigned to|issues@jax-ws Reported by|bagaaz ------- Additional comments from bagaaz@... Wed Jun 18 12:01:18 +0000 2008 ------- The below exception is encountered when running wsimport on a WSDL that uses the following XSD: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:q="urn:ele:types/Service" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ele:types/Service"> <xsd:complexType name="Summary_Request_Type"> <xsd:sequence> <xsd:element name="description1" type="q:LanguageSpecificProductDescription" minOccurs="1" maxOccurs="1"/> <xsd:element name="description2" type="q:LanguageSpecificDescriptionString" minOccurs="1" maxOccurs="1"/> <xsd:element name="description3" type="q:DescriptionString" minOccurs="1" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> <xsd:simpleType name="DescriptionString"> <xsd:restriction base="xsd:string"> <xsd:maxLength value="90"/> </xsd:restriction> </xsd:simpleType> <xsd:complexType name="LanguageSpecificDescriptionString"> <xsd:simpleContent> <xsd:extension base="q:DescriptionString"> <xsd:attribute name="myattr" type="xsd:string"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType> <xsd:complexType name="LanguageSpecificProductDescription"> <xsd:complexContent> <xsd:extension base="q:LanguageSpecificDescriptionString"> <xsd:sequence/> <!-- Try removing this sequence tag and recompiling --> </xsd:extension> </xsd:complexContent> </xsd:complexType> </xsd:schema> Exception in thread "main" java.lang.ClassCastException: com.sun.xml.xsom.impl.RestrictionSimpleTypeImpl cannot be cast to com.sun.xml.xsom.impl.ParticleImpl at com.sun.xml.xsom.impl.parser.state.complexType$InheritBaseContentTypeRef.getContentType(complexType.java:1960) at com.sun.xml.xsom.impl.ComplexTypeImpl.getContentType(ComplexTypeImpl.java:174) at com.sun.xml.xsom.impl.util.SchemaWriter.complexType(SchemaWriter.java:355) at com.sun.xml.xsom.impl.ComplexTypeImpl.visit(ComplexTypeImpl.java:236) at com.sun.tools.xjc.reader.xmlschema.ClassSelector.addSchemaFragmentJavadoc(ClassSelector.java:422) at com.sun.tools.xjc.reader.xmlschema.ClassSelector.access$300(ClassSelector.java:88) at com.sun.tools.xjc.reader.xmlschema.ClassSelector$Binding.build(ClassSelector.java:182) at com.sun.tools.xjc.reader.xmlschema.ClassSelector.executeTasks(ClassSelector.java:355) at com.sun.tools.xjc.reader.xmlschema.BGMBuilder._build(BGMBuilder.java:176) at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:114) at com.sun.tools.xjc.ModelLoader.annotateXMLSchema(ModelLoader.java:415) at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:241) at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85) at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134) at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2193) at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187) at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133) at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.tools.ws.Invoker.invoke(Invoker.java:116) at com.sun.tools.ws.WsImport.main(WsImport.java:52) D:\Program Files\NetBeans 6.1\enterprise5\modules\ext\build-ws.xml:125: wsimport failed BUILD FAILED (total time: 1 second) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@... For additional commands, e-mail: issues-help@... |
|
|
[Issue 579] ClassCastException when extending a complex type which also extends a simple typehttps://jax-ws.dev.java.net/issues/show_bug.cgi?id=579
User jitu changed the following: What |Old value |New value ================================================================================ Assigned to|issues@jax-ws |snajper -------------------------------------------------------------------------------- ------- Additional comments from jitu@... Wed Jun 18 15:08:30 +0000 2008 ------- Seems like a bug in JAXB. Assigning to martin. --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@... For additional commands, e-mail: issues-help@... |
|
|
[Issue 579] ClassCastException when extending a complex type which also extends a simple typehttps://jax-ws.dev.java.net/issues/show_bug.cgi?id=579
User snajper changed the following: What |Old value |New value ================================================================================ Status|NEW |STARTED -------------------------------------------------------------------------------- ------- Additional comments from snajper@... Wed Jul 16 16:59:30 +0000 2008 ------- Reproducable with plain jaxb, looking at the schema. --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@... For additional commands, e-mail: issues-help@... |
|
|
[Issue 579] ClassCastException when extending a complex type which also extends a simple typehttps://jax-ws.dev.java.net/issues/show_bug.cgi?id=579
User snajper changed the following: What |Old value |New value ================================================================================ Priority|P1 |P3 -------------------------------------------------------------------------------- Target milestone|not determined |2.2 -------------------------------------------------------------------------------- ------- Additional comments from snajper@... Tue Jul 22 12:09:14 +0000 2008 ------- assigning right priority --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@... For additional commands, e-mail: issues-help@... |
| Free Forum Powered by Nabble | Forum Help |