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

REGRESSION: codebase_lookup is ignored and get security warning message for mixed code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 6u20
    • deploy

      J2SE Version (please include all output from java -version flag):

      1.6.0_20
       
      Does this problem occur on J2SE 1.4.x or 5.0.x or 6.0?Yes / No (pick one)

      No

      Operating System Configuration Information (be specific):

      Linux and Windows

      Bug Description:

      It look like that the applet parameter codebase_lookup is ignored or
      does not work correctly.

      The result is a mixed signed code error message. We have

      * an applet that is 100% signed (one jar file).
      * For problems with older Java VMs we have an empty
        META-INF/services/javax.print.PrintServiceLookup
        file (0 bytes) on the web server. Older VMs have problems if there is an
        error html page with a status 200.
      * so we have to set the applet parameter <param name="codebase_lookup" value="false">
      * In the applet we call: PrintServiceLookup.lookupDefaultPrintService()


      The result is that there are 2 HTTP request to the web server

        HEAD META-INF/services/javax.print.PrintServiceLookup

      This should not occur, i.e. there should have no extra round trip to
      the server. All classes and resources are already in the jar files.
      They set up this parameter is to solve a performance problem.

      The next is a security box with a warning for mixed code.
      A thread dump (see below)
      on showing the error box make visible that
      it is a problem of PrintServiceLookup.lookupDefaultPrintService().

       

      Here is the content of our applet tag:

      <applet code="com.inet.adhoc.client.loader.AHLoader" codebase="../core" archive="adhocLoader.jar" id="AdHoc" width="100%" height="100%">

      ????? <param name="codebase_lookup" value="false">

      ????? <param name="cookie" value="JSESSIONID=1g57nnr9rpcca">

      ????? <div><h1>Java is not active in your Browser</h1><p>You have to activate Java for your browser to display the content of this page.You can download Java at <a href="http://www.java.com/download/" title="SUN Java download">http://www.java.com/de/download/&lt;/a&gt;.&lt;/p&gt;&lt;/div>

      </applet>

       

       

      Java Plug-in 1.6.0_20

      Verwendung der JRE-Version 1.6.0_20-b02 Java HotSpot(TM) Server VM Home-Verzeichnis des Benutzers = /home/xxxx

       

      ----------------------------------------------------

      c:?? Konsole löschen

      f:?? Objekte in Finalisierungswarteschlange finalisieren

      g:?? Speicherbereinigung

      h:?? Diese Hilfemeldung anzeigen

      l:?? ClassLoader-Liste ausgeben

      m:?? Speicherbelegung anzeigen

      o:?? Protokollierung auslösen

      q:?? Konsole ausblenden

      r:?? Richtlinien-Konfiguration neu laden

      s:?? System- und Bereitstellungseigenschaften ausgeben

      t:?? Threadliste ausgeben

      v:?? Thread-Stack ausgeben

      x:?? ClassLoader-Cache löschen

      0-5: Trace-Stufe auf <n> setzen

      ----------------------------------------------------

       

      ----------------------------------------------------

      2010-04-28 17:07:15

      Full thread dump Java HotSpot(TM) Server VM (16.3-b01 mixed mode):

       

      "Image Fetcher 1" daemon prio=10 tid=0x0a15b400 nid=0x6477 in Object.wait() [0x8c9ad000]

      ?? java.lang.Thread.State: TIMED_WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0xa9c8e5a8> (a java.util.Vector)

      ??? at sun.awt.image.ImageFetcher.nextImage(ImageFetcher.java:114)

      ??? - locked <0xa9c8e5a8> (a java.util.Vector)

      ??? at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:167)

      ??? at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

       

      "Image Fetcher 0" daemon prio=10 tid=0x0a157800 nid=0x6476 in Object.wait() [0x8c9fe000]

      ?? java.lang.Thread.State: TIMED_WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0xa9c8e5a8> (a java.util.Vector)

      ??? at sun.awt.image.ImageFetcher.nextImage(ImageFetcher.java:114)

      ??? - locked <0xa9c8e5a8> (a java.util.Vector)

      ??? at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:167)

      ??? at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

       

      "SysExecutionThead" prio=10 tid=0x0be6d000 nid=0x6475 in Object.wait() [0x8da66000]

      ?? java.lang.Thread.State: WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0xa9cfd308> (a java.awt.EventQueue$1AWTInvocationLock)

      ??? at java.lang.Object.wait(Object.java:485)

      ??? at java.awt.EventQueue.invokeAndWait(EventQueue.java:993)

      ??? - locked <0xa9cfd308> (a java.awt.EventQueue$1AWTInvocationLock)

      ??? at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1320)

      ??? at com.sun.deploy.ui.DialogTemplate.setVisible(DialogTemplate.java:1531)

      ??? at com.sun.deploy.ui.UIFactory$8.execute(UIFactory.java:650)

      ??? at sun.plugin.util.PluginSysUtil$SysExecutionThread.run(PluginSysUtil.java:291)

       

      "Thread-12" daemon prio=10 tid=0x09fe3000 nid=0x6474 waiting on condition [0x8dc76000]

      ?? java.lang.Thread.State: TIMED_WAITING (sleeping)

      ??? at java.lang.Thread.sleep(Native Method)

      ??? at sun.print.UnixPrintServiceLookup$PrinterChangeListener.run(UnixPrintServiceLookup.java:748)

       

      "Image Fetcher 3" daemon prio=10 tid=0x0b3f3400 nid=0x6473 in Object.wait() [0x8e05b000]

      ?? java.lang.Thread.State: TIMED_WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0x9458b6d8> (a java.util.Vector)

      ??? at sun.awt.image.ImageFetcher.nextImage(ImageFetcher.java:114)

      ??? - locked <0x9458b6d8> (a java.util.Vector)

      ??? at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:167)

      ??? at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

       

      "Image Animator 3" daemon prio=10 tid=0x8c8f0400 nid=0x6472 sleeping[0x8de9e000]

      ?? java.lang.Thread.State: TIMED_WAITING (sleeping)

      ??? at java.lang.Thread.sleep(Native Method)

      ??? at sun.awt.image.GifFrame.dispose(GifImageDecoder.java:653)

      ??? at sun.awt.image.GifImageDecoder.readImage(GifImageDecoder.java:441)

      ??? at sun.awt.image.GifImageDecoder.produceImage(GifImageDecoder.java:195)

      ??? at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)

      ??? at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)

      ??? at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

       

      "AHWorkerThread" prio=10 tid=0x8c8efc00 nid=0x6471 in Object.wait() [0x8e282000]

      ?? java.lang.Thread.State: WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0xa9c5b7f8> (a sun.plugin.util.PluginSysUtil$SysExecutionThread)

      ??? at java.lang.Thread.join(Thread.java:1143)

      ??? - locked <0xa9c5b7f8> (a sun.plugin.util.PluginSysUtil$SysExecutionThread)

      ??? at java.lang.Thread.join(Thread.java:1196)

      ??? at sun.plugin.util.PluginSysUtil.execute(PluginSysUtil.java:229)

      ??? at sun.plugin.util.PluginSysUtil.delegate(PluginSysUtil.java:168)

      ??? at com.sun.deploy.util.DeploySysRun.execute(DeploySysRun.java:24)

      ??? at com.sun.deploy.util.DeploySysRun$1.run(DeploySysRun.java:46)

      ??? at java.security.AccessController.doPrivileged(Native Method)

      ??? at com.sun.deploy.util.DeploySysRun.executePrivileged(DeploySysRun.java:42)

      ??? at com.sun.deploy.ui.UIFactory.showMixedCodeDialog(UIFactory.java:638)

      ??? at com.sun.deploy.security.CPCallbackHandler.showMixedTrustDialog(CPCallbackHandler.java:697)

      ??? at com.sun.deploy.security.CPCallbackHandler.access$1000(CPCallbackHandler.java:82)

      ??? at com.sun.deploy.security.CPCallbackHandler$ParentCallback.checkAllowed(CPCallbackHandler.java:327)

      ??? at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(CPCallbackHandler.java:306)

      ??? - locked <0x94e767d0> (a com.sun.deploy.security.CPCallbackHandler$ParentCallback)

      ??? at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(CPCallbackHandler.java:121)

      ??? at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(CPCallbackHandler.java:473)

      ??? at com.sun.deploy.security.DeployURLClassPath$UrlLoader.findResource(DeployURLClassPath.java:564)

      ??? at com.sun.deploy.security.DeployURLClassPath$1.next(DeployURLClassPath.java:258)

      ??? at com.sun.deploy.security.DeployURLClassPath$1.hasMoreElements(DeployURLClassPath.java:269)

      ??? at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416)

      ??? at java.security.AccessController.doPrivileged(Native Method)

      ??? at java.net.URLClassLoader$3.next(URLClassLoader.java:413)

      ??? at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:438)

      ??? at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)

      ??? at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)

      ??? at sun.misc.Service$LazyIterator.hasNext(Service.java:255)

      ??? at javax.print.PrintServiceLookup$1.run(PrintServiceLookup.java:326)

      ??? at java.security.AccessController.doPrivileged(Native Method)

      ??? at javax.print.PrintServiceLookup.getAllLookupServices(PrintServiceLookup.java:320)

      ??? - locked <0x91170458> (a java.lang.Class for javax.print.PrintServiceLookup)

      ??? at javax.print.PrintServiceLookup.lookupDefaultPrintService(PrintServiceLookup.java:162)

      ??? at com.inet.viewer.print.o.<clinit>(SourceFile:108)

      ??? at com.inet.viewer.SwingReportView.<init>(SourceFile:221)

      ??? at com.inet.viewer.SwingReportViewer.createReportView(SourceFile:579)

      ??? at com.inet.adhoc.client.af.createReportView(SourceFile:154)

      ??? at com.inet.viewer.SwingReportViewer.addNewReportView(SourceFile:539)

      ??? - locked <0x94e8bc60> (a com.inet.adhoc.client.af)

      ??? at com.inet.viewer.SwingReportViewer.addNewReportView(SourceFile:569)

      ? ??at com.inet.adhoc.client.a.actionPerformed(SourceFile:284)

      ??? at com.inet.adhoc.client.al.run(SourceFile:557)

       

      "TimerQueue" daemon prio=10 tid=0x0a4ff800 nid=0x6469 in Object.wait() [0x8dbdb000]

      ?? java.lang.Thread.State: TIMED_WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0x9458b090> (a javax.swing.TimerQueue)

      ??? at javax.swing.TimerQueue.run(TimerQueue.java:232)

      ??? - locked <0x9458b090> (a javax.swing.TimerQueue)

      ??? at java.lang.Thread.run(Thread.java:619)

       

      "TimerQueue" daemon prio=10 tid=0x8df0fc00 nid=0x6468 in Object.wait() [0x8f0ad000]

      ?? java.lang.Thread.State: WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0x94591828> (a javax.swing.TimerQueue)

      ??? at javax.swing.TimerQueue.run(TimerQueue.java:232)

      ??? - locked <0x94591828> (a javax.swing.TimerQueue)

      ??? at java.lang.Thread.run(Thread.java:619)

       

      "Keep-Alive-Timer" daemon prio=10 tid=0x0a465400 nid=0x6467 waiting on condition [0x8e0ac000]

      ?? java.lang.Thread.State: TIMED_WAITING (sleeping)

      ??? at java.lang.Thread.sleep(Native Method)

      ??? at sun.net.www.http.KeepAliveCache.run(KeepAliveCache.java:149)

      ??? at java.lang.Thread.run(Thread.java:619)

       

      "ConsoleWriterThread" daemon prio=10 tid=0x0a463c00 nid=0x6466 in Object.wait() [0x8e0fe000]

      ?? java.lang.Thread.State: WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0x9458f018> (a java.lang.Object)

      ??? at java.lang.Object.wait(Object.java:485)

      ??? at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(ConsoleTraceListener.java:72)

      ??? - locked <0x9458f018> (a java.lang.Object)

       

      "thread applet-com.inet.adhoc.client.loader.AHLoader-1" prio=10 tid=0x0a455400 nid=0x6463 in Object.wait() [0x8f333000]

      ?? java.lang.Thread.State: WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0x94584d40> (a java.lang.Object)

      ??? at java.lang.Object.wait(Object.java:485)

      ??? at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1697)

      ??? - locked <0x94584d40> (a java.lang.Object)

      ??? at java.lang.Thread.run(Thread.java:619)

       

      "AWT-EventQueue-2" prio=10 tid=0x0a1dd800 nid=0x6462 in Object.wait() [0x8f6f5000]

      ?? java.lang.Thread.State: WAITING (on object monitor)

      ??? at java.lang.Object.wait(Native Method)

      ??? - waiting on <0x945646b0> (a java.awt.EventQueue)

      ??? at java.lang.Object.wait(Object.java:485)

      ??? at java.awt.EventQueue.getNextEvent(EventQueue.java:479)

      ??? - locked <0x945646b0> (a java.awt.EventQueue)

      ??? at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:236)

      ??? at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

      ??? at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

      ??? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

      ??? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

      ??? at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

       

      "AWT-EventQueue-0" prio=10 tid=0x0a422400 nid=0x6460 waiting on condition [0x8ef69000]

      ?? java.lang.Thread.State: RUNNABLE

      ??? at com.sun.deploy.util.ConsoleHelper.dumpAllStacksImpl(Native Method)

      ??? at com.sun.deploy.util.ConsoleHelper.dumpAllStacks(ConsoleHelper.java:66)

      ??? at sun.plugin2.applet.Plugin2ConsoleController.dumpAllStacks(Plugin2ConsoleController.java:116)

      ??? at com.sun.deploy.util.ConsoleWindow$2.actionPerformed(ConsoleWindow.java:122)

      ??? at javax.swing.JComponent$ActionStandin.actionPerformed(JComponent.java:3368)

      ??? at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633)

      ??? at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)

      ??? at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)

      ??? at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)

      ??? at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2928)

      ??? at javax.swing.JComponent.processKeyBindings(JComponent.java:2920)

      ??? at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)

      ??? at java.awt.Comp

      Trace message truncated for length over 10K

            jdn Jeffrey Nisewanger (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: