Automate Excel to XML Process
Hi...I have a excel sheet which has to be converted to XML data inorder to be pulled into my dashboard to feed live data through XML data connection. I learned to convert excel file to XML using ALTOVA XML editor. However, I'm not sure how to make this process automated as data would be updated everytime and that should reflect in my dashboard ultimately. Please let me know how to make this to work. Thanks.
Hi Jyoti
could you please tell me how we can call the getMessageProperty Method in PI7.1
public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
throws ModuleException {
try
Object obj = null;
Message msg = null;
msg = (Message) obj;
Hashtable mp = (Hashtable)
inputModuleData.getSupplementalData("module.parameters");
if (mp != null) fileName = (String)mp.get("FileName");
Channel channel = new Channel(moduleContext.getChannelID());
String FileNameAvail = msg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");
msg.setMessageProperty("http://sap.com/xi/XI/System/File","FileName", FileName);
catch(Exception ex)
ModuleException me = new ModuleException(ex);
throw me;
return inputModuleData;
how we can call this method in PI7.1.
because in PI7.10 the the setMessageProperty method was called as
public void setMessageProperty(java.lang.String namespace,
java.lang.String name,
java.lang.String value)
but in PI7.1 it changes to
public void setMessageProperty(MessagePropertyKey arg0,
java.lang.String name)
could any one of you please tell me how i can get the MessagePropetyKey Value.
Thanks
Rinku Gangwani
Similar Messages
-
Issue in Excel to XML Conversion
Hi Gurus,
I am creating a custom java module in sap nwds 7.3 for Excel to XML Conversion. But I am getting following error
Classpath dependency validator message.
Classpath entry will not be exported or published. Runtime ClassNotFoundExceptions may result.
I imported the Jars from a different PI system and i am using NWDS in local PC with creating a separate folder with all JARs and also imported them using build path option.
This issue is occuring for all the jars imported.
I am using following code.
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.AbstractTrace;
import java.util.HashMap;
import jxl.Cell;
import jxl.Workbook;
public class JavaMappingExcelToXML implements StreamTransformation{
private Map map = null;
private AbstractTrace trace = null;
public void setParameter(Map arg0) {
map = arg0; // Store reference to the mapping parameters
if (map == null) {
this.map = new HashMap();
public static void main(String args[]) { //FOR EXTERNAL STANDALONE TESTING
try {
FileInputStream fin = new FileInputStream ("c:/ashu.xls"); //INPUT FILE (PAYLOAD)
FileOutputStream fout = new FileOutputStream ("C:/Users/ashutosh.a.upadhyay/My Documents/ashuXML2.xml"); //OUTPUT FILE (PAYLOAD)
JavaMappingXLStoXML mapping = new JavaMappingXLStoXML ();
mapping.execute(fin, fout);
catch (Exception e1) {
e1.printStackTrace();
public void execute(InputStream inputstream, OutputStream outputstream) {
String msgType = "Message Type name will come here";
String nameSpace = "Namespace Name will come here";
String xmldata = "";
try {
Workbook wb = Workbook.getWorkbook(inputstream);
xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ "<ns0:"+msgType+" "+"xmlns:ns0=\""+nameSpace+"\n">";
Cell[] cells ;
Cell[] cellNames ;
cellNames = wb.getSheet(0).getRow(0);
for(int j=1;j<wb.getSheet(0).getRows();j++){
xmldata = xmldata+"\n<Record>\n";
cells = wb.getSheet(0).getRow(j);
for(int i=0;i<wb.getSheet(0).getColumns();i++){
xmldata = xmldata+"\t<"+cellNames[i].getContents()+">"+cells[i].getContents()+"</"+cellNames[i].getContents()+">\n";
xmldata = xmldata+"</Record>";
xmldata = xmldata+"\n</ns0:"+msgType+">";
System.out.print(xmldata);
xmldata.getBytes();
wb.close();
byte by[] = xmldata.getBytes();
outputstream.write(by);
inputstream.close();
outputstream.close();
System.out.println("\n"+"File processed");
catch (Exception e) {
e.printStackTrace();
Request you to guide how to resolve this issue.
Thanks in advanceThanks Anand,
PDF shared by you was extremely helpful. Now I have successfully developed and deployed the adapter. But while using it in Communication Channel I am getting following error.
Error: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name localejbs/ExcelToXML, cannot resolve object reference. [Root exception is javax.naming.NamingException: Error occurs while the EJB Object Factory trying to resolve JNDI reference Reference Class Name: Type: clientAppName Content: sap.com/SAP_Exel_To_XMLEAR Type: interfaceType Content: local Type: ejb-link Content: Excel_To_XML Type: jndi-name Content: ExcelToXML Type: local-home Content: sap.com.excelToXML.Excel_To_XMLLocalHome Type: local Content: sap.com.excelToXML.Excel_To_XMLLocal com.sap.engine.services.ejb3.runtime.impl.refmatcher.EJBResolvingException: Cannot start applicationsap.com/SAP_Exel_To_XMLEAR; nested exception is: java.rmi.RemoteException: [ERROR CODE DPL.DS.6125] Error occurred while starting application locally and wait.; nested exception is: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5029] Exception in operation [startApp] with application [sap.com/SAP_Exel_To_XMLEAR]. at com.sap.engine.services.ejb3.runtime.impl.DefaultContainerRepository.startApp(DefaultContainerRepository.java:398) at com.sap.engine.services.ejb3.runtime.impl.DefaultContainerRepository.getEnterpriseBeanContainer(DefaultContainerRepository.java:182) at com.sap.engine.services.ejb3.runtime.impl.DefaultRemoteObjectFactory.resolveReference(DefaultRemoteObjectFactory.java:55) at com.sap.engine.services.ejb3.runtime.impl.EJBObjectFactory.getObjectInstance(EJBObjectFactory.java:144) at com.sap.engine.services.ejb3.runtime.impl.EJBObjectFactory.getObjectInstance(EJBObjectFactory.java:63) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl._getObjectInstance(ObjectFactoryBuilderImpl.java:76) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl.access$100(ObjectFactoryBuilderImpl.java:33) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl$DispatchObjectFactory.getObjectInstance(ObjectFactoryBuilderImpl.java:226) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:283) at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:434) at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:223) at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:242) at javax.naming.InitialContext.lookup(InitialContext.java:351) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.sap.aii.af.lib.util.ejb.FastEjbFactory.createEjbInstance(FastEjbFactory.java:69) at com.sap.aii.af.lib.util.ejb.FastEjbFactory.createEjbInstance(FastEjbFactory.java:50) at com.sap.aii.af.app.mp.ejb.ModuleProcessorBean.getModuleLocal(ModuleProcessorBean.java:419) at com.sap.aii.af.app.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:287) at sun.reflect.GeneratedMethodAccessor946.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:74) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at com.sun.proxy.$Proxy3299.process(Unknown Source) at com.sap.aii.adapter.file.File2XI.send(File2XI.java:3605) at com.sap.aii.adapter.file.File2XI.processFileList(File2XI.java:1374) at com.sap.aii.adapter.file.File2XI.invoke(File2XI.java:669) at com.sap.aii.af.lib.scheduler.JobBroker$Worker.run(JobBroker.java:534) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:182) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:280) ]
pl
please help -
Creating a custom java module for excel to xml conversion.
Hi Gurus,
I am creating a custom java module in sap nwds 7.3 for Excel to XML Conversion. But I am getting following error
Classpath dependency validator message.
Classpath entry will not be exported or published. Runtime ClassNotFoundExceptions may result.
I imported the Jars from a different PI system and i am using NWDS in local PC with creating a separate folder with all JARs and also imported them using build path option.
This issue is occuring for all the jars imported.
I am using following code.
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.AbstractTrace;
import java.util.HashMap;
import jxl.Cell;
import jxl.Workbook;
public class JavaMappingExcelToXML implements StreamTransformation{
private Map map = null;
private AbstractTrace trace = null;
public void setParameter(Map arg0) {
map = arg0; // Store reference to the mapping parameters
if (map == null) {
this.map = new HashMap();
public static void main(String args[]) { //FOR EXTERNAL STANDALONE TESTING
try {
FileInputStream fin = new FileInputStream ("c:/ashu.xls"); //INPUT FILE (PAYLOAD)
FileOutputStream fout = new FileOutputStream ("C:/Users/ashutosh.a.upadhyay/My Documents/ashuXML2.xml"); //OUTPUT FILE (PAYLOAD)
JavaMappingXLStoXML mapping = new JavaMappingXLStoXML ();
mapping.execute(fin, fout);
catch (Exception e1) {
e1.printStackTrace();
public void execute(InputStream inputstream, OutputStream outputstream) {
String msgType = "Message Type name will come here";
String nameSpace = "Namespace Name will come here";
String xmldata = "";
try {
Workbook wb = Workbook.getWorkbook(inputstream);
xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ "<ns0:"+msgType+" "+"xmlns:ns0=\""+nameSpace+"\n">";
Cell[] cells ;
Cell[] cellNames ;
cellNames = wb.getSheet(0).getRow(0);
for(int j=1;j<wb.getSheet(0).getRows();j++){
xmldata = xmldata+"\n<Record>\n";
cells = wb.getSheet(0).getRow(j);
for(int i=0;i<wb.getSheet(0).getColumns();i++){
xmldata = xmldata+"\t<"+cellNames[i].getContents()+">"+cells[i].getContents()+"</"+cellNames[i].getContents()+">\n";
xmldata = xmldata+"</Record>";
xmldata = xmldata+"\n</ns0:"+msgType+">";
System.out.print(xmldata);
xmldata.getBytes();
wb.close();
byte by[] = xmldata.getBytes();
outputstream.write(by);
inputstream.close();
outputstream.close();
System.out.println("\n"+"File processed");
catch (Exception e) {
e.printStackTrace();
Request you to guide how to resolve this issue.
Thanks in advanceHi Gurus,
I am creating a custom java module in sap nwds 7.3 for Excel to XML Conversion. But I am getting following error
Classpath dependency validator message.
Classpath entry will not be exported or published. Runtime ClassNotFoundExceptions may result.
I imported the Jars from a different PI system and i am using NWDS in local PC with creating a separate folder with all JARs and also imported them using build path option.
This issue is occuring for all the jars imported.
I am using following code.
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.AbstractTrace;
import java.util.HashMap;
import jxl.Cell;
import jxl.Workbook;
public class JavaMappingExcelToXML implements StreamTransformation{
private Map map = null;
private AbstractTrace trace = null;
public void setParameter(Map arg0) {
map = arg0; // Store reference to the mapping parameters
if (map == null) {
this.map = new HashMap();
public static void main(String args[]) { //FOR EXTERNAL STANDALONE TESTING
try {
FileInputStream fin = new FileInputStream ("c:/ashu.xls"); //INPUT FILE (PAYLOAD)
FileOutputStream fout = new FileOutputStream ("C:/Users/ashutosh.a.upadhyay/My Documents/ashuXML2.xml"); //OUTPUT FILE (PAYLOAD)
JavaMappingXLStoXML mapping = new JavaMappingXLStoXML ();
mapping.execute(fin, fout);
catch (Exception e1) {
e1.printStackTrace();
public void execute(InputStream inputstream, OutputStream outputstream) {
String msgType = "Message Type name will come here";
String nameSpace = "Namespace Name will come here";
String xmldata = "";
try {
Workbook wb = Workbook.getWorkbook(inputstream);
xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ "<ns0:"+msgType+" "+"xmlns:ns0=\""+nameSpace+"\n">";
Cell[] cells ;
Cell[] cellNames ;
cellNames = wb.getSheet(0).getRow(0);
for(int j=1;j<wb.getSheet(0).getRows();j++){
xmldata = xmldata+"\n<Record>\n";
cells = wb.getSheet(0).getRow(j);
for(int i=0;i<wb.getSheet(0).getColumns();i++){
xmldata = xmldata+"\t<"+cellNames[i].getContents()+">"+cells[i].getContents()+"</"+cellNames[i].getContents()+">\n";
xmldata = xmldata+"</Record>";
xmldata = xmldata+"\n</ns0:"+msgType+">";
System.out.print(xmldata);
xmldata.getBytes();
wb.close();
byte by[] = xmldata.getBytes();
outputstream.write(by);
inputstream.close();
outputstream.close();
System.out.println("\n"+"File processed");
catch (Exception e) {
e.printStackTrace();
Request you to guide how to resolve this issue.
Thanks in advance -
Should I be able to reliable automate Excel 2000 on a Windows 2000 PC using Labview 7?
I am trying to automate Excel 2000 from Labview 7. I want to open an Excel application, open an existing workbook or create a new workbook, create a new sheet, save and exit. When using the Labview 7 .vi's I can create a new workbook, etc, and everything works fine. When the case in my program for existing file executes I can start Excel but I cannot open an existing worksheet (error -2146959355). I've selected a file using the labview file dialogue just to ensure spelling, case, etc but it always fails on the "open specific workbook" sub .vi and the first error is on the output of the "invoke node".
Out of curiosity I tried doing this in Labview 6.1 and after a cursory check ev
erything seems to work ok using the exact same sequence of .vi's. I am running Excel 2000 on Windows 2000. Should there be a compatibility issue? Would using the version 6.1 vi's within Labview 7 be a clean solution?
Thanks in advanceThanks for responding.
I made a little vi to illustrate the problem.
The two sub .vi's I'm including with the main .vi are simply the renamed Version 6.1 and Version 7 "open specific workbook" .vi's. The main .vi was made in Version 7. All the other sub .vi's are V 7.
On my PC (Windows 2000 and Excel 2000) when the switch is set to "Version 6.1" it consistenly runs fine, set to "Version 7" it consistently fails.
I am very stumped! I've gone so far as to copy the V7 .llb from a different installation just in case something got corrupted somehow.
Attachments:
ExcelError.vi 44 KB
Open_Specific_WorkBookV6.vi 37 KB
Open_Specific_WorkBookV7.vi 37 KB -
Re-Using XML file from decode barcode + extract xml process
I was hoping someone could put me in the right direction here. I am decodeing the information stored in a 2D Bar code and sending this information to an XML file, then I am trying to combine that xml file with a blank PDF template but the process is failing beacuse there are some additional tag fields the XML data from the Decode->Extract XML process.
The XML file from the decode process gives the structure below..notice therer some extra tags (lines 2- 4)
<?xml version="1.0" encoding="UTF-8"?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<xfa:datasets>
<xfa:data>
<form1>
The XML structure that is expected by the PDF template is as follows
<?xml version="1.0" encoding="UTF-8"?>
<form1>
So the xml output of the Decode barcode + Extract XML process has three extra lines of tag. Is there a way I could use a process within liveCycle to clean out those three lines in real-time before sending the xml to be recombined with the PDF template.
ThanksHi,
What you may do is to use the SetValue and its xpath builder functions to "serialize" the xml into string, "substring" to remove the extra tags, and "concat" to add the extra tags and then "deserialize" it again to an xml to be merged with your form.
Greetings,
Yasser -
Java enhancement in XSLT mapping in PI 7.1 and JDK5 XML processing
Hi,
I am implementing an XSLT mapping and I need to use java enhancements. I got those working but only if I check "Use SAP XML Toolkit" from Operation Mapping. I would like to use JDK5 XML processing.
I also got this message to trace:
Resource not found: META-INF/services/javax.xml.parsers.SAXParserFactory
Thrown:
com.sap.aii.ib.server.mapping.execution.MappingClassNotFoundException: META-INF/services/javax.xml.parsers.saxparserfactory
I tried to use com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl but still couldn't get java enhancement working.
Is there a way to get JDK5 XML processing working with java enhancements?> Is there a way to get JDK5 XML processing working with java enhancements?
No. Java processing inside XSLT is no standard. So it works only with SAP lib.
Regards
Stefan -
Revision: 2756
Author: [email protected]
Date: 2008-08-06 08:53:11 -0700 (Wed, 06 Aug 2008)
Log Message:
-make the flex-sdk-description.xml process work like the trunk. don't copy the file, create one by echoing the values needed to it.
-update build.properties, make the release value equal the actual release as in this case 3.1
bug:https://bugs.adobe.com/jira/browse/SDK-16367
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-16367
Modified Paths:
flex/sdk/branches/3.1.0/build.properties
flex/sdk/branches/3.1.0/build.xml
Removed Paths:
flex/sdk/branches/3.1.0/collateral/en_US/flex-sdk-description.xmlRevision: 2756
Author: [email protected]
Date: 2008-08-06 08:53:11 -0700 (Wed, 06 Aug 2008)
Log Message:
-make the flex-sdk-description.xml process work like the trunk. don't copy the file, create one by echoing the values needed to it.
-update build.properties, make the release value equal the actual release as in this case 3.1
bug:https://bugs.adobe.com/jira/browse/SDK-16367
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-16367
Modified Paths:
flex/sdk/branches/3.1.0/build.properties
flex/sdk/branches/3.1.0/build.xml
Removed Paths:
flex/sdk/branches/3.1.0/collateral/en_US/flex-sdk-description.xml -
XML Processing in WL 5.1
Hi,
I use WebLogic 5.1
I am trying to do some XML processing in the servlet. I added the Jars in the class
path for servlet. I Set the System properties prgrammatically. And simple DOM operation
fails with NoSuchMethod Exception. I see a lot of example in WL 6.1. Does anybody
know if it is possible with WL 5.1. Please help I have been struggling with this
for last 7 days.
-Krishna
Class path in WebLogic.Properties.
weblogic.httpd.servlet.classpath=C:/weblogic/myserver/servletclasses;\
C:/weblogic/lib/xml/jaxp.jar;\
C:/weblogic/lib/xml/parser.jar;\
C:/weblogic/lib/xml/xalan.jar;\
C:/weblogic/lib/xml/xml-apis.jar;\
C:/weblogic/lib/xml/xercesImpl.jar;\
C:/weblogic/lib/xml/sax.jar;
Code Snippet. full code attached.
StringReader str = new StringReader(XMLField);
InputSource input = new InputSource(str);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(false);
dbf.setValidating(false);
System.out.println(dbf.getClass().getName());
DocumentBuilder db = dbf.newDocumentBuilder();
doc = db.parse(input);
Sat Jul 13 17:18:30 GMT+10:00 2002:<I> <ServletContext-General> TestProcessCompa
ny: init
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
Sat Jul 13 17:18:30 GMT+10:00 2002:<E> <ServletContext-General> Servlet failed w
ith Exception
java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory: method is
IgnoringElementContentWhitespace()Z not found
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl
.java:120)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(
DocumentBuilderFactoryImpl.java:88)
at company.TestProcessCompanyServlet.doGet(TestProcessCompanyServlet.jav
a:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:106)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:907)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:851)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:252)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:364)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
[TestProcessCompanyServlet.java]If I remember correctly, in 5.1 you can deploy a web-app by specifying it in
weblogic.properties (weblogic.httpd.webApp.yourwebapp=..., or defaultWebApp).
If you do not configure defaultwebapp, it will create one implicitly, and this
implicitly created one reads it's config from weblogic.properties, not from
web.xml.
Frank LaRosa <[email protected]> wrote:
> Thanks... can I ask exactly what it means to "deploy your app as a webapp"?
> "Dimitri I. Rakitine" wrote:
>> It will, if you deploy your app as a webapp.
>>
>> Frank LaRosa <[email protected]> wrote:
>> > Hi,
>>
>> > Will a Weblogic 5.1 server recognize the servlet mappings in a web.xml
>> > file, or must they be configured in the weblogic.properties file?
>>
>> > Thanks.
>>
>> --
>> Dimitri
Dimitri
-
How to automate the data load process using data load file & task Scheduler
Hi,
I am doing Automated Process to load the data in Hyperion Planning application with the help of data_Load.bat file & Task Scheduler.
I have created Data_Load.bat file but rest of the process i am unable complete.
So could you help me , how to automate the data load process using Data_load.bat file & task Scheduler or what are the rest of the file is require to achieve this.
ThanksTo follow up on your question are you using the maxl scripts for the dataload?
If so I have seen and issue within the batch (ex: load_data.bat) that if you do not have the full maxl script path with a batch when running it through event task scheduler the task will work but the log and/ or error file will not be created. Meaning the batch claims it ran from the task scheduler although it didn't do what you needed it to.
If you are using maxl use this as the batch
"essmsh C:\data\DataLoad.mxl" Or you can also use the full path for the maxl either way works. The only reason I would think that the maxl may then not work is if you do not have the batch updated to call on all the maxl PATH changes or if you need to update your environment variables to correct the essmsh command to work in a command prompt. -
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing
Hi,
I am trying to update an already existing Sales Order through PO Change Inbound 860. When i am performing changes in the line quantity and scheduled ship date with operation code as "Update" then it is successfully updating the Order and also we are able to generate the POAck for the updated sales order lines. But when i am rejecting one of the PO change lines by checking rejected flag, then order is getting imported successfully(I mean sales order is getting updated successfully) but during the POAck Generation i.e. 865 its raising "*ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00103: Warning: document structure does not match DTD Error at line 1*" at XML Gateway. we are using XML Gateway to process the orders, can somebody help me to get rid of this issue. Thanks in advance.
Thanks,
Sunil ChauhanHi Kishan
Thanks for the reply.
Because this is an outbound transaction so i can not provide you the XML file as we are facing issue to generate the same. Also we are using oracle seeded PO outbound Ack map.
In addition i can provide you the DTD file.
<!-- ==================================================== -->
<!ENTITY % RESOURCES SYSTEM "oagis_resources.dtd">
%RESOURCES;
<!-- ==================================================== -->
<!ELEMENT ACKNOWLEDGE_PO_008 (CNTROLAREA, DATAAREA+)>
<!ATTLIST VERB
value CDATA #FIXED "ACKNOWLEDGE"
>
<!ATTLIST NOUN
value CDATA #FIXED "PO"
>
<!ATTLIST REVISION
value CDATA #FIXED "008"
>
<!ELEMENT DATAAREA (ACKNOWLEDGE_PO)
>
<!ELEMENT ACKNOWLEDGE_PO (POORDERHDR, POORDERLIN*)
>
<!ELEMENT POORDERHDR ((%DATETIME.DOCUMENT;)?, (%OPERAMT.EXTENDED.T;)?, POID, POTYPE, ACKREQUEST?, CONTRACTB?, CONTRACTS?, DESCRIPTN?, NOTES*, OPRAMTAUTH?, PORELEASE?, TAXWHEXMPT?, USERAREA?, ACKHEADER, ATTCHREF*, CHARGE*, PARTNER*, POTERM*)
>
<!ELEMENT ACKHEADER (SENDER, (%DATETIME.PROMDELV;)?, (%DATETIME.PROMSHIP;)?, ACKCODE, DESCRIPTN?, NOTES*, SALESORDID?, USERAREA?)
>
<!ELEMENT POTERM (DESCRIPTN?, TERMID?, ((DAYOFMONTH, PROXMONTH) | DAYSNUM), ((%OPERAMT.EXTENDED.T;) | (%QUANTITY.PERCENT;)), USERAREA?)
>
<!ELEMENT POORDERLIN ((%QUANTITY.ORDERED;), (%DATETIME.NEEDDELV;)?, (%OPERAMT.UNIT.T;)?, POLINENUM, DRAWING?, HAZRDMATL?, ITEMRV?, ITEMRVX?, NOTES*, PACKING?, POLNSTATUS?, TAXWHEXMPT?, ((DESCRIPTN, ITEM?, ITEMX?, UPC?) | (ITEM, ITEMX?, UPC?) | (ITEMX, UPC?) | (UPC)), USERAREA?, ACKLINE*, ATTCHREF*, CHARGE*, DISTRIBUTN*, PARTNER*, POTERM*, POSUBLINE*, POLINESCHD*)
>
<!ELEMENT ACKLINE ((%DATETIME.PROMDELV;)?, (%DATETIME.PROMSHIP;)?, (%QUANTITY.ORDERED;)?, ACKCODE, NOTES*, SALESORDID?, USERAREA?)
>
<!ELEMENT POSUBLINE ((%QUANTITY.ITEM;), DRAWING?, ITEMRV?, ITEMRVX?, PSBLINENUM?, ((DESCRIPTN, ITEM?, ITEMX?, UPC?) | (ITEM, ITEMX?, UPC?) | (ITEMX, UPC?) | (UPC)), USERAREA?)>
<!ELEMENT POLINESCHD ((%DATETIME.NEEDDELV;), (%QUANTITY.ORDERED;), DESCRIPTN?, PSCLINENUM?, USERAREA?)
>
Thanks,S
--Sunil -
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing L
Hi There,
I am trying to load XML data [Given Below] into a table using "Load XML Data" option.
<?xml version="1.0"?>
<ROWSET>
<ROW>
<ID>13</ID>
<TYPE_SEQ>8</TYPE_SEQ>
<TYPE>B749</TYPE>
<TYPE_DESC>B758</_TYPE_DESC>
<EFFECTIVE_FROM>2099-01-01</EFFECTIVE_FROM>
<EFFECTIVE_TO>2099-01-01</EFFECTIVE_TO>
<CREATED_BY>958344</CREATED_BY>
<CREATED_ON>2099-01-01</CREATED_ON>
<UPDATED_BY>172283</UPDATED_BY>
<UPDATED_ON>2099-01-01</UPDATED_ON>
</ROW>
</ROWSET>
It throws the following error.
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00222: error received from SAX callback function
Can any one advice the solution please.
-Sudheer.Hi Sudheer,
This is caused by the date format you are using. Probably it is not matching with your NLS settings. Check your NLS settings, what the date format is, and use that in the XML.
Check it with this code:
SELECT XMLELEMENT("date", sysdate) FROM dual;Make sure, you have your NLS_DATE settings in the same format.
Check it with:
SELECT * FROM v$nls_parameters WHERE parameter = 'NLS_DATE_FORMAT'And then make sure it is the same by setting for example:
ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD';Greetings,
Rutger -
ORA-19202: Error occurred in XML processing
HI,
I was preparing a support schema which is in synch with the production schema. For one of the UI i am getting the following error when the XML is too large.
The same code is working in the production schema.
I did a reconcilation and found the code sources are exactly the same.Pasting the debug lines below.Please help resolving the issue.
gwpks_service_router.Getting the msg status for
gwpks_service_router.Inside fn_get_msgstat
gwpks_service_router.In wot of msg stat extraction: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "REC" does not match start-element tag "FCUBS_BODY"
Error at line 15697
gwpks_service_router.l_msgstat:
gwpks_service_router.Returning
gwpks_service_router.l_msg_stat:
gwpks_service_router.p_Process_Stat: S
gwpks_service_router. fn_service_router return true
gwpks_service_router.After fn_service_router, msgId:
gwpks_service_router.Logging begins
gwpks_service_router.Inside fn_populate_logs
gwpks_service_router.Inside fn_get_msgstat
gwpks_service_router.In wot of msg stat extraction: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "REC" does not match start-element tag "FCUBS_BODY"
Error at line 15697
gwpks_service_router.l_msgstat:
gwpks_service_router.Returning
gwpks_service_router.Msg Status:
gwpks_service_router.About to start the logging with MsgId:
gwpks_service_router.fn_populate_logs returning true
gwpks_service_router.MsgId:
gwpks_service_router.SysMsgId:
gwpks_service_router.MultitripId:
gwpks_service_router.l_process_stat in pr_process_req_msg : S
gwpks_service_router.GRAND SUCCESS CLOSING DEBUG
gwpks_service_router.GRAND SUCCESS CLOSING DEBUG 1Hi,
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
The code is very big.I prepared another schema on another database and the code is working.
Then v$ version of the working schema is as below:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Still wonder why this works in the second schema but not the first one. -
ORA-19202: Error occurred in XML processing ORA-24333: zero iteration coun
Hi,
I have a procedure which craetes a sql v_sql dynamically
IF v_cnt > 0 THEN
For c1 in v_curr
LOOP
v_sql := ''''||'SELECT * from '|| c1.msg_rcrd_src_tbl_nm||' where rowid = '||''''||''''||c1.msg_rcrd_src_tbl_id||''''||''''||'''';
select DBMS_XMLGEN.getXMLtype(v_sql) into v_xml from dual ;
gives me a error
ORA-19202: Error occurred in XML processing
ORA-24333: zero iteration count
ORA-06512: at "SYS.DBMS_XMLGEN", line 288
ORA-06512: at line 1
Any help greatly appreciated.
Thanks,
RajAnswered
Re: Zero iteration error - when processing dynamic sql in dbms_xmlgen -
Error while processing XML ; ORA-19202: Error occurred in XML processing
We have an application, which sends an XML to DB for processing.
While it works in general, it is failing, when special characters are present in the text node
see example below
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Group>
<Value> %</Value>
</Group>
</Query>
Db throws following error while parsing this xml
XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00217: invalid character 15573180 (U+EDA0BC)
How to fix it?The following works for me on 11.2.0.2, db charset AL32UTF8 :
test_sample.xml, encoding UTF-8 :
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Group>
<Value>?%</Value>
</Group>
</Query>NB : the characters behind the "?" got lost after posting, they're actually 0xF09F 8C82
Loading...
SQL> truncate table tmp_xml;
Table truncated
SQL>
SQL> insert into tmp_xml values (
2 xmltype(
3 bfilename('TEST_DIR','test_special.xml')
4 , nls_charset_id('AL32UTF8')
5 )
6 );
1 row inserted
SQL> set long 500
SQL> select * from tmp_xml;
SYS_NC_ROWINFO$
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Group>
<Value>í ¼í¼‚%</Value>
</Group>
</Query>
Edited by: odie_63 on 25 sept. 2012 23:00 -
Excel or xml file upload for Electronic banking
Hi all,
Can i upload bank statement in excel or xml format. If yes, how ? Where to go and what to change? Please advice..
I understand the BAI, Multicash format, but all are in txt format. Does SAP allow us to upload bank statement in excel or xml format ?
Thankyou
SharadHi,
Good evening and greetings,
Please go through the following link which details the entire processflow of Electronic Banking
http://help.sap.com/saphelp_erp2005/helpdata/en/43/0bd3aa43de11d1896f0000e8322d00/frameset.htm
Please reward points if found useful
Thanking you
With kindest regards
Ramesh Padmanabhan
Maybe you are looking for
-
UK Payroll (NI Refund to Mr Jossep)
Hi Experts, Requirement Multiple Employee M Jessop was given a NI refund in March 2009 Detail A refund of National Insurance contributions was made in March 2009. We cannot understand why. A refund is not due The refund has not been reclaimed in Apri
-
How do i create/combine my mac id with my iPhone id?
i wanted to download an app form app store and was asked for my id.. apperntly my iPhone id is limited to my country's app store and my email is in use for that id... how do i create/combine my mac id with my iPhone id so i can download apps from app
-
Ok heres the scoup , I have a Blu Ray burner on my PC and Apple has told me that when the next update comes out being Leopard I believe that is the update they are referring to. They said my Blu Ray Burner will work on my MacPro. Please advise if I w
-
Hi all, I have a SOA Suite 10.1.3.3 environment fronted by Apache 2.0. Installed OHS 2.0 from the Companion CD in a new OHS ORACLE_HOME Installed SOA Suite 10.1.3.3 in a new J2EE ORACLE_HOME Can access the consoles ok (BPEL, ESB, etc ...). Can access
-
Adding a object to the next request
Hi all, Suppose your in a JSP section at the top of your page, and later there is an html button, that will submit the form. I know you can write code such as: request.setAttribute("name", object);However, that attribute is set to the previous re