Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4922258

FileNotFoundException thrown opening a large file (lnx)

    Details

    • Subcomponent:
    • Resolved In Build:
      b30
    • CPU:
      x86
    • OS:
      linux_2.4

      Description


      ###@###.### 2003-09-12

      J2SE Version (java version "1.5.0-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b18)
        Java HotSpot(TM) Client VM (build 1.5.0-beta-b18, mixed mode)

      Does this problem occur on J2SE 1.3, 1.4 or 1.4.1? Yes / No (pick one)
        No, it works fine with 1.4.2 and 1.5 b07.

      Operating System Configuration Information (be specific):
        Linux, using kernel 2.4 with large file support enabled.

      Bug Description:
        VM crashed with FileNotoundException exception when it tried to
        open an existing large file (> 2GB):

       java.io.FileNotFoundException:
      /export/najdi.si/backend/Trident3/IndexDirectory/Secondary/IndexServers/v434/IndexP.4leaf
         (Value too large for defined data type)
           at java.io.RandomAccessFile.open(Native Method)
           at java.io.RandomAccessFile.<init>(RandomAccessFile.java:204)
           at java.io.RandomAccessFile.<init>(RandomAccessFile.java:94)
           at si.noviforum.TxtIndex5.SLeafs.openFile(TxtIndex4.java:1363)
           at si.noviforum.TxtIndex5.SLeafs.<init>(TxtIndex4.java:1291)
           at si.noviforum.TxtIndex5.ReadOnlySTree.<init>(ReadOnlySTree.java:62)
           at si.noviforum.TxtIndex5.Index.Indexer.loadIndex(Indexer.java:665)
           at si.noviforum.TxtIndex5.Index.Indexer.<init>(Indexer.java:190)
           at si.noviforum.TxtIndex5.Index.IndexerSearcher.<init>(IndexerSearcher.java:78)
           at si.noviforum.TxtIndex5.Index.IndexServer.<init>(IndexServer.java:118)
           at si.noviforum.TxtIndex5.Index.DataAwareIndexServer.<init>(DataAwareIndexServer.java:56)
           at si.noviforum.TxtIndex5.Index.GroupedIndexServer.<init>(GroupedIndexServer.java:73)
           at si.noviforum.TxtIndex5.Index.GroupedPreviewIndexServer.<init>(GroupedPreviewIndexServer.java:64)
           at si.noviforum.trident3.TridentIndexServer.<init>(TridentIndexServer.java:94)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
      pl.java:27)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:275)
           at si.noviforum.TxtIndex5.IndexDirectory.IndexDirectory$1$RemoteThread.run(IndexDirectory.java:371)

      Steps to Reproduce (be specific):
        run Big twice and get FileNotFound exception.

      Test program: (Big.java)
         
         import java.io.*;

          public class Big {

              public static void main(String[] args) throws Exception {
                  File f = new File("big");
                  RandomAccessFile raf = new RandomAccessFile(f, "rw");
                  raf.seek((long)Integer.MAX_VALUE * 10);
                  raf.write('x');
                  long l = raf.length();
                  System.out.println((l == 0) ? "FAIL" : ("OK: " + l));
                  raf.close();
              }

          }


        Attachments

          Activity

            People

            • Assignee:
              mmcclosksunw Michael Mccloskey (Inactive)
              Reporter:
              tyao Ting-Yun Ingrid Yao (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: