Dataengine API
Hi,
I wrote following java code to process the datatemplate.
package com.xxsfi.common;
//import oracle.apps.xdo.template.FOProcessor;
import oracle.apps.xdo.dataengine.*;
import oracle.apps.fnd.common.AppsContext;
import java.io.*;
import oracle.apps.xdo.XDOException;
//import oracle.xml.sql.query.OracleXMLQuery;
import java.sql.Connection;
import oracle.jdbc.driver.OracleStatement;
import java.sql.*;
import oracle.sql.CLOB;
import oracle.sql.*;
import oracle.jdbc.*;
public class generatexml
public static void main(String[] args)
try {
//Initilization//
DataProcessor dataProcessor = new DataProcessor();
String dbcLocation = "/app/oapps/11.5.5/opm8appl/fnd/11.5.0/secure/houn35_opm8.dbc";
AppsContext aCont = new AppsContext(dbcLocation);
Connection jdbcConnection1 = aCont.getJDBCConnection();
//Set Data Template
dataProcessor.setDataTemplate("/app/oapps/11.5.5/opm8comn/java/com/xxsfi/common/Invoice_dt.xml");
dataProcessor.setConnection(jdbcConnection1);
dataProcessor.setOutput("/app/oapps/11.5.5/opm8comn/java/com/xxsfi/common/Invoice_dt_out.xml");
dataProcessor.processData();
catch (Exception e)
System.err.println("Exception thrown");
e.printStackTrace();
I was able to compile sucessfully. I set the Class path to this dir.
When I am trying to run above class I am gettting following error.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/java/util/collections/Iterator
at oracle.apps.xdo.dataengine.DataProcessor.<init>(DataProcessor.java:168)
at com.xxsfi.common.generatexml.main(generatexml.java:25)
Could you please help me out how to fix this issue.
Thanks
Hari
Hi ,
It says the iterator class is not avaiable on ur machine so download that ... and let me knwo if it works ....
Thanks
Tom...
Similar Messages
-
Hi XMLP Gurus,
I am trying to generate Purchase Order report using Bursting API.
Requirement is to generate PDF document, containing POs, per vendor site.
What I am doing is generating XML Data file using Java DataEngine API, which contains POs for all the vednor sites. Then, I burst the file at vendor site level.
I would like to generate one document for one vendor site.
The following is the control file I am using.
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request select="/G_VENDOR_SITES/LIST_G_VENDOR_SITE/G_VENDOR_SITE">
<xapi:delivery>
<xapi:filesystem id="file" output="/tmp/coe/xmlp/data/${P_VENDOR_SITE_ID}.pdf" />
</xapi:delivery>
<xapi:document output-type="pdf" delivery="file">
<xapi:template type="rtf" location="/tmp/coe/xmlp/templates/RTF_TEMPLATE_LAYOUT.rtf">
<!--xapi:data location="/tmp/coe/xmlp/data/coePoPrintXML.xml"/-->
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
Structure of my file:
+<G_VENDOR_SITES>
++<LIST_G_VENDOR_SITE>
+++<G_VENDOR_SITE>
++++<P_VENDOR_SITE_ID>1970</P_VENDOR_SITE_ID>
++++<COUNTRY>US</COUNTRY>
++++<LIST_G_PO_HDR>
++++...
++++<G_PO_HDR>
++++...
+++++++lines..
+++++++++++shipments..
+++++++++++++++distributions..
I am facing couple of problems as follows:
1) Dynamic file name generation is not working.
<xapi:filesystem id="file" output="/tmp/coe/xmlp/data/${P_VENDOR_SITE_ID}.pdf" />.
This is not substituting the value of ${P_VENDOR_SITE_ID}. So I get only one file namely, ".pdf"
2) In the next version of my report, I would like to deliver the document based on Vendor site's notification preference. It means, delivery should be dynamic. Eg. if vendor site has Email as notification method, PDF generated for that Vendor site should be sent thru email. Similarly, for FAX.
Does <xapi:document> element support filter attribute?
Or I have to use multiple <request> element to achieve this?
Your thoughts gurus..
Thanks-
Ashish.Hi Ashish,
if u got the solution for your requirement pls let me know, I am also working on the same report.
my requirement is if i run a batch (for example batch contains 6 PO's with 3 PO's C_PRINT_FAX_FLAG ='E' (Email) and other three PO's C_PRINT_FAX_FLAG ='F' (Fax) ) based on the filter="//G_HEADERS[C_PRINT_FAX_FLAG ='E' or filter="//G_HEADERS[C_PRINT_FAX_FLAG ='F' the program should burst on the respective flags.And if C_PRINT_FAX_FLAG ='E' i have to email those PO's to different suppliers OR if C_PRINT_FAX_FLAG ='F' i have to fax those PO's to respective supplier faxnumbers.
but now it is not bursting the program sending all the 6 PO's output as a single PDF file to all the suppliers and supplier faxnumbers (irrespective of Flag value)
ex:
----PO No: | --------- Flag:-------------------- |--supplier email address:-----
----------------| --------------------------------- -----| -------------------------------------------
##PO1001 | C_PRINT_FAX_FLAG ='E' | [email protected]
##PO1002 | C_PRINT_FAX_FLAG ='E' | [email protected]
##PO1003 | C_PRINT_FAX_FLAG ='E' | [email protected]
##PO1004 | C_PRINT_FAX_FLAG ='F' | [email protected]
##PO1005 | C_PRINT_FAX_FLAG ='F' | [email protected]
##PO1006 | C_PRINT_FAX_FLAG ='E' | [email protected]
for the above PO's :
1. ##PO1001, ##PO1002 should email to [email protected]
2.##PO1003 should email to [email protected]
and
3.##PO1004,##PO1005 should fax to [email protected]
##PO1006 should fax to [email protected]
my control file is :
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
<xapi:request select="/xxx_HQ_XML_POXPRPOL/LIST_G_INIT_INFO/
G_INIT_INFO/LIST_G_HEADERS/G_HEADERS">
<xapi:delivery>
<xapi:email id="1231" server="xxxx.aaa.com" port="25" from="[email protected]" reply-to ="[email protected]">
<xapi:message id="123" to="${CF_SUPPLIER_EMAIL_ADDRESS}" attachment="true" subject=" Purchase Order No: ${POH_PO_NUM}"> Please review the attached PO ${POH_PO_NUM} </xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output-type="pdf" delivery="123">
<xapi:template type="rtf"
location="/d01/oracle/kefdcomn/java/oracle/apps/customtop/PO_Batch.rtf" filter=".//G_HEADERS[C_PRINT_FAX_FLAG ='E' and CF_SUPPLIER_EMAIL_ADDRESS !='' ]">
</xapi:template>
</xapi:document>
</xapi:request>
<xapi:request select="/xxx_HQ_XML_POXPRPOL/LIST_G_INIT_INFO/
G_INIT_INFO/LIST_G_HEADERS/G_HEADERS">
<xapi:delivery>
<xapi:email id="1233" server="xxx.xxxx.com" port="25" from="[email protected]" reply-to ="[email protected]">
<xapi:message id="1233" to="${CF_SUPPLIER_FAX_NUMBER}" attachment="true" subject="Fax sent Purchase Order No: ${POH_PO_NUM}"> </xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output-type="pdf" delivery="1233">
<xapi:template type="rtf"
location="/d01/oracle/kefdcomn/java/oracle/apps/xxx/PO_Batch.rtf" filter="//G_HEADERS[C_PRINT_FAX_FLAG ='F' and CF_SUPPLIER_FAX_NUMBER !='']">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
my XML data is:
<?xml version="1.0" ?>
- <!-- Generated by Oracle Reports version 6.0.8.27.0
-->
- <xxx_HQ_XML_POXPRPOL>
- <LIST_G_INIT_INFO>
- <G_INIT_INFO>
<MANUAL_PO_NUM_TYPE>NUMERIC</MANUAL_PO_NUM_TYPE>
<C_COMPANY>abc Corporation</C_COMPANY>
<C_ORGANIZATION_ID>206</C_ORGANIZATION_ID>
<BASE_CURRENCY_CODE>USD</BASE_CURRENCY_CODE>
<STRUCTURE_ACC>1001</STRUCTURE_ACC>
<STRUCTURE_CAT>2001</STRUCTURE_CAT>
<C_CATEGORY_SET_ID>16</C_CATEGORY_SET_ID>
<C_YES>Yes</C_YES>
<C_NO>No</C_NO>
- <LIST_G_HEADERS>
+ <G_HEADERS>
</G_HEADERS>
+ <G_HEADERS>
</G_HEADERS>
</LIST_G_HEADERS>
</G_INIT_INFO>
</LIST_G_INIT_INFO>
<WHERE_CLAUSE>AND (nvl(poh.print_count,0) = 0 OR to_date(poh.revised_date, 'DD-MON-RR HH24:MI')>poh.printed_date)</WHERE_CLAUSE>
<PO_NUM_TYPE>NUMERIC</PO_NUM_TYPE>
<ORGANIZATION_ID>206</ORGANIZATION_ID>
<C_ARCHIVE_SUCCEED>1</C_ARCHIVE_SUCCEED>
<C_MARGIN_FIELD />
<C_EC_WHERE_CLAUSE>AND NOT EXISTS (SELECT 'X' from xxxxx)</C_EC_WHERE_CLAUSE>
<CS_1></CS_1>
<CS_2></CS_2>
<CS_3></CS_3>
</xxx_HQ_XML_POXPRPOL>
If any one have pls send me the Bursting Control file.
my id is [email protected]
I ill appreciate your early reply.
Thanks,
Madhu -
Generating reports from PL/SQL
I'm new to the world of BI Publisher - so far I'm impressed with what I've seen. I've managed to create a report and an RTF template and generate some nice looking PDF's :)
What I need to do now is to have a nightly job that produces PDF shipment reports using my template for all new shipments generated during the day and I'm having a little difficulty putting it all together.
I've looked at the BI Publisher API's that allow me to generate an XSL from my RTF template and the using the FO engine merge the XSL and XML data to produce the PDF. Then using the delivery manager API's I can send these reports out via email.
I'm a little unsure of how to get the XML source - I've played around with the DataEngine API to generate XML from a SQL query so I think that's where I should be heading.
Does this all sounds right ? Ideally, I want to be able to do all of this from within a scheduled PL/SQL job every night but all the interaction with the BI server seems to be via Java.
Is there an easy(ish) way to run all of this from within PL/SQL ?
And should I be going about this by:
1/ generate XML data using dataengine API
2/ create an RTF template using word and the xml data generated above
3/ use the RTF processor to generate an XSL-FO from my RTF template
(1-3 will only need to be done once)
4/ Then my nightly job will use the dataengine to generate new shipment XML data
5/ use FO processor to generate PDF's from each
6/ use delivery manager API's to email out
All sounds very cumbersome and intense -is there no easier way ?! :) Also, I'm thinking i should be using the bursting engine to split one query containing all the new shipment data and generate/mail a PDF for each shipment ? Is that necessary if all going to the same email address ?
Help/guidance/suggestions greatly appreciated !
Many thanks,
Brentrepost .... Has anyone successfully called BIP web services from within the database using Java stored procedures ?
Still struggling to work out how to generate my reports from PL/SQL ! :(( -
Using the Data Engine Java API
I try to use the Data Engine Java API to generate an XML document from database data.
So as mentioned in the documentation Business Intelligence Publisher User's Guide Release 10.1.3.2 (page 4-26 to 4-27)
a) I created a java class (using Jdev Version 11.1.1.0.0)
package oracle.apps.XMLPublisher.client;
import com.sun.java.util.collections.Hashtable;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import oracle.apps.xdo.XDOException;
import oracle.apps.xdo.dataengine.DataProcessor;
public class XMLFileGenerator {
public XMLFileGenerator() {
public static void dataEngine() throws ClassNotFoundException, Exception {
XMLFileGenerator xMLFileGenerator = new XMLFileGenerator();
try {
//Initialization instantiate the DataProcessor class//
DataProcessor dataProcessor;
dataProcessor = new DataProcessor();
//Set Data Template to be executed
dataProcessor.setDataTemplate("PERFRBS.xml");
Hashtable parameters;
parameters = new Hashtable();
parameters.put("P_LEGAL_ENTITY_ID", "3259");
parameters.put("P_TRU_ID", "3262");
parameters.put("P_YEAR", "2009");
dataProcessor.setParameters(parameters);
// Now set the jdbc connection to the database that you
// wish to execute the template against.
// This sample assumes you have already created
// the connection object 'jdbcConnection'
Class.forName("oracle.jdbc.OracleDriver");
String url =
"jdbc:oracle:thin:@ap6005sdb.us.oracle.com:1526:hremeadv";
Connection jdbcConnection;
jdbcConnection= DriverManager.getConnection(url, "apps", "*****");
dataProcessor.setConnection(jdbcConnection);
System.out.println("Here1");
// Specify the output directory and file for the data file
dataProcessor.setOutput("BilanSocial.xml");
System.out.println("Here2");
dataProcessor.processData();
System.out.println("Here3");
} catch (SQLException e) {
System.out.println("SQLException " + e.getMessage());
} catch (XDOException e) {
System.out.println("XDOException" + e.getMessage());
public static void main(String[] argv) throws ClassNotFoundException,
Exception {
XMLFileGenerator xmlPublisher = new XMLFileGenerator();
XMLFileGenerator.dataEngine();
b) to generate my xml file based on the following data template
<?xml version="1.0" encoding="ISO-8859-1" ?>
<dataTemplate name="PERFRBS" defaultPackage="" version="1.0">
<parameters>
<parameter name="P_LEGAL_ENTITY_ID" dataType = "number"></parameter>
<parameter name="P_TRU_ID" dataType = "number"></parameter>
<parameter name="P_YEAR" dataType = "number"></parameter>
</parameters>
<lexicals>
</lexicals>
<dataQuery>
<sqlStatement name="Q_INDICATORS">
<![CDATA[ SELECT pai.action_information3 YEAR,
pai.action_information17 INDICATOR_VALUE
FROM pay_action_information pai
WHERE pai.action_information_category = 'HR_FR_BS'
AND pai.action_context_type = 'PA'
AND pai.action_information1 = :P_LEGAL_ENTITY_ID
AND pai.action_information2 = :P_TRU_ID
AND pai.action_information3 = :P_YEAR
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_YEARS" dataType="varchar2" source="Q_INDICATORS">
<element name="YEAR" dataType="varchar2" value="YEAR"/>
<element name="INDICATOR_VALUE" dataType="number" value="INDICATOR_VALUE"/>
</group>
</dataStructure>
</dataTemplate>
---> But when I run it , it fails when calling the data processor with the following error
D:\Jdeveloper11g\jdk\bin\javaw.exe -client -classpath "D:\Jdeveloper11g\jdevhome\XMLPublisher\src\Client\classes;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\versioninfo.jar;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\xdocore.jar;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\collections.jar;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\xmlparserv2-904.jar;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\i18nAPI_v3.jar;D:\Jdeveloper11g\jdbc\lib\ojdbc14dms.jar;D:\Jdeveloper11g\jlib\orai18n.jar;D:\Jdeveloper11g\diagnostics\lib\ojdl.jar;D:\Jdeveloper11g\jlib\dms.jar" -Dhttp.proxyHost=emeacache.uk.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts= -Dhttps.proxyHost=emeacache.uk.oracle.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts= oracle.apps.XMLPublisher.client.XMLFileGenerator
Here1
Here2
Exception in thread "main" java.lang.IllegalAccessError: tried to access class oracle.jdbc.driver.OracleStatement from class oracle.apps.xdo.dataengine.DBConnection
at oracle.apps.xdo.dataengine.DBConnection.setRowPrefetchSize(DBConnection.java:42)
at oracle.apps.xdo.dataengine.XMLPGEN.setRowPrefetchSize(XMLPGEN.java:1224)
at oracle.apps.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:420)
at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:281)
at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:222)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:334)
at oracle.apps.XMLPublisher.client.XMLFileGenerator.dataEngine(XMLFileGenerator.java:50)
at oracle.apps.XMLPublisher.client.XMLFileGenerator.main(XMLFileGenerator.java:62)
Process exited with exit code 1.
Thanks by advance for your helpMake sure you have the Oracle JDBC library setup in project parties and it's setup to export. The api's are fine. Have you looked at the BIPublisherIDE I wrote. All this code is already written for you. There is a manual on the site as well
http://bipublisher.blogspot.com/2008/03/bi-publisher-bipublisheride.html
Ike Wiggins
http://bipublisher.blogspot.com -
Loadjava + BI Publisher API's
Hi my name is Ike Wiggins. I'm exploring loading the BI Publisher API's as jar file. The end result is that my TestConfiguration class is still invalid.......It's driving me nuckin futs :-). If anyone has any idea's or suggestions or would like me to repeat step let me know. This is my last shot before I give up! I know there has to something I missing. Also, can anyone tell me what table or sys view has a record of the resource objects?
FYI: I verified the file will compile and run with javac.
First Try:+
bash-3.2$ dropjava -u scott/tiger bipublisher/jp/TestConfiguration
bash-3.2$ loadjava -force -resolve -user scott/tiger -verbose bipublisher/jp/TestConfiguration.java
arguments: '-user' 'scott/***' '-force' *'-resolve'* '-verbose' 'bipublisher/jp/TestConfiguration.java'
creating : source bipublisher/jp/TestConfiguration
loading : source bipublisher/jp/TestConfiguration
resolving: source bipublisher/jp/TestConfiguration
errors : source bipublisher/jp/TestConfiguration
ORA-29535: source requires recompilation
bipublisher/jp/TestConfiguration:11: cannot resolve symbol
symbol : class DataProcessor
location: package dataengine
import oracle.apps.xdo.dataengine.DataProcessor;
^
bipublisher/jp/TestConfiguration:91: cannot resolve symbol
symbol : class DataProcessor
location: class bipublisher.jp.TestConfiguration
DataProcessor dataProcessor = new DataProcessor();
^
bipublisher/jp/TestConfiguration:91: cannot resolve symbol
symbol : class DataProcessor
location: class bipublisher.jp.TestConfiguration
DataProcessor dataProcessor = new DataProcessor();
^
3 errors
The following operations failed
source bipublisher/jp/TestConfiguration: resolution
exiting : Failures occurred during processing
Second try:*
bash-3.2$ loadjava -force -user scott/tiger -verbose -jarasresource j5472959_xdo.zip
arguments: '-user' 'scott/***' '-force' '-verbose' '-jarasresource' 'j5472959_xdo.zip'
creating : resource j5472959_xdo.zip
loading : resource j5472959_xdo.zip
Classes Loaded: 0
Resources Loaded: 1
Sources Loaded: 0
Published Interfaces: 0
Classes generated: 0
Classes skipped: 0
Synonyms Created: 0
Errors: 0
bash-3.2$ loadjava -force -user scott/tiger -verbose bipublisher/jp/TestConfiguration.java
arguments: '-user' 'scott/***' '-force' '-verbose' 'bipublisher/jp/TestConfiguration.java'
creating : source bipublisher/jp/TestConfiguration
loading : source bipublisher/jp/TestConfiguration
Classes Loaded: 0
Resources Loaded: 0
Sources Loaded: 1
Published Interfaces: 0
Classes generated: 0
Classes skipped: 0
Synonyms Created: 0
Errors: 0
End result class is still invalid
Third try:*
bash-3.2$ dropjava -u scott/tiger bipublisher/jp/TestConfiguration.java
bash-3.2$ dropjava -u scott/tiger -jarasresource j5472959_xdo.zip
bash-3.2$ loadjava -force -stdout -user scott/tiger -verbose bipublisher/jp/TestConfiguration.java -jarasresource j5472959_xdo.zip
arguments: '-user' 'scott/***' '-force' '-stdout' '-verbose' 'bipublisher/jp/TestConfiguration.java' '-jarasresource' 'j5472959_xdo.zip'
creating : source bipublisher/jp/TestConfiguration
loading : source bipublisher/jp/TestConfiguration
creating : resource j5472959_xdo.zip
loading : resource j5472959_xdo.zip
Classes Loaded: 0
Resources Loaded: 1
Sources Loaded: 1
Published Interfaces: 0
Classes generated: 0
Classes skipped: 0
Synonyms Created: 0
Errors: 0
End result class is still invalid
Thanks,
Ike Wiggins
http://bipublisher.blogspot.com
TestConfiguration Class
package bipublisher.jp;
import java.sql.SQLException;
import java.sql.PreparedStatement;
import java.sql.Connection;
import java.sql.ResultSet;
//Oracle extensions to JDBC imports
//import oracle.apps.xdo.common.log.Logger;
import oracle.apps.xdo.dataengine.DataProcessor;
//import oracle.apps.xdo.dataengine.DEUtil;
import oracle.jdbc.driver.OracleDriver;
public class TestConfiguration {
public TestConfiguration() {
public static void main(String[] args) {
//TestConfiguration testConfiguration = new TestConfiguration();
TestConfiguration.getEmployeeXML();
public static String getEmployeeXML() {
Connection connection = null; // Database Connection Object
StringBuffer dataTemplateXml = new StringBuffer();
try {
// Get a Default Database Connection using Server Side JDBC Driver.
// Note : This class will be loaded on the Database Server and hence use a
// Server Side JDBC Driver to get default Connection to Database.
connection = new OracleDriver().defaultConnection();
dataTemplateXml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?> \r\n");
dataTemplateXml.append("<dataTemplate name=\"CORPORATION\" defaultPackage=\"\" description=\"Demo Data Template\" version=\"1.0\">\r\n");
dataTemplateXml.append("<properties>\r\n");
dataTemplateXml.append(" <property name=\"include_parameters\" value=\"true\"/>\r\n");
dataTemplateXml.append(" <property name=\"include_null_Element\" value=\"false\"/>\r\n");
dataTemplateXml.append(" <property name=\"include_rowsettag\" value=\"false\"/>\r\n");
dataTemplateXml.append(" <property name=\"scalable_mode\" value=\"on\"/>\r\n");
dataTemplateXml.append(" <property name=\"debug_mode\" value=\"off\"/>\r\n");
dataTemplateXml.append("</properties>\r\n");
dataTemplateXml.append("<parameters>\r\n");
dataTemplateXml.append(" <parameter name=\"NAME\" defaultValue=\"Vision\" dataType = \"varchar2\"/>\r\n");
dataTemplateXml.append("</parameters>\r\n");
dataTemplateXml.append("<lexicals>\r\n");
dataTemplateXml.append("</lexicals>\r\n");
dataTemplateXml.append(" <dataQuery>\r\n");
dataTemplateXml.append(" <sqlStatement name=\"Q_DEPT\">\r\n");
dataTemplateXml.append(" <![CDATA[SELECT DNAME, DEPTNO\r\n");
dataTemplateXml.append(" FROM dept\r\n");
dataTemplateXml.append(" ORDER BY dname]]>\r\n");
dataTemplateXml.append(" </sqlStatement>\r\n");
dataTemplateXml.append(" <sqlStatement name=\"Q_EMPLOYEE\">\r\n");
dataTemplateXml.append(" <![CDATA[SELECT DEPTNO AS DEPARTTNO,EMPNO, ENAME, JOB, SAL\r\n");
dataTemplateXml.append(" FROM emp\r\n");
dataTemplateXml.append(" WHERE deptno = :deptno\r\n");
dataTemplateXml.append(" ORDER BY ename]]>\r\n");
dataTemplateXml.append(" </sqlStatement>\r\n");
dataTemplateXml.append(" </dataQuery>\r\n");
dataTemplateXml.append(" <dataStructure>\r\n");
dataTemplateXml.append(" <group name=\"DEPT\" source=\"Q_DEPT\">\r\n");
dataTemplateXml.append(" <element name=\"DEPT_NAME\" value=\"DNAME\"/>\r\n");
dataTemplateXml.append(" <element name=\"DEPT_NUMBER\" value=\"DEPTNO\"/>\r\n");
dataTemplateXml.append(" <group name=\"EMPLOYEE\" source=\"Q_EMPLOYEE\">\r\n");
dataTemplateXml.append(" <element name=\"EMP_DEPT_NUMBER\" value=\"DEPT.DEPT_NUMBER\"/>\r\n");
dataTemplateXml.append(" <element name=\"EMPNO\" value=\"EMPNO\"/>\r\n");
dataTemplateXml.append(" <element name=\"ENAME\" value=\"ENAME\"/>\r\n");
dataTemplateXml.append(" <element name=\"JOB\" value=\"JOB\"/>\r\n");
dataTemplateXml.append(" <element name=\"SAL\" value=\"SAL\"/>\r\n");
dataTemplateXml.append(" </group>\r\n");
dataTemplateXml.append(" </group>\r\n");
dataTemplateXml.append(" </dataStructure>\r\n");
dataTemplateXml.append("</dataTemplate>\r\n");
System.out.print(dataTemplateXml.toString());
DataProcessor dataProcessor = new DataProcessor();
dataProcessor.setDataTemplate(dataTemplateXml.toString());
//dataProcessor.setParameters(getParameters());
dataProcessor.setConnection(connection);
dataProcessor.setOutput("/Users/ike/tmp/" + "1234" + ".xml");
dataProcessor.includeParameters(true);
dataProcessor.processData();
return "yay!";
// Close Statement, Result Set and Connection
} catch (Exception ex) { // Trap SQL Errors
System.err.println("Error in Executing getEmployeeXML" + '\n' + ex.toString());
return "nay!";
} finally {
try {
//connection.close();
} catch (Exception e) {
e.printStackTrace();
}Edited by: Ike Wiggins on Jun 28, 2009 8:00 PMThe Oracle JVM requires that all classes that are needed be loaded into the database unless a specific resolver spec is used. If the resolver spec (* -) is specified, then unresolved classes are silently ignored but will cause runtime or compile time errors if referenced.
If the required classes are not present then the class will remain invalid until all the classes it references are loaded, etc.
If you want the classes in a specific jar to be seen then do not use -jarasresource. This just makes the jar a resource and it will not be used for any resolution for other classes.
You will need to load all the classes that are referenced by your test code as well as any classes that they may reference. There is a tool, ojvmtc which can define the list of classes. When they are loaded, either in a jar or separately then your class should compile or load and be valid.
We do not load xdo classes as default. Try using your second try first without the -jarasresource and then your first try second. Issues may still arise with the xdo jar if it requires other apps classes to be loaded. -
I found some old doc about accessing a Data Engine API to use a data template to create the xml. Does this API still exist? I'm running Stand alone 10.1.3.4. The current guide makes no mention of it. If it is no longer applicable, how can we access a data template from the command line to generate XML?
Hi,
have a look here: http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12693/toc.htm
There click on oracle.apps.xdo.dataengine
Regards
Rainer -
Unable to capture user comments and responder in RESPOND API
We are building a custom application that uses Oracle Workflow underneath. The application users and responsibilities have been integrated into Workflow. Notifications are acknowledged and responded to directly from the application using the PL/SQL Notification APIs.
When using the wf_notification.respond API with the appropriate user and comment information filled in, we are still unable to capture the responder information as well as the reponders comments. In other words, the RESPONDER and USER_COMMENT fields in the WF_NOTIFICATION is blank. However, the response does seem to go through otherwise. Do we need to set some kind of user context outside of just setting the response attributes and calling the respond API? Following is the code....
owf_mgr.wf_notification.setattrtext(p_nid,
'RESULT' ,
'APPROVED');
-- This procedure then caused the WF to advance to next step
-- Respond to notification, depends on RESULT setattrtext above
owf_mgr.wf_notification.respond( p_nid, -- notification id
p_respond_comment, -- response_comment
p_responder ); --responder role
Any help is greatly appreciated.
Thanks,
RajIf you are on 11.5.10 or greater or standalone 2.6.4 if you pass the responder value to wf_notification.respond API it should be updated in wf_notifications.responder column. The comments is now updated in wf_comments table against the notification id and not wf_notifications.user_comment column.
Thanks, Vijay -
Hi,
We are getting below errors in /nwa/logs. We have our PI (7.11) and Service Registry configured on the same server. And have out CE (7.2) system connected to this service registry. Does any one has similar experience? Please let me know if you have any solution for the same.
SR Log Error
| 11-Nov-11 14:10:45.568
| Method : getClassificationSystems()
| Class : com.sap.esi.uddi.sr.api.ws.ServicesRegistrySiImplBean
| ThreadID : 146
| Message : com.sap.esi.uddi.sr.api.exceptions.SRException: No classification system found for ID 'QName: Namespace= http://uddi.sap.com/classification; Name= ConfigurationFlags'
|
| com.sap.esi.uddi.sr.impl.common.Utility.cs2srException(Utility.java:122)
| com.sap.esi.uddi.sr.impl.ejb.ServicesRegistryBean.getClassificationSystems(ServicesRegistryBean.java:242)
| sun.reflect.GeneratedMethodAccessor1325.invoke(Unknown Source)
| sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| java.lang.reflect.Method.invoke(Method.java:585)
| com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
| com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
| $Proxy1087.getClassificationSystems(Unknown Source)
| com.sap.esi.uddi.sr.api.ws.ServicesRegistrySiImplBean.getClassificationSystems(ServicesRegistrySiImplBean.java:456)
| sun.reflect.GeneratedMethodAccessor1324.invoke(Unknown Source)
| sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| java.lang.reflect.Method.invoke(Method.java:585)
| com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_WS.invoke(Interceptors_WS.java:31)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
| com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
| com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
| com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:203)
| com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:512)
| com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:486)
| com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:256)
| com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:176)
| com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWithLogging(ServletDispatcherImpl.java:112)
| com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:70)
| SoapServlet.doPost(SoapServlet.java:51)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
| com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
| com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
| com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:486)
| com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:298)
| com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
| com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
| com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:84)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:245)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
| com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
| com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
| com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
| com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
| com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
| com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
| com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
| com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
| com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
| com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
| com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
| com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
| com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
|Hi,
Refer Error:Service Registyr Configuration PI 7.11
and http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8071b1b8-3c5c-2e10-e7af-8cadbc49d711?QuickLink=index&overridelayout=true
Thanks,
Chandra -
Is There any API in receivables payment will made against closed invoices ?
Hi ALL,
i have requirement as below.
i am doing AR Invoice Data Migration for Instance 11.5.5 (as a Source Instance) to the new instance R12 (as a target instance).
Both open and closed invoices will have to be migrated from 11.5.5 to R12 to provide the drill down facility for audit purpose.
To meet the above requirement all the open and closed invoice will be picked up from 11.5.5 ; and imported into R12..
Subsequently, full payment will be made in R12 against all closed invoices in 11.5.5 to close those invoices by using any APIs?
can some one explain is there any API in receivables payment will made against closed invoices.
Thanks,
VSR.Hi,
Can you be clear on your question: You want any API to make payment against closed invoices?
To me, You are making things complex. We can achieve the Migration of Closed invoices using following two procedures:
Procedure: 1
Ask Functional Guy to create a Transaction Type 'Closed Invoices' with Open to Receivables Flag not checked. +(You can uncheck Post to GL flag also, if required depending on your migration strategy)+. Status at Transaction Type if taken as 'Closed' it will be appropriate.
Invoices migrated using this Transaction Type shall not be shown as Outstanding but will be useful for Audit.
Procedure: 2
Consider the amount due Original of Closed Invoices and migrate them with the amount as Amount due remaining.
While migrating populate Receipt Method,Payment Method and Instruments useful for Automatic Receipts.
Once Create Automatic Receipts Program is run, it will close all these invoices. Note: We require dummy bank here which points to a Clearing account.
Automatic Receipts program is also an API.
In the above 2 ways, we are acheiving the Goal by using Functional knowledge rather than Technical. And I think following Functional way is better and less time consuming.
Please discuss with your Functional consultant if required. You can succeed.
Regards,
Sridhar -
Error while creating new projects using api
Hello,
I am having error while creating projects using standard api, PA_PROJECT_PUB.CREATE_PROJECTS. The error I am having is as follow.
Source template ID is invalid.
===
My code is as follow:
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
define no=&amg_number
DECLARE
-- Variables used to initialize the session
l_user_id NUMBER;
l_responsibility_id NUMBER;
cursor get_key_members is
select person_id, project_role_type, rownum
from pa_project_players
where project_id = 1;
-- Counter variables
a NUMBER := 0;
m NUMBER := 0;
-- Variables needed for API standard parameters
l_commit VARCHAR2(1) := 'F';
l_init_msg_list VARCHAR2(1) := 'T';
l_api_version_number NUMBER :=1.0;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
-- Variables used specifically in error message retrieval
l_encoded VARCHAR2(1) := 'F';
l_data VARCHAR2(2000);
l_msg_index NUMBER;
l_msg_index_out NUMBER;
-- Variables needed for Oracle Project specific parameters
-- Input variables
l_pm_product_code VARCHAR2(30);
l_project_in pa_project_pub.project_in_rec_type;
l_key_members pa_project_pub.project_role_tbl_type;
l_class_categories pa_project_pub.class_category_tbl_type;
l_tasks_in pa_project_pub.task_in_tbl_type;
-- Record variables for loading table variables above
l_key_member_rec pa_project_pub.project_role_rec_type;
l_class_category_rec pa_project_pub.class_category_rec_type;
l_task_rec pa_project_pub.task_in_rec_type;
-- Output variables
l_workflow_started VARCHAR2(100);
l_project_out pa_project_pub.project_out_rec_type;
l_tasks_out pa_project_pub.task_out_tbl_type;
-- Exception to call messag handlers if API returns an error.
API_ERROR EXCEPTION;
BEGIN
-- Initialize the session with my user id and Projects, Vision Serves (USA0
-- responsibility:
select user_id into l_user_id
from fnd_user
where user_name = 'SSHAH';
select responsibility_id into l_responsibility_id
from fnd_responsibility_tl
where responsibility_name = 'Projects Implementation Superuser';
pa_interface_utils_pub.set_global_info(
p_api_version_number => l_api_version_number,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status);
if l_return_status != 'S' then
raise API_ERROR;
end if;
-- Provide values for input variables
-- L_PM_PRODUCT_CODE: These are stored in pa_lookups and can be defined
-- by the user. In this case we select a pre-defined one.
select lookup_code into l_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Conversion';
-- L_PROJECT_IN: We have to provide values for all required elements
-- of this record (see p 5-13, 5-14 for the definition of the record).
-- Customers will normally select this information from some external
-- source
l_project_in.pm_project_reference := 'AGL-AMG Project &no';
l_project_in.project_name := 'AGL-AMG Project &no';
l_project_in.created_from_project_id := 1;
l_project_in.carrying_out_organization_id := 2864; /*Cons. West*/
l_project_in.project_status_code := 'UNAPPROVED';
l_project_in.start_date := '01-JAN-11';
l_project_in.completion_date := '31-DEC-11';
l_project_in.description := 'Trying Hard';
l_project_in.project_relationship_code := 'Primary';
-- L_KEY_MEMBERS: To load the key member table we load individual
-- key member records and assign them to the key member table. In
-- the example below I am selecting all of the key member setup
-- from an existing project with 4 key members ('EE-Proj-01'):
for km in get_key_members loop
-- Get the next record and load into key members record:
l_key_member_rec.person_id := km.person_id;
l_key_member_rec.project_role_type := km.project_role_type;
-- Assign this record to the table (array)
l_key_members(km.rownum) := l_key_member_rec;
end loop;
-- L_CLASS_CATEGORIES: commented out below should fix the error we get
-- because the template does not have an assigment for the mandatory class
-- 'BAS Test'
l_class_category_rec.class_category := 'Product';
l_class_category_rec.class_code := 'Non-classified';
-- Assign the record to the table (array)
l_class_categories(1) := l_class_category_rec;
-- L_TASKS_IN: We will load in a single task and a subtask providing only
-- the basic fields (see pp. 5-16,5-17,5-18 for the definition of
-- the task record)
l_task_rec.pm_task_reference := '1';
l_task_rec.pa_task_number := '1';
l_task_rec.task_name := 'Construction';
l_task_rec.pm_parent_task_reference := '' ;
l_task_rec.task_description := 'Plant function';
-- Assign the top task to the table.
l_taskS_in(1) := l_task_rec;
-- Assign values for the sub task
l_task_rec.pm_task_reference := '1.1';
l_task_rec.pa_task_number := '1.1';
l_task_rec.task_name := 'Brick laying';
l_task_rec.pm_parent_task_reference := '1' ;
l_task_rec.task_description := 'Plant building';
-- Assign the subtask to the task table.
l_tasks_in(2) := l_task_rec;
-- All inputs are assigned, so call the API:
pa_project_pub.create_project
(p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_workflow_started => l_workflow_started,
p_pm_product_code => l_pm_product_code,
p_project_in => l_project_in,
p_project_out => l_project_out,
p_key_members => l_key_members,
p_class_categories => l_class_categories,
p_tasks_in => l_tasks_in,
p_tasks_out => l_tasks_out);
-- Check the return status, if it is not success, then raise message handling
-- exception.
IF l_return_status != 'S' THEN
dbms_output.put_line('Msg_count: '||to_char(l_msg_count));
dbms_output.put_line('Error: ret status: '||l_return_status);
RAISE API_ERROR;
END IF;
-- perform manual commit since p_commit was set to False.
COMMIT;
--HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
WHEN OTHERS THEN
dbms_output.put_line('Error: '||sqlerrm);
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
END;
===
Msg_count: 1
Error: ret status: E
ERROR: 1: Project: 'AGL-AMG Project 1123'
Source template ID is invalid.
PL/SQL procedure successfully completed.I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)
-
Error While trying to Convert a Date Value to string in POI API (Excel)
Hi
How can I convet a date value in excel to string value ? I am using POI API for excel sheet reading in JSP .Hello Esther,
the problem seems to be that the temp folder of the target Integration Builder system can't be found:
'The system cannot find the path specified
at [..] FileAccess.getTempDirectory([..])'.
You'll experience the same problem if you try a file based import or export within the Integration Builder directly.
I would recommend to continue the search there. You could check if the environment variables (for Windows: TEMP and TMP) of the OS of the system with the target Integration Builder to an existing path. Check also if the WebAs can access this path.
Good luck
Frank -
Error while invoking a public PL/SQL API in EBIZ from Sync BPEL process
Hi,
SOA Suite: 11.1.1.3
I am getting the following error when I am invoking a public API in EBIZ from Oracle via a BPEL process. I am supplying the username/password via binding properties (as mentioned in other posts). Can someone point out that is the exact cause for this error please?
SEVERE: AbstractWebServiceBindingComponent.dispatchRequest Unable to dispatch request to http://<myserver>:8006/webservices/SOAProvider/plsql/hz_party_v2pub/ due to exceptionjavax.xml.ws.soap.SOAPF
aultException: Error occured while service was processing.
at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:874)
at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:707)
at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:226)
at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:97)
at oracle.integration.platform.blocks.soap.AbstractWebServiceBindingComponent.dispatchRequest(AbstractWebServiceBindingComponent.java:449)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.processOutboundMessage(WebServiceExternalBindingComponent.java:184)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.sendSOAPMessage(WebServiceExternalBindingComponent.java:634)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.request(WebServiceExternalBindingComponent.java:520)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy204.request(Unknown Source)
at oracle.fabric.CubeServiceEngine.requestToMesh(CubeServiceEngine.java:704)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:246)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:935)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.handleNormalInvoke(BPELInvokeWMP.java:440)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:182)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:140)
at com.collaxa.cube.engine.CubeEngine._performActivity(CubeEngine.java:2675)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2558)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1256)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:188)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:285)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4607)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:828)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:111)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:147)
at com.collaxa.cube.engine.ejb.impl.bpel.BPELEngineBean.syncCreateAndInvoke(BPELEngineBean.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy193.syncCreateAndInvoke(Unknown Source)
at com.collaxa.cube.engine.ejb.impl.bpel.BPELEngineBean_51369e_ICubeEngineLocalBeanImpl.syncCreateAndInvoke(BPELEngineBean_51369e_ICubeEngineLocalBeanImpl.java:575)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:528)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:482)
at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:156)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.request(CubeDeliveryBean.java:600)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy190.request(Unknown Source)
at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.request(BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.java:325)
at oracle.fabric.CubeServiceEngine.request(CubeServiceEngine.java:290)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy204.request(Unknown Source)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.doMessageProcessing(WebServiceEntryBindingComponent.java:1155)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:767)
at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1119)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:873)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:553)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:202)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:166)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:384)
at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:444)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Nov 3, 2010 2:32:08 PM com.collaxa.cube.CubeLogger error
SEVERE: <WSInvocationManager::invoke> got FabricInvocationException
oracle.fabric.common.FabricInvocationException: javax.xml.ws.soap.SOAPFaultException: Error occured while service was processing.
Thanks,
DineshHi James,
Thanks for the quick reply.
We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
But on the BPEL console, we are getting the error as mentioned.
Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
Thanks,
Saurabh -
Error while creating a Foreign Currency Receipt using Create_Cash API
Hi,
I am working on AR Receipts converison in R12 and trying to create cash receipts using AR_RECEIPT_API_PUB.CREATE_CASH.
Receipt gets created successfully when the currency_code is USD. Receipt Method i am passing is 'Manual Receipt'.
When the currency_code is not USD (EUR in my case), I am passing the values for p_exchange_rate_type and p_exchange_rate_date.
But the API Errors out without creating the foreign currency receipt giving the Error: AR_RAPI_RCT_MD_NAME_INVALID.
When i was trying to look at the API for this error, I dont see this error at all in the API. I see an error with the name 'AR_RAPI_RCPT_MD_NAME_INVALID' but nothing shows up for the error 'AR_RAPI_RCT_MD_NAME_INVALID' ('P' missing in 'RCPT'). I dont know where this error is getting invoked from?
I am not sure why the API is erroring out for foreign currency receipt saying Receipt Method Name is Invalid. But it works fine for currency_code USD having the same Receipt Method Name.
Any help would be highly appreciated.
Thanks in advance.
Regards,
KesavaHi Anil,
Thankyou so much for the response. The issue has been fixed.
There was a configuration missing on the existing bank account setup. On the Account Information Tab, ‘Multiple Currencies Allowed’ was checked, but on the Account Controls Tab, Receivables Controls/’Multiple Currency Receipts’ was not checked.
I have ensured that both of them are checked and I am now able to create multiple currency receipts.
Appreciate your help.
Thanks,
Kesava Chunduri -
DI API error while adding AP Invoice (Using serial Nos.)
Hi,
Im getting the following DI API error when adding an AP Invoice which has serial numbers and i cant seem to find any logical fault in the code.
" [PCH1.WhsCode][line: 4] , 'This entry already exists in the following tables (ODBC -2035) "
If anybody has encountered this error and found a solution kindly let me know.Hi Vivek,
Are you trying to add same document number, serial number or so on?
"entry exist " means like "duplicate key problem", I guess.
Basically, whscode column in PCH1 table allows duplicating.
So, I think serial number is duplicated among same item code.
Hope this useful for you.
Regards,
Hyunil Choi. -
Error while signing a document using API
Hello. I'm using API functions to add a digital signature to a PDF document. While signing this document, I receive an error which looks like:
com.adobe.livecycle.signatures.client.types.exceptions.PDFOperationException: ALC-DSS-303-001 Could not sign Signature Field MyField (in the operation : sign)
Caused By: ALC-DSS-303-014 Subject name and the subject alt name missing. (in the operation : getSignerName)
My source code is a straight copy/paste from the SDK Help. I can successfully add an unsigned signature field using API call, but I can't sign it. I can also sign my document manually from Adobe Acrobat Professional using the same certificate.
I'm new in LiveCycle and digital signatures, so it might be some obvious reason that I just can't detect now.
Could anyone help me, please?you can mail me directly to [email protected], and I'll try to help.
no guarenty :-)
Tal
[email protected]
Maybe you are looking for
-
Upgraded Snow Leopard Server to Lion Server Mailserver VPN Server Opendirectory master Fileserver AFP and SMB --> breaking a lot! 1.) Unable to set up a Opendirectory replica Installed Lion Server from scratch on another system. Any effort to make it
-
So I just got Apple TV in the mail today. I was all ready to see what it was all about before I realized that I didnt have the cords to make all the connections. I do have a HDTV with 1 extra HDMI port open. I also have ATT uverse. I heard there
-
Urgent advice please on transferring pictures to Ipod
I would like to download my pictures from my pc hard disc to Ipod, in order to delete them afterwards & create more space on my pc. 2 problems in doing this: 1) when I synchronize the picture folders to copy them onto Ipod, I suspect Itunes copies th
-
Message mapping currently being edited by user
Hi Friends, I want to edit a message mapping but I facing the information that mapping is currently edited by user This is my user itself. I close my all XI sessions and login then also I face the same error. I also tried through XI home page -> Admi
-
Newbie : Complete Connect java program to DB2
Dear all, I am failry versed with java and jdbc. I did a lot of google and searched a lot of forums but no one gave me all the details. I have done a lot of oracle jdbc. I would appreciate if some one could give me all the details please. I dont even