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 251929 - InternalError: Should never happen
Summary: InternalError: Should never happen
Status: RESOLVED WONTFIX
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-19 01:05 UTC by Maux
Modified: 2015-04-21 11:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 216840


Attachments
stacktrace (2.98 KB, text/plain)
2015-04-19 01:05 UTC, Maux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maux 2015-04-19 01:05:02 UTC
This bug was originally marked as duplicate of bug 200718, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26
OS: Windows 7

User Comments:
Maux: This warning appeared at the time the program was started.




Stacktrace: 
java.lang.InternalError: Should never happen
   at org.netbeans.lib.profiler.common.Profiler.getDefault(Profiler.java:125)
   at org.netbeans.modules.profiler.NetBeansProfiler.getDefaultNB(NetBeansProfiler.java:471)
   at org.netbeans.modules.profiler.NetBeansProfiler.isInitialized(NetBeansProfiler.java:477)
   at org.netbeans.modules.profiler.ProfilerModule.closing(ProfilerModule.java:80)
   at org.netbeans.core.startup.NbInstaller.closing(NbInstaller.java:707)
   at org.netbeans.ModuleManager.shutDownAsync(ModuleManager.java:1986)
Comment 1 Maux 2015-04-19 01:05:05 UTC
Created attachment 153263 [details]
stacktrace
Comment 2 Tomas Hurka 2015-04-21 11:27:20 UTC
The problem is caused by VerifyError see:

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    org/netbeans/lib/profiler/utils/MiscUtils.inSamePackage(Ljava/lang/String;Ljava/lang/String;)Z @40: istore
  Reason:
    Type 'java/lang/String' (current frame, stack[1]) is not assignable to integer
  Current Frame:
    bci: @40
    flags: { }
    locals: { 'java/lang/String', 'java/lang/String', integer, integer }
    stack: { 'java/lang/String', 'java/lang/String' }
  Bytecode:
    0x0000000: 2a10 2eb6 0242 3d2b 102e b602 423e 1c1d
    0x0000010: 9f00 0503 ac1c 02a0 0005 04ac 2a03 1cb6
    0x0000020: 0249 2b03 1db6 0249 3602 44ac          
  Stackmap Table:
    append_frame(@21,Integer,Integer)
    same_frame(@28)


This looks really strange and suggests that the NetBeans installation is somehow broken. Can you please reinstall NetBeans at C:\Program Files\NetBeans 8.0.2 - this should fix it. Thanks.