This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197169 - Cannot create project from binary file if size of binary file is large then 2G
Summary: Cannot create project from binary file if size of binary file is large then 2G
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 04:47 UTC by Alexander Simon
Modified: 2011-04-01 08:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2011-03-29 04:47:21 UTC
Exception in console:
 Exception in file /home/as204739/debug_size/oracle.g: Size exceeds Integer.MAX_VALUE
 java.lang.IllegalArgumentException: Size exceeds Integer.MAX_VALUE
 	at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:694)
 	at org.netbeans.modules.cnd.dwarfdump.reader.MyRandomAccessFile.<init>(MyRandomAccessFile.java:61)
 	at org.netbeans.modules.cnd.dwarfdump.FileMagic.<init>(FileMagic.java:60)
 	at org.netbeans.modules.cnd.dwarfdump.Dwarf.<init>(Dwarf.java:85)
 	at org.netbeans.modules.cnd.dwarfdiscovery.provider.BaseDwarfProvider.sizeComilationUnit(BaseDwarfProvider.java:225)
 	at org.netbeans.modules.cnd.dwarfdiscovery.provider.AnalyzeExecutable.canAnalyze(AnalyzeExecutable.java:218)
 	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicableDwarfExecutable(DiscoveryExtension.java:168)
 	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicable(DiscoveryExtension.java:123)
 	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.discoverArtifacts(DiscoveryExtension.java:86)
 	at org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanelVisual$5.run(SelectBinaryPanelVisual.java:209)
 	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
 	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Comment 1 Alexander Simon 2011-03-31 18:25:23 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/61fc6bc6706d
Comment 2 Quality Engineering 2011-04-01 08:39:23 UTC
Integrated into 'main-golden', will be available in build *201104010400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/61fc6bc6706d
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #197169 Cannot create project from binary file if size of binary file is large then 2G