Accessing a network resource via javascript

Hello,
we have been using Adobe Reader for linux provided by the yum repository for quite some time, without major issues. Currently, however, we are seeing a mysterious problem with a PDF form which is designed to exchange data with a local server, using javascript functionality, as far as I can see. On one of our machines (running CentOS 5.8 64-bit) this has stopped working recently, and I cannot figure out why. Clicking the respective field simply has no effect, there is no error message, neither in the Reader window, or on the console, both in normal mode and debug mode. Nothing in the system logs either. The function simply seems to be ignored!
Some observations which might be helpful:
1. Uninstalling and reinstalling the Reader package, after clearing all personal preferences, did not have any effect.
2. Using a fresh version of the PDF form did not solve the problem.
3. Firewall and SElinux are disabled anyway.
4. With a "clean" account on the same machine, the same problem occurs.
5. On a very similar machine (same OS, same Reader version) the operation is working properly!
So it seems to be something specific to this machine, but not specific to a certain account. It is obviously neither a corrupted Reader installation, nor a problem with this specific reader version, nor a corrupted PDF form. Now I am running out of ideas...
Any suggestions what else might be preventing network access (via javascript) from functioning properly? Javascript itself is (by default) enabled in the preferences.
Thanks in advance
Oliver

Sorry for the double post, but help would be appreciated...

