Conversion problem in xml file
Hi ,
I am updating the table reading an xml file. For the column whose datatype is raw, i read the value as string and convert to byte[] and update the database . I get an error value too large for the column. Is this because I'm converting the byte[] array which was originally put into xml file as string back to byte[] that I'm losing the original value.
Thanks in advance
Poornima
Hi ,
I am updating the table reading an xml file. For
For the column whose datatype is raw, i read the
value as string and convert to byte[] and update the
database .How do you convert the String to bytes? Using which character encoding?
I get an error value too large for the
column.... but the column should be able to hold that value? Have you checked how many bytes you get in that array?
Is this because I'm converting the byte[]
array which was originally put into xml file as
string back to byte[] that I'm losing the original
value.Probably yes.
Can you read plain bytes from the file?
Similar Messages
-
Problem validating xml file - jaxb
hi people, I'm working with jaxb to generate Java source classes from the .xsd schemas that I have. I work with 17 schemas that, a priori, I can't modify. In those schemas there are a lot of types and structures that I can use when creating an .xml file. I've read other threads with the problem of namespaces but as a solution they provide a modification on the schemas. The generation of java source is ok, I've done custoization classes and no problem, but when I try to unmarshal an input xml file I get an error of validation:
DefaultValidationEventHandler: [ERROR]: Probably namespace URI of tag "XFFile" is wrong (correct one is "http://ww........
A possible xml file is :
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE XFFile><XFFile xmlns:rp210Elements="http://www.smpte-ra.org/schemes/434/200X/multiplex/S377M/2004" xmlns:s377mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S377M/2004" xmlns:s377mMux="http://www.smpte-ra.org/schemes/434/200X/multiplex/S377M/2004" xmlns:s377mTypes="http://www.smpte-ra.org/schemes/434/200X/types/S377M/2004" xmlns:s380mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S380M/2004" xmlns:s381mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S381M/200X" xmlns:s382mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S382M/200X" xmlns:s385mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S385M/2004" xmlns:s422mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S422M/200X" xmlns:s422mTypes="http://www.smpte-ra.org/schemes/434/200X/types/S422M/200X" xmlns:s423mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S423M/200X">
<s380mGroups:ClipFramework rp210Elements:InstanceID="a6.67.7a.47.19.2f.4b.10.8f.ee.1e.59.6d.4c.f1.70" rp210Elements:LinkedGenerationID="0e.10.a8.9c.96.1c.4c.11.b1.fb.0a.a9.40.22.a4.e2">
<rp210Elements:ClipCreationDateTime>
<rp210Elements:Year>2006</rp210Elements:Year>
<rp210Elements:Month>4</rp210Elements:Month>
<rp210Elements:Day>18</rp210Elements:Day>
<rp210Elements:Hour>12</rp210Elements:Hour>
<rp210Elements:Minute>0</rp210Elements:Minute>
<rp210Elements:Second>0</rp210Elements:Second>
<rp210Elements:mSec4>0</rp210Elements:mSec4></rp210Elements:ClipCreationDateTime>
<rp210Elements:FrameworkExtendedTextLanguageCode>fr</rp210Elements:FrameworkExtendedTextLanguageCode>
</s380mGroups:ClipFramework>
</XFFile>
I think it's ok because someone has provided it to my company but I can't validate it because it takes elements from many schemas (am I wrong and I can?)
i can't post the schemas because of the copyrights (damn it). I'm not asking for a solution but if someone has an idea or has had a similar problema.. I'll appreciate all comments, thanks
Jordi
Message was edited by:
WuWeiIn the schema root element xs:schema add namespace declaration.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
In the XML document root element add xmlns:xsi and xsi:noNamespaceSchemaLocation attributes.
<root_element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file://c:/testing.xsd"> -
types: begin of type_s_data,
record(65000) type c,
end of type_s_data.
data: w_xml_out type string.
data: t_xml_tab type table of type_s_data with header line,
Source code
t_code type table of type_s_data with header line,
After populating t_code table,
convert internal table data into XML document
call transformation id
source code = t_code[]
result xml w_xml_out.
append XML docu to internal table
append w_xml_out to t_xml_tab.
Download to XML file
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = filename
filetype = 'BIN'
append =
write_field_separator = sep
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
tables
data_tab = t_xml_tab
FIELDNAMES =
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22.
if sy-subrc <> 0.
message e016 with 'Error during file download'(002).
endif.
Problem here is when intrernal table data/size is large, only part of the data is getting displayed in the file and at the bottom of the file showing an error message
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
End element was missing the character '>'. Error processing resource 'file:///C:/Documents and Settings/sowjanya.suggula/De...
RECORD
^
>RECORD>
</item>
wehn i change data declaration as
data: t_xml_tab type table of string with header line.
when i execute the program, giving me a short dump.please suggest me a soluion for this.
Regards,
SowjanyaHi Sowjanya,
Kindly go through this link below:
It Uploads XML to internal table and vice versa :
Upload XML to internal table and vice versa in SAP 4.6C
Hope it helps
Regrds
Mansi -
JSTL - Problem parsing XML file w/ XML schema declarations
I'm having trouble parsing an xml document that contains XML schema declarations in the root element. I've included 2 snippets, the XML files they're supposed to parse, and their output below. The first one works and the second one doesn't. Could someone please tell me why? I find it hard to believe that no one's run into this before.
I'm running Tomcat 5.5 and I'm using JSP 2.0, jakarta standard taglibs jars (1.1.2), jdk 1.5.0_04, and the Xalan 2.7.0 jars.
Here's the first snippet:
<c:import url="/WEB-INF/config/schools.xml" var="xml" />
<x:parse doc="${xml}" var="schoolList"/>
There are <x:out select="count($schoolList//school)"/> schools in the file:<br/>
<x:forEach select="$schoolList//school">
<x:out select="name"/><br/>
</x:forEach>it parses the following xml file:
<?xml version="1.0" encoding="UTF-8"?>
<schools>
<school id="34033">
<name>Tumwater Middle School</name>
<district>Tumwater</district>
<type>middle</type>
<active>false</active>
</school>
<school id="17001">
<name>Garfield High School</name>
<district>Seattle</district>
<type>high</type>
<active>true</active>
</school>
<school id="00023">
<name>Tigard High School</name>
<district>Tigard-Tualatin</district>
<type>high</type>
<active>true</active>
</school>
</schools>and it outputs:
There are 3 schools in the file:
Tumwater Middle School
Garfield High School
Tigard High School-----------------------------------------
The second snippet:
<c:import url="/WEB-INF/config/schools2.xml" var="xml2" />
<x:parse doc="${xml2}" var="schoolList2"/>
There are <x:out select="count($schoolList2//school)"/> schools in the file:<br/>
<x:forEach select="$schoolList2//school">
<x:out select="name"/><br/>
</x:forEach>parses this xml file (note the xml schema declarations):
<?xml version="1.0" encoding="UTF-8"?>
<schools xmlns="http://www.serenus.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.serenus.com schools.xsd">
<school id="34033">
<name>Tumwater Middle School</name>
<district>Tumwater</district>
<type>middle</type>
<active>false</active>
</school>
<school id="17001">
<name>Garfield High School</name>
<district>Seattle</district>
<type>high</type>
<active>true</active>
</school>
<school id="00023">
<name>Tigard High School</name>
<district>Tigard-Tualatin</district>
<type>high</type>
<active>true</active>
</school>
</schools>and its output is:
There are 0 schools in the file:That's it! No errors at all! I'm 100% certain the variable names, filenames, etc. are correct. I've looked everywhere for an existing answer to this problem, but I can't find one. Is this a known issue? Please help.
-BenHi Ben,
I got exactly the same problem and also could not find any solution.
Did you find a way out for this problem meanwhile?
Any help is welcome! -
Issue with Date Conversion when loading XML File into Oracle 10g Database
Hello all,
I have the interface shown in the screenshot below. In it, amongst other actions, I'm mapping an XML file element representing a date to an Oracle table column defined as DATE. The source and target columns are highlighted in the screenshot.
!http://img223.imageshack.us/img223/1565/odiscr275.jpg!
When I execute the interface, I get the following error message:
java.lang.IllegalArgumentException at java.sql.Date.valueOf(Date.java:103)
I'm assuming this refers to the date conversion!
I've already tried replacing SRC_TRADES.DEAL_DATE with TO_DATE( SRC_TRADES.DEAL_DATE, 'DD/MM/YYYY' ) in the Implementation tab. This function was not recognised when I executed the interface, so it didn't work! The date value in the XML file is in DD/MM/YYYY format.
I'm guessing that Oracle SQL Date functions don't work in the Implementation tab. Please could somebody let me know:
1. Which Date Conversion function I could use instead?
2. Where I can find a reference for the methods/functions I can use in the Implementation tab (if such a reference exists)?
Cheers.
JamesHi.
Try to change the execution area to staging area. After You change it, write in the mapping box just SRC_TRADERS.DEAL_DATE. When You use TO_DATE, the source field typu should be varchar2, not date (as it is in your source datastore) -
Problem loading XML-file using SQL*Loader
Hello,
I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
Loader control-file:
LOAD DATA
INFILE *
INTO TABLE BATCH_TABLE TRUNCATE
FIELDS TERMINATED BY ','
FILENAME char(255),
XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
BEGINDATA
data.xml
The BATCH_TABLE is created as:
CREATE TABLE BATCH_TABLE (
FILENAME VARCHAR2 (50),
XML_DATA SYS.XMLTYPE ) ;
And the data.xml contains the following lines:
<?xml version="2.0" encoding="UTF-8"?>
<!DOCTYPE databatch SYSTEM "databatch.dtd">
<batch>
<record>
<data>
<type>10</type>
</data>
</record>
<record>
<data>
<type>20</type>
</data>
</record>
</batch>
However, the sqlldr gives me an error:
Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
ORA-21700: object does not exist or is marked for delete
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 1
If I remove the first two lines
"<?xml version="2.0" encoding="UTF-8"?>"
and
"<!DOCTYPE databatch SYSTEM "databatch.dtd">"
from data.xml everything works, and the contentents of data.xml are loaded into the table.
Any idea what I'm missing here? Likely the problem is with special characters.
Thanks in advance,I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?
-
Help: Problems accessing XML file in WebSphere 3.5 Fix Pack 4 on Solaris
We are having an emergent issue with WebSphere 3. 5 Fix Pack 4 on Solaris 2.6: The WAR file we deployed fails with runtime exception due to the inability
to access a local resource(XML file) in the converted WAR file's web directory.
The way we access this XML file is as follows:
ServletContext theCon = getServletContext();
URL u = theCon.getResource ("/web/test.xml");
String newPath = u.toExternalForm ();
InputStream is = new URL (newPath).openStream();
The InputStream returned from the URL object is NULL.
After checked the URL's externalForm string, we noticed that its protocol part is "classloader", e.g. the whole URL string is like "classloader:/opt/...../web/test.xml". However, if we replaced "classloader" with "file", the problem disappeared and the XML file can be read without error.
Anybody know why "classloader:" in the URL string cause this problem, and what is the solution without changing the URL string?
Thanks a lot!Hi,
Can you try to replace the two last lines with:InputStream is = new FileInputStream (u.getFile());Hope this helps,
Kurt. -
Hi,
I'm using the photo galleries example.
But in my program, I modify the xml files
(galleries.xml,gallery.xml...).
My problem is when I modify the xml files and refresh the
page. It's not modified.
Every time, I need to delete the internet cache files.
I try to put this function dsGalleries.loadData() but it
doesn't work.
Do you have an idea?
ThanksActually, my problem is simple. Firefox refresh very well my
page but internet explorer doesn't reload the xml files.
I know that the problem is really famous. I found a lot of
topics in your forum and on the internet but anyone couldn't solve
it.
I put this in my page:
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
<meta http-equiv="Last-Modified"
content="date(DATE_RFC822)">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="date(DATE_RFC822,
mktime() - 3600)">
<meta http-equiv="Cache-Control"
content="no-cache,must-revalidate">
But it's the same problem.
Do you have a solution?
Thanks -
Having Problems importing XML file from FCP 6 onto a FCP 5 application
I have a project file that i worked on FCP 6 and wanted to move to FCP 5 app. on a different Pro Mac but when i try to import the xml, it prompts me to "Please choose a Translation Document File". I choose the FCP 6 project file because i wasn't sure what to choose and i get the ERROR: No translation templates matching the selected XML file were found. Unable to import this file.
any ideas?make sure you exported your XML from FCP6 using a compatible XML version (1, 2 or 3) ... version 3 would make the most sense as its the most recent FCP5 compatible version .... don't export using version 4 (the default for FCP6), that one is for transfering projects between different installations of FCP6 only
-
Problem validating XML file with external schema file
Hi All
I am having trouble at the moment trying to validate an xml file using an external xsd file that sits on my server. I have followed the basic option but at the moment to no avail. I am using a DOMParser and am setting all the features and properties correctly ... well I think I am anyway.....below is a fragment of the code
DOMParser parser = new DOMParser ();
// Setting the validation on for the parser.
parser.setFeature ( "http://xml.org/sax/features/validation", true );
parser.setFeature ( "http://apache.org/xml/features/validation/schema", true);
parser.setProperty ( "http://apache.org/xml/properties/schema/externalnoNamespaceSchemaLocation", "c://testing.xsd" );
parser.setErrorHandler ( this );
I am getting an error telling me that the root element cannot be found.....see below
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'mainhome'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at com.cibenix.aps.util.MenuXMLParser.process(MenuXMLParser.java:163)
at com.cibenix.aps.actions.MenuAddAction.execute(MenuAddAction.java:80)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
Any help would be greatly appreciated
thanksIn the schema root element xs:schema add namespace declaration.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
In the XML document root element add xmlns:xsi and xsi:noNamespaceSchemaLocation attributes.
<root_element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file://c:/testing.xsd"> -
Problem writing xml file using DOM
Hi,
I am trying to write a xml file using DOM. I am using xalan 2.5, xerces 1.4.4, jdk 1.3.1 in JRun 3 on windows.
The code where I get exception :
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
transformer.transform(new DOMSource(doc), new StreamResult("pr.xml"));
I get the runtime error as follows:
javax.servlet.ServletException: null
java.lang.NoSuchMethodError
at org.apache.xml.utils.DOM2Helper.getNamespaceOfNodeDOM2Helper.java:342)
at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:387)
at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:202)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:343)
Thinking it is because of classpath, I placed xalan 2.5, xerces 1.4.4 jar files in jrun admin lib directory and in server lib directory as well. Still getting the same error.
Any suggestion?
Thanks in advancexalan is included in JRun 4. However JRun 3 does not.
However I tried with the same code in JRun3 in different system. The error is completely different. I understand this is because of different version of files. trying to solve ;)
Here my new exception
javax.servlet.ServletException: org/w3c/dom/ranges/DocumentRange
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at com.cybell.appl.deliveryorder.cmd.CreateXMLDOFile.createFile(CreateXMLDOFile.java:73)
at com.cybell.appl.deliveryorder.cmd.CreateXMLDOFile.execute(CreateXMLDOFile.java:36)
at com.cybell.appl.framework.cmd.BaseCommand.start(BaseCommand.java:50)
at com.cybell.appl.framework.control.BaseController.service(BaseController.java:38)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatcher.java:34)
at allaire.jrun.servlet.Invoker.service(../servlet/Invoker.java:84)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) -
File conversion of complex XML file
Hi,
we are trying to collect several IDOCs to a flat file. Therefore I create one message with the following structure:
<i><File>
<Message>
<Segment1>
<value1>a</value1>
</Segment1>
<Segment2>
<value1>b</value1>
</Segment2>
</Message>
<Message>
[Same Message body]
</Message>
</File></i>
Each segment should be converted to a new line.
Unfortunately this structure is to complex to convert it using the Content Conversion of the file adapter.
Is there any way to solve this problem without using the Append mode of the adapter ?
Best regards,
LinusHi,
thanks for your answers.
The problem in our case is, that there could be "several messages in one", meaning:
<i><XML Message>
<SubMessage1>
<Seg1>
</Seg1>
<Seg2>
</Seg2>
<Seg2>
</Seg2>
<Seg3>
</Seg3>
</SubMessage1>
<SubMessage2>
<Seg1>
</Seg1>
<Seg2>
</Seg2>
<Seg2>
</Seg2>
<Seg3>
</Seg3>
</SubMessage2>
...additional submessages...
</XML Message></i>
This structure should be converted to the following:
<i>L1 [Seg1]: value;value;value...
L2 [Seg2]: value;value...
L3 [Seg2]: value;value...
L4 [Seg2]: value;value...
L5 [Seg3]: value;value...
L6 [Seg1]: value;value...
....</i>
The problem is, that I don't know how to map the n elements of m complex elements of an XML message to n*m simple elements (which could be converted by the file adapter).
Could you see my problem?
Best regards,
Linus -
Problem about .xml file from PPro CS5 to FCP with RED and P2 file.
I have create a Project in Premiere Pro CS5.
I import the RED file R3D or P2 file XMF and editing my media.
From menù File i select Export to "Final Cut Pro XML.."
I open FCP and Import file XML but the media are not reconnect.
"Warrnig: Non-critical error were found while processing an XML document.
Would you like to see a log of these error now?"
I want see the log file and...
"<file>: Unable to attach specified media file to new clip."
Where is the problem?Hi Dennis I re-format my MACPRO 8 Core and I installed Final Cut Studio Suite and CS5 Premium (no CS4)
I install Blackmagick driver Decklink 7.6.3
If I open the After Effects and setting preview card blackmagic, I see the preview in external monitor.
If I open the Premiere Pro and setting preview, I don't see the blackmagic card but the second monitor, DV....etc.
In Premiere I see the blackmagic preset, but no the preview card.
I have a second question.
About Red file I want editing in Premiere Pro and i whant color correct in Apple Color from FCP.
My problem is: my color program crash when I send file form FCP to Color (random mode)
The sequence is:
I import file red in PPro5 -- editing file --- export file xml.
Close the PPro5.
Open FCP import xml (no re-link media)
Save de project in FCP
Select sequence and send to Color.
In this moment the Apple Color crash.
I shutdown the MAC.
I power-up the MAC
Open FCP select the project and send the sequence to Color.
Color see the project but no media.
I re link the media and I editing in color my media.
Why Apple Color program crash?
Sorry for my English
Many Thanks
Distinti saluti
Gianluca Cordioli
Alchemy Studio'S di Gianluca Cordioli
Via Pacinotti 24/B
37135 VERONA
cell.:+39 3385880683
[email protected]
www.alchemystudios.it -
Hi Gurus,
1. In the code, CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD has been used
to uplaod the excel sheet data.
2. After upload,its been tried to convert the uploaded data to XML by following
code.
ixml = cl_ixml=>create( ).
xmlDoc = ixml->create_document( ).
streamFactory = ixml->CREATE_STREAM_FACTORY( ).
iStream = streamFactory->CREATE_ISTREAM_STRING( xmlString ).
iXMLParser = iXML->create_parser( stream_factory = streamFactory
istream = iStream
document = xmlDoc ).
iXMLParser->parse( ).
ixmlDocument = xmlDoc.
3. After creation of xmlDoc its trying to get root element from xml doc by
rootnode = if_ixml_document~get_root_element.
its not returning the root element reference to rootnode.
4. In method cl_ixml_document->if_ixml_document~get_root_element, its calling
below statement
system-call ixml
did 954859521
parameters
cl_ixml=>the_iXML
me
name
rval.
and rval has became null reference.
Could anyone help me to resolve this problem.
Thanks & Regards,
Bhuvana.Hi,
Now I could able to execute the same program. But I couldn't get and node data from the imported file.
1. In the code, CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD has been used
to uplaod the excel sheet data.
2. After upload,its been tried to convert the uploaded data to XML by following
code.
ixml = cl_ixml=>create( ).
xmlDoc = ixml->create_document( ).
streamFactory = ixml->CREATE_STREAM_FACTORY( ).
iStream = streamFactory->CREATE_ISTREAM_STRING( xmlString ).
iXMLParser = iXML->create_parser( stream_factory = streamFactory
istream = iStream
document = xmlDoc ).
iXMLParser->parse( ).
ixmlDocument = xmlDoc.
3. After creation of xmlDoc its trying to get root element from xml doc by
<b>rootnode = if_ixml_document~get_root_element.
name = rootnode->get_attribute( 'name' ).</b>
I am not getting other node data also ?
I couldn't find where I am doing the mistake.
Can any one help me ? -
Problem loading xml file with method
I am using this method to insert into table of xmltype
INSERT INTO xml_table
VALUES (XMLType(bfilename('XMLDIR','Test_xml.xml'),
nls_charset_id('AL32UTF8')));
xml gives error
<?xml version="1.0"?>
<!--<!DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd">-->
<metadata xml:lang="en"><Esri><MetaID>{299847D5-3DDC-4375-9469-607DC669DD6E}</MetaID><CreaDate>20091029</CreaDate><CreaTime>12035600</CreaTime><SyncOnce>FALSE</SyncOnce><SyncDate>20091029</SyncDate><SyncTime>12054400</SyncTime><ModDate>20091029</ModDate><ModTime>12054400</ModTime></Esri><idinfo><native Sync="TRUE">Microsoft Windows XP Version 5.1 (Build 2600) Service Pack 3; ESRI ArcCatalog 9.3.0.1770</native><descript><langdata Sync="TRUE">en</langdata><abstract>REQUIRED: A brief narrative summary of the data set.</abstract><purpose>REQUIRED: A summary of the intentions with which the data set was developed.</purpose>
but when i remove
<!--<!DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd">-->
it successfully executes and value is inserted of xmltype
Please suggest how i can insert the original xml without error.SQL> call UTL_HTTP.set_proxy('proxy.mydomain.com:8080', NULL);
Call completed.
SQL> declare
2 t_result
3 varchar2(4000);
4 begin
5 t_result := utl_http.request('http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd');
6 INSERT INTO xml_table
7 VALUES (XMLType(bfilename('XMLDIR','bas_street_segment.xml'),
8 nls_charset_id('AL32UTF8')));
9 end;
10 /
declare
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1577
ORA-12545: Connect failed because target host or object does not exist
ORA-06512: at line 5
It is giving error, we made a call to UTL_HTTP.set_proxy, it is ok.
Is there a way that i have dtd file, fgdc-std-001-1998.dtd on local machine and dtd gets validated when i
insert the xml without need for oracle to go to internet. I need both dtd validation with internet and from local path options.
Please help, thankx for timely help
sivaram
Maybe you are looking for
-
Im not a lightroom user. even though I have some version 4. I use acdsee pro 6. but my friend has the 5.6 CC version but has a language issue so im trying to help me. basically will guide him over the phone. he was editing a wedding, the computer cra
-
How to Use views of one report to other reports
I have so many reports with same views like static text, header & footer . My question is: I have created these views on some reports which are same to all reports as i said. Now i want to use these views from the existed reports without creating onc
-
Hello I hope someone can help, I am using Adobe photoshop elements 12, I am using a PC with windows 8.1. any ways I recently was prompted that I had a update for PE12, as i always do i followed the exact instructions after the restart as prompted. I
-
I do not want integration with IOS or iCloud
Hello, I have a late 2010 27 inch iMac and a first generation iPad. I foolishly installed Mountain Lion when it came out and have become increasingly frustrated and irritated with the emphasis on iCloud (I did not install that) and integration with I
-
Basically as the title says really. It worked perfectly fine a few months ago and now nothing at all. When I plug the USB lead in it used to be recognized straight away. I have tried rebooting my Mac with the device already connected and that still h