Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6448

InaccessibleObjectException: Unable to make field accessible

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • 13
    • debugger - Java
    • None

    Description

      This is thrown from org.netbeans.modules.debugger.jpda.truffle.DebugAllBaseTest on JDK 17:

      SEVERE [org.openide.util.Exceptions]
      java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.String java.net.URI.userInfo accessible: module java.base does not "opens java.net" to unnamed module @3189c6bd
      	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
      	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
      	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
      	at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
      	at org.netbeans.modules.debugger.jpda.models.VariableMirrorTranslator.setFieldsValues(VariableMirrorTranslator.java:259)
      	at org.netbeans.modules.debugger.jpda.models.VariableMirrorTranslator.createMirrorObject(VariableMirrorTranslator.java:245)
      	at org.netbeans.modules.debugger.jpda.models.VariableMirrorTranslator.createMirrorObject(VariableMirrorTranslator.java:114)
      	at org.netbeans.modules.debugger.jpda.models.VariableMirrorTranslator.createMirrorObject(VariableMirrorTranslator.java:95)
      	at org.netbeans.modules.debugger.jpda.models.AbstractVariable.createMirrorObject(AbstractVariable.java:463)
      	at org.netbeans.modules.debugger.jpda.truffle.access.TruffleAccess.getSourcePosition(TruffleAccess.java:551)
      	at org.netbeans.modules.debugger.jpda.truffle.access.TruffleAccess.getCurrentPosition(TruffleAccess.java:432)
      	at org.netbeans.modules.debugger.jpda.truffle.access.TruffleAccess.getCurrentPosition(TruffleAccess.java:421)
      	at org.netbeans.modules.debugger.jpda.truffle.access.TruffleAccess.setCurrentPosition(TruffleAccess.java:401)
      	at org.netbeans.modules.debugger.jpda.truffle.access.TruffleAccess.breakpointReached(TruffleAccess.java:372)
      	at org.netbeans.api.debugger.jpda.JPDABreakpoint.fireJPDABreakpointChange(JPDABreakpoint.java:275)
      	at org.netbeans.api.debugger.jpda.JPDADebugger.fireBreakpointEvent(JPDADebugger.java:466)
      	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.fireBreakpointEvent(JPDADebuggerImpl.java:647)
      	at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.perform(BreakpointImpl.java:535)
      	at org.netbeans.modules.debugger.jpda.breakpoints.MethodBreakpointImpl.exec(MethodBreakpointImpl.java:253)
      [catch] at org.netbeans.modules.debugger.jpda.util.Operator.processEvents(Operator.java:518)
      	at org.netbeans.modules.debugger.jpda.util.Operator.access$800(Operator.java:96)
      	at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:228)
      	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      	at org.netbeans.modules.debugger.jpda.util.Operator$2.run(Operator.java:260)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      

      Attachments

        Activity

          People

            entlicher Martin Entlicher
            entlicher Martin Entlicher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: