Namespace issue while generating XML based on xsd
Hi All,
I am using Jdeveloper-11.1.1.6
SOA:- 11.1.1.6
WLS:- 11.3.6
When i am publishing xml message i am getting name space issue.
My process design as i am getting a message from AQ JMS and doing a transformation with out any logic and writing into a file based on the xsd.
Here is the my target xsd structure
<xs:schema id="RelieveIntransitSchema"
targetNamespace="http://tempuri.org/RelieveIntransitSchema.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/RelieveIntransitSchema.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="RelieveIntransits">
<xs:complexType>
<xs:sequence>
<xs:element name="RelieveIntransit" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="RelieveStore" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence></xs:sequence>
<xs:attribute name="StoreID" type="xs:string"/>
<xs:attribute name="Units" type="xs:double"/>
<xs:attribute name="RelieveAllStores" type="xs:boolean"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="HeaderID" type="xs:string" use="optional"/>
<xs:attribute name="ProductID" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
My actual target xml should be of
<?xml version="1.0"?>
<RelieveIntransits xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/RelieveIntransitSchema.xsd">
<RelieveIntransit HeaderID="DA41198901491301" ProductID="D037-63-1270S">
<RelieveStore StoreID="D001" Units="0002092 " />
<RelieveStore StoreID="D003" Units="0000022 " />
</RelieveIntransit>
</RelieveIntransits>
But the out xml generating as below which is not accepted by target system
<?xml version="1.0" encoding="UTF-8"?>
<RelieveIntransits xmlns="http://tempuri.org/RelieveIntransitSchema.xsd" xmlns:ns5="http://tempuri.org/RelieveIntransitSchema.xsd"> <ns5:RelieveIntransit ProductID="6534562" HeaderID="10R7771-6534562001-109"> <ns5:RelieveStore Units="5" StoreID="118"/>
<ns5:RelieveStore Units="5" StoreID="118"/>
</ns5:RelieveIntransit>
</RelieveIntransits>
Could some one please help me how to generate actual one as shown above with out namespace prefix "ns". I tried xsl code for removing name space prefix using https://forums.oracle.com/forums/thread.jspa?threadID=1122673 but it is removing url also.
Regards,
Tarak
Edited by: Tarak on Jul 26, 2012 11:39 AM
Hi,
Sorry for my delay response.
Both xmls are valid and equivalent for me... should be equivalent to <ns1:a xmlns:ns1="namespace"/>...
I agree to your point.
What is your target system? If that makes difference for your target system I would say it is not fully XML compliant...
Target system is an old one called as MID. Yes i agree it is not fully XML Compliant. I am publishing the message through file adapter and it is reading the file.
But anyway... The trick in the other thread should work... What do you mean by "removing url also" ???
Using the Namespaces remove xsl code i am getting structure as below. In this alone with prefix name space url also getting removed.
<RelieveIntransits>
<RelieveIntransit HeaderID="DA41198901491301" ProductID="D037-63-1270S">
<RelieveStore StoreID="D001" Units="0002092 " />
</RelieveIntransit>
</RelieveIntransits>
I am expecting like this
<?xml version="1.0"?>
<RelieveIntransits xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/RelieveIntransitSchema.xsd">
<RelieveIntransit HeaderID="DA41198901491301" ProductID="D037-63-1270S">
<RelieveStore StoreID="D001" Units="0002092 " />
</RelieveIntransit>
</RelieveIntransits>
Similar Messages
-
Generating XML based on XSD.
HI All,
I have an XSD and some data (in the form of value objects)that needs to be represented as XML . is thr any way to generate my XML dynamically using by data and reading the XSD content.
Thanks
-vijayHi,
If u want to create XML document according to the XSD you defined then u can use the JAXB API, here you do the Marshalling which directly converts the java objects into the XML document.
Ref this link:-
http://java.sun.com/xml/jaxb/users-guide/jaxb-using.html#sampapp3 -
Performance issue while generating Query
Hi BI Gurus.
I am facing performance issue while generating query on 0IC_C03.
It has a variable as (from & to) for generating the report for a particular time duration.
if the variable (from & to) fields is filled then after taking a long time it shows run time error.
& if the query is executed without mentioning the variable(which is optional) then the data is extracted from beginning to till date. the same takes less time in execution.
& after that the period has to be selected manually by option keep filter value. please suggest how can i solve the error
Regards
RitikaHI RITIKA,
WEL COME TO SDN.
YOUHAVE TO CHECK THE FOLLOWING RUN TIME SEGMENTS USING ST03N TCODE:
High Database Runtime
High OLAP Runtime
High Frontend Runtime
if its high Database Runtime :
- check the aggregates or create aggregates on cube and this helps you.
if its High OLAP Runtime :
- check the user exits if any.
- check the hier. are used and fetching in deep level.
If its high frontend runtime:
- check if a very high number of cells and formattings are transferred to the Frontend ( use "All data" to get value "No. of Cells") which cause high network and frontend (processing) runtime.
For From and to date variables, create one more set and use it and try.
Regs,
VACHAN -
Issues while generating the output(using VF02- header- output)
Hi Group,
I have issues while generating output using the tcode VF02.
the issue is that, I have got an output type which is configured for the medium "Special Function" and the o/p program generates PDF depending on certain criteria.
now, when I try to "repeat output" option to generate output again, I was getting errors. it works sometimes by choosing the option "Successfully processed" then selecting the record and then saving it. if I do the same thing again, the output make be running into error or success, it is varying everytime.
I am not able to understand why the process is not working correctly, when doing the "Repeat output" option on the "Successfully processed" record, the system is giving error instead of a Successful message. it is succeeding once and sometimes not.
Kindly let me know your inputs if you have encountered same kind of issue.
Regards,
Vishnu.hi Group,
when I checked the configuration part of the o/p type I am currently processing, I could see that, in customizing part of this o/p type, there was a checkbox for Multiple Issuing - which is not checked.
when it is not checked, it should not be possible to run the o/ps for multiple times, but when I tried to generate o/ps again and again, in a few attempts I could to generate the PDFs and in some cases not. I don't know why there is no relevance for this check box Multiple Issuing.
Could you please let me know why this issuing of o/p is working in some occassions and not working work sometimes, which is having the configuration of checkbox Multiple Issuing - not being checked.
thanks for your help in advance.
Regards,
Vishnu. -
Deadlock with thread issues while generating reports with Crystal Report XI
We are facing deadlock with thread issues while generating report with Crystal Report XI
Version Number is 11.0 and the database used is Oracle
In the log file on line number 74350 by 2008/12/16 13:35:54 there is a dead lock with Thread: u20184u2019 is waiting to acquire lock for 'com.crystaldecisions.reports.queryengine.av@15214b9' which is held by the Thread: '0'.
And a dead lock with Thread: u20180u2019 is waiting to acquire lock for 'com.crystaldecisions.reports.queryengine.av@15214b9' which is held by the Thread: '4'.
Exactly after 10 minutes we can see the thread 4 and 0 are declared as STUCK by 2008/12/16 13:45:54 .
Is this an existing issue with Crystal Report?
Is there some solution for this problem?
THE LOG FILE INFORMATION IS GIVEN BELOW
[deadlocked thread] [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)':
Thread '[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'' is waiting to acquire lock 'com.crystaldecisions.reports.queryengine.av@15214b9' that is held by thread '[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)''
Stack trace:
com.crystaldecisions.reports.queryengine.av.V(Unknown Source)
com.crystaldecisions.reports.queryengine.av.do(Unknown Source)
com.crystaldecisions.reports.queryengine.as.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.c(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source)
com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
com.crystaldecisions.reports.common.ab.a(Unknown Source)
com.crystaldecisions.reports.common.ab.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
com.sysarris.aris.crystalreports.RepServlet.generateReport(RepServlet.java:65)
com.sysarris.aris.crystalreports.RepServlet.doPost(RepServlet.java:40)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
[deadlocked thread] [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)':
Thread '[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'' is waiting to acquire lock 'com.crystaldecisions.reports.queryengine.av@12e0415' that is held by thread '[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)''
Stack trace:
com.crystaldecisions.reports.queryengine.av.V(Unknown Source)
com.crystaldecisions.reports.queryengine.av.do(Unknown Source)
com.crystaldecisions.reports.queryengine.as.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.c(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source)
com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
com.crystaldecisions.reports.common.ab.a(Unknown Source)
com.crystaldecisions.reports.common.ab.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
com.sysarris.aris.crystalreports.RepServlet.generateReport(RepServlet.java:65)
com.sysarris.aris.crystalreports.RepServlet.doPost(RepServlet.java:40)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Can you please suggest any work around for this?I'm not referring to Servlet threading issues.
I'll clarify.
You have two threads, both entering ReportClientDocument.open(...) method.
Thread 4 is waiting to acquire 'com.crystaldecisions.reports.queryengine.av@15214b9'
Thread 0 is waiting to acquire ''com.crystaldecisions.reports.queryengine.av@12e0415'
So I'm thinking ??? are they the same objects?
My specific question concerning the ReportClientDocument is that both are calling open - i.e., trying to open a new report. You wouldn't be trying to open different reports using the same ReportClientDocument - so was wondering if you've cached the RCD and trying to open two different reports at the same time on the same instance via different threads.
You'd normally tie a ReportClientDocument instance to a HTTP Session, to ensure each user gets their own copy.
Sincerely,
Ted Ueda -
Need to generate XML based on Data template
Hi,
I'm unable to submit (the second submit) my request using the demo links (XDO 5.6.3 or XDO 5.7) provided in http://bipublisher.us.oracle.com/?tab=samples&header=dataTemplate to generate the XML based on the data template.
Heard that these links are available for Oracle EBS internal use. I work with EBS-CRM. I need to generate XML based on a data template and use the XML in the template. Data template has two queries for a template.
Pls help.
Thanks,
ImphaImpha
Please use the internal mailing list for your questions the forum is meant for external customers. If you do not know the ML name - drop me a mail
Tim -
Generating XML instance from XSD
Hi,
I want to know ( java program etc ) to generate XML instance from XSD. How tools ( XML Spy, Oxygen ) generate sample XML file from XSD. What APIs can be used for generating XML from XSD and what APIs are used for checking If XML instance conforms to a XSD? Is it big deal to implement it?
Thanks in advance
SandeepTo validate xml against XSD , I found I can use the existing parsers( using JAXP which has SAX and DOM APIs ) in current JDKs and validate. I still did not find the best way to generate xml from XSD and how tools like xml spy and oxygen generates sample xml file from xsd.
Thanks
Sandeep -
Issues in generating xml from Report Builder as per XSD provided
Hi,
We are provided with XSD's for each report. Now we need to generate XML's from report that are as per the XSD's provided to us.
But the problem come's when we have to define hirearchies.
Like for example
1. Our Report is based on the following query:
SELECT DISTINCT '' as DUMMY
, fil.file_number
, TO_CHAR (TO_DATE (RTRIM (LTRIM (fil.processing_date)), 'YYDDD'),'DD-MM-YY') Processing_Dt
, rp_bsu.service_user_number
, rp_bsu.service_user_name
, rp_ac.account_number
, rp_ac.account_name
, rp_ac.account_type
, rp_ac.sortcode
, NVL(ovr_lmt.account_section_value,0) AS
account_section_value
, NVL(ovr_lmt.overlimit_amount,0) AS overlimit_amount1
, (NVL(ovr_lmt.overlimit_amount,0) - NVL(ovr_lmt.account_section_value,0)
) value_to_date
, (NVL(ovr_lmt.overlimit_amount,0) -
NVL(lmt_usg.limit_amount,0)
) amount_overlimit
, ovr_lmt.over_limit_id, NVL(lmt_usg.limit_amount,0) AS
limit_amount
, lmt_usg.period_type,lmt_usg.currency
FROM v_rp_bacs3day_service_user rp_bsu,
v_rp_bacs_service_office rp_bso,
v_rp_account rp_ac,
t_file fil,
t_over_limit ovr_lmt,
t_limit_usage lmt_usg
WHERE rp_bso.handling_bank_code = :p_scheme_member
AND rp_bsu.sponsoring_bank_code = rp_bso.owning_bank_code
AND rp_ac.service_user_number = rp_bsu.service_user_number
AND rp_bsu.service_user_number = fil.originator
AND fil.status <> 'R'
AND fil.processing_date = (SELECT cycle_date
FROM t_cycle
WHERE status = 1)
AND lmt_usg.account_id = rp_ac.account_id
AND ovr_lmt.limit_usage_id = lmt_usg.limit_usage_id
AND TO_CHAR (ovr_lmt.exceeded_date, 'DD-MM-YYYY') =
(SELECT TO_CHAR (TO_DATE (RTRIM (LTRIM (cycle_date)),
'YYDDD'),'DD-MM-YYYY')
FROM t_cycle
WHERE status = 1)
2.The hierarchy as per xsd that we need to define is :
<ServiceUserAccount>
<ServiceUser>
<Name></Name>
<Number></Number>
</ServiceUser> <SortCode></SortCode>
<AccountNumber></AccountNumber>
<NearOrOverLimitDetail>
<AccountType></AccountType>
<ProcessingDate></ProcessingDate>
..(there is a list of elements below it)
</NearOrOverLimitDetail>
</ServiceUserAccount>
In the xsd for the complex element type ServiceUser we need to display Service User Name and Number. For this I created a separate query Q2 in reports and joined it using data link with the parent Q1(which has data grouped on processing date) . So that it can be displayed as a separate element parallel to other elements like Sort code ,Account Numbers. But when we generate XML for this, then tags for Q2 query donot appear in xml.
And we get this hierarchy with missing Service User element
<ServiceUserAccount>
<SortCode></SortCode>
<AccountNumber></AccountNumber>
<NearOrOverLimitDetail>
<AccountType></AccountType>
<ProcessingDate></ProcessingDate>
..(there is a list of elements below it)
</NearOrOverLimitDetail>
</ServiceUserAccount>
Please let me know if you have any solution to implement this ASAP as its very urgent.
Thanks & Regds
Anuradha.Hi,
We are provided with XSD's for each report. Now we need to generate XML's from report that are as per the XSD's provided to us.
But the problem come's when we have to define hirearchies.
Like for example
1. Our Report is based on the following query:
SELECT DISTINCT '' as DUMMY
, fil.file_number
, TO_CHAR (TO_DATE (RTRIM (LTRIM (fil.processing_date)), 'YYDDD'),'DD-MM-YY') Processing_Dt
, rp_bsu.service_user_number
, rp_bsu.service_user_name
, rp_ac.account_number
, rp_ac.account_name
, rp_ac.account_type
, rp_ac.sortcode
, NVL(ovr_lmt.account_section_value,0) AS
account_section_value
, NVL(ovr_lmt.overlimit_amount,0) AS overlimit_amount1
, (NVL(ovr_lmt.overlimit_amount,0) - NVL(ovr_lmt.account_section_value,0)
) value_to_date
, (NVL(ovr_lmt.overlimit_amount,0) -
NVL(lmt_usg.limit_amount,0)
) amount_overlimit
, ovr_lmt.over_limit_id, NVL(lmt_usg.limit_amount,0) AS
limit_amount
, lmt_usg.period_type,lmt_usg.currency
FROM v_rp_bacs3day_service_user rp_bsu,
v_rp_bacs_service_office rp_bso,
v_rp_account rp_ac,
t_file fil,
t_over_limit ovr_lmt,
t_limit_usage lmt_usg
WHERE rp_bso.handling_bank_code = :p_scheme_member
AND rp_bsu.sponsoring_bank_code = rp_bso.owning_bank_code
AND rp_ac.service_user_number = rp_bsu.service_user_number
AND rp_bsu.service_user_number = fil.originator
AND fil.status <> 'R'
AND fil.processing_date = (SELECT cycle_date
FROM t_cycle
WHERE status = 1)
AND lmt_usg.account_id = rp_ac.account_id
AND ovr_lmt.limit_usage_id = lmt_usg.limit_usage_id
AND TO_CHAR (ovr_lmt.exceeded_date, 'DD-MM-YYYY') =
(SELECT TO_CHAR (TO_DATE (RTRIM (LTRIM (cycle_date)),
'YYDDD'),'DD-MM-YYYY')
FROM t_cycle
WHERE status = 1)
2.The hierarchy as per xsd that we need to define is :
<ServiceUserAccount>
<ServiceUser>
<Name></Name>
<Number></Number>
</ServiceUser> <SortCode></SortCode>
<AccountNumber></AccountNumber>
<NearOrOverLimitDetail>
<AccountType></AccountType>
<ProcessingDate></ProcessingDate>
..(there is a list of elements below it)
</NearOrOverLimitDetail>
</ServiceUserAccount>
In the xsd for the complex element type ServiceUser we need to display Service User Name and Number. For this I created a separate query Q2 in reports and joined it using data link with the parent Q1(which has data grouped on processing date) . So that it can be displayed as a separate element parallel to other elements like Sort code ,Account Numbers. But when we generate XML for this, then tags for Q2 query donot appear in xml.
And we get this hierarchy with missing Service User element
<ServiceUserAccount>
<SortCode></SortCode>
<AccountNumber></AccountNumber>
<NearOrOverLimitDetail>
<AccountType></AccountType>
<ProcessingDate></ProcessingDate>
..(there is a list of elements below it)
</NearOrOverLimitDetail>
</ServiceUserAccount>
Please let me know if you have any solution to implement this ASAP as its very urgent.
Thanks & Regds
Anuradha. -
Error while generating xml file Data Model
Hi ,
I am creating data mode in OBIEE through the query builder and trying to generate xml from it but the following exception occurs while generating the XML
"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.
The following tags were not closed: DATA_DS. Error processing resource 'http://localhost:7002/xmlpserver/servlet/xdo'. "
Could you please sort this out.
Thanks
Govindan PHi,
I found the issue and corrected it. :)
This was happened only because of the Version problem of Report Builder with Oracle Applications.
Reports Builder 10g is not compatiblie with Oracle Applications 11.5.10.
Oracle 11.5+ will always expect the RDF from Reports 6i version. Because of this, the endocing was damaged.
You can observe in the earlier post as encoding="&Endoding". Here +&Encoding should be replaced by some encoding mechanism like "UTF-8".+
Finally corrected the version and got the Output as expected.
Thanks ! -
Issues while generating Schema DAT files
We are facing two type of issues when generating Schema ".dat" files from Informix Database on Solaris OS using the
"IDS9_DSML_SCRIPT.sh " file.
We are executing the command on SOLARIS pormpt as follows..
"IDS9_DSML_SCRIPT.sh <DBName> <DB Server Name> ".
The first issue is ,after the command is excuted ,while generating the ".dat" files the following error is occuring .This error is occuring for many tables
19834: Error in unload due to invalid data : row number 1.
Error in line 1
Near character position 54
Database closed.
This happens randomly for some schemas .So we again shift the script to a different folder in Unix and execute it.
Can we get the solution for avoiding this error.
2. The second issue is as follows..
When the ".dat" files are generated without any errors using the script ,these .dat files are provided to the OMWB tool to load the Source Model.
The issue here is sometimes OMWB is not able to complete the process of creating the Source Model from the .dat files and gets stuck.
Sometimes the tables are loaded ,but with wrong names.
For example the Dat files is having the table name as s/ysmenus for the sysmenus table name.
and when loaded to oracle the table is created with the name s_ysmenus.
Based on the analysis and understanding this error is occuring due to the "Delimiter".
For example this is the snippet from a .dat file generated from the IDS9_DSML_SCRIPT.sh script.The table name sysprocauthy is generated as s\ysprocauthy.
In Oracle this table is created with the name s_ysprocauthy.
s\ysprocauthyâyinformixyây4194387yây19yây69yây4yây2yây0yây2005-03-31yây65537yâyT
yâyRyâyyây16yây16yây0yâyyâyyâyâ¤y
Thanks & Regards
Ramanathan KrishnaMurthyHello Rajesh,
Thanks for your prompt reply. Please find my findings below:
*) Have there been any changes in the extractor logic causing it to fail before the write out to file, since the last time you executed it successfully? - I am executing only the standard extractors out of the extractor kit so assumbly this shouldnt be a issue.
*) Can this be an issue with changed authorizations? - I will check this today, bt again this does not seem to be possible as the same object for a different test project i created executed fine and a file was created.
*) Has the export folder been locked or write protected at the OS level? Have the network settings (if its a virtual directory) changed? - Does not seem so because of the above reason.
I will do some analysis today and revert back for your help.
Regards
Gundeep -
Hello all,
I need to generate XML file based on XSD template in Java, I can parse the XSD file, but don’t know after parsing, hot to generate XML file.
Do you know any example or suggestion how to do it please? I’m not very expert on this, so I appreciate any help.
Many thanks in advance.I'm curious why you didn't find this links in google:
http://www.youtube.com/watch?v=kOLziP28598
Using JAXB to generate XML from XSD | Java Code Geeks
bye
TPD -
Issue while generating report using web.show_document with https
Hi All,
I am facing some issue while seeing the report using web.show_document as shown below:
https://ucrmskr.apac.nsroot.net:10301/forms/html/001725032_gca.rtf_
In this case the report opens directly without asking for me to save or open or cancel option
whereas if I hit
http://scrmskr.apac.nsroot.net:7801/forms/html/001725032_gca.rtf_
it asks for save or open or cancel option
so that I can save the report to my machine and open in wordpad format
The report generated in the first case is not coming in proper format
Below are my forms.conf mappings:
# Name
# forms.conf - Forms component Apache directives configuration file.
# Purpose
# It should include the weblogic managed server (routing) directives for
# the servers where Forms applications are deployed and other miscellaneous
# Forms component OHS directives.
# Remarks
# This file is included with the OHS configuration under
# $OI/config/OHS/<OHS Node Name>/moduleconf sub-directory.
# virtual mapping for the /forms/html mapping.
RewriteEngine on
RewriteRule ^/forms/html/(..*) /workaroundhtml/$1 [PT]
AliasMatch ^/workaroundhtml/(..*) "/ucrmap1/weblogic/bea/ucrms/config/FormsComponent/forms/html/$1"
RewriteRule ^/ucrms/icons/(..*) "/workaroundicons/$1" [PT]
AliasMatch ^/workaroundicons/(..*) "/ucrmap1/weblogic/bea/ORA_PFRD/forms/java/$1"
RewriteRule ^/forms/help/(..*) "/workaroundhelp/$1" [PT]
AliasMatch ^/workaroundhelp/(..*) "/ucrmap1/ucrrgbg2/help/$1"
<Location /forms>
SetHandler weblogic-handler
WebLogicCluster kauh0079:9001
DynamicServerList OFF
</Location>
Please let me know what needs to be done additionally if we are trying to hit https because in the second case we were hitting http with similar mapping in diff environment and it was generating report successfully.
Regards,
HarishThanks for answering,
I changed the URL from
http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
to
http://nbotlaguduru.dms.local:8889/export/FMSLaborChargesalcs20060829132645.pdf
and the same problem occured
the file is located on my local C drive in:
C:\lcs\export
seems as though I am missing something else as well
any ideas? -
Error while generating XML file through RDF
Hi,
I wanted to generate a Report on some business case. For that I need to generate XML file first.
For generating XML file
1. I have built an RDF through Reports builder.
2. Saved the report to local machine with extension .rdf
3. Moved it to appltop/app/reports/US directory
4. Registered tha Report with Executable of type Oracle Reports
5. Defined Concurrent Program with OUTPUT as XML.
When I submmitted the program, it was giving an error as follows.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
A semi colon character was expected. Error processing resource 'https://oaphrd.humana.com/OA_CGI/FNDWRR.exe?temp_id=2088989...
+<?xml version="1.0" encoding="&Encoding"?>+
But, when I tried to sane the report directly to a file (file - > generate file -> XML) the XML was generated successfully.
How to get rid of this. Some one please help me out.
Thanks !
Edited by: Rajasekhar Reddy on May 4, 2012 1:23 AMHi,
I found the issue and corrected it. :)
This was happened only because of the Version problem of Report Builder with Oracle Applications.
Reports Builder 10g is not compatiblie with Oracle Applications 11.5.10.
Oracle 11.5+ will always expect the RDF from Reports 6i version. Because of this, the endocing was damaged.
You can observe in the earlier post as encoding="&Endoding". Here +&Encoding should be replaced by some encoding mechanism like "UTF-8".+
Finally corrected the version and got the Output as expected.
Thanks ! -
Catch all error information while validating xml content with xsd schema
Hi experts,
I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below is a part of my java mapping.
XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
parser.setFeature( "http://xml.org/sax/features/validation" , true);
parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema"); parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); // schema is my schema name
parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends DefaultHandler
parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
// In error handler, I comment all code so as not to throw any exception
public class ParseErrorHandler extends DefaultHandler
public void error(SAXParseException e) throws SAXException
// sSystem.out.println("Error" + e.getMessage());
// throw e;
public void fatalError(SAXParseException e)
// throw e;
// System.out.println("SAP Fatal Error" + e.getMessage());
Unfortunately the program always stopped while catching the first error. Check the below log.
com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
ERRORS :
cvc-simple-type : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
cvc-data : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is is not valid with respoct to the corresponding simple type definition.
cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is associated with invalid data.
cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' is not valid with respect to it's complex type definition..
cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' is not valid with respect to it's complex type definition..
cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]' is not valid with respect to it's complex type definition..
cvc-element : element information item '/:ShipNotice[1]/:Header[1]' is not valid with respect to it's complex type definition..
cvc-element : element information item '/:ShipNotice[1]' is not valid with respect to it's complex type definition..
-> com.sap.engine.lib.xml.parser.ParserException:
I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error handler logic? Is there any body can make me get out of this?
Thanks.<h6>Hi experts,
<h6>
<h6>I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all <h6>error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below <h6>is a part of my java mapping.
<h6>XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
<h6>parser.setFeature( "http://xml.org/sax/features/validation" , true);
<h6>parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
<h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema"); <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); <h6>// schema is my schema name
<h6>parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends Default Handler
<h6>parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
<h6>
<h6>// In error handler, I comment all code so as not to throw any exception
<h6>public class ParseErrorHandler extends DefaultHandler
<h6>{
<h6> public void error(SAXParseException e) throws SAXException
<h6> {
<h6> // sSystem.out.println("Error" + e.getMessage());
<h6> // throw e;
<h6> }
<h6>
<h6> public void fatalError(SAXParseException e)
<h6> {
<h6> // throw e;
<h6> // System.out.println("SAP Fatal Error" + e.getMessage());
<h6>
<h6> }
<h6>
<h6>}
<h6>
<h6>Unfortunately the program always stopped while catching the first error. Check the below log.
<h6>
<h6>com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
<h6>ERRORS :
<h6>cvc-simple-type : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
<h6>cvc-data : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is is not valid with respoct to the corresponding simple type definition.
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is associated with invalid data.
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' <h6>is not valid with respect to it's complex type definition..
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' <h6>is not valid with respect to it's complex type definition..
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]' <h6>is not valid with respect to it's complex type definition..
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]' <h6>is not valid with respect to it's complex type definition..
<h6>cvc-element : element information item '/:ShipNotice[1]' is not valid with <h6>respect to it's complex type definition..
<h6> -> com.sap.engine.lib.xml.parser.ParserException:
<h6>
<h6>
<h6>I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error <h6>handler logic? Is there any body can make me get out of this?
<h6>Thanks. -
Facing issue while reading XML file 'LPX-00217: '
Hi Gurus,
I am facing one issue while reading the xml file in the one my 11g database instance. The same file if I ran in another instance then it is working fine for me.
I presume it will be related to NLS character. Please help me in finding out character set.
And the issue where I am getting instance character set is 'US7ASCII', and I am not getting this issue in another instance where the character set is 'UTF8'.
And here is the issue I am getting when I was trying to load that file.
Error Occurred :=ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML
processing
LPX-00217: invalid character 150 (U+0096)
Error at line 1
Pls help me in debugging this issue.
Regards,
Nagendra
Edited by: 838961 on Jul 12, 2011 9:32 PMHi,
Pls help me in debugging this issue.There's not much to debug actually.
The US7ASCII charset stores 7-bit characters, but you're trying to insert a value out of range (150). So that's expected behaviour.
There were some "tricks" to allow that on some versions, using NLS settings, but it's definitely not the clean way to do it so I won't develop.
The best thing you have to do is to migrate to character set AL32UTF8, which is fully compliant with XML.
Maybe you are looking for
-
Unity Express: More than one phone / DN with a voice mail box
I'm running Unity Express 8.0.2. Is there a way to associate two extensions on separate phones, with one voicemail box?
-
"Delivery Completed" Indicator in Goods Receipt
Hi, While doing GR, we want to check the "Delivery Completed" on the Goods Receipt Screen if we are expecting no future receipt against the Purchase Order. Currently we are not able to check the Delivery Completed Indicator as it is not in editable m
-
My hard drive icon is gone from desk top and does not show up in spotlight or finder searches!
Hi there recently my hard drive icon has disappeared from my Macbook Pro (10.7.4) desk top and does not show up in spotlight or finder searches! I have tried several fixes posted online for earlier operating systems with no luck. Also, when I connect
-
OSX 10.5.8 not recognising iPads
I have a MacBook running Osx 10.5.8. Since updating the iPads and iPhones to the newest version The MacBook won't recognise them. How can I fix this? thank-you in advance Leonie
-
How to create xpi file for my own extension?
I have created my own extension and directly added profile extension folder in my system.its working fine. but while installing extension using .xpi file its produce error "Install script not found -204".Please explian me how to create .xpi file for