"E_ADEPT_REQUEST_REPLAY" Error in Packaging a PDF file
Hi Jim,
As per ContentServer_Technical_Reference.pdf (page no 9) I passed <filename>, <location> and <src> parameter in our packaging request xml. File is packaging successfully and service is also placing the encrypted file to new location listed in <location> but following error is comming:
<error xmlns="http://ns.adobe.com/adept" data="E_ADEPT_REQUEST_REPLAY http://myserverurl:8080/packaging/Package"/>
My Packaging XML:
$request ='<package xmlns="http://ns.adobe.com/adept" action="add">';
$request .='<fileName>ISBN.pdf</fileName>';
$request .='<location>ftp://username:[email protected]/www/pdf/[email protected]/www/pdf/ISBN.pdf</location>';
$request .='<src>http://example.com/pdf/ISBN.pdf</src>';
$request .='<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">';
$request .='<dc:title>BISAC SUBJECT HEADINGS</dc:title>';
$request .='<dc:creator>Book Industry Study Group, Inc.</dc:creator>';
$request .='<dc:format>';
$request .='application/pdf';
$request .='</dc:format>';
$request .='<dc:publisher>Book Industry Study Group, Inc.</dc:publisher>';
$request .='<dc:language>en</dc:language>';
$request .='</metadata>';
$request .='<permissions>';
$request .='<display>';
$request .='<device/>';
$request .='</display>';
$request .='</permissions>';
$request .='<dataPath>C:\books\ISBN.pdf</dataPath>';
$request .='<expiration>'. $expiration .'</expiration>';
$request .="<nonce>" . $nonce . "</nonce>";
$request .='</package>';
Please suggest me why the "E_ADEPT_REQUEST_REPLAY" error is comming.
I am waiting your reply...
With regards,
Mangal Varshney
Hi Jim,
I am generating nonce randomly:
$expiration = date("c", mktime() + 3600); // Create expiration
$nonce = base64_encode(mt_rand(limt1,lim2)); // Create a nonce
PACKAGING REQUEST
<?xml version="1.0"?>
<package xmlns="http://ns.adobe.com/adept" action="add">
<fileName>ISBN.pdf</fileName>
<location>ftp://username:[email protected]/www/encrypt_pdf/[email protected]/www/encrypt_pdf/ISBN.pdf</location>
<src>http://myserver.com/encrypt_pdf/ISBN.pdf</src>
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>BISAC SUBJECT HEADINGS</dc:title>
<dc:creator>Book Industry Study Group, Inc.</dc:creator>
<dc:format>application/pdf</dc:format>
<dc:publisher>Book Industry Study Group, Inc.</dc:publisher>
<dc:language>en</dc:language>
</metadata>
<permissions>
<display>
<device/>
</display>
</permissions>
<dataPath>c:/books/ISBN.pdf</dataPath>
<expiration>2010-11-01T20:00:23+05:30</expiration>
<nonce>--------------</nonce>
<hmac>--------------</hmac>
</package>
We are getting "E_ADEPT_REQUEST_REPLAY" error on packaging although the file is displaying in admin console and we are able to download the file also:
I am attaching packaging log message, as it shows that resource details has saved into the database;
Packaging log Message:
01 Nov 2010 08:47:31,412 TRACE AdeptServlet: request POST http://myserver.com:88/packaging/Package
01 Nov 2010 08:47:31,412 TRACE DefaultSQLDatabaseConnection: Open jdbc:mysql://mysqlserver.com:88/adept with user=dmr_mysql_dba
01 Nov 2010 08:47:31,412 TRACE DefaultSQLDatabaseConnection: SELECT distid, name, description, disturl, notifyurl, publickey, sharedsecret, maxloancount, linkexpiration FROM distributor WHERE distid = ?
01 Nov 2010 08:47:31,412 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
01 Nov 2010 08:47:31,412 TRACE DefaultSQLDatabaseConnection: rollback
01 Nov 2010 08:47:31,412 TRACE DefaultSQLDatabaseConnection: SELECT distid, nonce, expiration FROM distusednonce WHERE distid = ? AND nonce = ?
01 Nov 2010 08:47:31,412 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
01 Nov 2010 08:47:31,412 TRACE DefaultSQLDatabaseConnection: obj 2 = [B@e1b3b3
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: INSERT INTO distusednonce(distid, nonce, expiration) VALUES(?, ?, ?)
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: obj 2 = [B@e1b3b3
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: obj 3 = Mon Nov 01 09:47:31 CDT 2010
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: DELETE FROM distusednonce WHERE expiration < ? AND distid = ? AND nonce = ?
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: obj 1 = Mon Nov 01 08:47:31 CDT 2010
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: obj 2 = 00000000-0000-0000-0000-000000000001
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: obj 3 = [B@e1b3b3
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: SELECT resourceid, item, description, title, publisher, creator, language, identifier, thumbnailurl, format, src, downloadtype FROM resourceitem WHERE src = ? AND downloadtype = ?
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: obj 1 = http://myserver.com/encrypt_pdf/ISBN.pdf
01 Nov 2010 08:47:31,428 TRACE DefaultSQLDatabaseConnection: obj 2 = simple
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: INSERT INTO resourcekey(resourceid, voucherid, encryptionkey, permissions, defaultitem) VALUES(?, ?, ?, ?, ?)
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 1 = 4c14fb01-426e-4b4e-b71a-37b56d92e8b9
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 2 = 4c14fb01-426e-4b4e-b71a-37b56d92e8b9
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 3 = [B@a42c89
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 4 = [B@67e92a
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 5 = 1
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: INSERT INTO resourceitem(resourceid, item, description, title, publisher, creator, language, identifier, thumbnailurl, format, src, downloadtype) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 1 = 4c14fb01-426e-4b4e-b71a-37b56d92e8b9
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 2 = 1
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 3 = null
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 4 = BISAC SUBJECT HEADINGS
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 5 = Book Industry Study Group, Inc.
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 6 = Book Industry Study Group, Inc.
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 7 = en
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 8 = null
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 9 = null
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 10 = application/pdf
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 11 = http://myserver.com/encrypt_pdf/ISBN.pdf
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 12 = simple
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: INSERT INTO distributionrights(distid, resourceid, disttype, permissions, returnable, available) VALUES(?, ?, ?, ?, ?, ?)
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 2 = 4c14fb01-426e-4b4e-b71a-37b56d92e8b9
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 3 = buy
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 4 = null
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 5 = false
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 6 = 0
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: INSERT INTO distributionrights(distid, resourceid, disttype, permissions, returnable, available) VALUES(?, ?, ?, ?, ?, ?)
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 2 = 4c14fb01-426e-4b4e-b71a-37b56d92e8b9
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 3 = loan
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 4 = null
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 5 = true
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: obj 6 = 0
01 Nov 2010 08:47:33,818 TRACE DefaultSQLDatabaseConnection: commit
01 Nov 2010 08:47:33,850 TRACE DefaultSQLDatabaseConnection: rollback
01 Nov 2010 08:47:33,850 TRACE AdeptServlet: request success [myip]
01 Nov 2010 08:47:33,850 TRACE AdeptServlet: request end http://myserver.com:88/packaging/Package
01 Nov 2010 08:47:33,850 TRACE AdeptServlet: request POST http://myserver.com:88/packaging/Package
01 Nov 2010 08:47:33,850 TRACE DefaultSQLDatabaseConnection: SELECT distid, name, description, disturl, notifyurl, publickey, sharedsecret, maxloancount, linkexpiration FROM distributor WHERE distid = ?
01 Nov 2010 08:47:33,850 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
01 Nov 2010 08:47:33,850 TRACE DefaultSQLDatabaseConnection: rollback
01 Nov 2010 08:47:33,850 TRACE DefaultSQLDatabaseConnection: SELECT distid, nonce, expiration FROM distusednonce WHERE distid = ? AND nonce = ?
01 Nov 2010 08:47:33,850 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
01 Nov 2010 08:47:33,850 TRACE DefaultSQLDatabaseConnection: obj 2 = [B@571cc4
01 Nov 2010 08:47:33,850 TRACE DefaultSQLDatabaseConnection: rollback
01 Nov 2010 08:47:33,850 ERROR AdeptServlet: request error [myip]: E_ADEPT_REQUEST_REPLAY http://myserver.com:88/packaging/Package
01 Nov 2010 08:47:33,850 TRACE AdeptServlet: request end http://myserver.com:88/packaging/Package
Please help me to resolve this
Regards,
Mangal Kumar
Similar Messages
-
"E_PACK_ERROR: illegal filename for a PUT" Error in Packaging a PDF file
Hi Jim,
As per ContentServer_Technical_Reference.pdf (page no 9) I passed <filename>, <location> and <src> parameter in our packaging request xml. File is packaging successfully and service is also placing the encrypted file to new location listed in <location> but following error is comming:
<error xmlns="http://ns.adobe.com/adept"
data="E_PACK_ERROR http://myserverurl/packaging/Package illegal%20filename%20for%20a%20PUT"/>
My Packaging XML:
<package xmlns="http://ns.adobe.com/adept" action="add">
<fileName>9781591439745.pdf</fileName>
<location>ftp://username:password@myserverurl/www/folder/9781591439745.pdf</location>
<src>http://myserverurl/folder/9781591439745.pdf</src>
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>9781591439745</dc:title>
<dc:creator>Nicolya Christi</dc:creator>
<dc:format>application/pdf</dc:format>
<dc:publisher>Work Disribution System</dc:publisher>
<dc:language>en</dc:language></metadata>
<permissions><display/><excerpt/></permissions>
<dataPath>C:/folder/9781591439745.pdf</dataPath>
<expiration>2011-03-02T15:18:02+05:30</expiration>
<nonce>LTIyNzc1Mjk4</nonce>
</package>
Please suggest me why the "E_PACK_ERROR http://myserverurl/packaging/Package illegal%20filename%20for%20a%20PUT" error is comming.
I am waiting your reply...
With regards,
Mangal VarshneyHello Jim,
I tried as you suggest not to use all three, filename, location and src. I removed the <filename> parameter from packaging xml and then try to package the same error are comming again. Jim this same code was working earlier, we are using same on our production sever till now but suddenly it stop working.
"E_PACK_ERROR: illegal filename for a PUT"
I checked the packaging.log file, the log message are:
02 Mar 2011 05:41:56,673 TRACE AdeptServlet: request POST http://myserverurl/packaging/Package
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: Open jdbc:mysql://127.0.0.1:3306/adept with user=dmr_mysql_dba
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: SELECT distid, name, description, disturl, notifyurl, publickey, sharedsecret, maxloancount, linkexpiration FROM distributor WHERE distid = ?
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: rollback
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: SELECT distid, nonce, expiration FROM distusednonce WHERE distid = ? AND nonce = ?
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 2 = [B@6c2a78
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: INSERT INTO distusednonce(distid, nonce, expiration) VALUES(?, ?, ?)
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 2 = [B@6c2a78
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 3 = Wed Mar 02 06:41:56 CST 2011
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: DELETE FROM distusednonce WHERE expiration < ? AND distid = ? AND nonce = ?
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 1 = Wed Mar 02 05:41:56 CST 2011
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 2 = 00000000-0000-0000-0000-000000000001
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 3 = [B@6c2a78
02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection: SELECT resourceid, item, description, title, publisher, creator, language, identifier, thumbnailurl, format, src, downloadtype FROM resourceitem WHERE src = ? AND downloadtype = ?
02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection: obj 1 = http://myserver2url/folder/9781591439745.pdf
02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection: obj 2 = simple
02 Mar 2011 05:41:56,876 ERROR Package: Error in packaging
java.io.IOException: illegal filename for a PUT
at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
at com.adobe.adept.packaging.servlet.Package.aquireLocationStream(Package.java:359)
at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:535)
at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:43)
at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Unknown Source)
02 Mar 2011 05:41:56,876 TRACE DefaultSQLDatabaseConnection: rollback
02 Mar 2011 05:41:56,907 ERROR AdeptServlet: request error [myip]: E_PACK_ERROR http://myserverurl/packaging/Package illegal+filename+for+a+PUT
02 Mar 2011 05:41:56,907 TRACE AdeptServlet: request end http://myserverurl/packaging/Package
Please debug the above message and suggest me what i will do to rectify this issue.
With Ragards,
Mangal Kumar -
I have tried reinstalling software and didn't work.
How do I fix this eula error and open up PDF files again?I think I fixed it using help from another post...agreeing to license agreement in program files eula.exe
I think Eula is a licensing agreement term (not quite sure because I just heard of it when error happened). -
"The exception unknown software exception (0xc06d007e) occured in the application at location 0x7c812aeb" - error displayed when opening PDF files. What i do?
What is your Reader XI version?
Have you tried to disable Protected Mode [Edit | Preferences | Security (Enhanced)] ? -
Printing a package of PDF files double sided
I am printing a package of PDF files that changes based on how questions are answered, they print double-sided. I want certain pages to not print on the back of another. Is there any way to dynamically insert page breaks dependent on the forms included in the package? Thanks,
Hi,
You might experiment with a page or two first.
1.Choose File > Print.
2.From the Subset pop-up menu in the Print Range area, select Even Pages Only.
3.Click OK or Print.
4.If the total number of pages is odd, add a blank sheet so the final odd page has a sheet to print on.
5.Put the stack of printed paper back into the supply (source) paper tray so that the unprinted sides print. Point the top of the pages toward the printer. Make sure that the edges of the paper stack are square.
6.Choose File > Print and select Odd Pages Only from the Subset menu.
7.Select the Reverse Pages option. In this scenario, the Reverse pages option ensures that the page sequence is correct.
8.Click OK or Print.
Say Thanks by clicking the Kudos Star in the post that helped you. Please mark the post that solves your problem as Accepted Solution.
I am employed by HP -
Error when Packaging and PDF'ing File
I am curently involved in creating a comprehensive brand book (60 pages) for our company in InDesign CS4 and seem to have a problem when I PDF or go to package the InDesign file. The message I get is:
"Error encountered while reading JPEG image. Image may be damaged or incompatible. Resave the image with different settings and try again."
Funny thing is when I close InDesign and re-open the file, then go to PDF it works fine. But then after I have worked on it and go to re-PDF it starts Ok but gets to about page 18 and the error pops up. I get the same error when I go to package the file even in the package summary - could not figure out what was wrong. I tried deleting all images off that page then re-PDF and still does not work.
What's worse is that InDesign does not provide detailed information regarding the image or error, I had to look where the bar stopped while I was in the process of PDF to figure out what page the image is on.
Can anyone shed some light on this?
ThanksHere is an earlier thread discussing this problem:
http://www.adobeforums.com/webx?128@@.59b7927d
There's some unrelated stuff in the middle, but relevant information at both ends.
Peter -
Error while opening a pdf file sent as an attachment in mail
Dear All,
We have converted a alv grid into pdf and sent a mail with the attached pdf file. When the attachment is opened in the received mail we get an error " File does not begin with %pdf-". I am pasting the code.
Select single
from
TSP01
where
RQIDENT = wa_listident.
if sy-subrc <> 0.
exit.
endif.
client = tsp01-rqclient.
name = tsp01-rqo1name.
*BREAK-POINT.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
AUTHORITY = 'SP01'
CLIENT = client
NAME = name
PART = 1
IMPORTING
CHARCO =
CREATER =
CREDATE =
DELDATE =
MAX_CREDATE =
MAX_DELDATE =
NON_UNIQ =
NOOF_PARTS =
RECTYP =
SIZE =
STOTYP =
TYPE = type
OBJTYPE = objtype
EXCEPTIONS
FB_ERROR = 1
FB_RSTS_OTHER = 2
NO_OBJECT = 3
NO_PERMISSION = 4.
if objtype(3) = 'OTF'.
is_otf = 'X'.
else.
is_otf = space.
endif.
*BREAK-POINT.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = wa_listident
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
if is_otf = 'X'.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = wa_listident
NO_DIALOG = c_no
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = gd_bytecount
PDF_SPOOLID = pdfspoolid
OTF_PAGECOUNT =
BTC_JOBNAME = jobname
BTC_JOBCOUNT = jobcount
TABLES
PDF = it_pdf_output
EXCEPTIONS
ERR_NO_OTF_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DSTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11
CHECK sy-subrc = 0.
ENDIF.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Please guide me to resolve this issue.
Thanks & Regards,
AnandHi,
is the next part of the code correct.
What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
You can also try below link..
Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
Hope this helps.
Regards,
-Sandeep -
Error while opening a pdf file.
Hi All,
I have Adobe Reader 10.1.3 installed on my system.
I am getting the following error : "Adobe Reader could not open 'abc.pdf' because it is either not a supported file type or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded)". This error is coming at random, i.e. if I open a file at one time, it will open without any problem, but at another time the same file gives this problem. Could anyone please tell me as to why this is happening and how to resolve this?This message occurs if a PDF file is damaged, either during downloading from a website, or during transport as an email attachment.
Are you getting this error for a file that is stored on your local HD? For this to occur at random, as you write, I can only imagine that the disk sector where it is stored is damaged.
Can you run a disk diagnostics, e.g. CHKDSK on Windows? -
Could someone help me with a Runtime Error while saving a PDF file?
While saving a 28 page PDF file in Illustrator today, I got a window saying, "This application has requested the "Runtime" to terminate it in a unusual way." It said to contact the applications support team for more information. I keep getting the same thing each time I try it. Does anyone know how to fix this issue or how I contact the applications support team ?
Thank you for any insight.
PamIt is a 13.5x11 inch calendar. There are 14 pages with images on them and
some text. The other pages have text, a grid and a colored background with a
gaussian blur. I saved each page as an "outline".
The printer I am using requested I save all pages in a pdf file. I was
successful in saving all but about six pages, now I can't even open the
file.
What happens is... I open Illustrator
I open the pdf file
A window appears that says... Runtime Error,
This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.
I select ok
then a window appears that says... Adobe
Illustrator CS5 has stopped working. A problem caused the program to stop
working correctly. Windows will close the program and notify you if a
solution is available.
Then the program closes.
So far I have not been notified of anything.
Please let me know if you need more details.
Thank you so much for helping me with this.
Pam -
Error while saving a .PDF File to a mapped drive
The issue I am having is similar to the one found on this older post. http://forums.adobe.com/message/3066663#3066663
The issue is as follows. I have a small company about 15 users divided into a couple of departments with different networking access needs. They each have Adobe Acrobat version XI installed on a Windows 7 Platform. Each user has a set of mapped drives that correspond to their department. The Disk mappings are all directed to the main shared Network Attached Storage (NAS) device. At any time there can be a number of PDF files open and being worked in. The same PDF is usually not opened at the same time from two different locations.
The issue is that two users who do a large amount of the work, IE. Scanning documents and adding them to documents that have been previously created, are reporting the same issue. The issue is when they have the PDF document opened and they are adding new content. Once the new content is added they go to save the document and then receive the following error:
“The document could not be saved. Cannot save to this filename. Please save the document with a different name or in a different folder.”
In order to save the file the user has to use the save as function and then browse to the original file location to save the document with the changes that have been made.
Along with the above error we have noticed that Adobe Acrobat is renaming the file that has been changed to aae##### or aak##### or aan#####. The file name is changed causing the normal save function to not work correctly.
Is there a reason Acrobat would be doing this?
I am not using Microsoft SharePoint.My users started to experience this issue for files on network shares as well once Adobe Reader was updated to 11.0.10
It has to do with Protected Mode being turned on. I don't know if it was off by default & now it is on with the update but turning it off changes Adobe Reader's behavior back to what the users expect - a prompt warning you if you want to overwrite the existing file & then selecting Yes to overwrite.
To disable Protected Mode:
Start Adobe Reader
Edit - Preferences - Security (Enhanced)
Uncheck Enable Protected Mode at Startup
Close Preferences & Close Reader
Now open a file from a network share & you Adobe saves as it used to. -
ERROR : OpenDoc CR to PDF - File is too large for attachment.
We are getting the following error in 3.1 using an OpenDoc call when we call a large Crystal Report to PDF format...
Error : 52cf6f8f4bbb6d3.pdf File is too large for attachment.
It runs OK from BOE when given parameters that returned 44 pages. (PDF = 139 KB)
We get the error on a parameter-set that returns 174 pages when run via CR Desktop or as a SCHEDULED Instance. (PDF = 446 KB).
Client application can't use the SDKs to SCHEDULE Instances - only configured for OpenDoc calls.....
The BOE server is running on SOLARIS - and it's is a 2 Server CMS-Cluster.
The problem is SPORADIC, so I am thinking the issue is related to a specific setting on one of the servers.
Any thoughts on where to start looking...?Problem is _not _with the number of Rows returned - it is an issue with the size of the PDF file that it is trying to move.
Found a possible WINDOWS solution on BOB - need to find if there is an equivalent for SOLARIS...
Check the dsws.properties on web server D:\Program Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes
See if you can change any parameter to remove size limitation.
#Security measure to limit total upload file size
maximumUploadFileSize = 10485760 -
Error in opening the PDF file created from the smart form output.
Hi All,
i have a simple smart form which takes 3 values like customer no, name and no of times customer called and gives an out like
Customer 0001000000 with name Ravi called 5 times today.
I have to send this output to mail as an attachment.
for this i am coding as below.
******Call the SSF Function module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = Form name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = lv_fmname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
lv_partner_number = '0001000000'.
lv_name_org1 = 'Ravi'.
lv_z_no_calls_day = '5'.
lw_ctrlop-getotf = 'X'.
lw_ctrlop-no_dialog = 'X'.
lw_compop-tdnoprev = 'X'.
lw_compop-tddest = 'LP01'.
*******Call the Form Function module and get the OTF of form output
CALL FUNCTION lv_fmname
EXPORTING
name_org1 = lv_name_org1
partner_number = lv_partner_number
z_no_calls_day = lv_z_no_calls_day
control_parameters = lw_ctrlop
output_options = lw_compop
user_settings = ' '
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
i_otf] = w_return-otfdata[.
*********Now here if i look in to the OTF data i got in debug it has the data i aniticipated along with some other data.
the output is in the format
TDPRINTCOM(2) TDPRINTPAR(70)
ST XXXX.. customer 0001000000 with
name.....
i have my data in the above format spread in three lines of the output otf table where XXXX... is some number.
***********To convert to PDF Format
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = lv_len_in
BIN_FILE =
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5
*********For testing purpose i created a file on the desktop with the the data in i_tline. it created PDF file but when i tried to open it it's giving an error.
i_objtxt = 'test with pdf-Attachment!'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
READ TABLE i_objtxt INDEX v_lines_txt.
wa_doc_chng-obj_name = 'Smart Form'.
wa_doc_chng-obj_descr = 'Frequent Caller Alert_Day'.
wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + STRLEN( i_objtxt ).
*********Creating the Entry for the document
CLEAR i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
i_objbin] = i_tline[.
DESCRIBE TABLE i_objbin LINES v_lines_bin.
READ TABLE i_objbin INDEX v_lines_bin.
i_objhead = 'Frequentcaller list_Day.pdf'.
APPEND i_objhead.
************Creating the entry for the attachment.
CLEAR : i_objpack.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'ATTACHMENT'.
i_objpack-obj_descr = 'FCA'.
i_objpack-doc_size = v_lines_bin * 255 .
APPEND i_objpack.
CLEAR i_reclist.
i_reclist-receiver = 'mail id'.
i_reclist-rec_type = 'U'.
APPEND i_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = i_objpack
object_header = i_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
This is all i am doing.
It is sending a mail with the attachment but we are not able to open the attachment. it's giving an error like file is damaged and couldn't be repaired.
I serched in the forum but i couldn't get the answer.
I suspect there is a problem in getting the OTF data..
Please help me in resolving this issue....
Thanks in advance.
RKCheck the sample , and see where you made the mistake.
REPORT ZPDF_MAIl.
DATA:
w_fm_name TYPE rs38l_fnam,
w_bin_filesize TYPE i,
w_filesize TYPE i,
w_lines_txt TYPE i,
w_lines_bin TYPE i.
DATA:
wa_ctrlop TYPE ssfctrlop,
wa_outopt TYPE ssfcompop,
wa_objhead TYPE soli_tab,
wa_buffer TYPE string,
wa_doc_chng TYPE sodocchgi1.
DATA:
BEGIN OF t_mail_ids OCCURS 0,
mailid TYPE ad_smtpadr,
END OF t_mail_ids,
t_otfdata TYPE ssfcrescl,
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
t_pdf_tab TYPE tline OCCURS 0 WITH HEADER LINE,
t_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z195_TEST'
IMPORTING
fm_name = w_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_outopt-tdnoprev = 'X'.
CALL FUNCTION w_fm_name
EXPORTING
control_parameters = wa_ctrlop
output_options = wa_outopt
user_settings = 'X'
IMPORTING
job_output_info = t_otfdata
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = w_bin_filesize
TABLES
otf = t_otf
lines = t_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
LOOP AT t_pdf_tab.
TRANSLATE t_pdf_tab USING '~'.
CONCATENATE wa_buffer t_pdf_tab INTO wa_buffer.
ENDLOOP.
TRANSLATE wa_buffer USING '~'.
DO.
t_record = wa_buffer.
APPEND t_record.
SHIFT wa_buffer LEFT BY 255 PLACES.
IF wa_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
t_objtxt = ' To Change the COR, Use the Transaction ZCOR_CHANGE'.
APPEND t_objtxt.
t_objtxt = ' Check the Attached PDF file for COR'.
APPEND t_objtxt.
DESCRIBE TABLE t_objtxt LINES w_lines_txt.
READ TABLE t_objtxt INDEX w_lines_txt.
READ TABLE t_objtxt INDEX w_lines_txt.
wa_doc_chng-obj_name = 'COR Display'.
wa_doc_chng-expiry_dat = sy-datum + 10.
CONCATENATE 'COR' "w_cornr
'-' "w_stat_descr w_action_desc
INTO wa_doc_chng-obj_descr SEPARATED BY space.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = w_lines_txt * 255.
CLEAR t_objpack-transf_bin.
t_objpack-head_start = 1.
t_objpack-head_num = 0.
t_objpack-body_start = 1.
t_objpack-body_num = w_lines_txt.
t_objpack-doc_type = 'RAW'.
APPEND t_objpack.
t_objpack-transf_bin = 'X'.
t_objpack-head_start = 1.
t_objpack-head_start = 1.
t_objpack-head_num = 0.
t_objpack-body_start = 1.
DESCRIBE TABLE t_objbin LINES w_lines_bin.
READ TABLE t_objbin INDEX w_lines_bin.
t_objpack-doc_size = w_lines_bin * 255 .
t_objpack-body_num = w_lines_bin.
t_objpack-doc_type = 'PDF'.
t_objpack-obj_name = 'COR'.
t_objpack-obj_descr = 'COR Test'.
* concatenate 'COR' w_cornr into t_objpack-obj_descr
* separated by space.
APPEND t_objpack.
*LOOP AT t_mail_ids.
CLEAR t_reclist.
t_reclist-receiver = 'INTENATEMAIL'.
t_reclist-rec_type = 'U'.
APPEND t_reclist.
*ENDLOOP.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = t_objpack
object_header = wa_objhead
contents_bin = t_objbin
contents_txt = t_objtxt
receivers = t_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
ENDIF. -
Error when opening a pdf file in chinese
Hello,
I have created a specific PO form by copying the standard one BBP_PO in SRM.
After generating a pdf file with my specific form, I get the error "There was a problem reading this document (15)" when I try to open it.
I can see some characters, and then everything disappears. I have both english and chinese characters.
The chinese language is installed.
If I use the standard form, I don't get the error !
In the form, I use some standard text, which are created in english and chinese.
Thanks for your help.
MarcJust so you know, my default PDF can opener remains set to Preview, though I will use Acrobat Reader when and if it serves my need.
The upside of the Show scroll bars set to always is intuitive with applications. The downside is that any web content that has the CSS overflow:scroll configured will permanently have scrollbars attached to that content. At least, that is the behavior with Safari on Mavericks. Since I do web work too, I have left my scrollbar setting to when scrolling.
I believe the OP issues about resizing PDFs has to do with the default nature of Preview to open PDFs in continuous, rather than single page mode. In the former state, one must always fuss with resizing the Preview window, and in the latter, Preview does what it should do — a single, tightly cropped PDF page. Setting the Single Page preference setting in one document does not make this behavior permanent for subsequent documents.
I made two changes to Preview that open any PDF in Single Page mode, and tightly cropped to that page:
Preview PreferencesPDF: Define 100% scale as: Size on screen equals size on printout
Defaults write
Change to ~/Library/Containers/com.apple.Preview/Data/Library/Preferences
defaults write com.apple.Preview kPVPDFDefaultPageViewModeOption 1
Continuous view mode is (0) zero
PDF documents will now default to Single Page mode -
Error when displaying a pdf file in an iFrame
Hi,
I would like to display a pdf file in my Java Web Dynpro application. I am using an iFrame element.
The code I used is:
// test if the file exists
if( path != null)
path = "D:\\Echanges\\Facture\\" + path + ".pdf";
if (isFile(path)) // test if the file exist
wdContext.currentContextElement().setPath(path); // we set the path of the file for the iFrame url
else
wdContext.currentContextElement().setPath("D:\\Echanges\\errorDocAccess.htm"); // here we set the path of an error file to display in the iFrame
In the context, path is declared as a String variable and mapped to an iFrame. What happen when I lauch the program is the followig error:
com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=D:/Echanges/errorDocAccess.htm
I have checked the path of the error file and it is valid. How do I get to display my file ? The path is on the same server as the portal.
Thanks a lot for your help.
Thibault SchalckNot solved
-
Hi all,
we want to attach a pdf file to a tasklist,during upload all the pages are not going to upload only few pages are uploading.what might be the problem?Dear anilkumar86
Do you get any error/dump ?
Can you share with us a little bit of your code ?
Do you see anything strange when debugging ?
Is this a standard or custom application ?
Is the PDF a normal one or encrypted ?
Please provide more info so that we can better help you.
Kind Regards
/Ricardo Quintas
Maybe you are looking for
-
IOS 6 calendar display jumps to different dates????
iOS 6 calendar display jumps around. On my iPod touch 5, iOS 6, after editing an event, the display jumps to random list dates before ending up on the correct date. These gyrations take several seconds and will dwell on the wrong date for a while.
-
Hi, My company recently purchased two dozens of Nokia 100 to lend to our foreign visitors so they can make local calls free of charges (it costs us nearly nothing and our clients love it). Obviously we have to "clean" the phones between each users, a
-
Condition for Gold (or diesel)
I have maintained the alternate unit of measure in the material master as 1Litre = 1GAU. I created a PO with the condition GAU2. But its showing inactive status as 'Inactive via formulae of incorrect' When looking at the details of the condition (val
-
I have nokia N97 model but I cannot access and use the My Music section on Nokia Music. It says connect your mobile or MTP compatible device to your PC using a compatible USB cable, but it was already connected and I already selected the Media trasnf
-
Simple dual screen issue.
Hi, for some reason ever since I rebooted my macpro the dual screen layout has switched. On my right screen is the dock and upper info bar but I want that on the left screen. It has always been on the left screen till the reboot. I cant seem to find