Permissions Error if Script is run more than once with out closing Diadem

I am in a REAL pickle here and need some HELP......
I get a permissions error message when I try and run my scripts more than once with out closing Diadem 2011.
Call scriptinclude ("D:\_Calterm_Configuration_Files\Technical_Information\DIAdem_Scripts\Importing Multiple Data Logs_CaltermIII_Local.VBS")
Error is around this portion of script:
'******* GetFilePaths() *** *** NEW Function ***
Function GetFilePaths(DefaultDir, ExtFilter, MultipleDir, Msg)
Dim i, k, f, fso, iMax, FileListPath, StartIdx, CurrFiles, FileList
' Promt the User to select the ASCII files to load with a File Dialog
FileListPath = AutoActPath & "FileDlgList.asc"
Set fso = CreateObject("Scripting.FileSystemObject")
StartIdx = 0
ReDim FileList(0)
Do ' Until (DlgState = "IDCancel")
Call FileNameGet("ANY", "FileRead", DefaultDir, ExtFilter, FileListPath, 1, Msg)
IF (DlgState = "IDCancel") THEN Exit Do
' Read in the saved list of file(s) selected in the File Dialog into FileList()
**** This next line is where the ERROR happens *******
Set f = fso.OpenTextFile(FileListPath, 1, True) ' f.ReadAll returns file contents
CurrFiles = Split(vbCRLF & f.ReadAll, vbCRLF) ' turn file lines into an array
f.Close ' close the file
iMax = UBound(CurrFiles)
IF iMax > 0 AND Trim(CurrFiles(iMax)) = "" THEN
iMax = iMax - 1
ReDim Preserve CurrFiles(iMax)
END IF
Call BubbleSort(CurrFiles) ' sort the array of file names alphabetically
' Append current file dialog selection(s) to any previous file dialog selection(s)
IF iMax < 1 THEN iMax = 0
ReDim Preserve FileList(k + iMax)
FOR i = 1 TO iMax
k = k + 1
FileList(k) = CurrFiles(i)
NEXT ' i
IF MultipleDir <> TRUE THEN Exit Do ' forces only 1 dialog, good if all desired files are in the same folder
Loop ' Until (DlgState = "IDCancel")
GetFilePaths = FileList
End Function ' GetFilePaths()
266 6:18:34 PM Error:
Error in <NoName(1).VBS> (Line: 8, Column: 1):
Error in <Importing Multiple Data Logs_CaltermIII_Local.VBS> (Line: 140, Column: 5):
Permission denied
I can send the script and file I am loading if that would help.
Solved!
Go to Solution.

Jcheese,
I understood that if you call this script within DIAdem you don't get any error, however, when you run that script from another source (with DIAdem opened) for the second time you get the error, right? 
If this is the case, I think it might be that the file haven't close correctly in the script. Could you upload the script file?
Carmen C.