Similar Messages

  • Access file applet function via javascript

    hi all
    when i want to have access to the method (which in fact read a file) of my applet class via javascript, a java error is raised: access denied
    BUT i have signed the related jar!
    when i want to access the method (which in fact read a file) of my applet class via the normal way (put a button into a frame and....) it works.
    are there more configurations to do or ....?
    Kind Regard Tom
    here is the code
    HTML file
         <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
         <head>
         <link type="text/css" rel="stylesheet" href="/css/style.css">
              <script type="text/javascript">
              function xclick() {
              alert( document.getElementById('applet').isFileOk());
              document.getElementById('fichier').value = document.getElementById('applet').isFileOk();
              //alert(document.portal.applet.isFileOk(path));
              function checkfile() {
                   //var fichiercacher = document.portal.fichier.value;
                   var fichiercacher = document.getElementById("fichier").value;
                   document.getElementById("fichiercacher").value = fichiercacher;
                   document.getElementById("fichiercacher").value = fichiercacher;
                   document.getElementById("chemin").value = fichiercacher;
                   alert("fichier cacher" + fichiercacher);
                   alert("chemin=" + document.getElementById("chemin").value);
              </script>
         </head>
         <body >
         <form name="portal" method="post" action="" >
    <p align="center" id="corps">
         <img border="0" src="ilias.bmp"><br>
         <applet id="applet2" code="NumberOfLine.class" archive="NumberOfLine.jar" width="150" height="109" >
              <param name="maxLines" value="50" />
              <param id="chemin" name="fichierparam" value="" />
              </applet>
              <applet id="applet" code="localfile.class" archive="localfile.jar" width="150" height="109" >
              <param name="maxLines" value="50" />
              <param id="chemin" name="fichierparam" value="" />
              </applet>
         <br>
                   <div id="divloading" ></div>
         <input type="hidden" name="fichiercacher" />
         <input type="file" name="fichier" onchange="checkfile()">
    <input type="button" value="click me" onClick=xclick() ; />
         </p>
         </form>
         </body>
         </html>
    Class NumberOfLine javascript way
    import java.applet.Applet;
    import java.awt.Button;
    import java.awt.Label;
    import java.io.*;
    public class NumberOfLine extends Applet {
    private boolean fileok = false;
    Label message = new Label("MAX line = 40 ");
    Button btnok = new Button("check file");
    int maxline = 40;
    public void init() {
         String sMaxLines = getParameter("maxLines");
         if ( sMaxLines != null ){
                   this.maxline = Integer.parseInt(sMaxLines);
                   System.out.println(this.maxline);
         public String isFileOk(String chemin) {
              File ffile = new File( chemin);
              try{
                   FileReader fr = new FileReader(ffile);
                   LineNumberReader ln = new LineNumberReader(fr);
              int count = 0;
              while (ln.readLine() != null) {
              count++;
              System.out.println("Total line no: " + count);
                   ln.close();
                   fileok = (count <= maxline);
              catch(IOException e){
                   e.printStackTrace();
                   System.out.println(e.toString());
              return fileok ? "ok" : "nok";
    CLass localfile Normal way
    import java.applet.*;
    import java.awt.*;
    import java.util.*;
    import java.lang.*;
    import java.text.*;
    import java.awt.event.*;
    import java.io.*;
    public class localfile extends Applet {
         public localfile() {
              Panel p = new Panel();
              Font f;
              String osname = System.getProperty("os.name","");
              if (!osname.startsWith("Windows")) {
                   f = new Font("Arial",Font.BOLD,10);
              } else {
                   f = new Font("Verdana",Font.BOLD,12);
              p.setFont(f);
              p.add(new Button("Open"));
              p.add(new Button("other"));
              p.setBackground(new Color(255, 255, 255));
         p.setSize(800, 800);
              add(p);
              setSize(800, 800);
              setVisible(true);
         public String isFileOk(){
                   System.out.println("OPEN CLICKED");
                   int arrlen = 10000;
                   byte[] infile = new byte[arrlen];
                   Frame parent = new Frame();
                   FileDialog fd = new FileDialog(parent, "Please choose a file:",
                   FileDialog.LOAD);
                   fd.show();
                   String selectedItem = fd.getFile();
                   if (selectedItem == null) {
                        // no file selected
                   } else {
                        if ((fd.getFile()).endsWith("txt") || (fd.getFile()).endsWith("text")){
                             File ffile = new File( fd.getDirectory() + File.separator +
                             fd.getFile());
                             // read the file
                             System.out.println("reading file " + fd.getDirectory() +
                             File.separator + fd.getFile() );
                             try {
                                  FileInputStream fis = new FileInputStream(ffile);
                                  BufferedInputStream bis = new BufferedInputStream(fis);
                                  DataInputStream dis = new DataInputStream(bis);
                                  try {
                                       int filelength = dis.read(infile);
                                       String filestring = new String(infile, 0,
                                       filelength);
                                       System.out.println("FILE LENGTH=" + filelength);
                                       System.out.println("FILE CONTENT=" + filestring);
                                  } catch(IOException iox) {
                                       System.out.println("File read error...");
                                       iox.printStackTrace();
                             } catch (FileNotFoundException fnf) {
                                  System.out.println("File not found...");
                                  fnf.printStackTrace();
                        } else {System.out.println("Error this is not a txt file"); }
              return "turc";
         public boolean action(Event evt, Object arg) {
              if (arg.equals("Open")) {
                   System.out.println("OPEN CLICKED");
                   int arrlen = 10000;
                   byte[] infile = new byte[arrlen];
                   Frame parent = new Frame();
                   FileDialog fd = new FileDialog(parent, "Please choose a file:",
                   FileDialog.LOAD);
                   fd.show();
                   String selectedItem = fd.getFile();
                   if (selectedItem == null) {
                        // no file selected
                   } else {
                        if ((fd.getFile()).endsWith("txt") || (fd.getFile()).endsWith("text")){
                             File ffile = new File( fd.getDirectory() + File.separator +
                             fd.getFile());
                             // read the file
                             System.out.println("reading file " + fd.getDirectory() +
                             File.separator + fd.getFile() );
                             try {
                                  FileInputStream fis = new FileInputStream(ffile);
                                  BufferedInputStream bis = new BufferedInputStream(fis);
                                  DataInputStream dis = new DataInputStream(bis);
                                  try {
                                       int filelength = dis.read(infile);
                                       String filestring = new String(infile, 0,
                                       filelength);
                                       System.out.println("FILE LENGTH=" + filelength);
                                       System.out.println("FILE CONTENT=" + filestring);
                                  } catch(IOException iox) {
                                       System.out.println("File read error...");
                                       iox.printStackTrace();
                             } catch (FileNotFoundException fnf) {
                                  System.out.println("File not found...");
                                  fnf.printStackTrace();
                        } else {System.out.println("Error this is not a txt file"); }
              } else return false;
              return true;
    }

    Thx you were a great due to my big lak of java skills.
    i found the solutions and for those who are interrested here is the code:
    public String isFileOk(final String filepath){
              System.out.println("OPEN file=" + filepath);
              int arrlen = 10000;
              byte[] infile = new byte[arrlen];
                        try {
                   FileInputStream fis = (FileInputStream) AccessController.doPrivileged(
                   new PrivilegedExceptionAction() {
                   public Object run() throws FileNotFoundException {
                   return new FileInputStream(filepath);
                             BufferedInputStream bis = new BufferedInputStream(fis);
                             DataInputStream dis = new DataInputStream(bis);
                             try {
                                  int filelength = dis.read(infile);
                                  String filestring = new String(infile, 0,
                                  filelength);
                                  System.out.println("FILE LENGTH=" + filelength);
                                  System.out.println("FILE CONTENT=" + filestring);
                             } catch(IOException iox) {
                                  System.out.println("File read error...");
                                  iox.printStackTrace();
                             } finally {
                                  try {
                                       fis.close();
                                  } catch(IOException ioe) {
                                       //oops
                   } catch (PrivilegedActionException e) {
                   // e.getException() should be an instance of FileNotFoundException,
                   // as only "checked" exceptions will be "wrapped" in a
                   // PrivilegedActionException.
                   //throw (FileNotFoundException) e.getException();
                        e.printStackTrace();
                        return "nok";
                   return "ok";
         }

  • Access PXI chassis resources via LAN and MXI?

    I have a PXI chassis that I access from an external PC via MXI. I would like to have remote access to the PXI system from another PC on the network. [How] can I do this?

    This really depends on what you mean by remote access. If you want to see what's running on the external PC you can use remote desktop (a summary of setting this up is below). If you're running LabVIEW and want to see a VI you could try "remote panel connection" in the tools menu.
    To use remote desktop the external PC needs to be running WinXP Pro (and the other PC needs a version of WinXP).
    To enable remote desktop on the external PC, go to "system properties" (right-click on "my computer" and select "properties"), and enable it on the "remote" tab.
    From the other PC, go to start->all programs->accessories->communications->remote desktop connection.

  • Can access domain network resources while logged on as a local administrator on a workstation.

    Please help me in figuring this one out.
    I have a Server 2003 R2 domain with a bunch of workstations and some servers having the same local admin password.
    I know it is not good practice, but that's an issue of it's own.
    The issue is that when I log on as that local admin (WORKSTATION\Administrator) I can suddenly browse to ALL the hidden shares(c$, d$) of ALL the servers and workstations that have the same local admin password. If I change password or disable that account
    the symptom goes away.  I though if I do try accessing hidden shares it should still ask me for credentials, after all these are local credentials on DIFFERENT machines. I checked to make sure that the credentials are not cached and as far as I can tell
    they are not. This really freaks me out.
    This is kind of a big deal because even if I change local passwords on servers, I'm not sure we will be setting up different local Administrator password for each workstation.
    My question is: Is this the a normal/documented Windows behavior? If not why is this happening? Can someone please explain how is this possible?

    Yes, this is the default behavior for workgroup machines - this is so-called pass-through authentication of the NTLM protocol. You can lock down the usage of NTLM with policies.
    I have accidentally just tested pass-through authentication as I am working on a solution that involves a bunch of servers that are not in a domain. Without this sort of authentication you could not do authentication easily against another machine in such
    an environment.
    Admin power is limited though: Even if the user in question is admin on both machines and you try to remotely reset a password in an admin cmd session (e.g. using pspasswd) it will fail because of UAC per default - unless you tweaked UAC or related registry
    keys.
    I tried to find some official documentation: In
    this book (hope it works - link to page via Google books) on Windows security pass-through is explicitly mentioned as the method used in a workgroup environment, this
    MS support article explains NTLM passthrough authn in a domain environment.
    I have seen some articles that say that NTLM is locked down per default on newer OS - but I can confirm if works if e.g. connecting from a W2K8 R2 server to a Windows 7 machine (both workgroup machines, no domain policies applied).
    Elke

  • Accessing APP_USER and APP_SESSION via javascript

    G'day All,
    I've tried a couple of ways based on results from google this forum to access APP_USER and APP_SESSION with in javascript.
    The answer must not be to just pass it in as a parameter as I'm overriding "showHide" function for the the "Show Hide region" to record if the region was shown or not so that when the page is refreshed the regions will open automatically.
    I've tried to just simply try for example: alert('app_user: #APP_USER# app_session: #APP_SESSION#') but it does not work they way I ant it :(
    Can any one help please.
    Regards
    Mark

    Hello,
    You should take a look at this
    http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STICKY
    It is example code of doing exactly that. At the moment it is per session but it should be pretty easy to extend to save that into a user table. You won't need to access those variables on the client side but can do it in the OnDemand Process.
    Carl

  • Post laptop crash: form won't submit/can't access network resource

    I distributed a form on 5/12 through the 'distribute form wizard' in Acrobat 9 Pro. On 5/14 my laptop motherboard fried. We retrieved my data & imaged another computer, but then my responses file seemed to have issues, not wanting to import any responses, and it appeared I'd lost data. Fastforward to today: I have my laptop back w/new motherboard, and the original responses file is intact including data from responses made last week before the crash. Form submission deadline was yesterday, and I'm missing responses I expected to have by now. I used the link to checkout the form's condition and filled it out myself and learned it can't be submitted.Error msg: 'Acrobat could not submit your data. Please see Tracker for more information.' Tracker says Could not access the network resource.
    So the question is..... how do I fix this, and can I repair this without notifying all the people or what? This is critical - I'd done so much testing before distributing the form, but who would have known the end was near for my motherboard? I'm assuming that incident had something to do with all this, although I'm not sure I understand exactly why. Please help...thanks! --Karen <>

    Hi.  I have had very similar problems and have not received any help at all.  Have you?

  • When accessing shared folder - 'You might not have permission to use this network resource" .. A device attached to the system is not functioning

    On a Windows 2008 R2 server that had been working fine, all of a sudden some shared folders became inaccessible.  Clicking on them returned the following: "<Folder> is not accessible.  You might not have permission to use this network
    resource.  A device attached to the system is not functioning."
    If I create another share with a different name for that same folder, it works fine.  If I delete the original share then recreate it with the same name, I get the same error.  However, if I right click on the problematic share and select 'map
    network drive' that works.  So this would not appear to be a permission issue.
    I discovered this problem because the path for mapping the home folder as a property of their AD account stopped working.
    I have tried most of the common things found on the internet.  I've tried accessing via IP, same issue.  While I only have a couple 2003 servers, those can access this resource.
    At this point, I'm pretty much out of ideas.  Any help would be appreciated.  I also have some reports of potential issues with some printer mappings too which I will have to investigate in the morning.
    If anyone has a solution to this I would be extremely grateful.  Thank you.

    Hi,
    Can you access the shard folder locally? Is a specific server cannot access the shared folder? Please try to Boot your server in Clean Mode to check if some third-party software cause the issue.
    How to perform a clean boot in Windows
    http://support.microsoft.com/kb/929135
    Best Regards,
    Mandy
    If you have any feedback on our support, please click
    here .
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Strange network resource display, no AFP but get SMB/FTP access.

    On a Mac OS X 10.4.6 system, when the network resources are accessed via the finder or the 'go' menu option, the system seems only able to access SMB or FTP shares, even though the corresponding machine is an Mac OS X 10.4.6 system
    and shares AFP volumes with other Mac OS X 10.4.6 systems.
    For example:
    On the broken machine, I have:
    Network->My Network->Big_Machine
    Network->My Network->Big_Machine
    Network->WinNet->Big_Machine
    Network->WinNet->BigJunkWindows
    When I access, say the first item in 'My Network', I get a FTP access dialog. When I access the Second item, I get the SMB dialog.
    When I access the Big_Machine in the WinNet, I get the SMB dialog.
    Needless to say, on a 'working' system accessing 'Big_Machine', I get the AFP
    dialog under "My Network", and the SMB dialog under the WinNet.
    ... and further... 'My Network' is not the name of the WinNet...
    Any clues appriciated...
    John Clark

    It's not that AFP is messed up. I can access the machine via AFP from other machines. It's the stuff that is in the finder window that seems to be 'really' confused.
    I'll have to test this when I get to the machine, but as I recall, if I explicit use the 'go' menu, then explicitly use 'afp://192.168.0.153' to access the remote machine, this works, and gives me the AFP prompt.
    The behavior seems to indicate that the finder has recorded some 'path/url' wrongly, and refuses to be refreshed.

  • I am having trouble accessing the iTunes store via iTunes.  It shows an error message "iTunes could not connect to the iTunes Store.  The network connection timed out..." There is nothing wrong with my connection and I also can't update apps in the app st

    I am cannot access the iTunes store via iTunes on my PC and also can not update to 10.6.3.  It keeps telling me that my connection has times out and/or check my settings.  There is nothing wrong with my setting.  I am also having trouble with the app store on my iPhone 4s and can not update apps.
    I have signed out of itunes and now cannot sign in again.

    I feel you pain i'm haveing the same problems here.
    iTunes could not connect to the iTunes Store. The
    network connection timed out.
    Make sure your network settings are correct and your network
    connection is active, then try again.
    does anyone plz have some insight for us.

  • ISE Admin Menu Access Policy and Network Resources

    Hello Board,
    Does someone experience the same issue as me, if using an Admin Menu Access Policy?
    First of all, I'm using the latest ISE release (1.1.3.124 with patch 1).
    I created a custom Administrator Menu Access Policy (Admin Access -> Authorization -> Permissions -> Menu Access).
    But basically I allowed (show) all menu items.
    Then I bind this permission profile to an Admin Authorization Policy
    Everything works very well, but I have issues, if I want to administer "Network Resources", if I'm using this admin menu access
    - In "Network Devices", there is no Menu bar (no "add", "delete" or "edit" button)
    - In "Network Device Groups", there is just the folder "Groups" on the left side, but there is no way to create anything or navigate into the groups
    I'm not quite sure if this is a configuration fault on my side or just some kind of bug.
    By the way - I'm using the latest firefox.

    As far as I know everything seems fine to me from the configuration  side. You can try downgrading the ISE version to 1.1.2 patch 5 and also  try changing the browser which might help.

  • Accessing Properties of Individual Tool Buttons via JavaScript

    Hi all!
    I am new to both this forum and scripting Acrobat so please excuse me if the question sounds naive.
    I am trying to find a way to access the properties of individual tool buttons via JavaScript (if there is one). I could not find it yet in JS API Reference. If anybody can help me or direct me to the right way, I will greatly appreciate that.
    For example, in 'Comment & Markup' toolbar one can right-click and change the 'Tool Default Properties' of various markup tools like Highlighter, Line, Rectangle etc. Is it possible to access these properties through JavaScript so that buttons can be added for dynamically changing these? Hope this makes sense!
    Thanks in advance for your interest and help.
    John.

    Hi Andy, thanks for the answer. It was pretty simple - I just added an authorization scheme to the report column, wehre the javascript is executed. Christof

  • HT4623 I just updated my iPad 3 but myI just updated my iPad 3 but myiPhone 5 keep giving me a error message.  I don't have permission to access the requested resource, from iPhone and via my Apple Mac??????

    I just updated my iPad 3 but myI just updated my iPad 3 but myiPhone 5 keep giving me a error message.  I don't have permission to access the requested resource, from iPhone and via my Apple Mac??????

    If you think this is a bug, you can report it here:
    Apple - Mac OS X - Feedback

  • Can not access home network via ipod touch, password entered  not accepted

    Can not access home network via ipod touch, password entered not accepted
    Trying to help my son set up his ipod touch to connect to the network and the password I entered is not accepted.
    1. Which password is required? I entered the password I use for logging into my router
    2. The home network is recognized, when selected it requires a password to be entered, but I am just not sure what password it is looking for to connect.
    I have not been able to find any information on this subject

    jersey0904, Welcome to the discussion area!
    You need to enter the wireless encryption password... not the administrative password for the router.

  • Setting up two separate networks with access to shared resources

    Hi all,
    We have a two separate businesses in the same building who will both need access to shared resources and the same internet connection. They will need to remain on separate subnets and cannot communicate directly to each other. The current switch is a Cisco ESW-520-48P and we are looking at purchasing an SG-300-20P for the new business moving in. Heres how we envisage setting it up:
    ESW-520 will host Company A's network. Workstations, servers etc
    SG-300 will have two VLANS. VLAN1 will host all Company B's network. Workstations, servers etc. VLAN2 will host the shared resources such as printers.
    The internet gateway is a UNIX based system with 3 NICS. 2 NICS are taken up by ADSL connections while the other NIC is the LAN, which would connect to VLAN2 on the SG-300. We would like to define which ADSL connection to route through depending on which subnet traffic is originating.
    The ESW-520 will need access to the shared resources and internet gateway on VLAN2 on the SG-300.
    Will this be possible with these two switches? Would this be the best way to go about it?
    Appreciate any recommendations you can provide.
    Thanks,
    Tom

    Hi Tom,
    Thanks for confirming that. The SG-300 will be set in layer 3 mode. In regards to the ESW-520, will this just connect to one of the VLAN2 ports on the SG-300?
    The default gateway for devices in Company A's network will be the ESW-520, which will have a static route to the VLAN2 subnet.
    The default gateway for devices in Company B's network will be VLAN2 IP on the SG-300.
    Does this sound correct?
    Also as long as there are no routes setup between Company A and Company B's subnets, there won't be any traffic passing through such as DHCP acks etc?
    Thanks again,
    Tom

  • Home Sharing Problem: "You do not have permission to access the requested resource"

    This problem has been posted numerous times here with not one single answer that I can find. Not only does it take about fifteen minutes for Home Sharing to load on my iPad, once it does load I get the "You do not have permission to access the requested resource" when I try to play any video. I've tried resetting everything. Even home videos won't play via Home Sharing. Is there a known bug that someone can tell me about? Or is Home Sharing on iPad just broken.
    Possibly related: videos that play on my iPhone on Facebook won't play on my iPad. The iPad is newer and more powerful, you think it would be the other way around. I have never used a jail break on anything. I have never installed any kind of security software.
    iPhone 4, iPad 3, mid-2010 27" iMac, Airport Extreme all on the same network with the same iCloud ID.

    I have been having the same issues on all my iPads / iPhones and can't come up with much info either.
    I just seemed to fix it by quitting the app on the device, changing my wifi network to the 5Ghz band and retrying. Loads quick and plays every time (for the last 5 minutes at least)
    I did read that there is a bug, in that if you close down the app after you have watched the video(s) you won't get the "permission" error. Seems to be working.
    Not super helpful but I feel your pain.

Maybe you are looking for