exception exporting to get binding JAXB

Jose
2014-04-30
2014-04-30
  • Jose

    Jose - 2014-04-30

    Hi, I jast try to use CAM XML Editor to get help getting bindig file for JAXB from a XSD file, but when I try to exprot, I get an exception from CAM XML. Any hell?

    exception: uk.org.jcam.camed.util.TransformException

    Message: net.sf.saxon.instruct.TerminationException: Processing terminated by xsl:message at line 310 in cam-2-xsd.xsl

    Stack: uk.org.jcam.camed.util.TransformException: net.sf.saxon.instruct.TerminationException: Processing terminated by xsl:message at line 310 in cam-2-xsd.xsl
    at uk.org.jcam.camed.util.XSLTransformer.applyTranform(XSLTransformer.java:128)
    at uk.org.jcam.camed.util.TransformationEngine.transform(TransformationEngine.java:93)
    at uk.org.jcam.camed.util.TransformationEngine.transform(TransformationEngine.java:76)
    at uk.org.jcam.camed.ui.handlers.file.ExportTemplateAsXSDSchemaHandler$2.doTransform(ExportTemplateAsXSDSchemaHandler.java:124)
    at uk.org.jcam.camed.ui.handlers.file.ExportTemplateAsXSDSchemaHandler$2.run(ExportTemplateAsXSDSchemaHandler.java:85)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: net.sf.saxon.instruct.TerminationException: Processing terminated by xsl:message at line 310 in cam-2-xsd.xsl
    at net.sf.saxon.instruct.Message.processLeavingTail(Message.java:222)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:557)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1807)
    at net.sf.saxon.Controller.transform(Controller.java:1621)
    at uk.org.jcam.camed.util.XSLTransformer.applyTranform(XSLTransformer.java:125)
    ... 5 more

     
  • drrwebber

    drrwebber - 2014-04-30

    Jose, the message at line 310 in the xslt says "Input file is not valid CAM internal format (.cxf)" - it is checking for an as:element - so if you have a completely empty template - this could cause this message.

    Did you import your existing XSD schema using the File / New / Template from XSD schema process?

    If you are running the xslt standalone outside of the CAM editor - you will need to save your CAM template in CXF format using the "File / Save As" option.

    Otherwise you should not see this messsage. I just tried it on a sample CAM template here - and it worked fine.

    Hope that helps resolve this.

    David

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks