You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Andreas Sewe (JIRA)" <ji...@apache.org> on 2017/04/07 14:05:41 UTC

[jira] [Created] (FELIX-5607) InaccessibleObjectException below Pipe.run on Java 9

Andreas Sewe created FELIX-5607:
-----------------------------------

             Summary: InaccessibleObjectException below Pipe.run on Java 9
                 Key: FELIX-5607
                 URL: https://issues.apache.org/jira/browse/FELIX-5607
             Project: Felix
          Issue Type: Bug
          Components: Gogo Runtime
    Affects Versions: gogo.runtime-0.10.0
         Environment: java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+159)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+159, mixed mode)


            Reporter: Andreas Sewe
            Priority: Minor


This has originally been reported as Eclipse [Bug 514939|https://bugs.eclipse.org/bugs/show_bug.cgi?id=514939]. It occurs on an Eclipse 4.7 M6 SDK, which ships the rather old Gogo runtime 0.10.0. The VM is launched with {{\-\-add-modules=ALL-SYSTEM}} and {{\-\-permit-illegal-access}}.

{noformat}
osgi> ss | grep gogo
59	ACTIVE      org.apache.felix.gogo.command_0.10.0.v201209301215
60	ACTIVE      org.apache.felix.gogo.runtime_0.10.0.v201209301036
61	ACTIVE      org.apache.felix.gogo.shell_0.10.0.v201212101605
java.lang.reflect.InaccessibleObjectException: Unable to make synchronized void java.io.PipedInputStream.receivedLast() accessible: module java.base does not "opens java.io" to unnamed module @2a321984
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:335)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:278)
	at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:196)
	at java.base/java.lang.reflect.Method.setAccessible(Method.java:190)
	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:140)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)