Pdf file to Xml Scenario
Hi friends,
How can i do PDF file to XML scenario in XI.
Please help me in this
Thanks in advance
Sreedivia
Hi All,
We can convert PDF to XML using Java mapping. Below is the basic code for that:-
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
package Shubham1;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.parser.PdfTextExtractor;
import com.sap.aii.mapping.api.AbstractTrace;
import com.sap.aii.mapping.api.StreamTransformation;
* @author shubham.e.agarwal
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
public class Shubham2 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:\\test.pdf"); //INPUT FILE (PAYLOAD)
FileOutputStream fout = new FileOutputStream ("C:/Users/Shubham.e.agarwal/My Documents/pdfXML.xml"); //OUTPUT FILE (PAYLOAD)
Shubham2 mapping = new Shubham2();
mapping.execute(fin, fout);
catch (Exception e1) {
e1.printStackTrace();
public void execute(InputStream inputstream, OutputStream outputstream) {
try {
String msgType = "MT_shubham"; //A dummy Message type, please change it as per your requirement.
String nameSpace = "http://Shubham"; //A dummy namespace, please change it as per your requirement.
String str;
str="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ "<ns0:"+msgType+" "+"xmlns:ns0=\""+nameSpace+"\">";
str = str + "\n<Record>";
PdfReader reader = new PdfReader(inputstream);
PdfTextExtractor pdf = new PdfTextExtractor(reader);
str = str + pdf.getTextFromPage(1);
str= str+"\n</Record>"+"\n</ns0:MT_shubham>";
byte by[] = str.getBytes();
outputstream.write(by);
reader.close();
outputstream.close();
System.out.println(str);
catch(Exception e){
e.printStackTrace();
Similar Messages
-
Problem in file content conversion, file 2 xml scenario
Hi,
Could some one help me in finding out the error in my file to xml scenario, please do consider the following things what I did for this scenario.
1.My sender file structure is flat file with , seperated 4 fields. On receiver end expecting xml file.
2.Did file content conversion at sender file adapter and given parameters as follows.
Document name : MT_FileInput
DocumentnameSpace : http://file/praveenworkshop
Recordset Name : DT_Record
Recordset Structure : DT_Row,*
KeyfieldType : String( default)
DT_Row.fieldnames : FirstName,LastName,City,PostCode
DT_Row.fieldSeparator : ,
DT_Row.processConfiguration: FromConfiguration
Dt_Row.endSeparator : 'nl'
3. I did check in Adapter Monitor that Both Sender and receiver adapter are showing green and It was showing 'Adapter is up and running: But no messages processed'
4. I did check the SXMB_MONI which was showing " Scheduled for Outbound processing"
5. In SXMB_MONI outbound processing payload was picking up the file and also inbound processing showing the same.
6. my source folder and destination folder are very simple c:/praveenfiles/input and c:/praveenfiles/output
files are source file praveen.txt and destination file praveenOP.xml
Please help me in finding out the error to see the output file in my output folder.Hi Praveen,
Hope these bloga are useful to you..
File content conversion sites
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Thanks,
Satya -
I want to convert a pdf file into xml.Which programme should I use and how do I access it?I am based in India.
Hello,
if you create your doc files by the help of WORD, you could use a Microsoft add on (it depends of your WORD Version).
Hans-Günter -
Extract an embedded pdf file from xml in ADF
Hi,
I have a xml file containing an embedded pdf like below
<?xml version="1.0" encoding="ISO-8859-1" ?>
<dbtx>
<response>
<transaction_rs>
<EMBEDDED_FILE>
<DOCUMENT>
JVBERi0xLjMKJaqrrK0KNCAwIG9iago8PCAvVHlwZSAvSW5mbwovUHJvZHVjZXIgKG51bGwpID4+CmVuZG9iago1IDAgb2JqCjw8IC9MZW5ndGggMTQzOCAvRmlsdGVyIC9GbGF0ZURlY29kZSAKID4+CnN0cmVhbQp4nK1Y23LiRhB95yv0tPFWzOzcR/OILxBSvgXIVqVCHmQsE1WB5Mhia8tfnyOEpJG4KVvZfTAW6nO6e/p09/hq1rud9f7pMY8Sn+KfRz0vXXrNB5OR11NEa+sZLYhW0mOSESO419eKCKO8NPSee7/1rjrDMWmIpKwCNPhe6x/H48wnXJsKTzBGfMaOAeZ2FA7kCFvAxoNtvIISavwKUGmi7dGALV7OETyVf9jlinEiYblY976M18y7Sf6fiJRpefBlyDymwDt77eX0swXCWeaI+M+8CkhaInzpzdbenxc3n64+e31ufLx/cbtJk7cwiOsn18n6LVhkn72/vNmv/9ljbokx1mPWJ5Irr88E+YEjlaxIeQUHGOHvw+Xh61307WPdywGXxDesyMEkeHtL0iypw/4WvW+CVfTxERRPhcqTLqR3QXX9VrB0TDhldJemPTL8ZHxH9rBZh6lj9xI5gM/PSRysw7hg5RRFtmWd3A77Gb5wz6HM0rL6NCrFSTXhSJTyGWHQVj8HP1f4hanWmiiOHEvCjPBYYfjqVviuwG1V39qg5kBX1Ddv1vf+SVjiS14RKfy0OWGDaVvJsjjLOpuFocHJcVMkc/yCXEWv0SL4iJI4rDP5qf44TdbrII2SXe6+DBEWbULjcIXwPS0FKGwBfTUZ3PxRo4xng7vxwEGd3LVOuwTBYSu7A3kK4iQN1vDPQYpf8HuWpFGzCA6CUWi89GgSvS/+
</DOCUMENT>
</EMBEDDED_FILE>
</response>
</transaction_rs>
</dbtx>Requirement: I want to extract the pdf from xml and store it in local drive. How can I do this in java?
Jdev : 11.1.1.3
Any help will be appriciated.
~AbhijitI have made this procedure to convert the input clob to a decoded base 64 binary, i then obtain a pdf file but its' corrupted or damaged.
any ideas?
thks guys.
Andrea
create or replace FUNCTION c2b_64( c IN CLOB ) RETURN BLOB
-- typecasts CLOB to BLOB (binary conversion)
IS
pos PLS_INTEGER := 1;
buffer RAW( 32767 );
buffer64 RAW( 32767 );
res BLOB;
lob_len PLS_INTEGER := DBMS_LOB.getLength( c );
BEGIN
DBMS_LOB.createTemporary( res, TRUE );
DBMS_LOB.OPEN( res, DBMS_LOB.LOB_ReadWrite );
LOOP
buffer := UTL_RAW.cast_to_raw( DBMS_LOB.SUBSTR( c, 78, pos ) );
buffer64 := UTL_ENCODE.base64_decode (buffer);
IF UTL_RAW.LENGTH( buffer64 ) > 0 THEN
DBMS_LOB.writeAppend( res, UTL_RAW.LENGTH( buffer64 ), buffer64 );
END IF;
pos := pos + 78;
EXIT WHEN pos > lob_len;
END LOOP;
RETURN res; -- res is OPEN here
END c2b_64; -
How can I convert pdf file to xml or html file.
Hello
My English ability is very poor. sorry.
I want to extract text and image from pdf file.
so, I try use itext. but.. I can't make what I want .
I searched pdfbox and jpedal.
but I can't get my solution.
Just I want to convert pdf to xml or html(html prefer).
I think pdfviewer is hint.
but I can't get full source(in jpedal)
Plz help.. me.....
Does anybody solve this problem?Stay in your old thread
[http://forums.sun.com/thread.jspa?threadID=5198647]
Don't multi/crosspost or your account will be locked. -
Hi,
Does anyone know if Oracle Reports will be able to produce PDF documents as XML,
as per PDF version 1.5 functionality?No. Oracle Reports supports PDF 1.4. See Publishing Reports chapter on PDF:
http://www.oracle.com/technology/documentation/reports.html
Navneet. -
Problem in text file to xml scenario
hi,
while executing the Flat file (txt) to xml file scenario, the txt file picked up from my source directory, but i could not find in my target directory.
when i check message monitoring, it is showing successful.
Audit Log for Message: af840930-3fa2-11dc-a345-000423c7753d
Time Stamp Status Description
2007-07-31 16:14:47 Success Channel CC_sender: Entire file content converted to XML format
2007-07-31 16:14:47 Success Send text file "xi_input.txt" from FTP server "64.72.230.130:/praba_source", size 353 bytes with QoS EO
2007-07-31 16:14:47 Success Application attempting to send an XI message asynchronously using connection AFW.
2007-07-31 16:14:47 Success Trying to put the message into the send queue.
2007-07-31 16:14:47 Success Message successfully put into the queue.
2007-07-31 16:14:47 Success The application sent the message asynchronously using connection AFW. Returning to application.
2007-07-31 16:14:47 Success The message was successfully retrieved from the send queue.
2007-07-31 16:14:47 Success File "xi_input.txt" deleted after processing
2007-07-31 16:14:47 Success The message status set to DLNG.
2007-07-31 16:14:48 Success The message was successfully transmitted to endpoint http://xiserver1:8000/sap/xi/engine?type=entry using connection AFW.
2007-07-31 16:14:48 Success The message status set to DLVD.
2007-07-31 16:14:48 Success The message was successfully delivered.
I followed the Venkat Donela blog
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
IN sender CC, i used file content conversion(mesage protocol), file name scheme xi_input.txt
In receiver CC , I used file (message protocol),file name scheme xi_output.xml
In both CC , transport protocol is FTP.
so i gave server name, port, username, password.
could you help me out to find the error for this scenario also?
Thanks in advancehi,
when i click on this adapeter engine xiserver1, it is changing to green color,
if i double click nothing is happening as u said
but it is showing like this Central CCMS monitor not available
anyway i giving all my values in sender CC:
in sender communication channel
TP : FTP
MP: File content conversion
AE: IS
File access parameters:
sD: /praba_source
FN: xi_input.txt
FTP access parameters:
server: xx.xx.xxx.xxx
port: xx
username: xxxxx
password: xxxx
connection mode: permanently
transfer mode: Binary
Processing Parameters:
QoS: exactly once
poll interval: 60
Processing mode: Test
File type: Binary
Content Conversion Parameters:
Document name dt_outbound
Document namespace urn:xxxxxx
record name: record
recordset str: row,*
recordset seq:Ascending
key fiedl type: string(case-sensitive)
name: value
row.fieldNames: FirstName,LastName,MiddleName,City,Place,State,Country
row.fieldSeperator: ,
row.processConfiguration: FromConfiguration
row.endSeperator: 'nl'
my input file which i kept in source directory is xi_input.txt
content of this file (xi_input.txt) is
Samuel,J,Jackson,Lakefront Drive,Earth City,Missouri,USA
Kenny,m,George,North Beauregard street,Alexandria,Virginia,USA
my dt_outbound structure like this,
dt_outbound (complex type)
then lower element is record
then lower elemnt is row
then FirstName
LastName
MiddleName
City
Place
State
Country
anyway i pasted my sxd dt_outbound type
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:praba_flatfile2xml07"
targetNamespace="urn:praba_flatfile2xml07">
<xsd:complexType name="dt_outbound">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
2bc3c190404611dc88a3000423c7753d
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="record">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
35982b703f7911dc871cd71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="row"
maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo
source="http://sap.com/xi/TextID">
359f57603f7911dcca2ed71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name="FirstName" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
359f57613f7911dc8d9cd71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element
name="LastName" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
359f57623f7911dca6e8d71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element
name="MiddleName" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
359f57633f7911dcc31ed71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element
name="City" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
359f57643f7911dc8c7ad71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element
name="Place" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
359f57653f7911dca7dbd71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element
name="State" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
359f57663f7911dcbd52d71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element
name="Country" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
359f57673f7911dca78ad71bc0a8016d
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema> -
Java Script Error in Processing PDF file with XML
I encounter the following error when I try to populate the pdf form with the values from an xml file.
Acrobat JavaScript Debugger Functions Version 9.0
Acrobat EScript Built-in Functions Version 9.0
Acrobat Annotations / Collaboration Built-in Functions Version 9.0
Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
Acrobat SOAP 9.0
trustedImportXFAData is not defined
1:External:ExecException in line 1 of function top_level, script External:Exec
trustedImportXFAData is not defined
1:External:ExecI bind the form's fields with schema and not xml instance.
Then I add a button in the form itself and called this method for mouse click event.
xfa.host.importData("c:\epcis_4_dec\EPCIS02.02.00%105040504%aa%01.00%01.00%05cc12af-fbfa-4 0d6-b644-e44fcaaad44e.xml");
I get the following error. What could it be? It is almost the same error as when I call the trustedFunction.
I have been struggling to solve this issue for weeks. The whole idea is to get the forms dynamically filled with the values from xml file.
Pleas help :(
Acrobat JavaScript Debugger Functions Version 9.0
Acrobat EScript Built-in Functions Version 9.0
Acrobat Annotations / Collaboration Built-in Functions Version 9.0
Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
Acrobat SOAP 9.0
unterminated string literal
21:Folder-Level:App:trustedImportXFAData.jsException in line 1 of function top_level, script XFA:EPCISDocument[0]:#subform[0]:Button1[0]:click
NotAllowedError: Security settings prevent access to this property or method.
Doc.importXFAData:-1:XFA:EPCISDocument[0]:#subform[0]:Button1[0]:click
Exception in line 1 of function top_level, script XFA:EPCISDocument[0]:#subform[0]:Button1[0]:click
NotAllowedError: Security settings prevent access to this property or method.
Doc.importXFAData:-1:XFA:EPCISDocument[0]:#subform[0]:Button1[0]:click -
How to use VBA in Excel to convert a pdf file to XML?
Hello,
I need to convert pdf to XML format so that it can be imported into Excel workbook and the information can be extracting out and mapped to existing excel cells. What is the easiest way to get it down without introduce any additional tools/software
other than Microsoft products? Client want to keep their process simple and it will be used for many agents in remote locations. They mentioned that they want to use VBA to do it. I could not find much useful information on this. Thanks a lot!
WeiNo Office programs can open a pdf and edit the contents so you will have to get a different app to convert teh pdf into xls format. There are plenty to be found on the web.
Rod Gill
The one and only Project VBA Book
Rod Gill Project Management -
Need to view concurrent request output(pdf file of XML report)from OAFpage
Hi,
I am submitting a concurrent request from OA page (on click of submit button).
As of now, to view output of the request user has to open SRS form.
Now the rquirement is to submit the request as well as to open the output file of the request in one action(i.e. on click of submitbutton) instead of going to SRS form to view output.
From the forum, I found out the way to go to request monitoring page and view all the current requests. But this is something different from what I am looking for.
Can somebody help m in this case?
Thanks & Regards
Nitinrefer this link
http://apps2fusion.com/at/ps/286-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page
--prasanna -
Error while creation pdf file from XML
Hi All,
I am getting below error in java.
Unexpected Error in method: public abstract com.elitecore.billing.utils.ResultObject com.elitecore.billing.ejb.bill.interfaces.IBillSearchSessionBeanLocal.getXsltContent(java.lang.String)
java.lang.NoSuchFieldError: conversion
at oracle.xdb.XMLType.<init>(XMLType.java:529)
at oracle.xdb.XMLType.createXML(XMLType.java:344)
at com.elitecore.billing.ejb.bill.session.BillSearchSessionBean.getXsltContent(BillSearchSessionBean.java:7064)
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:592)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:709)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:419)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy7357.getXsltContent(Unknown Source)
at com.elitecore.billing.ejb.bill.session.BillDistributionSessionFacade.getPdfFileForBills(BillDistributionSessionFacade.java:4373)
at com.elitecore.billing.ejb.bill.session.BillDistributionSessionFacade.SaveSingleBill(BillDistributionSessionFacade.java:3744)
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:592)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:709)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
18:12:21,253 : [ERROR] : [EJBLogger] : [ BILL_DISTRIBUTION ] exception in getPdfFileForBill with given XsltId :: javax.ejb.EJBException: Unexpected Error:
java.lang.NoSuchFieldError: conversion
at oracle.xdb.XMLType.<init>(XMLType.java:529)
at oracle.xdb.XMLType.createXML(XMLType.java:344)
at com.elitecore.billing.ejb.bill.session.BillSearchSessionBean.getXsltContent(BillSearchSessionBean.java:7064)
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:592)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:709)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:419)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy7357.getXsltContent(Unknown Source)
at com.elitecore.billing.ejb.bill.session.BillDistributionSessionFacade.getPdfFileForBills(BillDistributionSessionFacade.java:4373)
at com.elitecore.billing.ejb.bill.session.BillDistributionSessionFacade.SaveSingleBill(BillDistributionSessionFacade.java:3744)
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:592)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:709)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
18:12:21,254 : [ERROR] : [STDERR] : javax.ejb.EJBException: Unexpected Error:
java.lang.NoSuchFieldError: conversion
at oracle.xdb.XMLType.<init>(XMLType.java:529)
at oracle.xdb.XMLType.createXML(XMLType.java:344)
at com.elitecore.billing.ejb.bill.session.BillSearchSessionBean.getXsltContent(BillSearchSessionBean.java:7064)
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:592)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:709)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:419)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy7357.getXsltContent(Unknown Source)
at com.elitecore.billing.ejb.bill.session.BillDistributionSessionFacade.getPdfFileForBills(BillDistributionSessionFacade.java:4373)
at com.elitecore.billing.ejb.bill.session.BillDistributionSessionFacade.SaveSingleBill(BillDistributionSessionFacade.java:3744)
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:592)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:709)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
Any suggetion on this error?Hi Rajendran,
The second question is about the usage of iTextSharp library, which is not a MS product, please post in their forum for help:
http://support.itextpdf.com/forum
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi
I amtrying to create a spool request for the PDF file.
Ihave Xstring type data in my program, which is input for PDF file.
by using RSPO_OPEN, RSPO_WRITE,RSPO_CLOSE function modules.. it is creating a spool with RAW data type.
but I have to create SPOOL with PDF format.
Can soemone help to generate PDF file from XML or RAW data format to PDF?I have a requirement to create a PDF file from the attachments on any business object (such as PO, Sales Order etc). In short, I need to create a PDF file out of fnd_lobs.file_data
Any roadmap with example ?? Anybody ??Please see these docs.
How to Load Attachments Via API into Service Requests? [ID 394811.1]
Attaching A File To An Object via A Public API [ID 281130.1]
Upload Image over 32k into PER_IMAGES from FND_LOBS as Blobs. [ID 462967.1]
Thanks,
Hussein -
How to automate conversion of PDF forms to XML format
Hi
I have created a form using adobe livecycle designer 8. It has a email submit button that will send the form as a pdf file to a server.
Once the server recevive this pdf file, they will store the pdf file into a local drive. How do I convert the pdf files in the local drive into XML format without actually opening the pdf file in the Adobe Professional and clicking export data as XML?
Is there a way to write a code to convert these pdf files to XML format automatically?
Hope someone can help me with this issue
Regards
Delvin KhongHi Andersson,
The request command is a form server command? Where do i type the Request.Form("page.form.field"). I dont really understand your statement on "Use request on the receiving page to get data" Could you help me by explaining more?
Thank a lot for your advice
Warmest Regards
Delvin Khong -
Hi All,
What should be done to send a PDF file by File adpater?
Edited by: Alfredo Rivera on Aug 18, 2010 10:35 PMIf you want to send PDF file ,You want to convert the content of the PDF file to XML ,conversion required??? or just you want to move from one location to other location using File Adapter??
If you want to move with IR objects you can do that,but if you want conversion you may need to write Adapter modules and attach to File Adapter.
REFER BELOW HOW TO DOCUMENT
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9913a954-0d01-0010-8391-8a3076440b6e?quicklink=index&overridelayout=true
Regards,
Raj -
Creating PDF file format in OAF
I have one requirement to create .PDF file using some table content. Is it possible to create using OAF.
or
if i am creating the .PDF file using PL/SQL procedure and storing in some BLOB cloumn, is there any possible way to view this file using OAF.
Thanks in advance.OK..Generating PDF file with XML publisher is ok.
To view, i need to download it with Download control...and then view the PDf file.
But let say...i have to show employee salary slip in PDF file for every month (Whichever the month user select) in OAF. For this i need to have the PDF file stored in the BLOB column of the database or some where.
Maybe you are looking for
-
6480 issue: huge delay in printing.
The problem seems to be a lack of communication or hugely delayed communication between my pc and my printer. Once it starts to actually print, it prints at normal speed. If i print a document, it goes into the que, but won't print. Then all of a sud
-
Mapping SOAP response to RFC out parameters
Hello I have RFC to SOAP (sync) scenario. The SOAP reponse from webservice is an embedded XML string (Result XML wrapped within Response XML; The result string from web service is an XML itself) How to achieve Message Mapping so that the fields in th
-
Problem in Connecting IIOP in 8i
while deploying an EJB to Oracle8i through JDeveloper it shows the connection failed .. what to do more the SID , PORT and Host name is correct . Any modification to be done on the server side or the client machine !! Is there any way to check whethe
-
The SkillSoft Course Player has encountered an error while communicating wi
HI Friends , I am getting following error while launching a SCORM Course from Learner sel service : Error :: === The SkillSoft Course Player has encountered an error while communicating with the Learning Management System. As a result, your session w
-
Hi gurus, I would like to know if there is a knowledge module on ODI that allows us to delete from the target table the records that are no longer available in the source table. I am using an incremental update module is there a way to change customi