ABAP WebDynpro - ArchiveLink - PDF Error: "File does not start with..."
Hey community,
I have a WebDynpro application in which I want to show a Archive document.
I'm using FM 'ARCHIV_GET_TABLE' and then FM 'SCMS_BINARY_TO_XSTRING'.
But I only get the error message: (see also attached)
File does not open with "%PDF-".
Local\EWH...
Attachment two shows, how the data is stored in TOA03.
Document type is FAX .
I tried several FM and nothing worked.
Does anyone have an idea?
Thank you very much in advance.
Florian
Hi Florian,
I don't think you need to use FM SCMS_BINARY_TO_XSTRING.
Just try to make of your binary output table from ARCHIV_GET_TABLE an xstring by concatenating all lines into one xstring.
Regards,
Julien
Similar Messages
-
PO PDF Error - File does not Begin with '%PDF-'
Hi,
I am working on Implementing PO PDF with XML data and RTF Template. I have created a new template in XML Publisher and followed the following set up steps
Setup / Organizations / Purchasing Options / Control TAB / set 'PO Output Format' = 'PDF'
setup / purchasing / document types / select "Standard Purchase Order" / Set the Document Type Layout to your new template.
When I view the document from PO Summary > inquire > View Document, I get an adobe reader error
'File does not begin with '%PDF-', how ever when I preview it from the template definition, it opens fine.
I tried running PO Output for communication with my custom template but I don't see the parameter 'Purchase Order Layout'. The last parameter in the list is 'Include Blanket'.
Am I missing any set up steps? However when I use the standard Purchase Order Layout in Document Types set up, the Inquire > View Document created a PDF output.
Any help is greatly appreciated.
Thanks,
SharmilaI encountered same error in BPA Invoice Print. I remove a MLS function from the program definition and this error disappeared. Have not fully investigated but maybe this will help. Thanks.
-
Error: File does not begin with '
After changing two javascript "else if" statements to "if" in an Adobe LiveCycle v8 form, I received errors upon saving. Now the file seems to be corrupt because when I attempt to open it I get an error stating "File does not begin with '". Does anyone know what could be causing this AND MORE IMPORTANTLY if there is a way to salvage my form? Please help!
Hi VetSrini,
Thanks for the update. I was able to figure out what was wrong.
Now there is another problem. When i try "View Output", the excel file is shown and the following options are also shown:
1. As an XML List
2. As a read-only workbook
3. Use the XML Source Task Pane
When I try the first option, I get the following error:
An Invalid Character was found in text content
When I try the third option, I get the following error:
Cannot load the specified XML or schema source.
when i press the details button, it gives me the following detailed error:
An Invalid Character was found in text content
When I try the second option, i get the same error, but with some xml tags
Can anyone please help me and tell me why i am getting these errors.
Thanks in Advance,
Arun -
Error: response does not start with HTTP
hi,
i am using a MIDP class to send a string to a java servlet which then returns a .gif image. the string is being successfully to the servlet, but an exception is being thrown when the image is being sent back.
java.io.IOException: response does not start with HTTP it starts with: GIF89aï4
at com.sun.midp.io.j2me.http.Protocol.readResponseMessage(Protocol.java:2166)
at com.sun.midp.io.j2me.http.Protocol.finishRequestGetResponseHeader(Protocol.java:1934)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(Protocol.java:1598)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(Protocol.java:1517)
at com.sun.midp.io.j2me.http.Protocol.openInputStream(Protocol.java:484)
my code is as follows in the midp class :
HttpConnection c = null;
InputStream is = null;
StringBuffer sb = new StringBuffer();
String url="http://localhost:8090/ProjectServer/createMap";
url=url+"?Source="+src+"&Destination="+dest;
try {
c = (HttpConnection)Connector.open(url,Connector.READ_WRITE, true);
c.setRequestMethod(HttpConnection.GET); //default
//is = c.openDataInputStream();
is = new DataInputStream(c.openInputStream()); //openInputStream(); // transition to connected!
Image im=null;
try
ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
int ch;
while ((ch = is.read()) != -1)
bStrm.write(ch);
// Place into image array
byte imageData[] = bStrm.toByteArray();
// Create the image from the byte array
im = Image.createImage(imageData, 0, imageData.length);
finally
// Clean up
if (is != null)
is.close();
the code in the servlet is as follows :_
ServletContext sc = getServletContext();
// Get the MIME type of the image
String mimeType = sc.getMimeType("route.gif");
if (mimeType == null) {
sc.log("Could not get MIME type ");
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
return;
// Set content type
response.setContentType(mimeType);
// Set content size
response.setContentLength((int)file.length());
// Open the file and output streams
FileInputStream in = new FileInputStream(file);
OutputStream outstream = response.getOutputStream();
// Copy the contents of the file to the output stream
byte[] buf = new byte[1024];
int count = 0;
while ((count = in.read(buf)) >= 0) {
outstream.write(buf, 0, count);
in.close();
outstream.close();
il be immensely grateful if some1 cud tell me whre i am gng wrong.
thnx,
nevHi, I�m trying to do the same as above, get MP3 from a Shoutcast server.
I got the same fault ("response does not start with HTTP it starts with: ICY") when I tried to open an HttpConnection as bellow:
============================================
HttpConnection conn = (HttpConnection) Connector.open("http://64.236.34.196/stream/1074");
Then I tried to open a socket connection as bellow:
======================================
SocketConnection conn = (SocketConnection) Connector.open("socket://64.236.34.196:80");
String get = "GET /stream/1074 HTTP/1.1";
DataOutputStream os = conn.openDataOutputStream();
os.writeUTF(get);
InputStream is = conn.openInputStream();
But then I got the following error:
=========================
java.lang.SecurityException: Target port denied to untrusted applications
Could someone help me to find out what is going on?
Thanks a lot! -
File does not begin with '%Pdf-' in Persona to take a Print
Dear all,
What would be the reason for the error " File does not begin with '%Pdf-' when its trying to open in adobe reader in Persona.
Does persona support any KMC content management ? please resolve this error.
Find the attached screenshot.
And we are using persona version as :
Component
Release
SP-Level
Support Package
PERSOS
100
2
SAPK-10002INPERSOS
Cheers, Vasanth Shi vasanth,
This issue might not be related to personas.
Is this happening with all the PDFs?
Also, i would recommend you to upgrade your personas SP to latest.
New features in Personas 2.0 SP04; also Personas 1.0 SP04
Sushant -
I just noticed today that any Graph or PDF report I try to view I get the
following error - Error from reports from ZAM - File does not begin with
'%PDF-'. I tried to just save the file and then open it, but get the same
error. I can open other pdf files I have downloaded from other sites ok.
Anyone have any idea? I haven't done anything to that server that I am
aware of in quite a while.
Thanks
BillI took a closer look at the files it downloaded, opened them with notepad,
haer is what it says:
XSL Transform or subsequent processing failedThe document has no pages.
"Bill" <[email protected]> wrote in message
news:2bBtk.2164$[email protected]..
>I just noticed today that any Graph or PDF report I try to view I get the
>following error - Error from reports from ZAM - File does not begin with
>'%PDF-'. I tried to just save the file and then open it, but get the same
>error. I can open other pdf files I have downloaded from other sites ok.
>Anyone have any idea? I haven't done anything to that server that I am
>aware of in quite a while.
>
> Thanks
>
> Bill
> -
Error with a PDF document in a BSP App: "File does not begin with '%PDF-'"
Hi All,
I have the following piece of in the layout of a BSP Application in our system.
<%
DATA: LV_PDFSIZE TYPE I,
LW_PDF TYPE TLINE,
LV_XDATA TYPE XSTRING.
data: LT_PDF type ZGTIS_TAB_TLINE,
lv_id type zgtis_http_id,
filename type STRING.
lv_id = session_id.
import lt_pdf to lt_pdf from
database zgtis_http_indx(in) id lv_id.
RUNTIME->SERVER->RESPONSE->SET_HEADER_FIELD(
NAME = 'Content-Type'
VALUE = 'application/pdf').
if w_printall ne 'X'.
CONCATENATE 'display; filename="invoice_' BIL_NUMBER '.pdf"' INTO filename.
else.
CONCATENATE 'display; filename="invoice_' 'ALL' '.pdf"' INTO filename.
endif.
RUNTIME->SERVER->RESPONSE->SET_HEADER_FIELD(
NAME = 'Content-Disposition'
VALUE = filename ).
RUNTIME->SERVER->RESPONSE->SET_HEADER_FIELD(
NAME = 'pragma'
VALUE = 'no-store').
RUNTIME->SERVER->RESPONSE->SET_HEADER_FIELD(
NAME = 'cache-control'
VALUE = 'no-store').
* Convert to XSTRING
FIELD-SYMBOLS <P> TYPE ANY.
LOOP AT LT_PDF INTO LW_PDF.
ASSIGN LW_PDF TO <P> CASTING TYPE X.
CONCATENATE LV_XDATA <P> INTO LV_XDATA
IN BYTE MODE.
ENDLOOP.
* Set the response data
RUNTIME->SERVER->RESPONSE->SET_DATA(
DATA = LV_XDATA ).
%>
This piece of code works fine when 'If w_printall ne 'X'.' condition is succesfull and I can see the PDF but when w_printall = 'X' I get the above error on a popup box, the error is "File does not begin with '%PDF-'" and I cant see the PDF.
Does anyone have any suggestions!
Kindly help.
Regards,
KarthikCheck this thread
it is a Big Discussion on that.
In first page and second page you can see solutions.
/thread/747643 [original link is broken]
one with patch and other with setting in Adobe.
Regards
Vijay babu Dudla -
" File does not being with %pdf"
Sir
I have download a file from website. I use windows7 os. But there is a problem that a massege display " File does not being with %pdf". this problem is same in other browsers like- mozela firefox, google chrome etc. I use adobe reader 11. Please tell me its solution in detail.Originally posted by: bryant.harris.irisfinancial.com
Upgrade to 2.1.0. The font stuff is fixed in 2.1.0
Bryant
"Brian Kallay" <[email protected]> wrote in message
news:ege41t$9qp$[email protected]..
> Hi,
>
> I am running BIRT 2.0.0 and pdf generation which works properly on windows
> is not working correctly on linux (Red Hat Enterprise Linux ES release
> 3). I am able to generate pdf's from charts but textual reports display
> varying results from completely blank to "File does not begin with
> '%PDF-'" errors depending on the report being used.
>
> I did find the following on a BIRT 2.0.1 project plan page, however I was
> not able to find anything corresponding in bugzilla:
>
> "BIRT Runtime can not find font for PDF generation on Linux. PDF document
> is missing text content although it displays images and outlines of
> tables."
>
> This seems to describe the behavior I am seeing in many cases, however
> with very simple reports the pdf contains the header row with the first
> column header displayed so fonts are not failing completely.
>
> I am going to try upgrading to the newest BIRT version but I am hoping
> that someone can confirm this is in fact a bug and not a configuration
> issue that has a workaround for 2.0.0.
>
> Thanks,
> Brian -
"Layer 1 does not start with a new cell" replicator error
Hi All,
I recently sent a dual layer +R DVD off to our replication house and their system is returning a message that says: "Layer 1 of DVD-Video does not start with a new cell".
I know from reading that the dual-layer breakpoint must be set to the end of a cell, but what does the word "cell" translate into for DVDSP4?
I had the DVD DL+R set to Automatic and Non-Seamless for output for the break point. Should I just try setting the break point manually at the beginning or ending of a track that would be dubbed as just a little more than half the size of the content? (I know in OTP, the Layer 0 has to be bigger than Layer 1)
Please Help!
Cheers,
DustyThanks both of you for your replies.
Eric, I am currently exporting DDPs to send in to the replicator. I also emailed them asking if they accept this format for delivery. (Which I would hope they would, as it is, an answer to DLT of sorts) Thanks for bringing this up, DDP is new to me, as this is our first DL project for replication.
Drew, to answer your reply, yes I have two viable markers (chapter markers) that show up in black, not grayed out, in the tab you mentioned under formatting. I chose manual break point selection for this last disc I burned and chose chapter 4 of that track. (chapter 4 and chapter 5 of track 6 are only options) I have to assume that the "automatic" setting was selecting chapter 5, as it had to see that as the last viable marker available to select, as described in the DVDSP4 manual.
DVDSP4 says that all markers are considered cells- Or actually that tracks are cells and that the markers within them make up more cells. So my question, outside of DDP option, would be, "what truly constitutes a cell boundary in DVDSP4?" Is it the markers within the tracks or the beginning or ends of the tracks themselves?
As a side note, I burned the disc that received the error, "Layer 1 doesn't start with a new cell" from an IMG i created from DVDSP4 through Disk Utility. Word is that IMG's somehow don't include breakpoint information.
So at this point I don't know if it is the IMG or the fact that DVDSP4 wants the break at one of two possible chapter markers in track 6.
(Some more background- this is a TV show season DVD, with thirteen tracks of video, each with 12-14 chapter markers a piece.)
Any more thoughts to help clear the air on what constitutes a true new cell boundary?
Thanks sooo much Eric and Drew, I know this a long read.
Cheers,
Dusty -
How to sent importet RAW files into the cloud? The files was importet from Canon EOS via camera adapter to the iPad. The Files was stored in the folder importet. But the files does not sync with photostream.
Welcome to the Apple community.
Only photos taken on the iOS device and after photo stream was enabled will be added to photo stream. -
Path login does not start with a "/" character
I get a "java.lang.RuntimeException: Path login does not start with a "/" character" in my WebApplication.
- Http Status 500
- The server encountered an internal error () that prevented it from fulfilling this request.
Instead I excepted the site for a Re-Login (timout after 10 min), What's wrong?
The server I use is: Sun Java System Application Server Platform Edition 8.0 (build b57-fcs)
Here is the full StackTrace:
[#|2004-05-26T14:50:50.609+0200|SCHWERWIEGEND|sun-appserver-pe8.0|javax.enterprise.system.container.web|_ThreadID=17;|Standard
WrapperValve[OwaFolderTree]: Servlet.service() for servlet OwaFolderTree threw exception
java.lang.RuntimeException: Path login does not start with a "/" character
at org.apache.catalina.core.ApplicationContextFacade.doPrivileged(ApplicationContextFacade.java:451)
at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:255)
at com.space2go.icafe.S2GHttpServlet.service(S2GHttpServlet.java:3260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:272)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
at java.lang.Thread.run(Thread.java:534)It looks like you are getting this error when trying to use the RequestDispatcher. There are two different flavors of the RequestDispatcher :ServletRequest.getRequestDispatcher that will take a relative path and ServletContext.getRequestDispatcher that will only take absolute paths (ie start with a '/').
If yoy are trying the use the second version of RequestDispatcher you'll need to adjust the path to an absolute path.
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html -
File does not begin with '%pdf' error with adobe reader 10.1.5 onwards
In our web application we are using activePDF toolkit (3rd party component) to fill up carrier forms on the fly which are PDF files.
The output file processed by the above library works fine when opened with adobe reader 8, 9 and10 on end user’s browser (IE); however, it gives below error when opening with adobe reader 11.
Till now, we have tried different settings at IIS level, Internet explorer e.t.c. suggested on different internet posts. However, we are still facing the problem.
While analyzing this we have come across following link
http://helpx.adobe.com/acrobat/kb/pdf-error-1015-11001-update.html
According to this adobe 10.1.5 onward file should only start with "%pdf". If file start with other than this we get file corrupted message.
Before we can communicate this message to client we want to confirm this for experts. Please let me know my assumption is right?Rahti - i'm having the same issue but I not familiar with the steps outlined in the Adobe link below
http://helpx.adobe.com/acrobat/kb/pdf-error-1015-11001-update.html
Would you be able to help with how I can navigate to this on my PC to correct it for me.
Thanks. -
Error: File does not exist (while trying to get Petstore and demos to run)
Hi all,
I have been trying in vain to get the Petstore demo and other servlet demo HelloWorld to run. It seems to install okay cause it creates the directories and extracts the .ear or .war files. My problem is connecting to the application. When I run http://my.host:7778/estore or http://my.host/7778/HelloWorld/HelloWorld I get and error in the Apache error_log that says: File does not exist: c:/oracle/components/apache/apache/htdocs/helloworld/helloworld and File does not exist: c:/oracle/components/apache/apache/htdocs/estore
I have looked and searched everywhere for help but to no avail. Under the WebModule the URL Binding is /HelloWorld and /estore.
Please help me!!! I am going crazy with this.
Thanks,
Grant
PS. I am running 9iAS 9.0.2.0.1 and everything is on 1 Windows 2000 (sp1) machine. Infrastructure and Components in separate dirs with port 7777 and 7778 for each.I'm having the same problem under a solaris system did anyone ever find the solution to this problem. For some reason the server just wants to use the document root instead of the deployed application directory.
-
Error file does not exist /oa_servlets/appslogin
Thanks in advance
We tried to open application in 11.5.2.0 but it shows the following error message in error log file.
File does not exist : /oa_servlets/appslogin
In home url,
Not Found
The requested URL /oa_servlets/AppsLogin was not found on this server.
In OAM,
Not Found
The requested URL /servlets/weboam/oam/oamLogin was not found on this server.
But application exiting status with 0.
ThanksHi;
Please see:
File Not Found /oa_servlets/AppsLogin [ID 344379.1]
Unable to Login. Page Can Not be Found Error When Connecting Via Appslogin [ID 748228.1]
Regard
Helios -
Tcl/tk: #!/usr/bin/wish in a script file does not start wish
When executing a tcl/tk script file, 'wish' does not execute the tcl/tk commands in the file.
Instead I get error messages: "command not found" from tcsh for every tcl/tk command in the file. I use tcsh as login shell.
The first line in the script file is: #!/usr/bin/wish. The program is at this place.
Starting 'wish' with my tcl/tk file as argument works fine.
Starting the wish.app and "sourcing" the script file works fine.
joThanks for the help so far.
Using
/usr/bin/wish led.tk
works.
using
./led.tk
does not even start wish. I checked with Activity Monitor.
Below are my "wishes", the first one is actually a link to wish4.8.
ls /usr/bin/wi*
wish
wish8.4
wish8.4-X11
wish8.4.7
wish8.5
But I am one step closer.
Starting X11.app and starting my script in an xterm and using
'#!/usr/bin/wish8.4-X11'
in the script works.
Using
#!/usr/bin/wish8.4
has still the same symptoms. For me it looks like a bug. I wonder if anybody can verify on MacOS 10.4.3
Maybe you are looking for
-
Sms will not show moble number
I verified my moble phone number and Skype will not show that number when I send an sms message. Yes I have the button checked selecting that option. What do I do now?
-
hi all, i want to ask how can i fix this. i can't connect when i manage Server Intelligence Agent. The error said Problem signature: Problem Event Name: APPCRASH Application Name: SvcMgr.exe Application Version: 14.0.7.1147 Applicati
-
Chrome bookmarks not syncing after ios8
Hi I've been using Chrome on my iPad for 2 years , because I use it on my laptop and I love the way my Chrome bookmarks are automatically copied over However, on the last week I've noticed that bookmarks I've changed or added on the laptop havent tra
-
Just re-installed fresh version of Vista ultimate to try and fix this problem. Whenever I click on a Movie or TV show to watch, it starts and freezes 6-8 secs into it. Itunes (not responding), but it seems the media is still playing but frozen. Any h
-
Could Not Install iTunes 7.2 on my machine Windows XP Home Edition
I am trying to install iTunes after downloading from Apple site. While trying to install, I am getting the following message "Error 1316. A network error occured while attempting to read from the file. I am using Dell Desktop with Windows XP Home ope