Applet showDocument not working for local files!!
Hello:
I wrote a signed applet that is generates html files in user temp folder (for my Win 7: C:\Users\ren\AppData\Local\Temp\jTmp\ )
The applet is supposed to display the html files in browser by using showDocument().
I tested it on firefox 25 and IE9 enabling pop-up windows
However, it does nothing. Not even an exception.
The applet fails when running from web (but works in c:\)
For the case, it happens the same with oracle's sample: Displaying Documents in the Browser (The Java™ Tutorials > Deployment > Java …
In this applet, if you input a local file (file:///c:/ etc) , it won't open it.
I supposed showDocument was not subject to security restrictions, but seems the new rule is:
-applets running locally will display all pages (web/local)
-applets running from the web will display only web pages.
My applet used to work fine, but in some jre7 upgrade it was broken!!
Is this a bug or a new security issue?
Thanks in advance!
Did you get this resolved..
I am using Internet Explorer v. 5.2 on Mac OS X v.10.2.8. I have successfully run an applet, using jre 1.3.1 which implements the "showDocument" method and opens a new page.
Could you post your code..
Similar Messages
-
Lion Server DNS service not working for locally created zones. Caching working fine.
OS Lion Server DNS service not working for local zones. Was fine under Snow leopard server but Lion server upgrade has severely broken my DNS and web sites. Zones look fine under Server Admin but keep getting "query failed (SERVFAIL) for xxxx at /SourceCache/bind9/bind9-42/bind9/bin/named/query.c:3921" in the logs. BTW - Server Admin cant seem to see the log file either.
Surely someone actually tested that DNS still worked on Lion?I upgraded from Snow Leopard Server to Lion Server on day 01. I hit the same issue where, after the upgrade, my Lion Server stopped serving names for my private local domain.
I finally took a few minutes to figure out what was wrong. After turning on debug logging and looking through the logs, I found my particular issue, now resolved.
The issue I had was, when the domain initially was setup when I installed Snow Leopard Server, for some reason it created a zone just for the server (in my case, something like zone "s-01.mydomain.priv"), and a separate zone for all the other machines (zone "mydomain.priv", containing all the private IPs for my local domain). I never messed with it because it worked, but generally I would have put all of them in the same zone.
My zone "mydomain.priv" had a nameserver and mail exchanger entry for my server, s-01.mydomain.priv. I could see this in the Server Admin app on the DNS bubble, Zones tab, mydomain.priv selected, and the General Info panel. This was fine in Snow Leopard. This was failing the zone load in the updated bind for Lion Server, though. The issue was that the "mydomain.priv" zone was referencing the s-01.mydomain.priv server, which was not defined in the "mydomain.priv" zone but rather in the "s-01.mydomain.priv" zone.
My fix:
1. In Server Admin, add the server to the zone "mydomain.priv". I put an A record (Add Machine) in the "mydomain.priv" zone for my server named s-01.mydomain.priv.
2. shut down DNS on the OS X Lion Server (hit the Stop DNS button on Server Admin).
3. edit /etc/named.conf by hand, removing the specialized zones that contianed just the server. In this case, it would be the section titled 'zone "s-01.mydomain.priv"' and the section titled 'zone "3.10.1.10.in-addr.arpa"'. Your in-addr.arpa zone name will change based on whatever your server IP address was. My internal one happened to have s-01.mydomain.priv mapped to 10.1.10.3.
4. Once the specialized zones for just the server were removed, I started the DNS up again. Instead of serving four zones as it had in OS X Snow Leopard Server, it now servers two zones. And, now, it is resolving my local machines for the mydomain.priv zone.
YMMV. I did note that it wasn't totally necessary to do step 3, but I never really understood the need for the specialized domain, and keeping it around would have a copy of data that would just confuse things.
Hope that helps. That's been the only hiccup I've noticed updating to OS X Lion Server thus far. -
OSMF not working for local .f4v on linux
hey frnds,
OSMF not working for local .f4v on linux system.
It shows playback error.
Is it bug of osmf ?
Why it can not play local video(.f4v) on linux
thx in advanced,hey frnds,
i'm running this app from adobe air on linux. -
Encode Video Files not working for avi files
Hi,
I've been trying to convert some .avi files to apple format using Lion's native 'Encode video files' function however keep getting a 'avconvert: source file not found for source file://fileparthhere avconvert: failed to create an export session. Check setup
I can't work out why as this has worked before in Lion and works fine for other video formats. The only thing I've done is remove Final Cut Express HD and can't add it again as I don't own it anymore
Suggestions? Is there a encoder to make this work or should it work anyway?
ThanksIf you click Yes the project file will be updated when you save it. That has nothing to do with the media.
Are the Lesson and Media folders still in the Book Files folder (or whatever it's called)?
Select one of the clips in the browser and use Edit>Item Properties. One of the first lines is Source. That gives you the file path for where your media is supposed to be located. What does it say? If nothing is there, use the File>Reconnect function and point the application to where the media is located. -
Oracle text search not working for WSDL files
I have a table (resources) with blob data type column (xml_data) and I've created context type index on that column. I've XSD and WSDL files stored in that blob column.
I can search XSD and XML files with a query with contains operator. But any search on the words from wsdl file returns zero results.I am not able to perform search on wsdl file.
Please advise me whether oracle text can work for WSDL files also ?
Query details
===========
create index myIndex on resources (xml_data) indextype is ctxsys.context;
select * from resources where contains(xml_data, 'searchword') > 0
Thanks a lot,
SanthiEven though it isn't listed specifically, I can't see why it wouldn't work. The WSDL file should be a simple XML file, so in theory it shouldn't be any different to Oracle Text than the XML file that you loaded and searched successfully. Did you get any errors during indexing, and what do your tokens look like in the DR$MYINDEX$I.TOKEN_TEXT column?
Do you have a mini test case that didn't work for you? Perhaps we could play with it a bit.
Long term you might want to consider using section groups so that you can search "within" tags.
-Ron -
GetReceivedDate not working with local file
hello :)
im using this code to define a local file as MimeMEssage that i read in via StdIn.
BasicConfigurator.configure();
Session mailSession = Session.getInstance(new Properties());
InputStream source = System.in;
MimeMessage message = new MimeMessage(mailSession, source);This works very well and i can use all methods MimeMessage offers.
except one:
Date maildate = message.getReceivedDate();i always get null here.
GetSentDate works fine.
and all the other get methods i tried.
when i fetch this mail via the javamaildir class i have no problems getting the receivedDate.
Does javamail need a real provider here?Pop3 doesn't support for getReceivedDate method (Imap supported)
You can get received date on message's headers
This is my snip code
private static Date getDateHeader(javax.mail.Message msg) throws MessagingException {
Date today = new Date();
String[] received = msg.getHeader("received");
if(received != null)
for (int i = 0; i < received.length; i++) {
String dateStr = null;
try {
dateStr = getDateString(received);
if(dateStr != null) {
Date msgDate = parseDate(dateStr);
if(!msgDate.after(today))
return msgDate;
} catch(ParseException ex) { }
String[] dateHeader = msg.getHeader("date");
if(dateHeader != null) {
String dateStr = dateHeader[0];
try {
Date msgDate = parseDate(dateStr);
if(!msgDate.after(today)) return msgDate;
} catch(ParseException ex) { }
return today;
private static String getDateString(String text) {
String[] daysInDate = { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" };
int startIndex = -1;
for (int i = 0; i < daysInDate.length; i++) {
startIndex = text.lastIndexOf(daysInDate[i]);
if(startIndex != -1)
break;
if(startIndex == -1) {
return null;
return text.substring(startIndex);
private static Date parseDate(String dateStr) throws ParseException {
SimpleDateFormat dateFormat ;
try {
dateFormat = new SimpleDateFormat("EEE, d MMM yy HH:mm:ss Z") ;
return dateFormat.parse(dateStr);
} catch(ParseException e) {
try {
dateFormat = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z") ;
return dateFormat.parse(dateStr);
} catch(ParseException ex) {
dateFormat = new SimpleDateFormat("d MMM yyyy HH:mm:ss Z") ;
return dateFormat.parse(dateStr); -
File.execute() not working for bat file
Dear all,
The purpose of my function copyToWinClipboard (text) is to get a string directly into the Windows Clipboard. The purpose is to allow the user of my project just to paste into the open-dialog of the application EndNote. I’m not certain whether the FM clipboard (supported by the copy/cut/paste methods for Doc) really fills into the Windows Clipboard also.
In the PhotoShop script forum I found the idea how to do this.
#target framemaker
// note the blank in the path
copyToWinClipboard ("E:\\_DDDprojects\\FM+EN escript\\FM-11-testfiles\\BibFM-collected.rtf");
function copyToWinClipboard (text) {
var theCmd, clipFile = new File(Folder.temp + "\\ClipBoardW.bat");
clipFile.open('w');
// theCmd = "echo \"" + text + "\" | clip"; // this doesn’t help either
theCmd = "echo " + text + " | clip";
clipFile.writeln (theCmd);
clipFile.close ();
clipFile.execute ();
Running this script provides a short flicker (the command prompt), but the clipboard does not contain the expected string. However, when double clicking on the generated I:\!_temp\ClipBoardW.bat the clipboard is filled correctly.
IMHO the execute method does not work correctly for bat files. In another area of my project-script i run an exe file with this method correctly.Hi Klaus,
sorry for my late response.
execute definitely works witch batch-files
Here's a "batch" - example you can test.
There are two methods to prevent window from closing:
"|more" - kind of pagebreak
"pause"
var oTemp = app.UserSettingsDir + "\\tmp";
var MyDosCommand = "ipconfig.exe /a|more";
var MyPath = new Folder (oTemp);
if (!oTemp.exists)
var MyPath = new Folder (oTemp);
var lFehler = MyPath.create();
oTemp = oTemp + "\\" +"nw.bat";
var MyFile = new File (oTemp);
MyFile.open ('w');
if (MyFile.error > "")
alert("ERROR");
MyFile.writeln(MyDosCommand);
MyFile.writeln("pause");
MyFile.close();
MyFile.execute(); -
Mail not working for local users
I have sunOS 5.9 running on sun sparc
mail is not working on this system even for local users.
I have tried from the command prompt
mail username
Test email
^D
nothing happens after control D, I don't get command prompt.
I also tried
mail username
Test email
nothing happens
sendmail daemon is not running on this system but my understanding is that sendmail is not required. I need mail to work only for local users to receive emails for failed cron jobs etc, it is not required for this system to send or receive emails to/from outside world.
Can someone guide or point in right direction to fix mail functionlality for local users?Actually, with recent versions of sendmail, you do need sendmail running to be able to send mail.
You never used to, but since they made sendmail no longer setuid root, you do.
Sendmail has essentially been split into 2 daemons a local queue runner with handles sending sent by local users.
And a listener daemon with listens for remote connections.
If you want to be able to send mails but not have sendmail listening, you have a couple of options.
You can either run only the local queue runner and not run the listener. In this case you have to configure the local queue runner to send mails onto a external mail host for processing. This requires editing /etc/mail/submit.cf
Alternately, you need to configure the local listener to only bind to the localhost port so it can't be contacted from external sources.
This requires editing sendmail.mc and regenerating a new sendmail.cf
I tend to favour the latter option as the former limits your ability to do things like local aliases of root: [email protected] to send all your root mail to a central account.
This is the sendmail.mc you will need
divert(0)dnl
VERSIONID(`@(#)main.mc 1.5 (Sun) 08/10/00')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
DAEMON_OPTIONS(``Port=smtp, Addr=127.0.0.1, Name=MTA'')dnl
FEATURE(`no_default_msa')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl -
"Open With" CS3 not working for JPEG file
Operating system is XP. I am trying to get CS3 to automatically open all JPEG files when I double click on them in windows explorer.
I open windows explorer, right click on the image that I want to open, then click "open with" ....
...at this point CS3 is not one of the choices on the "open with" menu so I already smell a problem ....
..... so I click "choose program" and navigate to the adobe photoshop cs3 folder and point to photoshop.exe, then click the "always use the selected program" box, click open, and bada-boom, bada-bing, the image opens in photoshop CS3, right? WRONG.
The image opens in the Quicktime Picture Viewer program and NOT IN PHOTOSHOP CS3.
I feel that I have entered the Twilight Zone, otherwise known as The Adobe Messed Up Someting In The Registry Upon CS3 Install Zone. Does anyone have any hints on how to get PS CS3 working as the default program for JPEGs when I double click them from explorer on my XP computer?
Thanks,
MarkAfter a long search I found the answer:
To associate all jpeg files with Photoshop CS3 so that they will open into CS3 when double clicked:
Click Start, Run and type in: Control Folders.
Click the file Types Tab.
Wait for the list of file types to populate.
Single click on the jpeg file type.
Click the Advanced button.
Highlight open and click the edit button.
Browse to the location of photoshop.exe in the CS3 folder.
A few OK's and you are done.
AND ANOTHER THING .........
After the change above was made, jpg files would open directly to photoshop cs3 when doubleclicked, but the maintained the same goofy quicktime pictureviewer icon when viewed in windows explorer. To change the icon for jpeg files displayed in all folders to the photoshop icon, do this:
Start / My Computer
Click Tools at the top of the screen.
Click folder options .... then the file types tab
Click on jpeg in the list and click the advanced button
Click change icon and browse to the photoshop.exe for CS3
A list of ocon choices will appear .... I chose the second row first icon
A couple of OKs and you are done -
"Automatically Write Changes Into XMP" Not Working for DNG Files
Hello,
I am needing to update DNG/JPG file pairs with keywords that I add in lightroom. The following is the problem that I am encountering.
When the image consists of only a JPEG file (ie. I had my DSLR only snap a jpeg and not an associated DNG), and I add one or more keywords to the file in Lightroom, these are written / saved immediately in Lightroom and are visible immediately in the 'tags' column for that image in windows explorer. Very useful and important functionality for my workflow.
However, when the image consists of both a JPEG and a sister DNG (i.e.,snapped simultaneously by my DSLR), and I try to add keywords to these (treated at this point as a single image by lightroom) then Lightroom does not record the keywords into either of the two files and consequently no tags are visible in windows explorer. I have confirmed this apparent problem with a seperate image metadata utility software, and am hoping that it's just something simple that I am missing.
Also "Automatically Write Changes Into XMP" is selected and I have also tried manually both: "right click," "metadata," "write metadata to file;" and "right click" "update DNG preview and metadata" and the problem persists.
Hopefully someone has encountered something similar and can point me in the right direction.
Thanks in advance.@Eric: hitting cntrl+s works but can be tedeous on large galleries. I've been doing this but it can be a pain.
@Jeannine: different topic than this thread but to answer anyways... Lightroom automatically saves all changes into your catalogue. You never need to dave your changes (here's the kicker though) as long as you do not move the original file. If you
move the file than lightroom won't know that it's the same image as the one you've edited. Once you are done editing your image you will need to "export" the image to a new file (you don't wan to overwrite the original). If you don't export than only lightroom will have your edits. Lightroom is "non-destructive" Which means that it doesn't touch your original photo. Lightroom keeps a text file containing the instructions on what you did to make the edited version. Since your changes are just text inatryxtions you have to "export" the image to get your final image in a version you can put online, print, etc. But to answer your original question, I think you prob moves the original image. If not, could you give us more info? -
Flash Preloader Not Working with Local Files?
Hello all,
I have created a digital resumé using a Flash
presentation. The presentation links to several SWF files that are
rather large. I have designed and implemented preloaders for the
files.
My intent is to burn the whole product to CD for
distribution. The problem I am having is that my Flash preloaders
work perfectly in FireFox; I click the button in the main
presentation and the preloader comes up in the target screen,
followed by the SWF.
However, the preloaders do not work at all in IE, which
leaves a black pane with nothing in it and causes the user to click
the button several times trying to figure out why nothing is
happening.
The Flash presentation that is being displayed is embedded in
a HTML document. The user clicks a button to load a SWF to a
separate screen; the preloader runs until the file is loaded.
Any help you could provide is appreciated.I have attached the actionscript for the data connection. The
odd thing about this issue is some of the data is being displayed
from the webservice call and then some is not. The drop down list
is not being populated but I am getting some text in a textarea
that is on the form. My datasource is a SQL Server database and in
ColdFusion administrator, I used the actual machine name to point
to the datasource because it is directly linked to my web server.
This configuration is the one giving me problems. If I change the
datasource to my test SQL Server (server.somewhere.com) it works
fine. Does this help any? -
Javascript not working with local files
I am not able to get Firefox to execute javascript on local files. I have disabled all add-ons. The odd thing was, the first time I disabled all of the add-ons, it worked, then I re-enabled them one by one to see which one was causing the problem, it stopped, I disabled them all again so I could confirm that is was the add-on, and after that I have never been able to get any javascript to run.
I have tried multiple files, even the most basic one listed in the Javascript tutorials, no luck. Chrome and Opera have no problems.Hi,
why didn't you check the sy-batch (test if it's a background job) ?
use the DIR_TEMP of the SAP server when it's a background job.
to get the physical directory you could use this kernel function :
CALL 'C_SAPGPARAM' ID 'NAME' FIELD 'DIR_TEMP'
ID 'VALUE' FIELD searchpoints-dirname.
(dirname is a CHAR 75)
Rgd
Frédéric -
Preview is not working for MEdia files
Suddenly whenever I would like to have a quick look for any video file via (Space bottom) its not working, keep giving that "Loading preview" but never show the video.
i am using quick time X.
any help
mohammadThere are quite a few different settings that you can choose from when converting a RAW file to a DNG. Without knowing what settings you set up in LightRoom there's no way to tell why your images aren't importing properly.
Roughly speaking, a linear DNG is one where the first part of the RAW conversion process (called debayerising or demosaicing) has already been done by Adobe.
Ian -
I cannot get my thunderbird box to work since upgrade. addons not working for larger files
When I try to use box for larger attachments ,it is not working and just keeps trying to load . I have checked my box account and spoken to there tech and he said it is not on their end ?
I don't have any direct experience with D-Link equipment, but I may be able to provide some general advice. See if you can use a Web browser to connect to the D-Link's configuration screen. This probably involves visiting a URL such as http://www.192.168.0.1 . If you haven't changed the sign-on parameters, a quick Google search should find them for you.
Once there, note as many configuration details as you can find. You'll need those to configure your Time Capsule.
Use the AirPort Utility to configure the Time Capsule.
One last thing: It's quite possible that the Verizon network will have locked onto the "MAC" address of your D-Link router. Something needs to be done to reset this. If there's a separate box at your house that came with the FIOS equipment that's "upstream" from the D-Link router, I'd cycle power on it to see if that does the job. Otherwise you'll probably need to call Verizon to ask them to reset things once your Time Capsule is installed in place of the D-Link router. -
Quick look not working for office files from mail
I installed the new Microsoft Powerpoint on my ipad to check it out. I didn't really like it so I uninstalled it. Now when I am in mail and try to view a Powerpoint presention (or any other office file), quick look opens with just the name and size of the file rather than letting me view the file. I am assuming installing Powerpoint somehow disabled Quick View for those files. How do I fix this? I really need to be able to read office files from Mail on my ipad!!
It sounds like you may have 2 different programs that support quicklook differently. I suspect the .doc files are different formats that are using one or the other application.
A quick test - select a file with the full preview. Get info on it in the Finder (File > Get Info) see what application it is set to open with by default. I suspect this will be TextEdit or MS Word. Compare this to a file that has no preview in quicklook. Change over the default application to the other application and see if the preview appears.
My understanding is that the software has to be aware of quick look to parse the document and create the preview. It could be that one of the softwares needs an update, or is too old to support quicklook.
you should be able to see the version number by opening the application and using the About menu under the Application menu. Post them here if the above doesn't work.
You may also compare the 'Kind' in the info dialog, it could be that they are slightly different formats. Opening and saving may generate the previews (keep the originals if you do this!)
Maybe you are looking for
-
Technical question: Is it possible to work on the same Lightroom catalog across two computers and have the catalog sync? If so, how?? Here's a little more information on what I am trying to do. I have a desktop computer with 4tb worth of pictures tha
-
I have remote access using my IMAC. The computer at work is a Windows PC, how do I set up the IMAC's keyboard to function as the same one at work?
-
Application Builder Import App Bug
When an application is imported and installed you have three choices, run, edit app, and edit app attributes.. This is on page f?p=4000:57 If you click the run application it ALWAYS points to /apex/f?p=APP_ID:1:SESSION I for one do not have a page on
-
How can i remove windows 7 and reinstall a fresh copy of windows 7
how can i remove windows 7 and reinstall a fresh copy of windows 7
-
I no longer have a place to type in web addresses - I want it back please
see question above there are so many options I dont want I juts want a seb browser with somewhere to type a web address!