JFileChooser with directory

Hi friends, i have to select the path of a directory.
The function of my button for the file is:
bq.      Action action1 = new AbstractAction("Sfoglia") { \\      public void actionPerformed(ActionEvent evt) { \\      JPanel p = new JPanel(); \\      JFileChooser c = new JFileChooser(); \\      int app = c.showOpenDialog(p); \\      if(app == JFileChooser.APPROVE_OPTION){ \\      chaos = c.getSelectedFile().getPath(); \\     } \\     } \\     };
how i can modify this function to get the directory??

In the future, Swing questions should be posted to the Swing forum:
http://forum.java.sun.com/forum.jspa?forumID=57
If you have to select a directory, not an ordinary file, why not do this first?
fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);

Similar Messages

  • How to create a table with directory which is on different machine

    Hi All,
    I have two servers one is db server db1 and another is app server app1
    I will get files from customer into app1 server in the path d:\files\incoming
    I want to create a table with directory (when I create that it will be mapped to db1) which maps to app1\d\files\incoming,
    please let me know how to achieve this,

    NSK2KSN wrote:
    Hi All,
    I have two servers one is db server db1 and another is app server app1
    I will get files from customer into app1 server in the path d:\files\incoming
    I want to create a table with directory (when I create that it will be mapped to db1) which maps to app1\d\files\incoming,
    please let me know how to achieve this,This is nothing to do with SQL or PL/SQL as such.
    The answer lies in the remit of your Windows administrator to create an alias or link that points
    from your db server to your app server.
    Once that is done, you can refer to the directory as if it was a local one situated on the db server, as normal.
    Edited by: Paul Horth on Feb 21, 2013 10:13 AM
    Changed Unix to Windows when I noticed the direction of the slashes.

  • PI 7.1 - CPA Cache not updated with directory data.

    Hi Gurus,
    I have installed PI 7.1 and recently I refreshed my cache in partial and full mode. when I go to RWB->Cache monitoring -> Show Cache Status Table, I see following error for Central Adaptor engine.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ConfirmationXML>
       <CacheRefreshError>
          <EngineType>
          AE
          </EngineType>
          <EngineName>
          af.sxd.mchir134
          </EngineName>
          <RefreshMode>
          C
          </RefreshMode>
          <GlobalError>
             <Message>
             CPA Cache not updated with directory data.
             </Message>
             <Trace>
             com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Failed to check secure connection configuration. Reason: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:134)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDeltaRefreshURL(DirectoryAccess.java:191)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDeltaCacheUpdateXML(DirectoryAccess.java:440)
         at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:491)
         at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:322)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:144)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:242)
    Caused by: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:471)
         at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getSLDInstanceName(SLDAccessImpl.java:96)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:119)
         ... 7 more
    Caused by: com.sap.aii.utilxi.sld.SldReadFailedException: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:126)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:142)
         at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:458)
         ... 9 more
    Caused by: com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.utilxi.sld.SldProxy.getXISubSystem(SldProxy.java:526)
         at com.sap.aii.utilxi.sld.XIEntityInSld.getInstFromSld(XIEntityInSld.java:494)
         at com.sap.aii.utilxi.sld.XIEntityInSld.readFromSld(XIEntityInSld.java:156)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:120)
         ... 11 more
             </Trace>
          </GlobalError>
          <GlobalError>
             <Message>
             Confirmation handling failed.
             </Message>
             <Trace>
             com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Failed to check secure connection configuration. Reason: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:134)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getConfirmationURL(DirectoryAccess.java:162)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.invokeConfirmationURL(DirectoryAccess.java:462)
         at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:603)
         at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:322)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:144)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:242)
    Caused by: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:471)
         at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getSLDInstanceName(SLDAccessImpl.java:96)
         at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:119)
         ... 7 more
    Caused by: com.sap.aii.utilxi.sld.SldReadFailedException: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:126)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:142)
         at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:458)
         ... 9 more
    Caused by: com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable)
         at com.sap.aii.utilxi.sld.SldProxy.getXISubSystem(SldProxy.java:526)
         at com.sap.aii.utilxi.sld.XIEntityInSld.getInstFromSld(XIEntityInSld.java:494)
         at com.sap.aii.utilxi.sld.XIEntityInSld.readFromSld(XIEntityInSld.java:156)
         at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:120)
         ... 11 more
             </Trace>
          </GlobalError>
       </CacheRefreshError>
    </ConfirmationXML>
    Please suggest the solution.
    Thanks,
    Surendra

    Guys,
    I have the same issue. Any help on this is appreciated!
    Issue log from CPA cache refresh
    <?xml version="1.0" encoding="UTF-8" ?>
    - <CacheRefreshError> 
    <EngineType>AE</EngineType>  
    <EngineName>af.sxd.pl1vw158</EngineName>  
    <RefreshMode>C</RefreshMode>  
    - <GlobalError> 
    <Message>CPA Cache not updated with directory data.</Message>  
    <Trace>com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Failed to check secure connection configuration. Reason: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:134) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDeltaRefreshURL(DirectoryAccess.java:195) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDeltaCacheUpdateXML(DirectoryAccess.java:448) at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:457) at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:291) at com.sap.engine.frame.core.thread.Task.run(Task.java:73) at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:162) at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:260) Caused by: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable) at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:505) at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getSLDInstanceName(SLDAccessImpl.java:96) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:119) ... 7 more Caused by: com.sap.aii.utilxi.sld.SldReadFailedException: HTTP response code: 503 (Service Unavailable) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:133) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:150) at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:492) ... 9 more Caused by: com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable) at com.sap.aii.utilxi.sld.SldProxy.getXISubSystem(SldProxy.java:527) at com.sap.aii.utilxi.sld.XIEntityInSld.getInstFromSld(XIEntityInSld.java:553) at com.sap.aii.utilxi.sld.XIEntityInSld.readFromSld(XIEntityInSld.java:165) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:127) ... 11 more</Trace>  
    </GlobalError>
    - <GlobalError> 
    <Message>Confirmation handling failed.</Message>  
    <Trace>com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Failed to check secure connection configuration. Reason: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:134) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getConfirmationURL(DirectoryAccess.java:166) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.invokeConfirmationURL(DirectoryAccess.java:470) at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:576) at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:291) at com.sap.engine.frame.core.thread.Task.run(Task.java:73) at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:162) at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:260) Caused by: com.sap.aii.af.lib.sld.SLDException: Failed to read SLD instance name. Reason: HTTP response code: 503 (Service Unavailable) at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:505) at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getSLDInstanceName(SLDAccessImpl.java:96) at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDirectoryURL(DirectoryAccess.java:119) ... 7 more Caused by: com.sap.aii.utilxi.sld.SldReadFailedException: HTTP response code: 503 (Service Unavailable) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:133) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:150) at com.sap.aii.af.lib.sld.impl.SLDAccessor.getSLDInstanceName(SLDAccessor.java:492) ... 9 more Caused by: com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable) at com.sap.aii.utilxi.sld.SldProxy.getXISubSystem(SldProxy.java:527) at com.sap.aii.utilxi.sld.XIEntityInSld.getInstFromSld(XIEntityInSld.java:553) at com.sap.aii.utilxi.sld.XIEntityInSld.readFromSld(XIEntityInSld.java:165) at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:127) ... 11 more</Trace>  
    </GlobalError>
    </CacheRefreshError>
    Regards

  • Performance concern with directory server implementation

    performance concern with directory server implementation
    I first posted this at metalink forum, and was suggested to post it here instead.
    Hi,
    I'd like to get any feedback regarding performance of oracle directory server implementation. Below is what I copy&patested from 9i Net Services Administrator's Guide, I found no 'directory server vendor documentation', so anything regarding this is welcome too.
    Performance
    Connect identifiers are stored in a directory server for all clients to access.
    Depending on the number of clients, there can be a significant load on a directory
    server.
    During a connect identifier lookup, a name is searched under a specific Oracle
    Context. Because of the scope of the lookup, you probably want users to experience
    relatively quick performance so that the database connect time is not affected. Users
    may begin to notice slow connect times if lookups takes more than one second.
    You can resolve performance problems changing the network topology or
    implementing replication.
    See Also: Directory server vendor documentation for details on
    resolving performance issues
    Thanks.
    Shannon

    Shannon,
    you can find some tuning advises in the following
    a) OiD Capacity Planning Considerations
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96574/cap_plan.htm#1030019
    b) Tuning Considerations
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96574/tuning.htm#999468
    c) oracle net services
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96579/products.htm#1005697
    you should start with a) to get an overview what to be aware of
    --Olaf

  • When I try to connect LDAP server with Directory certificate installed in Onboard Administrator , I get the below error message. Initiating Directory Settings diagnostic for LDAP server 10.0.0.2 port 636

    10.0.0.2Accepting Directory Server certificate for /CN=qtp-ldap.oaqtp.com signed by /DC=com/DC=oaqtp/CN=qtp-ldap
    Skipping certificate 1 (/CN=qtp-ldap.oaqtp.com): subject issuer mismatch 
    Certificate of Directory Server cannot be verified with the installed LDAP certificate. 
    Unable to establish SSL connection with directory server. 
    You may need to install a certificate for your server to allow SSL connections. 
    It says "Subject Issuer mismatch" .. What could be the reason ?
    -Shibi Keyan

    Well, it sounds like the certificate name is different than what you are trying to connect to. Can you try connecting to the DNS name instead? This sounds like a DNS and Certificate Name issue.
    http://social.technet.microsoft.com/wiki/contents/articles/2980.ldap-over-ssl-ldaps-certificate.aspx
    Kurt Hudson, Sr. Technical Writer AD DS, AD CS, PKI, Azure AD

  • After Effects warning: Error with directory?

    Okay so recently I was having issues with text layers not displaying properly, and I posted here and found that the solution was to recreate my preferences file. However, since then I have been getting an error while starting AE that says "After Effects warning: Error with directory:
    C:\Documents and Settings\Brandon\Application Data\Adobe\After Effects\8.0\MediaIO". Is there a way to fix this without returning to old preferences file that gave me the original problem?

    And what happens, if you simply delete the error? The directory itself is not that important, as it merely holds presets and caches for Adobe Media encoder based formats (MPEG-2,WMF, etc.). AE should re-create it, if needed. Short of that, check the permissions on the folder as a starting point...
    Mylenium

  • Flash or imaging solaris with directory server

    Hi,
    I don;t know weather it is "doable" or not and im not sure weather this question belong to directory server or solaris OS question.
    This is about OS imaging, but with directory server. Reason, i have to build 10 servers with directory server in it.
    Did anybody install directory server on a solaris machine and image that server?
    can i use the same image to create rest of the servers?
    Appriciate any thoughts / suggestions
    -S-

    Don't ask me exactly how but flash/flar/imaging is exactly that a complete system image. So you could do this but you will end up with 10 identical - i.e. hostname, IP , nodename - servers.
    If it's worth the effort I'd suggest putting the JES components that you need, with SILENT install templates etc, into a jumpstart configuration. Then jumpstart/install each server and run the silent installs with appropriate hostname configurations, I've seen this entirely automated but it takes some work
    If this is the only time you're EVER going to do this I'd say you're on the verge of the time worth it versus not stage, if you see the need to do this again in future I'd say it is worth the time investment.
    You may consider just using jumpstart with appropriate installation bits to get each server OS going and manually install the Directory.
    C

  • Why this code do not extract zip with directory

    This class only work with simple files in zip archiwe. How make the same effect with directory? Thanks for your time.
    public class ZipTest {
         public ZipTest() throws IOException {
               // Get the zip name and the entry name.          
               String zipName = "myzip.zip";
               String entryName = "myDir"+File.separatorChar+"myfile.gif";
               // Open the zip.
               ZipFile zip = new ZipFile(zipName);
               System.out.println(zipName + " opened.");
               try {
                  // Get the entry and its input stream.
                  ZipEntry entry = zip.getEntry(entryName);
                  if (entry != null) {
                     // Get an input stream for the entry.                
                     InputStream entryStream = zip.getInputStream(entry);                
                     try {
                        // Create the output file (clobbering the file if it exists).
                        FileOutputStream file = new FileOutputStream(entry.getName());
                        System.out.println(file.toString());
                        try {
                           // Allocate a buffer for reading the entry data.
                           byte[] buffer = new byte[1024];
                           int bytesRead;
                           // Read the entry data and write it to the output file.
                           while ((bytesRead = entryStream.read(buffer)) != -1) {
                              file.write(buffer, 0, bytesRead);                         
                           System.out.println(entry.getName() + " extracted.");
                        finally {
                           file.close();
                     finally {
                        entryStream.close();
                  else {
                     System.out.println(entryName + " not found.");
                  } // end if
               finally {
                  zip.close();
                  System.out.println(zipName + " closed.");
         public static void main(String[] args) {
              new ZipTest();
    }

    Hints: 1 and 2
    And for the love for <insert anything here>, catch!

  • JFileChooser with FileSystemView Selecting directory

    Hi,
    I am using JFileChooser and with my own implementation of FileSystemView .
    It is imposable to select a Directory.
    Q1. Do you have any clue about the problem?
    Q2. Is there any way I can add action listener to "Open" button.
    or listen to the events of "Open" button.
    Note:
        fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);is set.
    Regards,
    Byju

    In the future, Swing questions should be posted to the Swing forum:
    http://forum.java.sun.com/forum.jspa?forumID=57
    If you have to select a directory, not an ordinary file, why not do this first?
    fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);

  • How to make JFileChooser's directory as a droptarget?

    i able to drop file in the current directory of JFileChooser (on the "look in" of it e.g look in c:\) but when i drop my file to JFileChooser any of the directories which jfilechooser shows mouse cursor shows the disable symbol which indicates that this directory doesn't support drop target i also tried for writable directory but the problem is same.
    this is my code
    File node = chooser.getCurrentDirectory();
         // Only allow a drop on a writable directory
          if (node.isDirectory()) {
            try {
             File f = new File(node.getPath());
             if (f.canWrite()) {
                return f;
            } catch (Exception e) {
          }i think it is the problem of chooser,getCurrentDirectory(); statement.
    what should i have to place instead of this statement.
    Plz help me.

    Note: This thread was originally posted in the [New To Java|http://forums.sun.com/forum.jspa?forumID=54] forum, but moved to this forum for closer topic alignment.

  • 11 instances with Directory server Enterprise 6.3

    Hi all, I plan to install the Directory Enterprise server 6.3 with 11 instances. only 1 on the instances will be updated/modified, the rest of the instances are for Querying onl. the directory server will be running on a sun server with 4 CPUs and 4 GB of RAM. Each instance will hold an average of 55,000 entries.
    In your oponion, is a setup like this possibe?
    Thanks for your time

    Thanks for the reply Chris. This is something I inherited.
    there is data for a year on each instance. and each instance is running on a seperate port. so slapd-server-1 is running on port 1999, because it has the archived data from 1999, slapd-server-2 is running on port 2000 because it has the archived data from the year 2000. Here is what the instances look like.
    bash-3.00# ps -ef|grep slapd
    ldap 16690 12518 0 12:24:01 ? 2:15 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd-server-7 -i /opt/e
    ldap 16672 12518 0 12:23:27 ? 1:36 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd-server-5 -i /opt/e
    ldap 13281 12518 0 Jul 21 ? 4:12 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/var/dscc6/dcc/ads -i /opt/elds/var/d
    ldap 13264 12518 0 Jul 21 ? 4:09 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd10 -i /opt/
    ldap 16652 12518 0 12:20:33 ? 1:24 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd-server-3 -i /opt/e
    ldap 16699 12518 0 12:24:19 ? 2:29 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd-server-8 -i /opt/e
    ldap 13242 12518 0 Jul 21 ? 7:26 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd-server-9 -i /opt/e
    ldap 16681 12518 0 12:23:50 ? 1:49 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd--6 -i /opt/e
    ldap 13096 12518 0 Jul 21 ? 11:23 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd-server-2 -i /opt/e
    ldap 16663 12518 0 12:23:16 ? 1:30 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd-server-4 -i /opt/e
    ldap 17188 12518 0 13:48:02 ? 0:10 /opt/elds/ds6/lib/64/ns-slapd -D /opt/elds/ds6/slapd-server-1 -i /opt/e
    I actually had to disable theDCSS console because of memory issues. Question, i have not finished with this setup yet, is it best to get another server and split up the instances?
    thanks

  • Time capsule - problems with directory

    I have got time capsule running about two weeks ago and everything worked well Tuesday evening it came up with a message saying it could not access the directory on my Macbook pro - still doing it so switched it off - any suggestions?

    Here's something weird. Another annoying issue I've had with TC is that it slows down the network over time. I'm on Uverse at 10/1.5 and after a week or so it's down to about 2.5 to 3 down. A reboot of my Mac and TC and the problem goes away. So while I'm musing about the problem with the directory, I notice I'm starting to slow again. I reboot, and guess what? My directory is back all the way to April when I set it up.
    I'm beginning to suspect that TC/TM doesn't play well with a couple of other applications. One of the companies I'm working with uses a P2P system to send around some monster video files and I'm using something called Azureus (which is also hook up with an application called Vuez that seems to be a YouTube sort of thing). I run Azureus overnight as do most of the development guys I'm working with so we can send around some big video files and have them ready for review and discussion in the morning. I didn't have anything coming in or going out last night and didn't launch the program after the reboot and everyhing is fine so far. It's my first suspect. If not that, then something else maybe is fighting TM for resources? Anyway, I'll keep an eye on this and post if something becomes obvious.

  • How to save a file in Jfilechooser with extension

    hi all
    i'm trying to save a file with a certain extension
    i have my class that extends FileFilter, and which write into the jfilechooser combo box with extensions. .jar
    how can i save a file with this extension?
    here is the code
    JFileChooser fileChooser = new JFileChooser();
              fileChooser.addChoosableFileFilter(new JarFilter());
              int returnVal = fileChooser.showDialog(new JFrame(), "Export");
              if (returnVal == JFileChooser.APPROVE_OPTION) {
                   File file = fileChooser.getSelectedFile();
                   try {
                        JarExporter exporter=new JarExporter(this.generateXMLString(file.getName().replaceAll(".jar", "")),
                                       this.editor.getLinkageCanvas().getSelectedWidgetIDs());
                        exporter.exportJarFile(file);
                   } catch (Exception exception) {
                        System.out.println("Export error.");
              }

    hi all
    i'm trying to save a file with a certain extension
    i have my class that extends FileFilter, and which write into the jfilechooser combo box with extensions. .jar
    how can i save a file with this extension?
    here is the code
    JFileChooser fileChooser = new JFileChooser();
              fileChooser.addChoosableFileFilter(new JarFilter());
              int returnVal = fileChooser.showDialog(new JFrame(), "Export");
              if (returnVal == JFileChooser.APPROVE_OPTION) {
                   File file = fileChooser.getSelectedFile();
                   try {
                        JarExporter exporter=new JarExporter(this.generateXMLString(file.getName().replaceAll(".jar", "")),
                                       this.editor.getLinkageCanvas().getSelectedWidgetIDs());
                        exporter.exportJarFile(file);
                   } catch (Exception exception) {
                        System.out.println("Export error.");
              }

  • MimeBodyPart.getFileName() returns file name with directory path.

    Hi
    The documentation says getFileName() returns filename ,not including directory components. But it is returning
    path like Eserv generic/mails/a.html. Can it return a full path in some mail servers?
    Please respond.
    Thanks

    The documentation says getFileName() returns filename ,not including directory components.I think you must be misinterpreting the documentation. Where did you read that?
    The getFileName method returns whatever the sender sent as a file name. The send should
    send only a simple file name, with no directory components, but they can send anything, and
    you should protect against abuse before using such a file name.

  • Problem with directory/file

    I urgently need your help. I am working on Win2K.
    I try to create a directory, then insert a file into this directory, and write to this directory, such as the following:
    quote:
    File aDirectory = new File("Directory");
    aDirectory.mkdir();
    File aFileName = new File(aDirectory, "4444"+".dat");
    When I test this piece of code, I got the following errors:
    java.io.FileNotFoundException: 1111
    .dat (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileWriter.<init>(Unknown Source)
    at com.kroger.DirectoryQueue.POGRequestQueueImpl.writeId(POGRequestQueueImpl.java:46)
    at com.kroger.DirectoryQueue.QueueFileHandler.main(QueueFileHandler.java:10)
    com.kroger.DirectoryQueue.POGRequestQueueException: Write error
    at com.kroger.DirectoryQueue.POGRequestQueueImpl.writeId(POGRequestQueueImpl.java:53)
    at com.kroger.DirectoryQueue.QueueFileHandler.main(QueueFileHandler.java:10)
    It seems the code is calling native method. I am wondering what is causing these errors? My setup of directory or file names? Please give your thought.
    Thanks......

    at java.io.FileWriter.<init>(Unknown Source)It looks like it is an error that occurs when you
    try to write to the file with a FileWriter object.
    The following works ok for me with Windows XP:
      File aDirectory = new File("Directory");
      aDirectory.mkdir();
      File aFileName = new File(aDirectory, "4444"+".dat");
      FileWriter fr = new FileWriter(aFileName);
      fr.write("This is a test.");
      fr.flush();
      fr.close();How are you trying to write to your file?
    Alpha75

Maybe you are looking for

  • Studio Display 21" with Mac Mini?

    I am considering getting a Mac Mini as an economical upgrade to my B/W G3 system but I want to make sire that my monitor is going to work with it. I have the origingal blue and white 21" Studio Display. the System Profiler says this...... Displays: S

  • Batch change clip duration - multiple photos in iMovie 11

    Hi everyone, Many thanks to anyone who can help. I know about clicking on the cogwheel to adjust the duration of a single photo, or to apply to ALL photos, but what I'd like to do is select a group of photos out of all the ones I've already added to

  • Why very higher charge than T-Mibile?

    According to T-mobile family plans, 3 lines are for $90.00 only.  My monthly payment is for 180.00 (3 lines).  2 times expenses.  Do you know why?

  • Adding RADIUS VSAs on ACS 3.2 SE

    I have tried to add a VSA to enable a Packeteer to authenticate using RADIUS on the ACS. Using RDBMS synchronization to import the csv file below. SequenceId,Priority,GroupName,Action,ValueName ,Value1,Value2,Value3 1,1,External,163,26,access=look,23

  • AirTunes with more than 5 Express

    Has anyone tried to manage AirTunes with more than 5 Airport Express Base stations at the same time? Apple says that not more than 5 bases are supported but I need to use at least 8 bases for a job. Thanks for the answers! Mac Pro, PBook G4 15", iBoo