facebook

Error in WS code from WSDL

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #258753 Reply

    enalposi
    Member

    – System Setup ——————————-
    Operating System and version: win xp sp2
    Eclipse version: 3.2
    Eclipse build id: M20060629-1905
    Fresh Eclipse install (y/n): y
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 1
    MyEclipse version: 5.0.1
    Eclipse JDK version: 1.5.0_04-b05
    Application Server JDK version: 1.5.0_04-b05
    Are there any exceptions in the Eclipse log file? yes
    – Message Body ——————————-

    Hi, I am currently investigating migration from WebLogic web services to xfire. Our WL approach is bottom up and now I am looking into top down

    !ENTRY com.genuitec.eclipse.ws.xfire 4 0 2006-09-19 13:18:15.528
    !MESSAGE Error generating services
    !STACK 0
    java.lang.NullPointerException
    at java.io.File.<init>(Unknown Source)
    at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport$RelativeEntityResolver.resolveEntity(JAXBSchemaSupport.java:195)
    at com.sun.tools.xjc.ModelLoader$1.resolveEntity(ModelLoader.java:413)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.resolveRelativeURL(NGCCRuntimeEx.java:151)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCRuntimeEx.java:188)
    at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importDecl.java:45)
    at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(importDecl.java:143)
    at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:275)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(Unknown Source)
    at com.sun.tools.xjc.reader.ExtensionBindingChecker.endElement(ExtensionBindingChecker.java:275)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(Unknown Source)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(Unknown Source)
    at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContextChecker.java:178)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(Unknown Source)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:119)
    at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:235)
    at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:261)
    at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:230)
    at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:107)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:73)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:81)
    at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:83)
    at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:237)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:284)
    at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:87)
    at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147)
    at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:136)
    at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:485)
    at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:197)
    at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:66)
    at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSupport.java:100)
    at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:115)
    at com.genuitec.eclipse.ws.xfire.generator.WSGenJob.run(WSGenJob.java:59)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    Nosing around in another WSDL doesn’t give problems in the UI but while checking out the above I noticed this being logged:

    !ENTRY org.eclipse.xsd 2 0 2006-09-19 13:18:57.371
    !MESSAGE Invalid byte 1 of 1-byte UTF-8 sequence.
    !STACK 0
    org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Invalid byte 1 of 1-byte UTF-8 sequence.
    at org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:336)
    at org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:364)
    at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:672)
    at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:776)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1089)
    at org.eclipse.wst.xsd.contentmodel.internal.XSDImpl.buildXSDModel(XSDImpl.java:210)
    at org.eclipse.wst.xsd.contentmodel.internal.XSDImpl.buildCMDocument(XSDImpl.java:169)
    at org.eclipse.wst.xsd.contentmodel.internal.CMDocumentFactoryXSD.createCMDocument(CMDocumentFactoryXSD.java:37)
    at org.eclipse.wst.xml.core.internal.contentmodel.ContentModelManager.createCMDocument(ContentModelManager.java:56)
    at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.CMDocumentManagerImpl.buildCMDocument(CMDocumentManagerImpl.java:259)
    at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.CMDocumentManagerImpl$1.run(CMDocumentManagerImpl.java:229)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    Caused by: org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:327)
    … 11 more

    #258754 Reply

    enalposi
    Member

    While looking further into this it seems to be related to the known JaxB bug.

    Do you have an ETA for Xfire 1.2 support? (the road map seems to be more of a history at the moment 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Error in WS code from WSDL

You must be logged in to post in the forum log in