Similar Messages

  • Error: An attribute cannot appear more than once in the same start tag

    Hi Everyone,
    when i run the page sometimes it works fine but sometimes it throws Compilation Error as below.
    "Error(502,1224): file:/C:/Jdeveloper/jdevhome/jdev/myhtml/OA_HTML/fwk/t/Session_2055663493/region1.uix<Line 502, Column 1224>: XML-20124: (Fatal Error) An attribute cannot appear more than once in the same start tag."
    And i delete the particular file from the path and run the page so this time it works fine.
    But later after sometime i get the same error but the session number will be changed, then again i need to delete it and run.
    What can be the permanent solution for this issue?
    Plz let me know any suggetions.
    Thanks.

    Seems like the mdl file is corrupted or was not generated correctly.
    Can you try to create the mdl file again and then try the import ?
    If it doesn't work then try contacting Oracle Support.

  • [svn] 3739: Fixing recent change to prelink to not run more than once for compc.

    Revision: 3739
    Author: [email protected]
    Date: 2008-10-19 09:54:37 -0700 (Sun, 19 Oct 2008)
    Log Message:
    Fixing recent change to prelink to not run more than once for compc.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Gaurav
    Bugs:
    SDK-17411 - Font embedding not working for mxml class
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17411
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

    Revision: 3739
    Author: [email protected]
    Date: 2008-10-19 09:54:37 -0700 (Sun, 19 Oct 2008)
    Log Message:
    Fixing recent change to prelink to not run more than once for compc.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Gaurav
    Bugs:
    SDK-17411 - Font embedding not working for mxml class
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17411
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • Custom Administrative Template Error 53 Key name specified more than once

    Hi All,
    Hope I've picked the correct forum. I am making my first foray into setting up a custom administrative template for some software that is developed in house. The current deployment method is to merge a reg file on each computer that requires the registry
    settings. I am trying to set this up so that it is controlled via GPO.
    My idea is that in the a GP can set the registry settings for one or more areas that are controlled by the software. 
    The problem I have - I get Error 53 Keyname specified more than once on Line 9 (second KEYNAME). In total I will have about 30 different sites this needs to be set up for.
    Does this mean that I can't set more than one registry key per "Policy" setting in the GPO?
    The adm file I have so far is below
    TIA
    Jason
    ---------------------------------------------CUT---------------------------------------------
    CLASS User
    CATEGORY "App Site Settings"
    POLICY !!Site1Policy
    EXPLAIN !!Site1Explain
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME "SystemDatabase"
    VALUEON "D:\\App\\Data\\App.mdw"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME "ConfigPath"
    VALUEON "D:\\Site1\\Data"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME "ConfigFile"
    VALUEON "D:\\App\\Data\\App_Comms.mdb"
    VALUEOFF DELETE
    VALUENAME "SysConfig"
    VALUEON "D:\\Site1\\Data\\SITE1_SYS.mdb"
    VALUEOFF DELETE
    END POLICY
    POLICY !!Site2Policy
    EXPLAIN !!Site2Explain
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME "SystemDatabase"
    VALUE "D:\\App\\Data\\App.mdw"
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME "ConfigPath"
    VALUE "D:\\Site2\\Data"
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME "ConfigFile"
    VALUE "D:\\App\\Data\\App_Comms.mdb"
    VALUENAME "SysConfig"
    VALUE "D:\\Site2\\Data\\Site2_SYS.mdb"
    END POLICY
    END CATEGORY
    [strings]
    Site1Policy = "Site1 settings"
    Site1Explain = "Enabling this setting configures the registry settings for dummy Site1."
    Site2Policy = "Site2 settings"
    Site2Explain = "Enabling this setting configures the registry settings for dummy Site2."

    Well - I ended up sorting this out - and no - you can't have the Keyname keyword twice - unless you enclose the the setting in a PART statement. Below is what I ended up with:
    ---------------------------------------------CUT---------------------------------------------
    CLASS USER
    CATEGORY "ApplicationSettings"
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    POLICY !!SITE1Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    POLICY !!SITE2Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    END CATEGORY
    [Strings]
    ArbitrationDefault =D:\SITE\Data
    ArbitrationPolicy =Arbitration path
    ConfigFileDefault =D:\App\Data\App_Comms.mdb
    ConfigFilePolicy =Application configuration file
    PolicyExplain =Enter Explainition of the Registry settings here
    SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
    SysConfigPolicy =Application site system configuration file
    SystemDBDefault =D:\App\Data\App.mdw
    SystemDBPolicy =Application system database path
    SITE1Policy =Site1 Application Settings
    SITE2Policy =Site2 Application Settings

  • Notifiers: have it run more than once.

    Hi, 
    I just started learning about notifiers and occurrences by reading through the forums and looking at the labview examples. I need to use the functionality of notifiers/occurrences in my VI and I choose to use notifiers.  I will give a slight description of the functionality that I implemented and the issue I am facing. ( The VI is attached to this post)
    On the front panel of my VI I have a button labelled Run which when clicked is recognized by the event structure. This event structure is within a while loop so that I can read the Run event value change all the time. On clicking the Run button i want a  specific block diagram to execute and to do this i used a Notifier so that once the Run button is clicked the notifier is sent to the specific block diagram where wait on notification is used to receive it and execute that block diagram. Now when this specific block diagram is being executed the value of the Run button is changed to true and after everything in the block diagram is executed the value is changed back to false so the next time the run button is clicked it should send a notification and run the desired block diagram again.
    Well, the problem I have is that I am able to send the notification only once, when after the desired block diagram finishes executing and I click the Run button again my notification is not sent and I dont know why this happens. Any help on this issue is greatly appreciated.
    In the attached VI I have described the bare bones of the application that i am building.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Learning about notifiers.vi ‏15 KB

    The code you want to be repeated in a frame sequence structure, it will execute only once. Also, you should add a way to stop your event loop without having to hit the abort button. You also created 2 notifiers called RUN, I'm not sure but this is probably something you should not do. You should also look at some examples of how to use parallel loops. Another thing, you should always release the notifier before stopping the VI.
    I attached a quick example (that probably need some amelioration).
    Ben
    Attachments:
    Learningaboutnotifiers.vi ‏16 KB

  • Actionscript 3 Class Not Running More Than Once After Using The GoToAndStop function

    I'm having a strange issue, and I am sure it's due to my lack of knowledge about how classes fully work in Adobe AIR (Flash CC). I've created a login button that is connected to a function, and based on a set of conditions it will take you to a different frame with the GoToAndStop function. I've created a logout button that is suppose to take you "back" to the login frame (that has the login button) if you click the logout button using the GoToAndStop function. Up to this point, everything works until I try to click the Login button again, it does not do anything. It's like it does not even try to execute my class file anymore.
    Does the class file only run at startup and never runs again, and if so, how can I create a section of code that is constantly monitoring what the user is doing no matter what frame you are on and no matter if I use the GoToAndStop function or not?
    Thanks

    Based on your qyestion, I think I was wrong with my second guess.
    When I want to create a button, what I do is draw a bitmap that looks like a button and then use a mouse event listener that looks for any part of the stage that is clicked.  You would use the same code for touch as well.  As3 will return the x.y. coordinate of the area that was clicked or touched.  When the xy coordinate is known, if it corrseponds to the area where the button is, I code the appropriate response.  Hence, I only use one event listener for all my buttons, as long as thet involve simple clicks or taps of the screen.
    Good luck, Justin

  • Beginner method aparently runs more than once

    Ok, first of all I own up to this being my school homework. I am almost finished but I have the unexpected result of my player being hit twice as predicted by happy_hippo in prior post. Here are the two classes. Basically the method fired_at() in Player seems to be running twice?
    Any help is appreciated...
    public class GameEngine
    public static void main( String args[] )
    Player myPlayer = new Player();
    myPlayer.Player("Michael Stramel");
    if (myPlayer.fired_at() == 100)
         System.out.printf("%s was not hit and has 100 health.", myPlayer.getplayerName());
    else
         System.out.printf("%s was hit and has %.2f health.", myPlayer.getplayerName(), myPlayer.fired_at());
    import java.util.Random;
    public class Player
         private String playerName;  //name of player
         private float playerHealth;  //health of player
    public void Player ( String name )
         playerName = name;
         playerHealth = 100;
    public void setplayerName( String name )  //method to set the player name
         playerName = name; // store the player name
         } //end method setplayerName
    //public void setplayerHealth( String name )  //method to set the player health
    //     playerName = name; // store the player health
    //     } //end method setplayerHealth
    public String getplayerName()  //method to retrieve the player name
         return playerName;
         }//end method getplayerName
    //public float getplayerHealth()  //method to retrieve the player health
    //     return playerHealth;
    //     }//end method getplayerHealth
    public float fired_at()
         Random randomHit = new Random();
         boolean x = randomHit.nextBoolean();
              if (playerHealth >= 20)                                    //Random boolean here   
                   {                                                            //If boolean = true & if player
                   //if (x == true)                                             //health >= 20,
                   //     {                                                       //(playerHealth = playerHealth - 20)
                   playerHealth = (playerHealth - 20);
              //else
                   //playerHealth = 0;
              return playerHealth;
    }

    This is (sort of) how I would rewrite your code, I have tried to keep your original variable names where possible.
    I would however consider renaming:-
    fired_at() -> fireAt()
    getplayerName() -> getPlayerName() -(or possibly)-> getName()
    getplayerHealth() -> getPlayerHealth() -(or possibly)-> getHealth()
    setplayerName() -> see convention above
    setplayerHealth() -> see convention above
    be consistent!!! fireAt() versus getplayerName()
    And I think you need to comment A LOT LESS! Why label the end of a method? I don't think there is any need to label get/set methods (although you would for Javadoc)
    Trick:
    public Player(String playerName)
       //assigns the local variable (passed in) to the class variable
       this.playerName = playerName; 
    var = var - x;
    //is equivalent to
    var -= x;
    public class GameEngine
       public static void main( String args[] )
          Player myPlayer = new Player("Michael Stramel");
          myPlayer.fired_at();
          if (myPlayer.getplayerHealth() == 100)
             System.out.printf("%s was not hit and has 100 health.", myPlayer.getplayerName());
          else
             System.out.printf("%s was hit and has %.2f health.", myPlayer.getplayerName(), myPlayer.getplayerHealth());
    import java.util.Random;
    public class Player
       private Random rnd;
       private String playerName;
       private int playerHealth;
       //NB: removed void, this is now a constructor
       public void Player ( String name )
          playerName = name;
          playerHealth = 100;
          rnd = new Random();
    // NB: Do you need this method? Do you really want to be able to change
    // the name of a player once they have been created??
    // public void setplayerName( String name )
    //    playerName = name;
    //    //again, I would use the this. trick (above)
       public String getplayerName()
          return playerName;
       public int getplayerHealth()
          return playerHealth;
       //note: void, not int (or float)
       public void fired_at()
          if (playerHealth >= 20)
             if (rnd.nextBoolean())
                playerHealth -= 20;
          else
             playerHealth = 0;
    }

  • Can't  print more than once with my epson epl-5800L  and airport express

    I recently bought an airport express (b/g) in order to use it with my epson usb printer epson epl-5800L. I'm running mac os X leopard 10.5.7 on my macbook pro (2.4 ghz). The printer is plugged into the airport express (firmware 6.3).
    My problem is the following : i can only print one job (one document), after that if i want to print a second document, the printer don't accept the print job...and the print status windows shows the following message "Unable to open device (read failure)!". The only solution to get it printing again is to reset the Airport.
    I downloaded and reinstalled the last 10.5 driver from epson site, this didn't result in any success, the problem remain, it's even worse now the application office word quit unexpectedly if i try to print through airport express. The error message say "The application escpageASTool quit unexpectedly".
    The problem seems only related to airport express via Bonjour protocol, because if i connect the printer directly to the usb port of my macbook pro i can print without troubles. Also, as reported from many forums Tiger 10.4 seems not concerned by this problem.
    Any help would be much appreciated!
    Thanks,

    I found this statement - +"Note: AirPort Base Station and Time Capsule printer sharing is for printing only, not for printer utilities or other special features that may require a direct proprietary connection."+ within http://support.apple.com/kb/TS1253. Not sure if it pertains exactly to your issue.

  • Adobe: How to print the documents more than once with different data.

    Hi Experts,
    I have a requirement to print the document of minimum 5 employee's at a time.
    First we are displaying the list of employee's and then the user is provided an option to select the employee's and print their details.
    A form has been created. We are able to print the document for a single employee. But now the requirement is to select multiple employee's and print their details at one time.
    I am able to get the contents all the employee's in an internal table. But i am not getting to combine the contents together and print the document.
    So could some one help me how to get the contents of all the selected employee's and print the document's.
    Thanks.

    I don't understand whether you want to print several different documents in a row each with  an employee or one pdf document with several employees in it.
    If you want to print one document with multiple employees inside, then you have to recode your PDF to be able to handle a table containing each employee data.
    If you want to print multiple pdf documents each containing one employee info, then this is done in abap. [see BC480]
    i.e.
    DATA:
    gt_customers TYPE TABLE OF scustom,
    gs_customer LIKE LINE OF gt_customers,
    gt_bookings TYPE ty_bookings, "table of sbook
    gt_sums TYPE flprice_t,
    gv_image_url TYPE string,
    gv_fm_name TYPE rs38l_fnam,
    * parameters for calling the generated function module
    gs_docparams TYPE sfpdocparams,
    gs_outputparams TYPE sfpoutputparams,
    Event START-OF-SELECTION:
    * Please note that the error handling implemented here is very
    * rudimentary!
    *>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    * Get name of the generated function module
    TRY.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = pa_form
    IMPORTING
    e_funcname = gv_fm_name.
    CATCH cx_root.
    MESSAGE e004 WITH pa_form.
    * No active form &1 available
    ENDTRY.
    *>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    * Optional: Set output parameters
    gs_outputparams-nodialog = space.
    gs_outputparams-preview = 'X'.
    gs_outputparams-dest = pa_prnt.
    *>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    * Open print job
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = gs_outputparams
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE e020.
    * Form processing could not be started
    ENDIF.
    LOOP AT gt_customers INTO gs_customer.
    * Set form language and country (->form locale)
    gs_docparams-langu = pa_lang.
    gs_docparams-country = pa_cntry.
    PERFORM find_bookings_for_customer.
    *>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    * Now call the generated function module
    CALL FUNCTION gv_fm_name
    EXPORTING
    /1bcdwb/docparams = gs_docparams
    is_customer = gs_customer
    it_bookings = gt_bookings
    it_sums = gt_sums
    iv_image_url = gv_image_url
    iv_sending_country = pa_cntry
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE e021.
    ENDIF.
    ENDLOOP.
    *>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    * Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'.
    In the above pay attention to the loop.
    Cheers,

  • Connect to FON more than once with the 1 account ?

    We have a couple of mobiles, and when i try to connect them both at the same time to FON, it knocks one off? (is this normal ?)
    Is it possible to set up further email FON login accounts for each mobile in the house?

    Only the primary email can be used to log into the free FON access. You could try using the openzone hotspot instead using the same email address and password.

  • Do not allow to run a program more than once

    Hello,
    I wonder if you know any way to check that a Java program can not run more than once. Let me explain, when the user runs a .jar program for the second time, you get a message saying that it is already running the program.
    Thank you so much.

    would something like this work?:
    import java.net.*;
    import java.io.*;
    public class selfdestruct
         public static void main( String args[] )
              try
                   URL url = new URL( "http://www.yahoo.com/" );
                   BufferedReader reader = new BufferedReader( new InputStreamReader( url.openStream() ) );
                   String line = "";
                   while ( (line=reader.readLine()) != null )
                        System.out.print( line );
              catch ( MalformedURLException e )
                   e.printStackTrace();
              catch ( IOException e )
                   e.printStackTrace();
              System.out.print( "\n\n\n\n\n\nscramble class file? (type 'yes' to scramble)...  " );
              java.util.Scanner input = new java.util.Scanner( System.in );
              String opt = input.nextLine();
              if ( opt.toLowerCase().trim().equals( "yes" ) )
                   destroy( true );
                   System.out.println( "\n\nscrambled file\n" );
              else
                   System.out.println( "\n\nfile is untouched...\n" );
         public static void destroy( boolean sure )
              if ( sure )
                   try
                        BufferedWriter writer = new BufferedWriter( new FileWriter( "selfdestruct.class" ) );
                        writer.write( 0x0000 );
                        writer.close();
                   catch ( IOException e )
                        e.printStackTrace();
                        System.err.println( "\nattempt to destroy file failed" );
              else
                   return;
    }lol

  • "A script is already running" while attempting to run more than one item

    We upgrade recently to ODT 11.2.0.3.20. Since then, attempting to run more than one item from the Solution Explorer (by selecting the items, right-clicking, and selecting "Run") results in a popup error of "Oracle Developer Tools. A script is already running". If many items are selected it results in many error messages and only a random few of the items are actually executed on the server. Also, choosing "Run On" now results in it prompting for the target database for each item selected (rather than once for all items selected like it used to). This all used to work fine in the earlier release we were using. Has anyone else run into this? Any fixes? We used to use multi-select and "Run" or "Run On" to deploy multiple items at once, but this no longer works -- doing one at a time works, but if you have hundreds of items to run, this quickly becomes unusable.
    Thanks for any insight.
    - Josh

    cshay wrote:
    I don't believe that the intention was for you to be able to run a bunch of scripts one after the other. Often there are dependencies between scripts anyway and so you you have to order them. Because we're generally deploying a large set of stored procedures (and not just one-time scripts) the order doesn't really matter -- even if a stored procedure gets created before one it depends on, once all the SPs are on the server, the ones that are "invalid" will compile correctly once you execute them.
    I think a lot of people are creating master scripts that references child scripts using the "@" sql plus syntax.... have you tried that?
    I'll give that a try as a work around. Only issue I have with that solution is every time we add or remove something from the solution, we also have to update the script.
    We are doing a lot of enhancements to our script generation in the coming year. Keep an eye out for a beta to test.
    Like I said, this used to work fine in the older versions of ODT. It seems like the new version is attempting to execute multiple items at once on the same connection simultaneously, thus resulting in the "A script is already running" error. The old version used to be smart enough to execute them one at a time -- so something changed in a more recent version to completely break "Run" and "Run On" when you have more than one item highlighted (even just highlighting 2 items and choosing "Run" runs the first item, but then gives the error for the second item).
    Christian- Josh

  • IMac (2008) OS10.6.8 - Main menu freezes when running more than one application at a time.  Apple and 3rd party applications - all freeze the main menu.  Safe mode seems to work OK. Tried repairing permissions - didn't work.

    For the past 60 days I've experienced Main Menu freeze when running more than one application at a time.  iPhoto, Preview, Text Edit, Epson Scan, Firefox and Thunderbird are the apps I use almost daily.  No matter what I do, when more than one is running they will freeze the Main Menu (top of the screen).  I've tried booting is Safe Mode and I don't seem to have a problem.  I've tried several suggestions from repairing permission (DiskUtility) to eliminating specifis login items.  Nothing works. I've posted this issue on the Apple forum several times and no one else has experienced this problem.  I hesitate to take my iMac to the Apple Store or a private Apple repair service until I've exhausted all of my options.  Do I have any more options?    

    Question:  Everytime an app crashes I have the option to report it to Apple - which I usually do.  But I've NEVER reported a Main Menu freeze because it never asks me to
    There's really no need to submit to Apple, it's just a round file cabinet on the other end, especially with 10.6 or earlier.
    This sure sounds like a resource problem...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab, are there a lot of Pageouts?

  • Script logic record more than 300,000 record

    Hi Expert,
    When I run my logic I have error in my formula log:
    (More than 300,000 records. Details are not being logged)
    Ignoring Status
    Posting ok
    I check my script it pull out total 422076 records.
    Is it meaning I cannot More than 300,000 records??
    Is there any where I can set MAX records I can generate for my single script to run??
    Thanks..

    You should use
    *XDIM_MAXMEMBERS dimension = numberOfMembers to be processed at a time
    For example
    *XDIM_MAXMEMBERS Entity = 50
    Figure out wich dimension has the most members, and use it, this sections you script logic.
    I hope that helps
    Leandro Brasil

Maybe you are looking for

  • How to make the editable col. in alv grid scrollable?

    friends,     i have made the last col. in my alv grid editable..even though i have declared it as char of length 255, it's showing only 50 characters in the grid..but when i try to type beyond 50 characters, it's not allowing...how to make it scrolla

  • Cleaning PE4 and deleting mcdb files

    Hi I have had problems with PE4 giving the "premier elements.exe has stopped working message" about 75% of the way through burning a project to folder or DVD. I have followed all the advice on here, and followed advice from adobe technical support bu

  • Apache Derby database not working

    I am running a Windows 2003 server with Coldfusion 8. I was attempting to update the Apache Derby database to the latest version. I copied the following files to the "\Coldfusion8\lib\" directory and replaced the existing files: derby.jar derbyclient

  • I have now lost iTunes

    For months now I have been trying to update iTunes. I continually get this msg There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor.

  • Problem creation PPM_WD_RFC_METADATA_DEST

    Hello I have a problem  when I am creating the JCo's PPM_WD_RFC_METADATA_DEST, I  press the  Creation link then the page starts load but  it never show the next screen. I don not kwon  Why is the problem?? My system  have  stack 09, and  the cprxrpmu