Harmony
  1. Harmony
  2. HARMONY-5462

[drlvm][instrument][geronimo] -javaagent option not supported

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.0M4, 5.0M5
    • Fix Version/s: None
    • Labels:
      None

      Description

      Harmony launcher doesn't support -javaagent startup option. That option is a part of J2SE5 spec [1], so it probably should be supported.

      The java.lang.instrument package (the option is part of) exists in Harmony classlib, and the question of having the option support has quite a story in discussion [2] [3] [4], but the option is not yet supported. There's even a JIRA issue [5] for this problem for IBM VME.

      This issue affects Geronimo, as it uses that option and provides it's own jpa.jar.

      [1] http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/package-summary.html
      [2] http://thread.gmane.org/gmane.comp.java.harmony.devel/11197
      [3] http://thread.gmane.org/gmane.comp.java.harmony.devel/12200
      [4] http://thread.gmane.org/gmane.comp.java.harmony.devel/31652
      [5] http://issues.apache.org/jira/browse/HARMONY-3128

        Issue Links

          Activity

          Hide
          Ingo Siebert added a comment -

          Sorry, I thought this is an JSVC error (because i searched for it). But it seems it's harmoy only.

          Show
          Ingo Siebert added a comment - Sorry, I thought this is an JSVC error (because i searched for it). But it seems it's harmoy only.
          Hide
          Ingo Siebert added a comment -

          We only want to open one specific port for a Java JConsole remote access to our servers.
          But jmx opens randonly additional ports and these ports are not passed by our (many) firewall.

          That's why we need the javaagent argument because with this argument we are able to reduce the number of needed ports.

          I think the requirement is for many users important and it gets more important with every java version, because JMX/JConsole is becoming better and better.

          Show
          Ingo Siebert added a comment - We only want to open one specific port for a Java JConsole remote access to our servers. But jmx opens randonly additional ports and these ports are not passed by our (many) firewall. That's why we need the javaagent argument because with this argument we are able to reduce the number of needed ports. I think the requirement is for many users important and it gets more important with every java version, because JMX/JConsole is becoming better and better.
          Hide
          Vasily Zakharov added a comment -

          No, Geronimo bases on OpenJPA that actually uses an agent to instrument the classes in runtime.

          So the problem is not only in the -javaagent option but in java.lang.instrument package implementation also.

          Show
          Vasily Zakharov added a comment - No, Geronimo bases on OpenJPA that actually uses an agent to instrument the classes in runtime. So the problem is not only in the -javaagent option but in java.lang.instrument package implementation also.
          Hide
          Pavel Pervov added a comment -

          Vasily,

          Is it enough for the start to silently ignore the option?

          Show
          Pavel Pervov added a comment - Vasily, Is it enough for the start to silently ignore the option?
          Hide
          Vasily Zakharov added a comment -

          Escalating to Critical, as this issue effectively blocks SPECjAppServer2004 from running on Geronimo on Harmony.

          Show
          Vasily Zakharov added a comment - Escalating to Critical, as this issue effectively blocks SPECjAppServer2004 from running on Geronimo on Harmony.

            People

            • Assignee:
              Unassigned
              Reporter:
              Vasily Zakharov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development