[xep-support] Premature end of file issue in Glassfish

From: Enrique Diaz Gaytan <EDiazGaytan@ICWGROUP.com>
Date: Tue Dec 31 2013 - 10:10:38 PST

Hi All
I am migrating a web application which is using the xep jar for transformation of xslt the application was working on tomcat but not working on glassfish 4 JDK 7, and it's exactly the same xslt file, I think the issue is related to a dependencies conflict so please take a look at the following stack trace:
javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.
                at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:752)
                at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:353)
                at com.renderx.xep.FOTransformer.transform(Unknown Source)
                at com.icwgroup.esc.services.docgen.service.DocumentGeneratorServiceImpl.transform(DocumentGeneratorServiceImpl.java:139)
                at com.icwgroup.esc.services.docgen.service.DocumentGeneratorServiceImpl.generateStoreDocument(DocumentGeneratorServiceImpl.java:52)
                at com.icwgroup.esc.services.docgen.ws.DocumentGenerationService.generateDocument(DocumentGenerationService.java:54)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                at org.glassfish.webservices.InstanceResolverImpl$1.invoke(InstanceResolverImpl.java:143)
---------
org.xml.sax.SAXParseException; systemId: file:///C:/temp/XSLT_PATH/xep/documents/templates/ca_quote/01012010.xsl; lineNumber: 2; columnNumber: 4; Premature end of file.
                at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
                at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
                at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter..reportError(XMLErrorReporter.java:441)
                at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter..reportError(XMLErrorReporter.java:368)
                at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1388)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1019)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
                at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
                at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:846)
                at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:775)
                at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)

Enrique Diaz
ICWGroup

!DSPAM:87,52c308a39855826217203!

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Tue Dec 31 10:10:47 2013

This archive was generated by hypermail 2.1.8 : Tue Dec 31 2013 - 10:10:53 PST