FilePermissions

Im trying to make an applet that will read from a file, but, since applets dont allows for that, i need to give it permissions. Unfortuently i dont know how to use FilePermmissions to do this. i think this is what i do but im not sure
     FilePermission fi = new FilePermission("C:/Temp/file", "Read");Can someone help me or point me to a tutorial that shows me how to do this in java?

If i sign it does it automatically give it permissions? No. What happens next is that somebody loads the page that includes your applet. The browser notices that it's a signed applet and it puts up a dialog telling the user that the applet is requesting permission to do whatever it was you asked for when you signed the applet. If the user accepts, then your applet has those permissions. If the user refuses, then it doesn't.
You probably haven't thought through the implications, but if you do you should realize there is nothing you can do that will automatically give you permission to do unsafe things on somebody else's computer. Frankly if you hadn't heard that there are people out there who want to break into other people's computers and install harmful software on them -- something you could do with a signed applet -- then you shouldn't be developing web software just yet. But I'm sure you had heard that, you just didn't make the connection to your own activities. Locks work equally against bad guys and good guys.

Similar Messages

  • Java applet IO Filepermissions

    From what I understand, all a local applet needs to write to a local file is granted permission. I have 2 files. Both are located in the directory "C:\Documents and Settings\Soots\Desktop":
    Stuff.txt - Blank document.
    TestWriter.java - Java applet containing one button that when clicked, writes some text to the file Stuff.txt
    C:\Program Files\Java\jre1.5.0_11\lib\security\java.policy:
    http://img.photobucket.com/albums/v490/Soots/PolicyTool.jpg
    http://img.photobucket.com/albums/v490/Soots/PolicyEntry.jpg
    C:\Documents and Settings\Soots\Desktop\TestWriter.java:
    //Java applet that Writes "TestingOutStream" to a text file called Stuff.txt
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    import java.io.*;
    public class TestWriter extends Applet implements ActionListener
         private Button myButton;
         public void init()
              myButton = new Button("Click Here to write to Stuff.txt");
              myButton.addActionListener(this);
              add(myButton);
         } //init()
         public void actionPerformed (ActionEvent e)
              if (e.getSource() == myButton)
                   try {
                        FileWriter outStream = new FileWriter("Stuff.txt"); //create stream and open File Stuff.txt
                        outStream.write("TestingOutStream"); //Write the text TestingOutStream
                        outStream.close(); //Close the output stream
                   } catch (IOException i) {
                        System.out.println("IOERROR: " + i.getMessage() + "\n");
                        i.printStackTrace();
              } //if
              else
              System.out.println("Somthing else was clicked");
         } //actionPerformed()
    } //FirstApplet classException:
    http://img.photobucket.com/albums/v490/Soots/JavaSecurityException.jpg
    The policy in the policy file should grant the TestWriter.java the ability to write to Stuff.txt but the exception says otherwise. One more thing, does anyone know how to turn on full trace using Windows XP jre1.5.0_1? I have no jpicpl32.exe that I can find.

    From what I understand, all a local applet needs to write to a local file is granted permission. I have 2 files. Both are located in the directory "C:\Documents and Settings\Soots\Desktop":
    Stuff.txt - Blank document.
    TestWriter.java - Java applet containing one button that when clicked, writes some text to the file Stuff.txt
    C:\Program Files\Java\jre1.5.0_11\lib\security\java.policy:
    http://img.photobucket.com/albums/v490/Soots/PolicyTool.jpg
    http://img.photobucket.com/albums/v490/Soots/PolicyEntry.jpg
    C:\Documents and Settings\Soots\Desktop\TestWriter.java:
    //Java applet that Writes "TestingOutStream" to a text file called Stuff.txt
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    import java.io.*;
    public class TestWriter extends Applet implements ActionListener
         private Button myButton;
         public void init()
              myButton = new Button("Click Here to write to Stuff.txt");
              myButton.addActionListener(this);
              add(myButton);
         } //init()
         public void actionPerformed (ActionEvent e)
              if (e.getSource() == myButton)
                   try {
                        FileWriter outStream = new FileWriter("Stuff.txt"); //create stream and open File Stuff.txt
                        outStream.write("TestingOutStream"); //Write the text TestingOutStream
                        outStream.close(); //Close the output stream
                   } catch (IOException i) {
                        System.out.println("IOERROR: " + i.getMessage() + "\n");
                        i.printStackTrace();
              } //if
              else
              System.out.println("Somthing else was clicked");
         } //actionPerformed()
    } //FirstApplet classException:
    http://img.photobucket.com/albums/v490/Soots/JavaSecurityException.jpg
    The policy in the policy file should grant the TestWriter.java the ability to write to Stuff.txt but the exception says otherwise. One more thing, does anyone know how to turn on full trace using Windows XP jre1.5.0_1? I have no jpicpl32.exe that I can find.

  • Error while installing OBI 11.1.1.5

    OS: Solaris 10.9
    Processors: X86
    The installation is hanging in the process "Creating BI Cluster Controller System Component". After a failed retry we tried with a "Continue", but failed in the next installation part "Merging PolicyStore application stripe" again.
    The outfile (tail) tells the following:
    [2011-06-27T10:44:28.223+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [biSchedulerPort]: [9705]
    [2011-06-27T10:44:28.224+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Default port for component coreapplication_obiccs1is9706
    [2011-06-27T10:44:28.224+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Allocated port for component coreapplication_obiccs1is9706
    [2011-06-27T10:44:28.224+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: isPortAvailable] ENTRY
    [2011-06-27T10:44:28.224+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: isPortAvailable] RETURN
    [2011-06-27T10:44:28.224+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Allocating port for end point: coreapplication_obiccs1, default: 9706
    [2011-06-27T10:44:28.224+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: findAvailablePort] ENTRY
    [2011-06-27T10:44:28.225+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: findAvailablePort] RETURN
    [2011-06-27T10:44:28.225+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: recordPortUsage] ENTRY
    [2011-06-27T10:44:28.225+02:00] [as] [TRACE] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.as.config.impl.PortTracker] [SRC_METHOD: addPort] Port tracker adding port: 9706 for coreapplication_obiccs1 / coreapplication_obiccs1
    [2011-06-27T10:44:28.225+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.as.config.impl.PortTracker] [SRC_METHOD: addEntry] Adding port 9706 usage entry for endpoint coreapplication_obiccs1 of component coreapplication_obiccs1.
    [2011-06-27T10:44:28.226+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: recordPortUsage] RETURN
    [2011-06-27T10:44:28.226+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Allocated port: 9706
    [2011-06-27T10:44:28.226+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Allocated standard port 9706 for component coreapplication_obiccs1
    [2011-06-27T10:44:28.226+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: isPortAvailable] ENTRY
    [2011-06-27T10:44:28.226+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: isPortAvailable] RETURN
    [2011-06-27T10:44:28.226+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Allocating port for end point: coreapplication_obiccs1-monitor, default: 9700
    [2011-06-27T10:44:28.227+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: findAvailablePort] ENTRY
    [2011-06-27T10:44:28.227+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: findAvailablePort] RETURN
    [2011-06-27T10:44:28.227+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: recordPortUsage] ENTRY
    [2011-06-27T10:44:28.227+02:00] [as] [TRACE] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.as.config.impl.PortTracker] [SRC_METHOD: addPort] Port tracker adding port: 9700 for coreapplication_obiccs1 / coreapplication_obiccs1-monitor
    [2011-06-27T10:44:28.228+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.as.config.impl.PortTracker] [SRC_METHOD: addEntry] Adding port 9700 usage entry for endpoint coreapplication_obiccs1-monitor of component coreapplication_obiccs1.
    [2011-06-27T10:44:28.228+02:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: recordPortUsage] RETURN
    [2011-06-27T10:44:28.228+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Allocated port: 9700
    [2011-06-27T10:44:28.228+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Allocated monitor port 9700 for component coreapplication_obiccs1
    [2011-06-27T10:44:28.228+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Recording mbean em property: originalAllocatedPort with value: 9706
    [2011-06-27T10:44:28.228+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Recording mbean em property: originalAllocatedMonitorPort with value: 9700
    [2011-06-27T10:44:28.229+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Validating component: class oracle.bi.management.agentcore.impl.clustercontroller.BIClusterControllerManager
    [2011-06-27T10:44:28.229+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Creating component: class oracle.bi.management.agentcore.impl.clustercontroller.BIClusterControllerManager
    [2011-06-27T10:44:28.229+02:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Creating directory: /opt/aadvr/middleware/instances/instance1/bifoundation/OracleBIClusterControllerComponent/coreapplication_obiccs1
    [2011-06-27T10:44:28.229+02:00] [as] [TRACE:16] [] [oracle.as.install.bi.util] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.as.install.bi.util.FilePermissions] [SRC_METHOD: setNormalDirPermissions] Setting Normal permissions on: /opt/aadvr/middleware/instances/instance1/bifoundation/OracleBIClusterControllerComponent/coreapplication_obiccs1
    [2011-06-27T10:44:28.229+02:00] [as] [TRACE:16] [] [oracle.as.install.bi.util] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] [SRC_CLASS: oracle.as.install.bi.util.FilePermissionsHelper] [SRC_METHOD: execHelperWithoutTimeout] Executing command: /bin/chmod g-w,o-rwx /opt/aadvr/middleware/instances/instance1/bifoundation/OracleBIClusterControllerComponent/coreapplication_obiccs1 ...
    [2011-06-27T10:44:28.297+02:00] [as] [ERROR] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Unexpected error creating BI component
    [2011-06-27T10:44:28.298+02:00] [as] [ERROR] [] [oracle.as.config] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] java.io.IOException: Cannot run program "/bin/chmod": error=12, Not enough space
    [2011-06-27T10:44:42.969+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Running script /opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh
    [2011-06-27T10:44:42.969+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Parameters : [opt/aadvr/middleware/oracle_common/modules/oracle.jps_11.1.1/common/wlstscripts/migrateSecurityStore.py][-type][policyStore][-configFile][opt/aadvr/middleware/user_projects/domains/bifoundation_domain/config/fmwconfig/bi-policystoremerge-jpscfg.xml][-src][XMLSourceContext][-dst][XMLDestinationContext]
    [2011-06-27T10:47:15.821+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Running script /opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh
    [2011-06-27T10:47:15.822+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Parameters : [opt/aadvr/middleware/oracle_common/modules/oracle.jps_11.1.1/common/wlstscripts/migrateSecurityStore.py][-type][policyStore][-configFile][opt/aadvr/middleware/user_projects/domains/bifoundation_domain/config/fmwconfig/bi-policystoremerge-jpscfg.xml][-src][XMLSourceContext][-dst][XMLDestinationContext]
    [2011-06-27T10:48:03.515+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Running script /opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh
    [2011-06-27T10:48:03.516+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Parameters : [opt/aadvr/middleware/oracle_common/modules/oracle.jps_11.1.1/common/wlstscripts/migrateSecurityStore.py][-type][policyStore][-configFile][opt/aadvr/middleware/user_projects/domains/bifoundation_domain/config/fmwconfig/bi-policystoremerge-jpscfg.xml][-src][XMLSourceContext][-dst][XMLDestinationContext]
    [2011-06-27T10:53:12.059+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Running script /opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh
    [2011-06-27T10:53:12.060+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Parameters : [opt/aadvr/middleware/oracle_common/modules/oracle.jps_11.1.1/common/wlstscripts/migrateSecurityStore.py][-type][policyStore][-configFile][opt/aadvr/middleware/user_projects/domains/bifoundation_domain/config/fmwconfig/bi-policystoremerge-jpscfg.xml][-src][XMLSourceContext][-dst][XMLDestinationContext]
    [2011-06-27T10:57:34.974+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Running script /opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh
    [2011-06-27T10:57:34.975+02:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 35] [ecid: 0000J3GDbm02rIUsa4nZ5q1E23jy00000Q,0] Parameters : [opt/aadvr/middleware/oracle_common/modules/oracle.jps_11.1.1/common/wlstscripts/migrateSecurityStore.py][-type][policyStore][-configFile][opt/aadvr/middleware/user_projects/domains/bifoundation_domain/config/fmwconfig/bi-policystoremerge-jpscfg.xml][-src][XMLSourceContext][-dst][XMLDestinationContext]
    The logfile (tail) tells the following:
    Executing Task: Merging PolicyStore application stripe
    oracle.as.install.bi.scripts.WebLogicScriptException: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:44)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptImpl.runWithRunner(WebLogicScriptImpl.java:49)
    at oracle.as.install.bi.biconfig.standard.WLSTScriptTask.doExecute(WLSTScriptTask.java:94)
    at oracle.as.install.bi.biconfig.standard.MergePolicyStoreTask.doExecute(MergePolicyStoreTask.java:63)
    at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
    at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
    at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:112)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:69)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:39)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:40)
    ... 15 more
    Caused by: java.io.IOException: error=12, Not enough space
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 18 more
    oracle.as.install.bi.scripts.WebLogicScriptException: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:44)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptImpl.runWithRunner(WebLogicScriptImpl.java:49)
    at oracle.as.install.bi.biconfig.standard.WLSTScriptTask.doExecute(WLSTScriptTask.java:94)
    at oracle.as.install.bi.biconfig.standard.MergePolicyStoreTask.doExecute(MergePolicyStoreTask.java:63)
    at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
    at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
    at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:112)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:69)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:39)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:40)
    ... 15 more
    Caused by: java.io.IOException: error=12, Not enough space
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 18 more
    oracle.as.install.bi.scripts.WebLogicScriptException: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:44)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptImpl.runWithRunner(WebLogicScriptImpl.java:49)
    at oracle.as.install.bi.biconfig.standard.WLSTScriptTask.doExecute(WLSTScriptTask.java:94)
    at oracle.as.install.bi.biconfig.standard.MergePolicyStoreTask.doExecute(MergePolicyStoreTask.java:63)
    at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
    at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
    at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:112)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:69)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:39)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:40)
    ... 15 more
    Caused by: java.io.IOException: error=12, Not enough space
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 18 more
    oracle.as.install.bi.scripts.WebLogicScriptException: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:44)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptImpl.runWithRunner(WebLogicScriptImpl.java:49)
    at oracle.as.install.bi.biconfig.standard.WLSTScriptTask.doExecute(WLSTScriptTask.java:94)
    at oracle.as.install.bi.biconfig.standard.MergePolicyStoreTask.doExecute(MergePolicyStoreTask.java:63)
    at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
    at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
    at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:112)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:69)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:39)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:40)
    ... 15 more
    Caused by: java.io.IOException: error=12, Not enough space
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 18 more
    oracle.as.install.bi.scripts.WebLogicScriptException: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:44)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptImpl.runWithRunner(WebLogicScriptImpl.java:49)
    at oracle.as.install.bi.biconfig.standard.WLSTScriptTask.doExecute(WLSTScriptTask.java:94)
    at oracle.as.install.bi.biconfig.standard.MergePolicyStoreTask.doExecute(MergePolicyStoreTask.java:63)
    at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
    at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
    at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:112)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.io.IOException: Cannot run program "/opt/aadvr/middleware/Oracle_BI1/common/bin/wlst.sh": error=12, Not enough space
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:69)
    at oracle.as.install.bi.util.Exec.runCommandSynchronously(Exec.java:39)
    at oracle.as.install.bi.scripts.impl.WebLogicScriptRunnerImpl.run(WebLogicScriptRunnerImpl.java:40)
    ... 15 more
    Caused by: java.io.IOException: error=12, Not enough space
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 18 more
    We have enough space in our swapfile and the process itself (more than 500MB left) !
    Anybody got in idea ?

    Hello,
    Did you ever get this resolved. I'm having the same issue on SPARC64.
    Thanks

  • How is permissions handled in 10.9 for the root

    Just got a new iMac, did not migrate to it set up fresh, running 10.9.2 (my first 10.9 machine)
    Can someone explain how the system is working now.
    If I open the hard drive I seem to not be able to write to it, it's locked, if I see the info on the volume I see "everyone" is read only and I also see a "user" called wheel. Why and what is that?
    I dont want to change it just wondering why this is the way for 10.9?
    I have a couple of external drives attached and one does not show me any kind of lock on the root of it, the other drive is a Time Machine backup drive and this IS locked to me with the same permission as the boot drive.
    Of course if I go into any of my home folder I can write to them and only see myself and system have permissions.
    And if I copy or create a new folder in the root hard drive it wants my password and woill let me do it.

    Here, read up on Posix permissions: http://content.hccfl.edu/pollock/aunix1/filepermissions.htm
    Where it says everyone in the Finder is really the Other permissions. I think Apple using "everyone" creates some consternation as it implies the entire world can read those files. However, it is only other logged in users that are not the owner and not part of the group.
    Wheel isn't a user, but a group. The root of the hard drive is owned by root (indicated as System in Finder), and is part of the Wheel group.
    As that linked article states, the owner can do anything with a file or folder. Members of the group assigned to the folder can do whatever permissions the group is assigned for that file (any combination of read, write, execute). Any other logged in user can do what is assigned to Others (everyone).
    You cannot put things at the root of your Hard Drive because that is owned by root and all others can only read that folder, even other members of the wheel group.
    As to why wheel, the answer posted here seems the most plausible: http://superuser.com/questions/191955/what-is-the-wheel-user-in-os-x
    Also, you can't just paste a picture into these forums (although it looks like it will work). You have to upload the picture using the Camera icon in the toolbar.

  • Security restrictions , how to read access a txt file supplied in a jar

    I had written a simple application which uses file handling to display random line from a file on a swing window
    but I do not know how to give my web application permission to access a file
    when I set security permission to all, then error says the application cannot load because the code require unrestricted acess to system resources and is unsigned, I don't know how to get that certificate and I am only doing it for learning purposes.
    when I remove security permissions then it says
    access denied java.io.FilePermissions geekjoskes.txt readPlease help
    I locally signed the jar file, and give my jnlp fiel all permissions, worked fine in my system but when I access same file from local lan it sho errors ,
    please help, I have my txt file stored in my jar file with main class
    the whole jnlp file is
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for geek jokes -->     
    <jnlp spec="1.0+"
           codebase="http://localhost/javasoft/webstart/"
          href="geekjokes.jnlp">
       <information>
          <title>Geek Jokes</title>
          <vendor>Vaibhav Mishra</vendor>
          <description>Geeky jokes</description>
          <homepage href="http://scjpbeginner.blogspot.com"/>
          <description kind="short">shows random jokes</description>
          <offline-allowed/>
       </information>
       <resources>    
            <jar href="GeekJokes0.1.jar"/>  
         <j2se version="1.6+"
               href="http://java.sun.com/products/autodl/j2se"/>
         <icon href="geekjokes.gif"/>
       <icon kind="splash" href = "geekjokes.gif"/>
       </resources>
       <security>
          <all-permissions/>
       </security>
       <offline-allowed/>  
       <application-desc main-class="GeekJokes"/>
    </jnlp>Edited by: 76jsr on Aug 7, 2008 3:45 PM
    Edited by: 76jsr on Aug 7, 2008 3:49 PM

    >
    I am extremely thankful to you and finally my first little app is working thanks to you,
    here is it's link
    [http://profile.iiita.ac.in/IIT2006117/javasoft/webstart/geekjokes/geekjokes.jnlp|http://profile.iiita.ac.in/IIT2006117/javasoft/webstart/geekjokes/geekjokes.jnlp] >
    I am glad you got it working! But that launch file is still slightly invalid.
    Here is a corrected, and slightly optimized (you can leave the prefix off the href, if it is the same as the codebase), version of it.
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for GeekJokes 0.3 app -->
    <jnlp spec="1.0+"
          codebase="http://profile.iiita.ac.in/IIT2006117/javasoft/webstart/geekjokes"
          href="geekjokes.jnlp">
       <information>
          <title>GeekJokes App</title>
          <vendor>Vaibhav Mishra</vendor>
          <homepage href="http://scjpbeginner.blogspot.com"/>
          <description>Geeky Jokes</description>
          <description kind="short">Cshows random jokes</description>
          <offline-allowed/>
       </information>
       <resources>
           <j2se version="1.6+"
               href="http://java.sun.com/products/autodl/j2se"/>
           <jar href="GeekJokes0.3.jar"/>
       </resources>
       <application-desc main-class="Process"/>
    </jnlp>Very 'Geeky', BTW. ;-)
    Another few things I noted when I looked at it.
    1) There is a stray thread going after the JOptionPane is dismissed. The VM does not end, and the console (if you have it configured to pop-up for JWS apps.) stays on-screen.
    2) If all the jokes are prefixed by '* ' I would recommend removing it from every line of the source file and either re-adding it at runtime, or (preferably) not adding it at all (since it is redundant).
    3) Reconfigure the app. into a loop, and offer the user a JOptionPane with "Another Joke"/"End" instead of "OK".
    4) You can always remove that debugging line I inserted in the code to show the path to the Jar - it was just intended as a 'sanity check' during testing.
    5) Why is it Java 1.6+? JOptionPane was introduced in Java 1.2 with the first Swing implementations, and the I/O is compatible with Java 1.1.
    >
    Thanks again!!!!>Thanks are best expressed (to me) in the notation of a helpful/correct answer (which you have done), and the assignation of (the remaining) dukes*. ;-)
    * After all - checks the title - we have gotten entirely around those 'security restrictions' in a sandboxed application. The reason being that File objects are rarely the correct choice, for applets or JWS apps.

  • LightScript - Lightweight script to easily change screen brightness.

    Wiki: https://wiki.archlinux.org/index.php/LightScript
    AUR: https://aur.archlinux.org/packages.php?ID=62997
    Official site: http://haikarainen.dotgeek.org/lightscript/
    My first package, be gentle
    Created this script because of 3 reasons:
    1. KDE's controller for backlight is really buggy for me, makes it unusable.
    2. xbacklight does not work well with multiple controllers for the same device (I get 7 stages of resolution instead of 4882).
    3. I like scripting/doing my own work.
    What it does?
    LightScript automatically detects the best backlight-controller based off its precision/resolution, and uses that controller to set the backlight to a value you specify in percent.
    Example: "light 30" <- Set brightness to 30%
    If sudo is installed, it will attempt to use this instead of forcing root (so you wont have to type "sudo light x" instead of just "light x").
    It also has a default minimum-cap of 5%, since some controllers turn the display pitchblack on 0%. This behaviour can be overridden by changing /etc/lightscript/minlight
    Updates:
    Since version 0.3.6 the script now also takes + and - operators, so you can increase and decrease brightness instead of just giving a fixed value.
    It also checks for filepermissions on controllers before deciding wether to force root/use sudo etc.
    Example: "light 10+" <- Increase brightness by 10%
    0.3.6 also came with 2 small issues that is on my todolist; Firstly, typing "light +" or "light -" will give expr errors, nothing dangerous though. Secondly, the output on dynamic changes(with operators) might shift with 1-2% when mixed with regular changes. This is only what you see though, internally everything works fine, it will still write the correct values to the controllers.
    Since version 0.3.5 the script has undergone huge internal changes (basically rewrote big parts of the script to make it more consistant and futuresafe, removed dependencies, gave a prettier output as well as more information etc)
    Find any bugs? Have any feedback? Dont hesitate to reply
    PS. I am aware that this might not be preferrable to most people (if xbacklight/other software they use works well), I just want to share my work with the community (especially since it is my first real bash script, also I get to practice AUR-packaging for upcoming c++-made-software!)
    Last edited by Haikarainen (2012-10-01 17:50:18)

    The script has been successfully ported to an ANSI C89-program!
    Its commandline options is really different from lightscripts,  but internally it works the same way. I've also added functionality per requests I've gotten, I'll let the programs output speak for itself:
    fredrik@fredrik-arch ~/projects/light % ./light [20:07:53]
    Usage: light [-qcas] <value>
    -q: Run quiet, supresses output.
    -c: Prints the current brightness in percent and exits.(Not precise)
    -p: Prints the current brightness directly from controller and exits. (Precise)
    -m: Prints the max brightness directly from controller and exits. (To be used side-by-side with -p)
    -a: Add the value instead of setting it.
    -s: Subtract the value instead of setting it.
    <value> Brightness wanted in percent.
    I'll package this under a different name tomorrow(since it's now a completely different product), stay tuned!

  • Missing FilePermission

    Hi everybody,
    I'm facing a nasty problem that has to do with FilePermissions. I'm using J2EE RI V1.3 and SOAP V2.2 to build a simple web services on a W2K machine. I have successfully deployed the soap.war on my local host but as soon as I try to deploy any web service that comes with SOAP V2.2 package, I get the following message:
    Ouch, the call failed:
      Fault Code   = SOAP-ENV:Server
      Fault String = Error saving services registry: access denied (java.io.FilePermission d:\j2sdkee1.3\bin\DeployedServices.ds write)J2EE is using <J2EE_HOME>lib/security/server.policy where I have the following entry:
    grant codeBase "file:${com.sun.enterprise.home}/public_html/-" {
        permission java.io.FilePermission "<<ALL FILES>>", "read,write";
    };Shouldn't this entry allow the deployed soap code to access any file?
    Thanks,
    Enrico

    FYI, I found the cause of my problems: I had by mistake not only deployed soap.war but I had also included soap.jar in the j2ee classpath. At run time the jar code was used instead of the deployed war code. The former had no grants to read or write any file, in other words the security system is working correctly. Once I removed soap.jar from the classpath, I was able to successfully deploy my webservice.
    Enrico

  • Deleting specific sequence numbers

    Gurus!
    I have a scenario in which , I would like to revoke / delete the disabled java.io.filepermissions on a Specific Oracle9i Schema.
    i tried to delete the KEY values from DBA_JAVA_POLICY / USER_JAVA_POLICY
    then i came to a point that as these both are Views we cannt delete the data.
    So I tried to delete a specific sequence numbers ( 71 to 79) for a GRANTEE# number 31 from the base table that is java$policy$ but still am not able to . the errors SQL command terminated improperly ( somehting like that)
    Please help me out with this. as I already upset with this.

    You are not supposed to mess with the data dictionary, otherwise unexpected results may start to show up.
    Granting or revoking privileges must be done with proper commands provided explicilty for that pourpose.
    Verify database privileges here.
    ~ Madrid.

  • Programmatically write rmi.policy not working

    Hello there,
    I am trying to write rmi.policy programatically in my server class. I tried these options,
    System.setProperty("java.security.policy","C:\\Program Files\\eclipse\\security\\rmi.policy"); also
    Properties p = System.getProperties();
    p.setProperty("java.security.policy","C:\\Program Files\\eclipse\\security\\rmi.policy"); but it is giving me this error,
    java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)my propeties file is
    grant {
        permission java.net.SocketPermission "*:1024-65535",
            "connect,accept";
        permission java.net.SocketPermission "*:80", "connect";
    };Could you please let me know the solution for this?
    Actually I dont want to write any rmi.policy file how can I hardcode all security permissions in my server class itself?
    Thnaks
    Sat'n

    You don't need to write a security policy at all. I didn't want to bother with a policy file, so I just extended the java.lang.SecurityManager class. It allows much more control
    Here's a sample class:
    public class MySecurityManager extends SecurityManager {
    public void checkPermission(Permission perm) {
       if (perm instanceof ReflectPermission)  return;
       if (perm instanceof SerializablePermission) return;
        if (perm instanceof FilePermission) {
              FilePermission fileperm=(FilePermission) perm;
              String filename=fileperm.getName();
              String test = fileperm.getActions();
                    //don't allow files to be deleted
             if (test.indexOf("delete")==-1) return;
         //throw a security exception for anything you don't want to allow
         throw new SecurityException("access?"+perm.getClass().toString()+":"+ perm.getName());
    public void checkRead(FileDescriptor fd) {
        public void checkRead(String file, Object context) {
    }You basically want to have empty methods for anything you want to allow (in the security manager class, the default is to throw a security exception). Take a look at the javadoc for SecurityManager & decide what methods you want to allow. The class above allows all read access to a file. It doesn't allow files to be deleted. There are certain permissions, like reflect permission, that you have to allow in order for program to run!
    Play around with it, by setting the security Manager equal to an instance of the MySecurityManager.

  • Getting file read/write/execute permissions.

    How can I get the read, write, and execute permissions for either a named file, or a File? I'm only interested in the permissions exposed to whatever user is running the VM.
    System.getSecurityManager() either returns null or some default SecurityManager that denies everything... I guess you have to set that explicitly, which doesn't really help me here.
    I've been browsing through the docs but I can't find anything that returns a FilePermission. It's highly possible that I missed something, though.
    Thanks in advance,
    Jason Cipriani
    [email protected]
    [email protected]

    Thanks for replying.
    That was the first thing I looked out. As it turns out, FilePermissions aren't for getting permissions on named files. Rather, they are for dealing out permissions that you set yourself, or representing permissions internally. If you look at the constructor for java.io.FilePermission, you'll see that, in addition to a file name (which, btw, can be anything since the constructor throws no IOException), you must also provide a list of permissions.
    So, unfortunately, that class can't take a file name and provide you with a permission list... it's just there for you to use to store permission information.
    That frustrates me a lot, because the name, FilePermissions, makes it seem like the most promising class to use for my application.
    Thanks, though,
    Jason.

  • Setting file permission policies? Help!

    I'm developing a module that generates reports of data from a database. This module gives the user the oportunity to either preview the generated report, save the report to the local file system or print directlly to a system printer.
    The application is running through a J2EE web service, as an applet, and it's the save part I'm having trouble with. I'm using javax.swing.JFileChooser for easy locating the file in which to save the report, but there are missing FilePermissions. I'm guessing this has to be set on the client machine.
    The exception I'm getting is as follows:
    java.security.AccessControlException: access denied(java.util.PropertyPermission user.dir.read)
    What I want, is for the applet to automatically configure itself to be able to access the filesystem. I do not want the user to go to the trouble of generating policy files for himself, the applet must run the same way on all client machines.
    How can I do this?

    This is not under my control. My module is only one in several which make up a client-server application designed for a large coorporation. The desition has been made to run the application under Internet Explorers rule and I have to design my module accordinglly.
    Are there any ways around? To refrase the question slightlly... How can I use the JFileChooser through Internet Explorer?

  • Printer wakes OSX - annoying !

    My plugged Printer wakes up OS X after a second of sleeping.
    When the mac goes into sleep after a second it wakes up. The cause is the plugged printer.
    When unplugging the printer the mac stays asleep.
    Thats really annoying because that never happend before!
    I only tryed to share my printer in the network with Windows XP.
    This never worked, I don't know why.
    After getting tired of sharing my printer I set al adjustments back.
    Since this, the printer wakes the mac.....
    I've tried everything I found in discussions but nothing worked.
    I deleted plists, repaired filepermissions, installed combo update 10.4.11 again .... nothing worked
    Thats really annoying me and I'm not willing to unplug the printer everytime I put the mac into sleep, because it worked before!
    Please help me !
    Something abot my hardware:
    iMac G5 (without iSight)
    OS X 10.4.11 (with all updates)
    Canon Pixma iP4000 (USB, Driver Version 4.1.9)

    Considering you did not state what version of OS X you insgtalled it's a little tough to help you out. I'd start by using the  Reset Printing System feature

  • Problems with third party package and file access

    I am using a third party package that allows me to decode
    multipart forms that I use to upload files to our server.
    I have been able to write my own code (JSP) that both reads and
    writes to our filesystem. However, when I try to upload a file
    using the third party package the method I am using fails with
    the following IO exception: The error message is "access is
    denied." But the files get written and are usable (even binary
    files). I have checked the directories and all the dirs I am
    writing to have read, write and execute permission.
    I have access to the code so when I duplicate the actual
    methods used for writing (FileOutputStream.write(foo)) in my
    JSP, it writes fine without exceptions. In fact, I use
    FileOutputStream.write() in other code and it works fine. My
    question is: why would FileOutputStream work in packages we have
    developed and not in a third-party package. I have added the
    codebase and filePermissions to <weblogic_home>\weblogic.policy
    without any changes.
    I am running WLS 5.1 and NT 4.0 with SP5.
    Does this problem sound familiar to anyone?
    thanks for any and all help,
    saulj

    HI Mike,
    If you have third party Document Management System, then you can post two different message, i.e. service order in transaction details of the third party tool with link to document which would be posted to third party Document management server.
    If you don't have third party document management system and what to use sap infrastructure, then you don't need to maintain attachment, maintain the link between the third party tool and SAP document repository, with some login utilities.
    Best Regards,
    Pratik Patel.
    Reward with points if it is of any help to you!

  • OBIEE 11g Installing Failing on Configuring Domain

    Lenovo Thinkpad T400
    Windows XP SP3
    8GB RAM
    250GB
    My installing of OBIEE 11.1.1.6.0 fails on Step 13 of 14 Configuring Domain. I have done the following steps before the installation.
    Installed Microsoft Loopback Adapter
    Set User Environment Variables to C:\TEMP
    Set classpath to C:\Java\jdk1.7.0_05\bin (Made sure there were no spaces)
    My log files reads as follows:
    oracle.as.provisioning.util.ConfigException:
    Error while starting the domain.
    Cause:
    Starting the Admin_Server timed out.
    Action:
    See logs for more details.
         at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)
         at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3150)
         at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3040)
         at oracle.as.provisioning.engine.WorkFlowExecutor._startAdminServer(WorkFlowExecutor.java:1645)
         at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:635)
         at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
         at oracle.as.install.bi.biconfig.standard.StandardWorkFlowExecutor.executeHelper(StandardWorkFlowExecutor.java:31)
         at oracle.as.install.bi.biconfig.standard.DomainProvisioningTask.doExecute(DomainProvisioningTask.java:48)
         at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
         at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
         at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:113)
         at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
         at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
         at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
         at java.lang.Thread.run(Thread.java:662)
    [2012-08-12T21:55:18.265-06:00] [as] [ERROR] [] [oracle.as.provisioning] [tid: 26] [ecid: 0000J^TsEWp5yW^5xV_AiW1GA5kH00000H,0] [[
    oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
         at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:686)
         at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
         at oracle.as.install.bi.biconfig.standard.StandardWorkFlowExecutor.executeHelper(StandardWorkFlowExecutor.java:31)
         at oracle.as.install.bi.biconfig.standard.DomainProvisioningTask.doExecute(DomainProvisioningTask.java:48)
         at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
         at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
         at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:113)
         at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
         at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
         at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
         at java.lang.Thread.run(Thread.java:662)

    Hi All,
    Thanks for the response. Turns out I had to remove the underscore (_) from my computer name for the Configuring Domain process to work. Even though this worked, my OBIEE installation still failed at a later stage called PolicyStoreMerge. I have attached the log below.
    C:\OBIHOME\Oracle_BI1\opmn\conf\opmn.xsd
    [2012-08-13T16:50:38.046-06:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] Updating opmn.xml at: C:\OBIHOME\instances\instance1\config\OPMN\opmn\opmn.xml
    [2012-08-13T16:50:38.046-06:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] Snippet:[[
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <ias-component id="@BI_APPLICATION_NAME@_obiccs">
    <environment>
    <variable id="ORACLE_BI_OPMNMANAGED" value="true"/>
    <variable id="ORACLE_BI_APPLICATION" value="coreapplication"/>
    <variable id="ORA_NLS10" value="$ORACLE_HOME/nls/data"/>
    <variable id="PATH" value="$ORACLE_HOME/common/ODBC/Merant/5.3/Drivers$:$ORACLE_HOME/bifoundation/server/bin$:$ORACLE_HOME/bifoundation/web/bin$:$ORACLE_INSTANCE$:$ORACLE_HOME/lib" append="true"/>
    </environment>
    <process-type id="OracleBIClusterControllerComponent" module-id="CUSTOM">
    <module-data>
    <category id="start-parameters">
    <data id="start-executable" value="$ORACLE_HOME/bifoundation/server/bin/nqsclustercontroller.exe"/>
    <data id="no-stdio" value="true"/>
    </category>
    <category id="stop-parameters">
    <data id="stop-executable" value="integrator"/>
    </category>
    <category id="ping-parameters">
    <data id="ping-type" value="integrator"/>
    </category>
    <category id="ready-parameters">
    <data id="use-ping-for-ready" value="true"/>
    </category>
    </module-data>
    <start timeout="600" retry="1"/>
    <stop timeout="120"/>
    <restart timeout="720" retry="1"/>
    <process-set id="BIClusterController" numprocs="1"/>
    </process-type>
    </ias-component>
    [2012-08-13T16:50:38.078-06:00] [as] [TRACE:16] [] [oracle.as.install.bi.util] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.as.install.bi.util.FilePermissions] [SRC_METHOD: setNormalFilePermissions] Setting Normal permissions on: C:\OBIHOME\instances\instance1\config\OracleBIClusterControllerComponent\coreapplication_obiccs1\component-logs.xml
    [2012-08-13T16:50:38.078-06:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] Post-config component: class oracle.bi.management.agentcore.impl.clustercontroller.BIClusterControllerManager
    [2012-08-13T16:50:38.078-06:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] Recording mbean em property: EMTargetType with value: oracle_bi_cluster_controller
    [2012-08-13T16:50:38.078-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: onCreate] RETURN
    [2012-08-13T16:50:38.078-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.as.config.impl.OracleASComponentBaseImpl] [SRC_METHOD: registerComponent] Registering coreapplication_obiccs1 component
    [2012-08-13T16:50:38.078-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: registerComponent] ENTRY
    [2012-08-13T16:50:38.078-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.as.config.impl.RuntimeServiceConnectionWLS] [SRC_METHOD: connect] Creating connection to hello there weblogic.management.mbeanservers.runtime
    [2012-08-13T16:50:38.093-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.as.config.impl.AbstractRuntimeServiceConnection] [SRC_METHOD: invokeMBean] Invoking RegisterMBean operation: registerComponent
    [2012-08-13T16:50:38.125-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.as.config.impl.RuntimeServiceConnectionWLS] [SRC_METHOD: disconnect] Breaking connection to mbean server
    [2012-08-13T16:50:38.125-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: registerComponent] RETURN
    [2012-08-13T16:50:38.125-06:00] [as] [TRACE] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.as.config.utl.FileUtil] [SRC_METHOD: isWebsphereEnabled] Java property is not defined. isWebsphereEnabled=false
    [2012-08-13T16:50:38.125-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: reloadOpmn] ENTRY
    [2012-08-13T16:50:40.484-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.as.config.impl.OracleASComponentBaseImpl] [SRC_METHOD: reloadOpmn] Invoking opmn reload...
    [2012-08-13T16:50:56.171-06:00] [as] [TRACE:16] [] [oracle.as.config] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] [SRC_CLASS: oracle.bi.management.agent.api.install.ClusterControllerInstallHandler] [SRC_METHOD: reloadOpmn] RETURN
    [2012-08-13T16:50:56.406-06:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] Running script C:\OBIHOME\Oracle_BI1\common\bin\wlst.cmd
    [2012-08-13T16:50:56.406-06:00] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 24] [ecid: 0000J^Y8iMW5yW^5xV_AiW1GANBm00000F,0] Parameters : [C:\OBIHOME\oracle_common\modules\oracle.jps_11.1.1\common\wlstscripts\migrateSecurityStore.py][-type][policyStore][-configFile][C:\OBIHOME\user_projects\domains\bifoundation_domain\config\fmwconfig\bi-policystoremerge-jpscfg.xml][-src][XMLSourceContext][-dst][XMLDestinationContext]

  • "Date Modified" for all files being changed if "Automatically write to XMP" is on

    Recently upgraded from LR3 (v3.4.1) from LR2 on OSX 10.6.8 and have always had Catalog Settings > Automatically write changes into XMP turned on.
    When browsing existing JPG files in my Library (no Develop changes, no keywording, no Presets, no Import), LR3 is writing to disk — i.e., when I look at files in Finder, almost every viewed file’s “Date Modified” is being set to today’s date and time. (It actually creates a .swp file, then changes it's name back to .jpg)
    This is really bad, as it's making it impossible for me to use Finder to figure out when I last worked with a file, it is triggering needless Time Machine and Backblaze backups, and unnecessarily churning my disk.
    If I turn off "Automatically write..." this behavior stops. Per David Marx at thelightroomlab.com, I tried turning off this preference, manually doing a "Save Metadata to File" for all files, letting that complete, then turning the preference back on. This does not solve the problem.
    Per a suggestion at photoshop.com, I used ExifTool to see what changes LR was writing to a sample file; from the diff below, you can see that LR is adding a bunch of new fields as well as moving other fields around. But my point is that LR3 should never overwrite a file on disk if all I am doing is browsing thru them.
    Is anyone else seeing this? Any ideas would be greatly appreciated!
    -- David
    diff Exif5609_original Exif5609_update
    2c2
    < FileName: DSC_5609_original.JPG
    > FileName: DSC_5609_update.JPG
    5,6c5,6
    < FileModifyDate: 2009:11:27 21:32:54-08:00
    < FilePermissions: rwxr-xr-x
    > FileModifyDate: 2011:08:07 22:06:47-07:00
    > FilePermissions: rw-r--r--
    27a28,29
    > ShutterSpeedValue: 1/200
    > ApertureValue: 7.1
    55d56
    < SerialNumber: 3209521
    75d75
    < Lens: 18-200mm f/3.5-5.6
    185,188d184
    < UserComment:
    < SubSecTime: 00
    < SubSecTimeOriginal: 00
    < SubSecTimeDigitized: 00
    211a208,299
    > XMPToolkit: Adobe XMP Core 5.2-c004 1.136881, 2010/06/10-18:11:35
    > CreatorTool: Ver.1.00
    > MetadataDate: 2011:08:07 22:06:47-07:00
    > SerialNumber: 3209521
    > LensInfo: 18-200mm f/3.5-5.6
    > Lens: 18.0-200.0 mm f/3.5-5.6
    > ImageNumber: 26634
    > RawFileName: DSC_5609.JPG
    > SavedSettingsName: Import
    > SavedSettingsType: Snapshot
    > SavedSettingsParametersVersion: 6.4.1
    > SavedSettingsParametersProcessVersion: 5.0
    > SavedSettingsParametersWhiteBalance: As Shot
    > SavedSettingsParametersIncrementalTemperature: 0
    > SavedSettingsParametersIncrementalTint: 0
    > SavedSettingsParametersExposure: 0.00
    > SavedSettingsParametersShadows: 0
    > SavedSettingsParametersBrightness: 0
    > SavedSettingsParametersContrast: 0
    > SavedSettingsParametersSaturation: 0
    > SavedSettingsParametersSharpness: 0
    > SavedSettingsParametersLuminanceSmoothing: 0
    > SavedSettingsParametersColorNoiseReduction: 0
    > SavedSettingsParametersChromaticAberrationR: 0
    > SavedSettingsParametersChromaticAberrationB: 0
    > SavedSettingsParametersVignetteAmount: 0
    > SavedSettingsParametersShadowTint: 0
    > SavedSettingsParametersRedHue: 0
    > SavedSettingsParametersRedSaturation: 0
    > SavedSettingsParametersGreenHue: 0
    > SavedSettingsParametersGreenSaturation: 0
    > SavedSettingsParametersBlueHue: 0
    > SavedSettingsParametersBlueSaturation: 0
    > SavedSettingsParametersFillLight: 0
    > SavedSettingsParametersVibrance: 0
    > SavedSettingsParametersHighlightRecovery: 0
    > SavedSettingsParametersClarity: 0
    > SavedSettingsParametersDefringe: 0
    > SavedSettingsParametersHueAdjustmentRed: 0
    > SavedSettingsParametersHueAdjustmentOrange: 0
    > SavedSettingsParametersHueAdjustmentYellow: 0
    > SavedSettingsParametersHueAdjustmentGreen: 0
    > SavedSettingsParametersHueAdjustmentAqua: 0
    > SavedSettingsParametersHueAdjustmentBlue: 0
    > SavedSettingsParametersHueAdjustmentPurple: 0
    > SavedSettingsParametersHueAdjustmentMagenta: 0
    > SavedSettingsParametersSaturationAdjustmentRed: 0
    > SavedSettingsParametersSaturationAdjustmentOrange: 0
    > SavedSettingsParametersSaturationAdjustmentYellow: 0
    > SavedSettingsParametersSaturationAdjustmentGreen: 0
    > SavedSettingsParametersSaturationAdjustmentAqua: 0
    > SavedSettingsParametersSaturationAdjustmentBlue: 0
    > SavedSettingsParametersSaturationAdjustmentPurple: 0
    > SavedSettingsParametersSaturationAdjustmentMagenta: 0
    > SavedSettingsParametersLuminanceAdjustmentRed: 0
    > SavedSettingsParametersLuminanceAdjustmentOrange: 0
    > SavedSettingsParametersLuminanceAdjustmentYellow: 0
    > SavedSettingsParametersLuminanceAdjustmentGreen: 0
    > SavedSettingsParametersLuminanceAdjustmentAqua: 0
    > SavedSettingsParametersLuminanceAdjustmentBlue: 0
    > SavedSettingsParametersLuminanceAdjustmentPurple: 0
    > SavedSettingsParametersLuminanceAdjustmentMagenta: 0
    > SavedSettingsParametersSplitToningShadowHue: 0
    > SavedSettingsParametersSplitToningShadowSaturation: 0
    > SavedSettingsParametersSplitToningHighlightHue: 0
    > SavedSettingsParametersSplitToningHighlightSaturation: 0
    > SavedSettingsParametersSplitToningBalance: 0
    > SavedSettingsParametersParametricShadows: 0
    > SavedSettingsParametersParametricDarks: 0
    > SavedSettingsParametersParametricLights: 0
    > SavedSettingsParametersParametricHighlights: 0
    > SavedSettingsParametersParametricShadowSplit: 25
    > SavedSettingsParametersParametricMidtoneSplit: 50
    > SavedSettingsParametersParametricHighlightSplit: 75
    > SavedSettingsParametersSharpenRadius: +1.0
    > SavedSettingsParametersSharpenDetail: 25
    > SavedSettingsParametersSharpenEdgeMasking: 0
    > SavedSettingsParametersPostCropVignetteAmount: 0
    > SavedSettingsParametersGrainAmount: 0
    > SavedSettingsParametersLensProfileEnable: 0
    > SavedSettingsParametersLensManualDistortionAmount: 0
    > SavedSettingsParametersPerspectiveVertical: 0
    > SavedSettingsParametersPerspectiveHorizontal: 0
    > SavedSettingsParametersPerspectiveRotate: 0.0
    > SavedSettingsParametersPerspectiveScale: 100
    > SavedSettingsParametersConvertToGrayscale: False
    > SavedSettingsParametersToneCurveName: Linear
    > SavedSettingsParametersCameraProfile: Embedded
    > SavedSettingsParametersCameraProfileDigest: D6AF5AEA62557FCE88BC099788BBD3CC
    > SavedSettingsParametersLensProfileSetup: LensDefaults
    > SavedSettingsParametersToneCurve: 0, 0, 255, 255
    > IPTCDigest: d41d8cd98f00b204e9800998ecf8427e
    228,230d315
    < SubSecCreateDate: 2009:11:27 21:32:54.00
    < SubSecDateTimeOriginal: 2009:11:27 21:32:54.00
    < SubSecModifyDate: 2009:11:27 21:32:54.00
    http://feedback.photoshop.com/photoshop_family/topics/lr3_date_modified_for_all_files_bein g_updated_when_browsing_photos_if_catalog_settings_automatically_write_changes_into_xmp_is /replies/6313647

    clvrmnky wrote:
    davidpope007 wrote:
    Then when LR3 loaded my old LR2 images into memory, it "dirtied" the in-memory copy of the file by adding in these new LR3 XMP fields. Then, because I had "Automatically write XMP" on, it said "I better write these changes to disk".
    Yuck. As a former software engineer, this is very bad software engineering.
    It should wait until the user dirties the file (via Develop, keywords, etc.) before presuming to add a bunch of metadata fields that are unique to the new version of LR3.
    Well, I'm a current software developer, and this is, really, a perfectly reasonable thing to do. It is a reasonable trade-off for a convenient feature required by a small subset of users.
    Yes, in most cases the in-memory copy should "never" be dirtied unless the user makes a gesture of some sort, but like I said earlier, this option (once set by the user) sets up the situation where this gesture becomes implicit. This is a clear trade-off for the sake of convenience. And if the XMP is out of date and needs to be updated en masse, so be it.
    The fact is, there is no easy way around this. Do we save up /every/ dirty buffer somehow until you make a gesture that /might/ require the XMP to be up-to-date before acting on that gesture? Now we have to worry about unflushed buffers if something goes wrong and the app exits. Do we save the buffers to the DB? Now we have to block some calls to make another blocking call to flush some or all of those to DB, and then write some or all of it out to one or more files. In what order? What if there is a gesture to have X files with up-to-date XMP and some or all of those are in unflushed buffers, unflushed DB writes or we have to wait for the DB.
    As you can see, this is a transactionality nightmare, and the easiest and safest thing to get what the user wants (i.e., up-to-date XMP for the purpose of talking to a third-party XMP aware app) is to simply update the sidecar or XMP block in an atomic manner using the correct file IO. The file will have to change at some point, so it may as well be now.
    [Thanks to both of you for your detailed replies. I am aware of the need for tradeoffs so when you say the approach taken is quite reasonable, I do believe you. I also apologize in advance for the length of the following and am extremely aware of the time it must have taken you to compose the above replies, but I'm going to add a bit more, if only for my own piece of mind and in hopes of coming up with a solution for my workflow.]
    From my naive point of view, I was expecting the answer to be simply "don't raise the XMPDirtyFlag upon reading in a file". Obviously if your architecture requires you to "upgrade to latest XMP format" upon read, and another part of the system auto-detects "out of date XMP", then it's going to write those changes to disk.
    But it didn't need to be designed that way. LR obviously has mechanisms to know when a user has made a change to XMP so it is able to write XMP changes to disk only when necessary.
    The promise (to me) of "Automatically Write XMP changes to disk" was to auto-save my changes, and not those made for any internal (i.e., XMP versioning related) changes.
    Perhaps the premise is that it is LR3's job to update an individual file's XMP to the latest version so that other XMP-aware apps can make use of it? I would argue that those third-party XMP-aware apps already have to know how to deal with all prior versions of XMP, so LR3 should just leave well enough alone.
    You asked if my problem with your approach was that it was "inelegant"; not at all, it is based on my own perception of what I need from my workflow, so let me describe that so maybe we can find a better way:
    * Part of the appeal of LR to me is that it preserves my original file as it came off the memory card, allowing me to move to a different workflow/toolset in 2025 if I choose to do so
    * However, with all of changes contained in a single database file, I'm concerned about rare (but possible) corruption, so to mitigate this risk, I let LR backup my database weekly and it's also backed up continuously in the cloud via Backblaze
    * Even with backups of the database, there is still a chance that I could lose changes made to individual files (e.g., LR corrupts the DB and I have to go back to last week's DB)
    * Thus the appeal of the "auto-write to XMP" flag -- that way critical changes (develop, crop, keywords) are saved on a per-file basis; I liked the "automatic" part of this (as opposed to a manual save) because then I don't have to teach others in my family how to manually save XMP changes
    * A nice side-effect of this setting is now when I use Finder to find a file and double-click on it to edit it in Photoshop, all my develop changes are right there; (in other words, I like the flexibility of not having to fire up LR in order to just invoke PS from within it); also when I use Bridge I see all the keywords there
    * So with LR2, I had gotten used to what I thought was the best of all worlds -- autosave of changes at the file level via XMP + raw negatives untouched (i.e., Date Modified == the date I took the picture); this allows me to use operating-system-level tools -- Finder -- to locate/search for files
    * Now I upgrade to LR3 and I'm finally now understanding that a concept "XMP versioning" is going to result in changes to many, but not all my files. (That's something else that's annoying about this issue -- I open up the Grid and browse a folder of files, and only seemingly random ones I've cursored over seem to get written to disk -- if it's so urgent that LR3 update the XMP, then it should do it for all the files in the catalog or at least in that directory)
    Here's a screenshot from Finder of what I see everytime I look at this folder:
    * So now I have to assume that each new version of XMP and/or LR is going to touch my files on disk. Sigh.
    * What I don't like about this is that it is ruining the promise of "untouched raw negative". Yes, the image data is untouched -- which I agree is most of the benefit; but the file has been touched.
    * Perhaps you might empathize a bit more if you imagined that someone went thru all your source code or Word files and randomly changed the date to "today" because you upgraded compilers or moved to Word 2011.
    I agree all of this would be solved by having an XMP sidecar file for JPGs, but you indicate that's not going to happen.
    You've also alluded to the solution of "resetting the Date Modifed" to it's original value -- which I believe is what Finder does when you move or copy a file -- but that that is fraught with issues as well. I believe you when you say there are issues, but again the naive part of me wonders why that soultion would be so bad...
    I just thought of another potential solution -- turning on Date Created in Finder -- but it turns out that's changed, too.
    I am really at a loss as to what to do and would welcome your suggestions.
    Thanks again and kind regards,
    -- David

Maybe you are looking for

  • Get the attributes NAME and VALUE from an XML

    I really love this forum :) I load an XML an populate a Tree, from which I start to drag items. the xml looks like this: <myTag attrName="attrValue" otherAttrName="otherAttrValue"/> var ds:DragSource = event.dragSource; var var1:String =(event.dragIn

  • body background="watermark.gif" not working!!!

    hi, i am new to JSF.i have a code(Login) but when i put <body> tag with a bg image, i am not able to view that picture. Y? here is my code. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" pref

  • Safari 5.1.2 will not install

    Downloaded Safari 5.1.2 from the Apple web sit, running OS X.7.2 on a Quad Core Mac Pro. Software will not install.  On installation window reads "Waiting for other installations to complete".  Does not compete nor install after 30 mintes. No other p

  • I can't re-install itunes, help!

    I tried to update my itunes so that it would support my iphone 5. I followed the instuctions telling me how to uninstall itunes completely but now I can't re-install it. I get an error message saying that the apple application support can't be found.

  • I have tried to reindex my messages but I still can not get the search function to work in email

    I have tried reindecing my messages by rebuilding the library but I still can't get my message function to work in mail.  Any proposed solutions much appreciated.