Getting list of open files

I have two related questions. How can I get a list of all the files that are currently open on a particular machine? I'm using Windows, so I don't know of anything like Runtime.exec("lsof");. More specifically, I need to see if a particular (given) file is currently open.
The second question that I have is how can I see if a particular file is open via a (signed) applet, with whatever security manager the browser has installed?
Thanks a lot.
--Jay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

There is no way to do this in pure java.
Given that, why do you feel you need to do this?I have an applet that takes a group of files,
compresses them together, and then uploads and
downloads the compressed archive to/from a server and
uncompresses them on the download end. Of course, if
one the files that's supposed to be archived or
unarchived is open, the applet won't work. I'm trying
to write some code that, if one of these files is
open, will notify the users that they have to close
them.Just attempt the operation of archiving/unarchiving, and deal gracefully with the possible exception, such as notifying the user of the failure at that point.
Even if you could determine if all the files weren't open, as soon as you determine that, the determination can be stale anyway as one or more of those files could subsequently be opened while you're trying to do the archive/unarchive operation, and you'd still have to deal with it.

Similar Messages

  • Flash builder ,Toggle break point ,get error:Error getting list of source files

    In Flash builder ,debug a Web Application, when try to toggle a break point , flash builder prompts:
    Error getting list of source files
    flash.tools.debugger.InProgressException
      at flash.tools.debugger.concrete.DSwfInfo.swdLoaded(DSwfInfo.java:156)
      at flash.tools.debugger.concrete.DSwfInfo.getSourceList(DSwfInfo.java:131)
      at flash.tools.debugger.threadsafe.ThreadSafeSwfInfo.getSourceList(ThreadSafeSwfInfo.java:78 )
      at com.adobe.flexbuilder.debug.breakpoints.FlexLineBreakpoint.findSourceFiles(FlexLineBreakp oint.java:512)
      at com.adobe.flexbuilder.debug.breakpoints.FlexLineBreakpoint.instantiate(FlexLineBreakpoint .java:577)
      at com.adobe.flexbuilder.debug.model.FlexDebugTarget.instantiateBreakpoint(FlexDebugTarget.j ava:525)
      at com.adobe.flexbuilder.debug.model.FlexDebugTarget$1.run(FlexDebugTarget.java:568)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    who can answer this?

  • Suddenly getting "Too Many Open File" error

    Dear All,
    I have listener program which have been working well for the past few months. Suddenly I start to get "Too Many Open File" error. What can be solution? Is it I need to increase the file descriptors or any other solution? Thank you.

    Dear Ejp,
    Attached below is my codes. I have remove some of the fields for db just to make the code a bit more easier to read. Where do you think is leaking?
    public class commServer {
    public static void main(String[] args) {
    try {
                   final ServerSocket serverSocketConn = new ServerSocket(8888);
                        while (true)
                                  try
                             Socket socketConn1 = serverSocketConn.accept();
    new Thread(new ConnectionHandler(socketConn1)).start();               
                                  catch(Exception e)
                                                 System.out.println(e.toString());
    catch (Exception e)
    System.out.println(e.toString());
    //System.exit(0);
    class ConnectionHandler implements Runnable {
    private Socket receivedSocketConn1;
    DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    DateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy");
    DateFormat inDf=new SimpleDateFormat("ddMMyyHHmmss");
    DateFormat outDf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    ConnectionHandler(Socket receivedSocketConn1) {
    this.receivedSocketConn1=receivedSocketConn1;
    //@Override
    public void run() {
    Connection dbconn = null;
    BufferedWriter w = null;
    BufferedReader r = null;
    try {
    PrintStream out = System.out;
         BufferedWriter fout = null;
    w = new BufferedWriter(new OutputStreamWriter(receivedSocketConn1.getOutputStream()));
    r = new BufferedReader(new InputStreamReader(receivedSocketConn1.getInputStream()));
    int m = 0, count=0;
    String line="";
    String n="";
    w.write("$PA\n");
    w.flush();
    while ((m=r.read()) != -1)
    Date dateIn = new Date();
         n = n + (char) m;
         int i = n.indexOf("GET");
                                  if(i != -1) {
                                       break;
         if (m==35)
         String ori = n;
         String noCheckSum = n.substring(0,(n.length()-4));
                   int addExist = n.indexOf("@");
    String[] slave = null;
    if(addExist!=-1)
         slave = noCheckSum.split("@");
              n = slave[0];
              //System.out.println(" slave : "+slave.length);
                   else
                        n = noCheckSum;
         String[] result = n.split(",");
         Statement stmt = null;
         w.write("$PA\n");
    w.flush();
                   int count1 = 0;
    Date date = Calendar.getInstance().getTime();
    String today = formatter.format(date);
                        String filename= "MyDataFile"+today+".txt";
    boolean append = true;
    FileWriter fw = null;
    try
    fw = new FileWriter(filename,append);
         fw.write(ori+" "+dateFormat.format(dateIn)+"\n");//appends the string to the file
         Date dateOut = new Date();
         fw.write("$PA"+" "+dateFormat.format(dateOut)+"\n");//appends the string to the file
    catch (IOException ex)
                        //ex.printStackTrace(new PrintWriter(sWriter));
                        System.out.println("MyError:IOException has been caught in in the file operation");
                        ex.printStackTrace();
                        finally
                   try
         if ( fw != null )
              fw.close();
         else
              System.out.println("MyError:fw is null in finally close");
                        catch(IOException ex){
                        System.out.println("MyError:IOException has been caught in fw is null in finally close");
                        ex.printStackTrace();
         try
                             String deviceID=result[3].trim();      
                             String dateTime=result[4].trim();                          
                             String[] result2 = result[10].split("'");                          
                             String gpsDate = result2[1].trim().substring(0,6);                    
                             String gpsTime = result2[1].trim().substring(6,12);                         
                             String gpsLat = result2[1].trim().substring(13,20);
                             String latitude = result2[1].trim().substring(13,20).substring(0,2)+"."+result2[1].trim().substring(13,20).substring(2,7);
                             String gpsLong = result2[1].trim().substring(21,29);
                             String longitude = result2[1].trim().substring(21,29).substring(0,3)+"."+result2[1].trim().substring(21,29).substring(3,8);
                             String speed = result2[1].trim().substring(30,33);                         
                             String course = result2[1].trim().substring(33,36);
                   String dateTimer = null;
                             try
                             Date inDate=null;
                             inDf.setTimeZone(TimeZone.getTimeZone("UTC"));
                             inDate=inDf.parse(dateTime);
                             outDf.setTimeZone(TimeZone.getTimeZone("Asia/Kuala_Lumpur"));
                                       dateTimer=outDf.format(inDate);
                             catch(ParseException ex)
                             System.out.println("MyError:Parse Error has been caught for date parse close");
              ex.printStackTrace();
                        dbconn = DriverManager.getConnection("jdbc:mysql://192.168.1.155:3306/db1?"+"user=db1&password=test1");
                   stmt = dbconn.createStatement();
                   String selectQuery2 = "Select * from tripData Where deviceID='"+ deviceID +"' and dateTimer>'"+dateTimer+"' Order By dateTimer Desc Limit 1";
                   ResultSet rs2 = stmt.executeQuery(selectQuery2);
                   String updateQuery = "";
                   if(rs2.next())
                        String previousLatitude="";
                        String previousLongitude="";
                        String previousSpeed="";
                        previousLatitude = rs2.getString("latitude");
                        previousLongitude = rs2.getString("longitude");
                        previousSpeed = rs2.getString("speed");
                        updateQuery = "UPDATE device SET " +
                                       "latitude='" + previousLatitude +
                                       "',longitude='" + previousLongitude +
                                       "',speed='" + previousSpeed +
                                       "' WHERE serialNumber='" + deviceID + "'";
                   else
                   updateQuery = "UPDATE device SET " +
                                       "latitude='" + latitude +
                                       "',longitude='" + longitude +
                                       "',speed='" + speed +
                                       "',course='" + course +
                                       "',dateTimer='" + dateTimer +
                                       "' WHERE serialNumber='" + deviceID + "'";
                        count = stmt.executeUpdate(updateQuery);                    
                   String insertQuery = "INSERT INTO tripData" +
                                       "(latitude,longitude,speed,course,dateTimer,deviceID)" + " VALUES ('" +
                                       latitude + "','" + longitude + "','" + speed + "','" + course + "','" + dateTimer + "','" + deviceID + "' )";
         count = stmt.executeUpdate(insertQuery);
              if(addExist!=-1)
              for(int iSlave=1; iSlave<slave.length ; iSlave++)
                                            String[] slaveDetails = slave[iSlave].split(",",-1);
                                            String slaveEventType = slaveDetails[0];
                                            String slaveGroup = slaveDetails[1];
                                            String slaveUnitID = slaveDetails[2];
                                            String slaveBattLevel = slaveDetails[3];
                                            String slaveSwitchStat = slaveDetails[4];
                                            String slaveTempHumid = slaveDetails[5];
                                       String slaveTemp="",slaveHumid="";                                   
                                       if(slaveTempHumid.length()>0)
                                       slaveHumid = slaveTempHumid.substring(5,7);
                                                 if(slaveTempHumid.charAt(0)=='P')
                                                 slaveTemp = "+"+slaveTempHumid.substring(1,3)+"."+slaveTempHumid.substring(3,5);                                                  
                                                 else if(slaveTempHumid.charAt(0)=='M')
                                                 slaveTemp = "-"+slaveTempHumid.substring(1,3)+"."+slaveTempHumid.substring(3,5);
                                       slaveBattLevel = slaveBattLevel.trim().substring(0,2)+"."+slaveBattLevel.trim().substring(2,3);
                                            String insertQuery2 = "INSERT INTO tripDataSlave" +
                                            "(dateTimer,deviceID,slaveUnitID,slaveEventType,slaveGroup,slaveBattLevel,slaveSwitchStat,slaveTemp,slaveHumidity)" + " VALUES ('" +
                                            dateTimer + "','" + deviceID + "','" + slaveUnitID + "','" + slaveEventType + "','" + slaveGroup + "','" + slaveBattLevel + "','" + slaveSwitchStat + "','" + slaveTemp + "','" + slaveHumid + "')";
              count = stmt.executeUpdate(insertQuery2);
                   catch (SQLException ex)
    System.out.println("MyError:Error : "+ex);
                        finally
                        try
                             if ( stmt != null )
                             stmt.close();
                             else
                                  System.out.println("MyError:stmt is null in finally close");
                        catch(SQLException ex){
                        System.out.println("MyError:SQLException has been caught for stmt close");
    ex.printStackTrace();
                        try
                             if ( dbconn != null )
                             dbconn.close();
                             else
                             System.out.println("MyError:dbconn is null in finally close");
                        catch(SQLException ex){
                        System.out.println("MyError:SQLException has been caught for dbconn close");
    ex.printStackTrace();
         n="";
    catch (IOException ex)
    System.out.println("MyError:IOException has been caught in in the main first try");
    ex.printStackTrace();
    finally
    try
         if ( w != null )
              w.close();
         else
              System.out.println("MyError:w is null in finally close");
    catch(IOException ex){
    System.out.println("MyError:IOException has been caught in w in finally close");
    ex.printStackTrace();
    }

  • How to get list of jar files loaded by servlet container.

    Hi,
    I need to display in my servlet program about the list of jar files loaded by servlet container. Does it vary for each servlet container or is it same. Where can I get those details.
    I need to write code to support tomcat 4x, iplanet 5.0 and websphere 6.0.
    Thanks & Regards,
    Nasrin.N

    For curious, here are output prints for all 3 methods:
    1) parsing system property
    2) tschodt
    3) overcast SystemClassLoader to URLClassLoader
    /home/espinosa/workspace/jboss_embedded_test1/target/test-classes
    /home/espinosa/workspace/jboss_embedded_test1/target/classes
    /opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
    /opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
    /opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
    package com.sun.org.apache.xerces.internal.impl.validation, Java Platform API Specification, version 1.6
    package com.thoughtworks.qdox.directorywalker
    package com.sun.org.apache.xerces.internal.parsers, Java Platform API Specification, version 1.6
    package java.util.jar, Java Platform API Specification, version 1.6
    package org.testng.internal.thread
    package com.sun.org.apache.xerces.internal.util, Java Platform API Specification, version 1.6
    package java.net, Java Platform API Specification, version 1.6
    package sun.reflect.misc, Java Platform API Specification, version 1.6
    package esp.ejb.samples1.test
    package sun.security.provider, Java Platform API Specification, version 1.
    file:/home/espinosa/workspace/jboss_embedded_test1/target/test-classes/
    file:/home/espinosa/workspace/jboss_embedded_test1/target/classes/
    file:/opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
    file:/opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
    file:/opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
    ...Interestingly, method 1 and 3 gives the same list, same order, same count, just format of item is a little bit different. The order is same as in Eclipse .classpath file.
    Method 2 (tschodt) give significantly more items! rougly 3x! Different order (somewhat random it seems to me). Some items contain extra information, like version and string "Java Platform API Specification".
    It prints not absolute paths but logical Java names.

  • How to get list of selected files from swf to javascript ?

    Hi everybody,
    i want to make an upload script with swf and javascript. I want to do selecting files via swf then uploading files to server via javascript. I have searched SWFupload plugins but they are not working as i need. I am new here and i do some search, i see it is possible to save list of selected files in FileReferenceList array, but i dont know if is it possible to pass this array into javascript and then make upload progress via javascript ?

    Hi,
    You will not be able to get the local file paths from FileReference due to flash security restrictions.
    Hence I think it is not possible to pass the file reference data to javascript and load the same.
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com/

  • Re: get list of open session

    Hello, if i get sessions like
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
                throws ServletException {
                request.getSession().removeAttribute("web_user");
      }is there is a way to find, list of open sessions, or list of ppl who loged into the system?

    A session is associated to a user. Removing an attribute from a session will have no impact on other sessions. You will have to store the currently active users in a higher scope (one thats common to all users - ServletContext is a good choice).
    You will also have to use a combination of listeners to achieve this.
    Assume you have a user object bound to each session (that stores the logged in user info).
    some login process inside, say a Servlet
    User userObj = new User();
    //userObj.setXXX() setter methods that store user data in this object
    request.getSession.setAttribute("web_user", userObj);Step 1.
    Create a list to hold all active users in your context object. This list is instantiated when the context fires.
    public class CtxListener implements ServletContextListener{
         public void contextInitialized(ServletContextEvent ctxEvent){
              ctxEvent.getServletContext().setAttribute("currentUsers", new ArrayList());
         public void contextDestroyed(ServletContextEvent sce){}     
    }Step 2
    Use a HttpSessionBindingListener that informs you when a UserObject is bound to a session.
    public class User implements HttpSessionBindingListener {
         //variables and get/set methods go here
         public void valueBound(HttpSessionBindingEvent event){
              //get a handle to the context page
              ServletContext ctx = event.getSession().getServletContext();
              //get a handle to the user's list ctxt attribute
              List userList = (List)ctx.getAttribute("currentUsers");
              //add this object to the user list
              userList.add(this);
         public void valueUnbound(HttpSessionBindingEvent event){
                 //do nothing
                //we will remove logged out users in a different manner
    }Step 3
    Now at any point where you have access to the ServletContext(which is virtually everywhere in a web application), you can get the list of users in the following fashion.
    //some servlet
         List currentUsers = (List)getServletContext.getAttribute("currentUsers")
    }Step 4
    We have to remove logged out users. Do it using a SessionListener
    public class SessionListener implements HttpSessionListener{
         public void sessionCreated(HttpSessionEvent se){
         public void sessionDestroyed(HttpSessionEvent se){
              HttpSession session = event.getSession();
              ServletContext ctx = session.getServletContext();
              List currentUsers = (List)ctx.getAttribute("currentUsers");
              currentUsers.remove(session.getAttribute("web_user"));
    }You should ofcourse register your listeners in web.xml
    Cheers,
    Ram.

  • Cisco NSS324 - how can I get a list of opened files - similar to psfile

    I have a Cisco NSS324. I need to determine what files are open and by what users.
    I have AD integration - so the users I am looking for are Windows users.
    for Windows servers we are using 'psfile' - how can we get a similar tool that works with the Cisco NSS324?
    thank you
    Calin

    Calin,
    Not to familar with window server using psfile. I know of a feature i use in the NSS to give me an idea what local/domain user are accessing. Under Administration-->System log settings click on System connection logs--> click options and select protocol you would like to monitor and then start logging. This will display any users accessing the NSS and there accessed resources. You can also send this information to your local syslog server and save the copy to your local NSS .
    Hope this helps,
    Jasbryan

  • When I open a PDF, I want to choose from 3 applications, not just 2 plus other. How can I change the number of recent applications that get listed for opening a file type?

    I'd like firefox to remember the 3 most recently used applications per file type, not just the most recent 2.

    On my Windows 7, with any browser, all downloaded files go into the Downloads folder.
    If you can't find your downloaded PDF docs, try a search for *.pdf

  • How to open word document form html container url iam getting internal_error while opening file

    Hi all,
    By using below code i am able to download word document file from html container. But before downloading i need edit these document to add Macro.
    I am unable to open word document.
    CREATE OBJECT G_HTML_CONTAINER
          EXPORTING
            CONTAINER_NAME = 'PDF'.
       CREATE OBJECT G_HTML_CONTROL
          EXPORTING
            PARENT = G_HTML_CONTAINER.
    * Convert xstring to binary table to pass to the LOAD_DATA method
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            BUFFER     = LV_CONTENT
          TABLES
            BINARY_TAB = LT_DATA.
    data_tab = LT_DATA ).
    * Load the HTML
        CALL METHOD G_HTML_CONTROL->LOAD_DATA(
           EXPORTING
             TYPE         = 'application'
             SUBTYPE      = 'DOC'
           IMPORTING
             ASSIGNED_URL         = LV_URL
           CHANGING
             DATA_TABLE           = LT_DATA
           EXCEPTIONS
             DP_INVALID_PARAMETER = 1
             DP_ERROR_GENERAL     = 2
             CNTL_ERROR           = 3
             OTHERS               = 4 ).
    * Show it
        CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
          IN_PLACE = 'X' ).
    Before file download i want edit the file for that i am using below class.
    PROXY TYPE REF TO I_OI_DOCUMENT_PROXY.
    by using (get_document_proxy) method  getting proxy .
    call method control->get_document_proxy
    exporting
    document_format   = 'x'
    document_type      = 'Word.Document'
    register_container  = 'x'
    importing
    document_proxy     = proxy
    after these.
    call method proxy->open_document
    exporting
    document_url    = lv_url
    open_inplace    = 'x'
    hear i m getting retcode as INTERNAL ERROR
    can any one suggest me how to open document from html container.
    Thanks and reagards
    jogu yadav

    I got resolution
    Thanks and regards,
    Jogu yadav

  • Getting CS2 to open files on double-click

    I searched for a solution to this annoyance assuming it must common but wasn't able to find a thread. Apologies in advance if I missed it.
    Photoshop CS2 has been on this notebook for a couple years. It is activated and registered and runs perfectly. I believe when I installed it that, being a chicken, I did for a while leave a prior version of Photoshop, maybe CS or even v7, installed, but lated uninstalled.
    I'd like to be able to double-click on a file, like a .TIF, and have Photoshop CS2 open it. They always come up on the Windows Picture and FAX viewer.
    I've gone to Windows Explorer, right-clicked on a .TIF and chosen Open with. . . then Choose Program. . . (CS2 isn't even on the "Programs" list in the Open with dialog.)
    I browse to the CS2 folder, choose the Photoshop CS2 program .EXE file, and then the file is oped in the Windows Picture and FAX viewer! I've tried everything I can think of, other than a complete uninstall and reinstall.
    When I run Photoshop CS2 I can open any compatible file and everything in every way seems fine with it. I also have CS2 on a desktop and that install has no problem.
    Any help greatly appreciated.
    Wayne

    Sorry for the delay, been on a heavy assignment.
    I ran the Photoshop CS2 (actually Creative Suite CS2) Installer again. I reinstalled (uninstall followed by install) all key components, but this time actually didn't reinstall GoLive and Version Cue which I do not use.
    After 30 minutes of the uninstall and reinstall and going through 4 discs, the problem still is there. If I try to add Photoshop CS2 under XP's "Open With" it is still not on the list and when I browse for it, and select the Photoshop CS2 .exe file, and click OK, it has NOT accepted it. No error, it just comes back acting like a spoiled child. Grrr.
    However, understand I can run Photoshop CS2 and open the same file or drag files from Windows explorer and drop on Photoshop CS2 and it opens them fine. OK, I did choose to keep user preferences, but I didn't think that meant that the software was to continue to act in a relatively brain dead manner :-)
    bTW, this behavior is true for .TIF, .JPG, and .GIF files at least.
    Again, any help appreciated.
    Wayne

  • HT5624 I just updated the software on my iPad and now can't get all the open files to close as I used to in older version. When I double-click the round button, the open programs show up, but I can't hold down to have the "x" appear to close them. Help.

    I just downloaded the updated software and now can't shut down open programs like I used to by holding downthe round button, having them appear at the bottom of the screen, holding them down for the "x" to appear and then closing them by clicking "x". I can get the program icons to appear, but don't know how to shut them off now.

    Swipe up or drag up on the app window to close the app.

  • List opened file of a specific directory

    Hi, i would like to list all opened file of a specific duirectory. Maybe I could try to open all files in exclusive mode and catch the exception if the file already open. But i don't know how to open a file in exclusive mode. If you know a better way to do that you are welcome.
    Don't forget that no matter what program already open the file... it could be word, notepad... I'm working on windows, sorry :) !!!
    Thanks
    Zoop

    I also need to make the items in the list click'able so that I can press the display_name and then get the item displayed.
    I have now tried to make a procedure in the portal schema:
    as
        v_tal   number := 0;
        CURSOR tidCursor1 IS
            select DISPLAY_NAME, DESCRIPTION, TO_DATE(PUBLISH_DATE,'DD-MM-YYYY') DATO from portal.wwsbr_all_items WHERE CAID=53 and CATEGORY_ID=8992 order by ID desc;
        begin
            htp.p('<table border=0 width=100%>');
            FOR tidRec IN tidCursor1
            LOOP
                htp.p('<tr><td><b><font face="Arial" size="2" color="#014353">' || tidRec.DISPLAY_NAME || '</font></b><br><font face="Arial" size="1" color="#859CA6"> Skrásett tann ' || TO_CHAR(tidRec.DATO,'D. Mon ´YY') || '</font></td></tr><tr><td><font face="Arial" size="1" color="#014353">' || tidRec.DESCRIPTION || '</font></td></tr><tr><td> </td></tr>');
                v_tal := v_tal + 1;
                EXIT WHEN v_tal >= tal;
            END LOOP;
            htp.p('</table>');
    exception
    when others then
        null;
    end;But now I'm in doubt of how to insert a link to the item itself.
    I'm running portal 10.1.4, so it has path-names that go like this:
    htto://host.domain:port/portal/page/portal/myPageGroupName/PageName/SubPageName etc.
    How can I get an url to these items, that I can be sure will work. What table can I use for that?
    Thanks,
    Botzy
    Message was edited by:
    Botzy

  • Getting java.io.IOException: Too many open files+ClassNotFoundException

    Dear All
    We have a web application deployed on Rational Application Developer 6.0 (Operating System is Windows 2000 professional) our users are randomly getting java.io.IOException: Too many open files+ClassNotFoundException when they click on some servlet or jsp link, but they are getting this error randomly for example when they click some link they may get these exceptions but refreshing page or clicking once again on same link executes servlet successfully.If anyone could help on this topic we will be grateful
    Thanks

    I think this these two exceptions are occuring in differrent environment
    java.io.IOException is occuring under heavy load to web server its stack trace is as follows:
    JSPG0225E: An error occurred at line: 2 in the statically included file: /SessionCheck.jsp
    JSPG0093E: Generated servlet error from file: /Admin/AdminInsuranceCertificates.jsp
    E:\WebSphere_6\AppServer\profiles\AUSECert\temp\centraNode04\server1\AUSECert\Vero.war\Admin\_AdminInsuranceCertificates.java:259: cannot access com.bplus.natmar.LoginDetails
    bad class file: E:\WebSphere_6\AppServer\java\jre\lib\core.jar(java/io/Writer.class)
    unable to access file: E:\WebSphere_6\AppServer\profiles\AUSECert\installedApps\centraNode04Cell\AUSECert.ear\Vero.war\WEB-INF\classes\com\bplus\natmar\LoginDetails.class (Too many open files)
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    (source unavailable)
    1 error
    ]: com.ibm.ws.jsp.JspCoreException: JSPG0049E: /Admin/AdminInsuranceCertificates.jsp failed to compile :
    this error always occurs in reference to logindetails class this clas is used to make a session check on different roles in our project for e.g., user having end user role should not be able to log in as a user having admin role
    we have included a sessioncheck.jsp in our every jsp page in this jsp we have simply used logindetails class as useBean and called its getresource() method
    above stacktrace is from our live application server
    while testing same project on our local system we are not getting too many open files exception but we are getting following ClassNotFoundException
    [11/30/05 17:11:42:797 EST] 0000004a SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'mainEdit.jsp' and IsEndUser=1
    [11/30/05 17:12:50:891 EST] 000001eb SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'InsuranceCertificates.jsp' and IsEndUser=1
    [11/30/05 17:17:40:828 EST] 0000008d SystemOut O AppURL is: http://www.VeroECert.com/Vero/indexU.jsp
    [11/30/05 17:17:58:141 EST] 0000008b SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'InsuranceCertificates.jsp' and IsEndUser=1
    [11/30/05 17:20:41:703 EST] 00000034 ServletWrappe E SRVE0026E: [Servlet Error]-[com.servlet.UserHelpServlet]: java.lang.ClassNotFoundException: com.servlet.UserHelpServlet
         at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at java.beans.Beans.instantiate(Beans.java:202)
         at java.beans.Beans.instantiate(Beans.java:63)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper$3.run(ServletWrapper.java:1384)
         at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1312)
         at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:84)
         at com.ibm.ws.webcontainer.extension.InvokerExtensionProcessor.handleRequest(InvokerExtensionProcessor.java:238)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    this error is occuring on concurrent clicks suppose three users click on same button then it is possible that one user gets correct output while other users experience this exception
    Also one more point we are not using web.xml for calling servlets we are directly calling it giving its full path.
    Thanks

  • Getting error Can't open file "~/Library/Application Support/iWeb/Domain.sites2." when trying to open iWeb?

    I recently had to replace my harddrive a few months back and tried to open my iWeb to update my website.  When I click to open it, I get "Can’t open file “~/Library/Application Support/iWeb/Domain.sites2.”  I uploaded iLife again but that didn't seem to help.

    Did you confirm that you have a Domain.sites2 file in your Users/Home/Library/Application Support/iWeb folder?  If so double click on it to try to open with iWeb.  If that doesn't work try the following:
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home()/Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • In CS4, "Cannot open file" "Please upgrade your plug-ins..."

    Greetings,
    I am using InDesign CS4 on a PC. I am trying to open an .indd file created by our marketing department. I don't know what version of InDesign they use nor whether they work on Macs or PCs.
    When I double-click to open the file, I get a "Cannot Open File" popup box. The box reads "Cannot open docname.indd. Please upgrade your plug-ins to their latest versions, or upgrade to the latest version of Adobe InDesign." It then lists 18 different plugins:
    ASSIGNMENTS.RPLN
    TEXT.RPLN
    SPREAD.RPLN
    MASTER PAGE.RPLN
    TEXT ATTRIBUTES.RPLN
    .... and 13 more.
    When I go to Help > Configure Plug-Ins, I can see that I do have all of these plug-ins. But apparently they are not the latest versions.
    Anyone know how I can update these plugins? I have searched for them on the Adobe website, but no joy.
    Thanks in advance.
    Jen

    It's a safe bet that they are working in CS5. The only way to get those plugins is to install CS5 on your machine.
    You could ask your marketing department to export an IDML file from CS5, which you can open up in CS4, but it might fail horribly (and it's guaranteed to lay out incorrectly if they've used any tools in CS5 that aren't in CS4). If you rely on this workflow, by regularly using a document going back and forth between CS5 and CS4, chances are very, very good that it will fail at a critical moment. The only really safe thing to do here is to get everyone using the same version of InDesign.

Maybe you are looking for