Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6779680

JSDT: invalid provider interface is not detected

XMLWordPrintable

    • svc
    • generic
    • generic

      Test
      com/sun/tracing/BasicFunctionality.java

      fails (on Solaris) with
      java.lang.Exception: Factory.createProvider: Should error with non-void probes
              at BasicFunctionality.fail(BasicFunctionality.java:64)
              at BasicFunctionality.testProviderFactory(BasicFunctionality.java:81)
              at BasicFunctionality.main(BasicFunctionality.java:58)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:623)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
              at java.lang.Thread.run(Thread.java:674)

      Looks like invalid provider interface is not detected.
      Here is the entry from my nightly analysis report:

      New MISC_REGRESSION failures (from 2008.12.01)
      * com/sun/tracing/BasicFunctionality.java
              This test failed due to "java.lang.Exception:
              Factory.createProvider: Should error with non-void probes" on
              Linux AMD64 Server VM (machine sfx2100-05), Linux IA32 Client
              VM (machine sfx2100-04), Linux IA32 Server VM (machine
              sfx2100-05), Solaris AMD64 Server VM (machine vm-v20z-10),
              Solaris X86 Client VM (machine vm-v20z-28), Solaris X86 Server
              VM (machine vm-v20z-8), Solaris SPARC Client VM (machine
              vm-b1600s-4), Solaris SPARC Server VM (machine vm-v100-01),
              Solaris SPARC-64 Server VM (machine sfsparc002), Win-AMD64
              Server VM (machine VM-X2200-02), Win32 Client VM (machine
              vm-x2200-01), and Win32 Server VM (machine reema).

              This test does not appear to have executed in the 2008.11.29
              nightly. Since there wasn't a JDK change, why is this test
              executing now?
      With the promotion of JDK7-B78, it looks like we have another test
      with the same failure mode:

          com/sun/tracing/BasicWithSecurityMgr.java

      Here is a link to an example failure:

      http://sqeweb.sfbay.sun.com/nfs/results/vm/gtee/JDK7/NIGHTLY/VM/2009-12-17/RT_Baseline/javase/linux-amd64/server/comp/linux-amd64_server_comp_MISC_REGRESSION/workDir/com/sun/tracing/BasicWithSecurityMgr.jtr

      Here is a snippet of the .jtr file:

      Dec 17, 2009 8:57:36 PM sun.tracing.NullProviderFactory createProvider
      WARNING: Could not initialize tracing provider: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")
      Dec 17, 2009 8:57:39 PM sun.tracing.NullProviderFactory createProvider
      WARNING: Could not initialize tracing provider: null
      Dec 17, 2009 8:57:39 PM sun.tracing.NullProviderFactory createProvider
      WARNING: Could not initialize tracing provider: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")
      java.lang.Exception: Factory.createProvider: Should error with non-void probes
      at BasicWithSecurityMgr.fail(BasicWithSecurityMgr.java:67)
      at BasicWithSecurityMgr.testProviderFactory(BasicWithSecurityMgr.java:84)
      at BasicWithSecurityMgr.main(BasicWithSecurityMgr.java:61)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:613)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:717)

            ykantser Yekaterina Kantserova (Inactive)
            nhaustov Nicolay Haustov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: