XLS Transformations leeds to exception CX_XSLT_FORMAT_ERROR
Hello,
I am using the following transformation to transform a amazon product advertising response to an abap structure:
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output encoding="UTF-8" indent="yes" method="xml" version="1.0"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<IBOOK>
<xsl:apply-templates select="ItemLookupResponse"/>
</IBOOK>
</asx:values></asx:abap></xsl:template>
<xsl:template match="ItemLookupResponse">
<Author>
<xsl:value-of select="string(/ItemLookupResponse/Items/Item/ItemAttributes/Author)"/>
</Author>
<Binding>
<xsl:value-of select="string(/ItemLookupResponse/Items/Item/ItemAttributes/Binding)"/>
</Binding>
<Title>
<xsl:value-of select="string(/ItemLookupResponse/Items/Item/ItemAttributes/Title)"/>
</Title>
<Edition>
<xsl:value-of select="string(/ItemLookupResponse/Items/Item/ItemAttributes/Edition)"/>
</Edition>
<Label>
<xsl:value-of select="string(/ItemLookupResponse/Items/Item/ItemAttributes/Label)"/>
</Label>
<NoOfPages>
<xsl:value-of select="string(/ItemLookupResponse/Items/Item/ItemAttributes/NumberOfPages)"/>
</NoOfPages>
<SmallImage>
<xsl:value-of select="string(/ItemLookupResponse/Items/Item/SmallImage/URL)"/>
</SmallImage>
<LargeImage>
<xsl:value-of select="string(/ItemLookupResponse/Items/Item/LargeImage/URL)"/>
</LargeImage>
</xsl:template>
</xsl:transform>
Solved. There is an invalid first character in the result xml of the transformation. Unfortunately I don't know where this leading zero character comes from. Any ideas?
Similar Messages
-
Hi,
I want to route message to one recieve if there is any error in transformation step.
If transformation is success then it must be routed another reciever.How can i achieve this.
Tried with exceptions but transfomration step handles only system errors and cancels message processing.
Thanks
--PradeepHi,
Exception Handling can be used around Send Steps and Transformation Steps.
Use of Exception Handling is a very essential step inside your BPM and the best thing to do would be to wrap each of your Send / Transformation inside a Exception Handling block.
Michal's blogs : Very useful block
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
You can use Moorthy's blog on Reocnilation as well as trigger alerts.
/people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm
Please reward points if it helps
Thanks
Vikranth
Edited by: Khimavath Vikranth on Jun 12, 2008 10:09 AM -
XML file to Internal table through XSLT - Call Transformation
Hi Friends,
I am trying to work a scenario where i have a simple XML file and i need to convert the data in to an internal table. When i execute the XSLT seperately, it works fine. I get the output, but when it is invoked through a ABAP program, i am getting the error "The called method START_XSLT_DEBUGGER of the calss CL_WB_XSLT_DEBUGGER returned the exception CX_XSLT_FORMAT_ERROR"
I feel my XSLT program is not correct, but i am unable to find out what the issue is. Any help is really apreciated. I have gone through the SDN forum replies. But could not figure out what is wrong with my program
Below given are the details.
My XML File:
<?xml version="1.0" encoding="utf-8"?>
<List>
<ITEM>
<ITEMQUALF>ITEM1</ITEMQUALF>
<MATERIAL>MAT1</MATERIAL>
</ITEM>
<ITEM>
<ITEMQUALF>ITEM2</ITEMQUALF>
<MATERIAL>MAT2</MATERIAL>
</ITEM>
<ITEM>
<ITEMQUALF>ITEM3</ITEMQUALF>
<MATERIAL>MAT3</MATERIAL>
</ITEM>
</List>
My XSLT program:
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" xmlns:asx="http://www.sap.com/abapxml" exclude-result-prefixes="asx" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:output encoding="utf-8" indent="yes" omit-xml-declaration="yes"/>
<!--xsl:template match="/"-->
<xsl:template match="List">
<asx:abap version="1.0">
<asx:values>
<T_ACTUAL>
<xsl:for-each select="*">
<ITEMQUALF>
<xsl:value-of select="ITEMQUALF" />
</ITEMQUALF>
<MATERIAL>
<xsl:value-of select="MATERIAL" />
</MATERIAL>
</xsl:for-each>
</T_ACTUAL>
</asx:values>
</asx:abap>
</xsl:template>
</xsl:transform>
In my ABAP program:
REPORT z_xslt_abap_2.
TYPES:
BEGIN OF ty_actual,
itemqualf TYPE char50,
material TYPE char50,
END OF ty_actual,
line_t(4096) TYPE x,
table_t TYPE STANDARD TABLE OF line_t,
ty_t_actual TYPE STANDARD TABLE OF ty_actual.
DATA:
t_actual TYPE ty_t_actual,
t_srctab TYPE table_t,
v_filename TYPE string.
DATA: gs_rif_ex TYPE REF TO cx_root,
gs_var_text TYPE string.
v_filename = 'D:\XML\xslt_test.xml'.
* Function call
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = v_filename
filetype = 'BIN'
TABLES
data_tab = t_srctab
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* Call Transformation
TRY.
CALL TRANSFORMATION (`ZXSLT_RAM`)
SOURCE XML t_srctab
RESULT t_actual = t_actual.
CATCH cx_root INTO gs_rif_ex.
gs_var_text = gs_rif_ex->get_text( ).
MESSAGE gs_var_text TYPE 'E'.
ENDTRY .
IF t_actual IS NOT INITIAL.
WRITE: 'Success'.
ENDIF.
When i run the XSLT program seperately, this is the output that i get:
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<T_ACTUAL>
<ITEMQUALF>ITEM1</ITEMQUALF>
<MATERIAL>MAT1</MATERIAL>
<ITEMQUALF>ITEM2</ITEMQUALF>
<MATERIAL>MAT2</MATERIAL>
<ITEMQUALF>ITEM3</ITEMQUALF>
<MATERIAL>MAT3</MATERIAL>
</T_ACTUAL>
</asx:values>
</asx:abap>
I have been stuck with this for more than two days. If anyone can help me out with this, it would be really great. Please let me know, where i am going wrong.
Thanks in advance.
Best Regards,
Ram.Hi,
You can try this sample program, hopefully will help you.
<a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/readdatafromXMLfileviaXSLT+program&">Read Data From XML</a>.
Regards, -
GenericSortFilter.xsl unable to filter data in inline transformation.
Hi,
I am working on MII 12.0
I need to filter an xml output of transaction. So I am using the inline transformation.
I am passing filter column name, filter column value, filter exp and filter type.
But the data is not getting filtered.
When I am applying inline transformation for sorting, the data is getting sorted.
When I apply generic sort filter action block in transaction to filter the data, itu2019s getting filtered.
Need help on this.
Thanks
Vishal JadhavHi,
We can use generic sort filter in BLS.
But MII has provided XLS transformation facility.
I checked the xsl file used in genericsortfilter case.
A code fragment is below
<xsl:when test="$FilterType = 'lt'">
<xsl:choose>
<xsl:when test="$TestValue < $FilterValue">Y</xsl:when>
<xsl:otherwise>N</xsl:otherwise>
</xsl:choose>
As you can see , instead of checking the FilterExp , it is checking the FilterType.
That's where the problem lies.
I made the necessary changes and now its working fine through the XSL transformation.
Regards,
Vishal Jadhav -
Transformation issue: cx_rsrout_skip_value.
This line of code in my transformation:
<b>raise exception type cx_rsrout_skip_value. "INS</b>
is giving me this syntax error:
<b>E:The type "CX_RSROUT_SKIP_VALUE" is unknown.</b>
anybody got any suggestions?Hi,
You might want to try using this "CX_RSROUT_SKIP_VAL "
<i><b>raise exception type CX_RSROUT_SKIP_VAL</b></i>
It worked for me.
let us know it worked or not..
null -
Error using XSLt Transformation
Hi,
I am using a servlet to get some results from the web which will be a XML file pass it to a XSLT Processor to covert it into a html doc .The code is compiling but when I run the servlet,i am getting following error.
Can anybody tell me how to solve it .its very urgent
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoSuchMethodError: org.apache.xerces.framework.XMLParser.setSendCharDataAsCharArray(Z)V
org.apache.xalan.xpath.dtm.DTM.<init>(DTM.java:222)
org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:197)
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:838)
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:552)
SearchServlet.doGet(SearchServlet.java:90)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.
Following is the code I am using
// importing
import java.net.*;
import java.io.*;
import java.net.URLEncoder;
import java.util.Enumeration;
import java.util.*;
import java.net.MalformedURLException;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.http.HttpServletRequest.*;
import javax.servlet.http.HttpServletResponse.*;
import java.io.OutputStream;
import org.xml.sax.InputSource;
import org.apache.xalan.xslt.XSLTProcessorFactory;
import org.apache.xalan.xslt.XSLTInputSource;
import org.apache.xalan.xslt.XSLTResultTarget;
import org.apache.xalan.xslt.XSLTProcessor;
import org.apache.xml.serialize.BaseMarkupSerializer.*;
import org.apache.xerces.xni.QName;
import org.apache.xerces.xni.XMLAttributes;
import org.apache.xerces.xni.XMLDocumentHandler;
import org.apache.xerces.xni.XMLLocator;
import org.apache.xerces.xni.XMLString;
import org.apache.xerces.xni.XNIException;
import org.apache.xerces.xni.XMLResourceIdentifier;
import org.apache.xerces.xni.Augmentations;
public class SearchServlet extends HttpServlet
//Class SearchServlet
//doGet Method
public void doGet(HttpServletRequest request,HttpServletResponse response) throws
IOException,ServletException,MalformedURLException
//try
try
String resultHere=new PageRequestor().sendGETMessageThroughSocket();
File testFile = new File("C:\\Program Files\\Apache Software Foundation\\Tomcat 5.5\\webapps\\MyApp\\WEB-INF\\classes\\hoz.xsl");
ReadMyFile obj=new ReadMyFile();
String xslResult=obj.getContents(testFile);
OutputStream outcome=response.getOutputStream();
String xmlSystemId = new File(resultHere).toURL().toExternalForm();
String xsltSystemId = new File(xslResult).toURL().toExternalForm();
XSLTProcessor processor =XSLTProcessorFactory.getProcessor();
XSLTInputSource xmlInputSource =new XSLTInputSource(xmlSystemId);
XSLTInputSource xsltInputSource =new XSLTInputSource(xsltSystemId);
XSLTResultTarget resultTree =new XSLTResultTarget(outcome);
processor.process(xmlInputSource, xsltInputSource, resultTree);
PrintWriter out=response.getWriter();
response.setContentType("text/HTML");
out.println("<html>");
out.println("<title>SearchServlet</title>");
out.println("<body>");
out.println("<p>"+resultHere+"</p>");
out.print("<p>"+"AFTER RESULT"+outcome+"</p>");
out.println("</body>");
out.flush();
//try end
catch (Exception e)
//catch
e.printStackTrace();
// catch end
//doGet Method ends
// class SearchServlet endsYou will need Xalan (from xml.apache.org) for this to work properly, and to create an instance of TransformationException and ConfigurationException:
static public void serialize(Document document, OutputStream target, boolean indent)
throws IOException, ConfigurationException, TransformationException {
try {
Transformer transformer = TransformerFactory.newInstance().newTransformer();
if (indent)
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.transform(new DOMSource(document), new StreamResult(target));
catch (TransformerConfigurationException configure) {
throw new ConfigurationException("Error instantiating XML transformer", configure);
catch (TransformerException transform) {
/** @todo Need to write a generic transformation or serialization exception */
throw new TransformationException("Error transforming XML", transform);
}- Saish -
Hi all,
I am doing a scenario using BPM.In which I called SAP and several webservices synchronously.I also define Fault messages in the abstract synchronous message inetrface and
used those message interface to send message synchronously to SAP and webservices in blocks. In those blocks I insert exception branches and attach those exception branches to synchronous steps for both system error and fault message.
Now while executing scenario some times system error and application exception are caught properly in BPM, but sometimes it doesn't catch exceptions for system error and application exception.
Please, can anyone give me a valid reason for this behaviour.
Thanks in advance
Regards,
SamiHi,
Some of the suggestions for exception handling-
1) non availability of the Webservice, connection problem etc. For this either you can acheieve Send Step with Acknowledgement mode or Alerts configured for Adapters
2) Application Acknowledgement-Webservice is given any error for the data. You can handle that thru email from XI etc
3) Error in updating the R/3 system
4) Timeout delay while calling Webservice
So for these you can configure Alerts.
Alert management is required to notify runtime errors/abnormal errors during runtime. SO it will notify the user/admin person as per the requierements so that you can avoid some of the delay in the process etc..
About Alert Management-
http://help.sap.com/saphelp_nw2004s/helpdata/en/93/40a442b024b211e10000000a155106/content.htm
Please check the links below:
This will help you
http://help.sap.com/saphelp_nw04/helpdata/en/16/62073ced568e59e10000000a114084/frameset.htm
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/1b9259fb002be8e10000000a11466f/frameset.htm
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
Re: alert monitoring
Re: Alert not working?
Alerts in MS Inbox
Use of Exception Handling is a very essential step inside your BPM and the best thing to do would be to wrap each of your Send / Transformation inside a Exception Handling block.
You can use Moorthy's blog on Reocnilation as well as trigger alerts.
/people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm
hope this will help you, For further queries you can revert back.
Plz reward with point sin case you are satisfied.
Regards,
Sushama -
Exception while trying to write xml file
When I try to write my DOM tree to an XML file a get the following exception form the transformer.transform() function call:
Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: org.apache.crimson.tree.XmlDocument.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:662)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at CentMon.ConfigRW.writeConfig(ConfigRW.java:77)
The whole thing worked for 2 years. I did not change anything on the code. the only difference is that i have now office 2007 installed instead of office 2003.
That's the code which generates the exception:
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
public void writeConfig(Document doc){
TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer;
if (doc==null){
System.out.println("Document is null");
else{
try {
transformer = tFactory.newTransformer();
} catch (TransformerConfigurationException e) {
transformer = null;
System.out.println(e.getMessage());
DOMSource source = new DOMSource(doc);
StreamResult result = new StreamResult(new File(filename));
try {
if (transformer != null){
transformer.transform(source, result);
} catch (TransformerException ex) {
Logger.getLogger(ConfigRW.class.getName()).log(Level.SEVERE, null, ex);
}I am getting the exact same error when trying to write out an XML file. I have been following the J2EE Tutorial. Perhaps I need to look for a more recent tutorial.
Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: org.apache.crimson.tree.XmlDocument.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:662)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at com.wordhopper.xml.DOMXMLParser.writeXMLFile(DOMXMLParser.java:55)
at com.wordhopper.gui.xmltool.XMLEditor.writeButtonActionPerformed(XMLEditor.java:217)
at com.wordhopper.gui.xmltool.XMLEditor.access$100(XMLEditor.java:13)
at com.wordhopper.gui.xmltool.XMLEditor$2.actionPerformed(XMLEditor.java:139)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6348)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6113)
at java.awt.Container.processEvent(Container.java:2085)
at java.awt.Component.dispatchEventImpl(Component.java:4714)
at java.awt.Container.dispatchEventImpl(Container.java:2143)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) -
BPM - Exception Banch not getting triggered
Hi All,
I have developed a simple BPM, where on Transformation error, it has to throw an Alert in Control Step using Exception handler. but it is not going into Exception branch on error in Transformation Step. My BPM is as follows.
Step1
Recieve
Step2:
Block with Exception Branch
Transformation Step
On Exception
it has to enter into Exception Branch
But it is not
If anybody encountered similer problem, please clarify?
Also the same scenario i can able to execute successfully in our local system but not in client system
Is service pack level will be an issue. Because our local system is SP16 where as our client system has SP10.
Regards
Vijayanandhi,
1. did you create an exception handler for the whole block?
2. did you assing this exception to the transformation step
3. did you assing the exception branch to this exception handler?
if you did that remove it and create once more from scrach - save and activate and it will work
Regards,
Michal Krawczyk -
A question about simple transformation
Hello Experts,
I wrote a simple transformation according to certain XML structure. But when I ran the transformation with an XML file, an exception will pop up as following
"Attribute 'requestListId' expected"
So I executed my program once again in debug mode and go inot the transformation. The exception comes from the following line
<tt:attribute name="requestListId" value-ref="REQUEST_LIST_ID"/>
I can open the XML file with IE. I checked the XML carefully and can't find anything wrong.
I really don't why the exception poped up.
Can any expert provide support and help in Transformation programming and Transfromation debug?
Thanks a lot.
Best Regards, Johnney.Have other solution. So close it.
-
Getting exception in reading .xlsm and .xlsx using POI
I m trying to read .xls,.xlsm and .xlsx sheet.
Code works properly if tried to read .xls sheet but shows exception if tried to read .xlsm and .xlsx sheet. I have configured necessary jars file in my classpath-
poi-3.8-20120326.jar,
poi-examples-3.8-20120326.jar,
poi-excelant-3.8-20120326.jar,
poi-ooxml-3.8-20120326.jar,
poi-ooxml-schemas-3.8-20120326.jar,
poi-scratchpad-3.8-20120326.jar,
ooxml-schemas-1.0.jar,
xmlbeans-2.3.0.jar,
dom4j-1.6.1.jar,
geronimo-stax-api_1.0_spec-1.0.1.jar
but then also I am getting below error-
Exception in thread "main" org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException
at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:62)
at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:403)
at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:408)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:155)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:183)
at screens.LireEcrire.main(LireEcrire.java:26)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:60)
... 5 more
Caused by: org.apache.xmlbeans.XmlException: error: duplicate attribute 'o:relid'
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:663)
at org.apache.poi.xssf.usermodel.XSSFVMLDrawing.read(XSSFVMLDrawing.java:107)
at org.apache.poi.xssf.usermodel.XSSFVMLDrawing.<init>(XSSFVMLDrawing.java:102)
... 10 more
Caused by: org.xml.sax.SAXParseException: duplicate attribute 'o:relid'
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
... 16 moreYou might have better luck with a POI forum.
-
Elements 6: transform tool problems
I've just downloaded a trial version of Elements 6 for Mac. I use an iMac with OSX 10.5.5
I find the transform tool doesnt work as expected (neither did it in Elements4). It seems to be OK in performing a transform perspective operation except for the final step when pressing return results in nothing happening. The change is still visible but Elements won't actually make the change to the jpeg image. I wonder if anyone has suggestions? Do I have some vital but obscure setting in Elements disabled or not set?
Chris, UKThank you for responding Barbara. I'm trying to correct some converging verticals by using the transform perspective commands. It's a part of Photoshop that I was familiar with when using CS3 on my PC but using Elements (I've tried both 4 and 6) on a Mac seems to be different. I've tried the checkmark (in 4, but it isn't there in 6) which also fails to action the selected perspective transformation. Any suggestions would be very much appreciated. Regards. Chris
-
Hi,
I want to download a file in XLS format.
While using KD_GET_FILENAME_ON_F4 FM .
When i get a pop up window ,i need the default filetype to be shown as XLS file type.I am declaring like this.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
program_name = syst-repid
dynpro_number = syst-dynnr
FIELD_NAME = 'rt'
static = 'X'
mask = ',.XLS,*.xls'
CHANGING
file_name = lv_filepath
EXCEPTIONS
mask_too_long = 1
OTHERS = 2. -
Upload data from Excel to internal table without using Screen
Hi,
My reqirment is to read the excel input data and then upload it to internal table for further proceeing but without using selection input screen. I mean can I mention the fixed file name and the path in the function module iself for the input file.1.First create one internal table as u have created ur EXCEL file.
e.g: if ur EXCEL file contains 3 fields col1 col2 and col3.
data: begin of wa,
col1(10),
col2(10),
col3(10),
end of wa,
itab like standard table of wa.
data: filename type string 'C:\FOLDER\DATA.XLS'
If u dont want to use the screen, then pass the file name directly to the GUI_UPLOAD FM.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
FILETYPE = '.XLS'
tables
data_tab = itab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
This will serve ur puspose.
loop at itab into wa.
write: / wa-col1,wa-col2,wa-col3.
endloop.
Thanks & Regards
Santhosh -
Viewing Excel Files using Tomcat - Problem with caching
Hi all,
A small part of an application I'm writing has links to Excel files for users to view/download. I'm currently using Tomcat v5 as the web/app server and have some very simple code (an example is shown below) which calls the excel file.
<%@ page contentType = "application/vnd.ms-excel" %>
<%
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
response.sendRedirect("file1.xls");
%>
This all works except but I'm having one big problem.
The xls file (file1.xls) is updated via a share on the server so each month, the xls file is overwritten with the same name but with different contents. I'm finding that when an update is made to the xls file and the user then attempts to view the new file in the browser they recieve only the old xls file. It's caching the xls file and I don't want it to. How can I fix this so that it automatically gives the user the new updated file.
The only way I've managed to get Tomcat to do this is to delete the work directory and delete the file from my IE temp folder and then restart Tomcat - this is a bit much!
Any help would be greatly appreciated.
Thanks.I'd a problem with caching a few years back, for a servlet request which returned an SVG file.
As a workaround, I ended up putting appending "#" and a timestamp / random number after it. The browser assuming each request was new, and didn't use the cache.
Eg.
http://myserver/returnSVG.do#1234567
where 1234567 is a timestamp / random.
Not sure whether you can do this on a file based URL... but maybe worth a shot...
regards,
Owen
Maybe you are looking for
-
Internal server error when trying to empty the trash in my contacts
I deleted my contacts and when I try to empty the trash it says "internal server error." Anyone know how to fix this?
-
I need a link to automatically populate an enquiry form.
Right, I want a customer to be able to choose an item from a bunch of them, then click on a link next to the item, which will automatically fill in a specific field in an enquiry form. As in, clicking Dress #4 would straight off take you to the conta
-
Hi! I have a sometimes very irritating problem with Firefox. I have a Logitech G7 mouse with a tiltable wheel that I've set up to change tabs in forefox, and a sidebutton that I use to close tabs with. I'm just using xbindkeys to bind the mouse butto
-
I have an POP account created in Mail Something goes wrong with the upgrade From Mail I can send the messages but I is unable to receive because the "signatures" from the server (IP) are not trusted then I have created another account using the s
-
Support less than number of occurences
Hi, I'm trying to create a shopping basket analysis on our sales. For the two articles starting with 529 and 521 there are 6 sales with them on the same order number as can be seen on the drillthrough. But I thought that the support column was meant