updatecenter2
  1. updatecenter2
  2. UPDATECENTER2-2165

pkg-java API is unable to report updates if packages use variants

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3Update1
    • Fix Version/s: 2.4-build-unknown
    • Component/s: pkg-java
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      2,165
    • Tags:

      Description

      This is actually reported on Java EE SDK 6u1 installation which is using
      UC2.3u2. This is mirror issue for:

      https://glassfish.dev.java.net/issues/show_bug.cgi?id=13994

      Quoting the original description:

      Update section of Admin GUI which uses pkg Java API is unable to process and
      report available updates if packages use variants - this is currently the case
      for Java EE 6 SDK distributions with bundled JDK. While it has been known that
      Java API does not correctly handle variants in UC 2.3u2, the expectation was
      that one of provided variant files will be picked up for installation or update
      during the creation of PackagePlan. However, this is not the case and
      IllegalArgumentException is being thrown instead.

      Full stack trace has been posted in this forum thread:

      http://forums.java.net/jive/thread.jspa?messageID=482123&#482123

        Activity

        Hide
        Joe Di Pol added a comment -

        To reproduce:

        Install java_ee_sdk-6u1-unix.sh on Linux

        pkg refresh
        pkg install glassfish-bundled-jdk@1.6.0.21
        asadmin start-domain

        In a browser connect to DAS.
        Click Check Updates

        It will report no updates available.

        Look in the DAS log file and you will see:

        [#|2010-11-08T16:48:45.792-0800|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|java.lang.IllegalArgumentException:
        manifest of
        pkg://release.javaeesdk.sun.com/glassfish-bundled-jdk@1.6.0.22,0-4.1:20100930T203635Z
        has duplicates: file: path=jdk/register.html & file: path=jdk/register.html
        at com.sun.pkg.client.Image$PackagePlan.evaluate(Image.java:762)
        at com.sun.pkg.client.Image$ImagePlan.addPackagePlan(Image.java:486)
        at com.sun.pkg.client.Image$ImagePlan.evaluate(Image.java:532)
        at com.sun.pkg.client.Image.makeAndEvaluateImagePlan(Image.java:1611)
        at com.sun.pkg.client.Image.makeInstallPlan(Image.java:1589)
        at
        org.glassfish.uc.admingui.UpdateCenterHandlers.getUpdateDisplayList(UpdateCenterHandlers.java:365)
        at
        org.glassfish.uc.admingui.UpdateCenterHandlers.getUcList(UpdateCenterHandlers.java:178)
        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:616)
        at
        com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
        at
        com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
        at
        com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
        at
        com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:348)
        at
        com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:288)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:556)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:551)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:551)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:585)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:585)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:585)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:585)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
        at
        com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:255)
        at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:253)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
        at
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
        at
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)
        at
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at
        org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
        at
        org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at
        com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at
        com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at
        com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at
        com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at
        com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at
        com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:636)

        #]
        Show
        Joe Di Pol added a comment - To reproduce: Install java_ee_sdk-6u1-unix.sh on Linux pkg refresh pkg install glassfish-bundled-jdk@1.6.0.21 asadmin start-domain In a browser connect to DAS. Click Check Updates It will report no updates available. Look in the DAS log file and you will see: [#|2010-11-08T16:48:45.792-0800|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|java.lang.IllegalArgumentException: manifest of pkg://release.javaeesdk.sun.com/glassfish-bundled-jdk@1.6.0.22,0-4.1:20100930T203635Z has duplicates: file: path=jdk/register.html & file: path=jdk/register.html at com.sun.pkg.client.Image$PackagePlan.evaluate(Image.java:762) at com.sun.pkg.client.Image$ImagePlan.addPackagePlan(Image.java:486) at com.sun.pkg.client.Image$ImagePlan.evaluate(Image.java:532) at com.sun.pkg.client.Image.makeAndEvaluateImagePlan(Image.java:1611) at com.sun.pkg.client.Image.makeInstallPlan(Image.java:1589) at org.glassfish.uc.admingui.UpdateCenterHandlers.getUpdateDisplayList(UpdateCenterHandlers.java:365) at org.glassfish.uc.admingui.UpdateCenterHandlers.getUcList(UpdateCenterHandlers.java:178) 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:616) at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394) at com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:348) at com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:288) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:556) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:551) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:551) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:585) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:585) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:585) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:585) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507) at com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:255) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:253) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:636) #]
        Hide
        Joe Di Pol added a comment -

        Fixed in 2.3u3 in r2808. Not forward ported to 2.4 yet.

        Author: jfdipol
        Date: 2010-11-17 19:27:13+0000
        New Revision: 2808

        Added:
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/Variant.java
        Modified:
        branches/2.3sustaining/bootstrap/src/java/com/sun/pkg/bootstrap/Bootstrap.java

        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/AbstractFileAction.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/Action.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/DependAction.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/GroupAction.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/Image.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/LicenseAction.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/LinkAction.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/Manifest.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/SetAction.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/SystemInfo.java
        branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/UserAction.java

        Log:
        Fixes for:
        2168 NPE while trying to install "updatetool"
        2165 pkg-java API is unable to report updates if packages use variants

        This change introduces basic support for variants (only variants.
        no filters. no facets).

        Show
        Joe Di Pol added a comment - Fixed in 2.3u3 in r2808. Not forward ported to 2.4 yet. Author: jfdipol Date: 2010-11-17 19:27:13+0000 New Revision: 2808 Added: branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/Variant.java Modified: branches/2.3sustaining/bootstrap/src/java/com/sun/pkg/bootstrap/Bootstrap.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/AbstractFileAction.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/Action.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/DependAction.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/GroupAction.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/Image.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/LicenseAction.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/LinkAction.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/Manifest.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/SetAction.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/SystemInfo.java branches/2.3sustaining/pkg-java/src/java/com/sun/pkg/client/UserAction.java Log: Fixes for: 2168 NPE while trying to install "updatetool" 2165 pkg-java API is unable to report updates if packages use variants This change introduces basic support for variants (only variants. no filters. no facets).

          People

          • Assignee:
            Joe Di Pol
            Reporter:
            Snjezana Sevo-Zenzerovic
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: