Problem while opening a file
Hi ,
Can anyone give a solution for me ?
I have a problem while using files with PDF.
writer = PdfWriter.getInstance(document,
new FileOutputStrea("c:/ filename.pdf "));
Exception occurs when specified file is already opened.
How can i rectify it?
Here what i want is ... if specified file is already opened then it is close phisically .How can i close a file by using java?
In my example a pdf file is opened . how do i close that pdf file using java program.
Please quickly give response to me .
Thanks in advance.........
Hi ,
Can anyone give a solution for me ?
I have a problem while using files with PDF.
writer = PdfWriter.getInstance(document,
new FileOutputStrea("c:/ filename.pdf "));
Exception occurs when specified file is already opened.
How can i rectify it?
Here what i want is ... if specified file is already opened then it is close phisically .How can i close a file by using java?
In my example a pdf file is opened . how do i close that pdf file using java program.
Please quickly give response to me .
Thanks in advance.........
Similar Messages
-
Problem while opening excel files in office 365
Hi, Facing issue in office 365. Suppose one excel file is already opened and if we tried to open another one it just is looks like opening file and if check after sometime it shows excel blank window to open new file.
Please helpHi,
Thanks for your post.
Based on my experience, if you've ticked the option of "Ignore other applications that use Dynamic Data Exchange (DDE)“
under FILE>Options>Advanced, you will probably have this kind of issue.
Please try to turn off that option and see if it works.
Regards,
Ethan Hua
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Upgrade to Netweaver causing problem while opening pdf file in the portal
After an upgrade to Netweaver 4.0, the following code for opening a pdf file constructed from a byte stream passed from an RFC fails.
Document doc = new Document(PageSize.A4);
javax.servlet.http.HttpServletResponse myResponse = request.getServletResponse(true);
myResponse.setHeader("Content-Disposition","attachment;filename=\"AIPDoc.pdf\"");
myResponse.setContentType("application/pdf");
ByteArrayOutputStream baosPdf = new ByteArrayOutputStream();
OutputStream os = myResponse.getOutputStream();
os.write(pdfResult);
PdfWriter.getInstance(doc, os);
It throws a "file not found error" on opening directly. However, if saved and viewed; it opens fine. I believe we need to specify the portal url in the filename but not sure.
Thanks,
DevinaHi Devina,
We are also opening a pdf file constructed from a byte stream passed from an RFC. Our problem is that we are experiencing inconsistent results. The file appears to open on some PC workstations but not on others. When it doesn't work we simply get a blank screen in the window. Did you resolve your issue? If so, perhaps you can provide us with some suggestions for solving our problem.
Thank you,
Angie -
Hello, I have problems while opening existing file
It says:
adobe muse type error: error #1010 a term is undefined and has no propertiesStart Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
See also:
*https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
*https://support.mozilla.org/kb/Managing+file+types -
while opening pdf files the menu bar, navigation bar cracks unobviously and also close and minimise buttons goes hidden..Facing the problem for last one month. Please help.
The latest Kaspersky software version is 15.0.1.415 or 15.0.1.415ab.
-
I have a WL 9.2.1 running on Sun solaris o/s .....it is failing to start thowing the following exception
<Mar 19, 2009 5:21:17 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.diagnostics.lifecycle.DiagnosticComponentLifecycleException: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was a
n error while opening the file store file "WLS_DIAGNOSTICS000000.DAT"
at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:44)
at weblogic.diagnostics.lifecycle.DiagnosticFoundationService.start(DiagnosticFoundationService.java:107)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was an error while opening the file store file "WLS_DIAGNOSTICS0
00000.DAT"
at weblogic.store.io.file.Heap.open(Heap.java:166)
at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:85)
at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:350)
at weblogic.store.PersistentStoreManager.createFileStore(PersistentStoreManager.java:202)
at weblogic.diagnostics.archive.DiagnosticStoreRepository.getStore(DiagnosticStoreRepository.java:61)
at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:42)
... 4 more
Caused by: java.io.IOException: [Store:280021]There was an error while opening the file store file "WLS_DIAGNOSTICS000000.DAT"
at weblogic.store.io.file.StoreDir.throwIOException(StoreDir.java:213)
at weblogic.store.io.file.StoreDir.open(StoreDir.java:103)
at weblogic.store.io.file.Heap.open(Heap.java:164)
... 9 more
Caused by: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable, errno=11
at weblogic.store.io.file.direct.DirectIONative.open(Native Method)
at weblogic.store.io.file.direct.DirectFileChannel.<init>(DirectFileChannel.java:51)
at weblogic.store.io.file.direct.DirectIOManager.open(DirectIOManager.java:138)
at weblogic.store.io.file.StoreFile.openInternal(StoreFile.java:112)
at weblogic.store.io.file.StoreFile.open(StoreFile.java:142)
at weblogic.store.io.file.StoreDir.open(StoreDir.java:95)
... 10 more
i went ahead and checkd the file and the privs on the file they look correct -rw-r--r-- ...but when i just restart it ..it starts with no errors the next time......What could be the issue.....please help
Then only reason i could think of is the size of the file is 35MB now...is this the problem....if yes....is there a way to automaticaly rotate this file ....The root cause appears to be right in the stack trace:
Caused by: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable, errno=11I think this indicates that either the file was either locked (because another instance of WebLogic had it opened), or that the file was unavailable for some reason. WebLogic locks files as a safety precaution to prevent misconfigured setups (multiple domains sharing the same directory and store name) from attempting to share the same file.
I don't think that this message necessarily means there is a file corruption.
As for rotation, the file store automatically adds new files as needed (I think its 1 file for every 2GB of data). The "diagnostics" file store is generated by the optional diagnostics feature, and I think that this feature has options for controlling the amount of stored data.
Tom -
Problem while reading XML file from Aplication server(Al11)
Hi Experts
I am facing a problem while reading XML file from Aplication server using open data set.
OPEN DATASET v_dsn IN BINARY MODE FOR INPUT.
IF sy-subrc <> 0.
EXIT.
ENDIF.
READ DATASET v_dsn INTO v_rec.
WHILE sy-subrc <> 0.
ENDWHILE.
CLOSE DATASET v_dsn.
The XML file contains the details from an IDOC number , the expected output is XML file giving all the segments details in a single page and send the user in lotus note as an attachment, But in the present output after opening the attachment i am getting a single XML file which contains most of the segments ,but in the bottom part it is giving the below error .
- <E1EDT13 SEGMENT="1">
<QUALF>001</QUALF>
<NTANF>20110803</NTANF>
<NTANZ>080000</NTANZ>
<NTEND>20110803<The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/SHPORD_0080005842.xml'.
/SPAN></NTEND>
<NTENZ>000000</NTENZ>
for all the xml its giving the error in bottom part , but once we open the source code and if we saved in system without changing anything the file giving the xml file without any error in that .
could any one can help to solve this issue .Hi Oliver
Thanx for your reply.
see the latest output
- <E1EDT13 SEGMENT="1">
<QUALF>003</QUALF>
<NTANF>20110803</NTANF>
<NTANZ>080000</NTANZ>
<NTEND>20110803</NTEND>
<NTENZ>000000</NTENZ>
<ISDD>00000000</ISDD>
<ISDZ>000000</ISDZ>
<IEDD>00000000</IEDD>
<IEDZ>000000</IEDZ>
</E1EDT13>
- <E1EDT13 SEGMENT="1">
<QUALF>001</QUALF>
<NTANF>20110803</NTANF>
<NTANZ>080000</NTANZ>
<NTEND>20110803<The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/~1922011.xml'.
/SPAN></NTEND>
<NTENZ>000000</NTENZ>
E1EDT13 with QUALF>003 and <E1EDT13 SEGMENT="1">
with <QUALF>001 having almost same segment data . but E1EDT13 with QUALF>003 is populating all segment data
properly ,but E1EDT13 with QUALF>001 is giving in between. -
Dear all,
i am test the report to show "No Data Found" world, but, when i preview to PDF, i got the message :An error occurred while opening the file, you can not open this file because it does not page.
i try to load the other xml file that have data, and report work,no error.
i don't know where is the problem, so i need some help....
Thanks in advance for your response.
my rtf report:
<?call:header?>
<?if:count(PLAN_CODE)>0?>
<?for-each@section:G_PLAN_CODE?>
<?template:Header?>
<?for-each:G_PURPOSE?>
<?end for-each?>
<?end template?>
<?for-each:G_PLAN_SUBSQL2?>
<?end for-each?>
<?end for-each?>
<?end if?>
<?if:count(PLAN_CODE)=0?>
====================No Data Found ===================
<?end if?>
about xml:
if no data query back:
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version 6.0.8.27.0 -->
<NARLGLR005>
<LIST_G_PLAN_CODE></LIST_G_PLAN_CODE>
<CF_START_DATE>102.3</CF_START_DATE>
<CF_END_DATE>102.3</CF_END_DATE>
<CF_TITLE_NAME>Company</CF_TITLE_NAME>
<CF_OU_NAME>IT Department</CF_OU_NAME>
<CF_SOURCE_CODE>N/A</CF_SOURCE_CODE>
<CF_PRINT_DATE>102.11.18 15:48:10</CF_PRINT_DATE>
</NARLGLR005>
if have data:
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version 6.0.8.27.0 -->
<NARLGLR005>
<LIST_G_PLAN_CODE>
<G_PLAN_CODE>
<PLAN_CODE>03101C3003</PLAN_CODE>
<PLAN_NAME>03101C3003_test</PLAN_NAME>
<PLAN_EM>John</PLAN_EM>
<PLAN_START_DATE>101.09.01</PLAN_START_DATE>
<PLAN_END_DATE>102.08.31</PLAN_END_DATE>
<PLAN_HOSTS>abc_super</PLAN_HOSTS>
<LIST_G_PURPOSE>
<G_PURPOSE>
<PURPOSE_CODE>11600000</PURPOSE_CODE>
<PURPOSE_NAME>Pre-Pay</PURPOSE_NAME>
<LIST_G_PURPOSE_CODE>
<G_PURPOSE_CODE>
<BUDGET_AMOUNT>0</BUDGET_AMOUNT>
<REAL_BUDGET_AMOUNT>0</REAL_BUDGET_AMOUNT>
<TEMP_RECEIPT_AMOUNT>0</TEMP_RECEIPT_AMOUNT>
<REAL_PAY_AMOUNT>0</REAL_PAY_AMOUNT>
<TEMP_PAY_AMOUNT>-83006</TEMP_PAY_AMOUNT>
<TEMP_PAY_FINAL_AMOUNT>83006</TEMP_PAY_FINAL_AMOUNT>
<TOTAL_AMOUNT>83006</TOTAL_AMOUNT>
</G_PURPOSE_CODE>
</LIST_G_PURPOSE_CODE>
<CS_BUDGET_AMOUNT>0</CS_BUDGET_AMOUNT>
<CS_REAL_BUDGET_AMOUNT>0</CS_REAL_BUDGET_AMOUNT>
<CS_TEMP_RECEIPT_AMOUNT>0</CS_TEMP_RECEIPT_AMOUNT>
<CS_REAL_PAY_AMOUNT>0</CS_REAL_PAY_AMOUNT>
<CS_TEMP_PAY_AMOUNT>0</CS_TEMP_PAY_AMOUNT>
<CS_TEMP_PAY_FINAL_AMOUNT>0</CS_TEMP_PAY_FINAL_AMOUNT>
<CS_TOTAL_AMOUNT>0</CS_TOTAL_AMOUNT>
</G_PURPOSE>
</LIST_G_PURPOSE>
<LIST_G_PLAN_SUBSQL2>
<G_PLAN_SUBSQL2>
<GL_DATE>31-07-12</GL_DATE>
<NARL_DOC_NUMBER>0310107311004</NARL_DOC_NUMBER>
<AP_UNAPP></AP_UNAPP>
<PLAN_NAME1>03101C3003_101-102</PLAN_NAME1>
<PLAN_CODE1>03101C3003</PLAN_CODE1>
<PLAN_EM1>Elly</PLAN_EM1>
<PLAN_START_DATE1>2012/09/01 00:00:00</PLAN_START_DATE1>
<PLAN_END_DATE1>2013/08/31 00:00:00</PLAN_END_DATE1>
<PLAN_HOSTS1>KIC-Supp</PLAN_HOSTS1>
<REAL_RECEIPT_AMOUNT>0</REAL_RECEIPT_AMOUNT>
<DESCRIPTION>101 year</DESCRIPTION>
<CF_GL_DATE>101.7.31</CF_GL_DATE>
</G_PLAN_SUBSQL2>
</LIST_G_PLAN_SUBSQL2>
<CF_START_DATE1>99.1</CF_START_DATE1>
<CF_END_DATE1>102.11</CF_END_DATE1>
<CF_TITLE_NAME1>TCS Company</CF_TITLE_NAME1>
<CF_OU_NAME1>IT Department</CF_OU_NAME1>
<CF_SOURCE_CODE1>plan</CF_SOURCE_CODE1>
<CF_PRINT_DATE1>102.11.19 17:12:19</CF_PRINT_DATE1>
<CS_T_BUDGET_AMOUNT>517524</CS_T_BUDGET_AMOUNT>
<CS_T_REAL_BUDGET_AMOUNT>517524</CS_T_REAL_BUDGET_AMOUNT>
<CS_T_TEMP_RECEIPT_AMOUNT>289294</CS_T_TEMP_RECEIPT_AMOUNT>
<CS_T_REAL_PAY_AMOUNT>289294</CS_T_REAL_PAY_AMOUNT>
<CS_T_TEMP_PAY_AMOUNT>0</CS_T_TEMP_PAY_AMOUNT>
<CS_T_TEMP_PAY_FINAL_AMOUNT>0</CS_T_TEMP_PAY_FINAL_AMOUNT>
<CS_T_TOTAL_AMOUNT>228230</CS_T_TOTAL_AMOUNT>
<CS_REAL_RECEIPT_AMOUNT>289294</CS_REAL_RECEIPT_AMOUNT>
</G_PLAN_CODE>
</LIST_G_PLAN_CODE>
<CF_START_DATE>99.1</CF_START_DATE>
<CF_END_DATE>102.11</CF_END_DATE>
<CF_TITLE_NAME>Company</CF_TITLE_NAME>
<CF_OU_NAME>IT Department</CF_OU_NAME>
<CF_SOURCE_CODE>N/A</CF_SOURCE_CODE>
<CF_PRINT_DATE>102.11.18 15:48:10</CF_PRINT_DATE>
</NARLGLR005>Hi,
You mentioned you tried some steps but I'm not sure what they are, you may try my suggestion to resolve this issue, follow these steps:
Click Start, right-click Computer, click
Properties, and then click Advanced system settings.
On the Advanced tab, click Environment Variables.
Locate and select the __COMPAT_LAYER variable, and then click Edit.
Set the value of the __COMPAT_LAYER variable to EnableThemes. Or, delete the __COMPAT_LAYER variable.
If the issue persists, we can troubleshoot this problem in Clean Boot to determine whether background programs are interfering with PowerPoint:
http://support.microsoft.com/kb/929135
Regards,
Melon Chen
TechNet Community Support -
Problem while opening Excel through OLE
Hi Friends
I am facing a problem while opening an excel file through OLE. it is working fine in SAP ECC 5.0, but the problem is in ECC 6.0.
I am adjusting the cells for auto fit. I have written the code like below.
CALL METHOD OF e_appl 'CELLS' = e_cell.
CALL METHOD OF e_cell 'EntireColumn' = ole_columns .
CALL METHOD OF ole_columns 'AutoFit'.
set property of e_appl 'VISIBLE' = 1.
if I take out the adjustment part it is working fine for this program, rest other programs even if I have this code, they working fine.
When I am executing the statement set property of e_appl 'VISIBLE' = 1. the return code is coming as 2.
Could anybody please help me to overcome this problem.
Thanks
PraveenIn ECC 6.0, if the worksheet is portedcted SAP unable to open that sheet, now we have taken out this option so it is working.
-
In PowerPoint 2013 on Windows 7 - 64 bit, when
File / Save as is selected, an error message comes up stating, "An error occurred while opening the file dialog. Please save your presentation, exit, and restart PowerPoint." This is an intermittent issue and also
affects Excel 2013. I have tried repairing it, done windows update and also uninstalled and reinstalled but no luck. I have researched this issue but it relates to Office 2007 and 2010 and the resolution does not support 2013.
Has anyone come across this issue? If so how did you resolve it?
Many thanks….Hi,
You mentioned you tried some steps but I'm not sure what they are, you may try my suggestion to resolve this issue, follow these steps:
Click Start, right-click Computer, click
Properties, and then click Advanced system settings.
On the Advanced tab, click Environment Variables.
Locate and select the __COMPAT_LAYER variable, and then click Edit.
Set the value of the __COMPAT_LAYER variable to EnableThemes. Or, delete the __COMPAT_LAYER variable.
If the issue persists, we can troubleshoot this problem in Clean Boot to determine whether background programs are interfering with PowerPoint:
http://support.microsoft.com/kb/929135
Regards,
Melon Chen
TechNet Community Support -
HP Pavilion g series (g6-1b50us Notebook PC), windows 7, 64-bit.
My media player keeps saying it encountered problems while playing a file. and little red x's appearing beside song titles. They did play before. Please help.Hi,
This may happen if the files were moved to a different folder or a different location.
Try this:
http://answers.microsoft.com/en-us/windows/forum/windows_7-sound/red-x-symbol-next-to-each-song-whil...
Note:
If you have HP Support Assistant installed on the computer(The Blue Question Mark) then open it ==> Complete all pending Updates & Tuneups==> Restart and Check. It may solve your problem
Although I am an HP employee, I am speaking for myself and not for HP.
**Click on “Kudos” Star if you think this reply helped** Or Mark it as "Solved" if issue got fixed. -
Problem while opening Bex query on the web
Hello BW experts,
I have a problem while opening Bex query from my SAP Favorites.See below.
When i double click on the query, i get the following page, with the server name KBWS01QX.
But, from RSRT Tcode, select the query > query display as HTML > Click on ABAP Web , click execute as shown below, it is going to the correct URL as in the 2nd screen shot below.
My question is why is it going to the wrong URL when i open it from SAP Favorites menu?
I want it to open the same URL as it opened from RSRT(which is the right one)
What is the Config needed to make it to work from SAP favorites.
Any help would be appreciated.
Thanks alot.
SVHello,
Thank you all for your responses.
See below some additional info.
From RSRT, this time I clicked on JAVA WEB, and i get the below URL, which is the same URL i was getting when i executed the query from SAP favorites.
http://kbws01qx.xxxxxxx.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZCONSUMPTION
Also, i have executed the Function module : RSBB_URL_PREFIX_GET and i get the below values.
It seems that it is trying to connect to Java portal something services may be, but i want it to open in ABAP web only.
Please help. -
A problem while implementing a file to file senario
hi all :
There is some problem while implement a file to file senario. the file couldn't be sent or recieved.
and as I try to check Check the Sender File Adapter Status via
Runtime Workbench -> Component Monitoring -> Communication Channel Monitoring ,
It is found that Adapter Engine has error status with red light. Is it why the file couldn't be sent?
Could you please tell me how to make Adapter Engine available?
Thank you very much!!!Hi Sony
Error getting JPR configuration from SLD. Exception: No entity of class SAP_BusinessSystem for EC1.SystemHome.cnbjw3501 found
No access to get JPR configuration
Along with what experts suggested
What is the type of Business system is this. Standalone Java?
JPR can have problem if you have a business system thats not ABAP/Java type if this system is not having a SAP TS in landscape then create Java type.
Thanks
Gaurav -
Problem while dowloading the file from Application Server
Dear Experts,
I am facing the Problem while downloading the file from Application server.
We done the automatic function while saving the invoice, this will create an idoc, and this idoc is written in the Application Server.
I am running the Transaction AL11 and select the record, and from menu --> List, i am downloading into TXT format.
But for some segments, the length is long, and so the last 3 to 4 fields values are not appearing in the File. Even though i am unable to view the values in the file before downloading. But i can view in IDOC.
Please help me to solve this issue.
Thanks & Regards,
Srinibut our user will use the Txn. AL11 and they will download from there
Educate the user On a serious note, tell him this is not how data from app server should be downloaded. You can ask him to talk to the basis team to provide him access to the app server folder where the file is being stored.
I can set the Variant and put this in background, But always the file name will be change, Like we use Time stamp in the File name.
You can't automate this process by scheduling in BG mode. This is because the in BG mode you can't dwld the file to presentation server.
Hope i'm clear.
BR,
Suhas -
Hello i am rajesh i am having problem while conveting other files into pdf format please help me
i am rajesh i am having problem while converting other files into acrobat format please help me
Hello Rajesh,
I'm sorry to hear you're having trouble. Are you using Acrobat.com to convert your files to PDF? Please let me know where you are having trouble and I will do my best to help you convert your files. For your reference, here is a list of filetypes that can be converted to PDF online with Acrobat.com:
http://kb2.adobe.com/cps/524/cpsid_52456.html#Create%20PDF
Best,
Rebecca
Maybe you are looking for
-
How to extract data from oracle database directly in to bi7.0 (net weaver)
how to extract data from oracle database directly in to bi7.0 (net weaver)? is it something do with EDI? can anybody explain me in detail? Thanks York
-
Hi. I've just migrated 750GB worth of data from an old MacBook unto iMac but now itunes won't open and i've downloaded the latest itunes with no effect on the error message received. Please help.
-
How to make bean create xml file...
In my project I have a bean that is called from a jsp file... How does one make this bean write to an xml file? If anyone have a sample code I could watch, I would be very happy!! In advance thanx a lot!
-
Revision: 17940 Revision: 17940 Author: [email protected] Date: 2010-09-29 14:47:13 -0700 (Wed, 29 Sep 2010) Log Message: Fix FM-982: MAST plugin doesn't show preroll for F4M resources. Ticket Links: http://bugs.adobe.com/jira/browse/FM-982
-
welcome to support.mozilla.com before you can use your new account you must activate it-this ensures the e-mail address you used is valid and belongs to you.To account,click the link below or copy and paste the whole thing into your browser's bar: ht