Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1628

installer mangles rabbitmq jars

    XMLWordPrintable

Details

    Description

       

      Here’s a little more details. I’ve run the build with OpenJDK Zulu and Oracle JDK. The both produce the same inconsistent output:

       

      sha1sum /opt/grouper/2.3.0/grouper.rabbitMq-2.3.0/lib/grouperRabbitMq.jar

      7bbc04d3574f90b65002f389bcb98714f8938657  /opt/grouper/2.3.0/grouper.rabbitMq-2.3.0/lib/grouperRabbitMq.jar

       

      sha1sum /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/lib/grouper/grouperRabbitMq.jar

      17c2ae0988cc4e643b0b11e836f1c9eaae4d3301  /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/lib/grouper/grouperRabbitMq.jar

       

      From: John Gasper jgasper@unicon.net
      Sent: Monday, November 13, 2017 12:32 PM
      To: Hyzer, Chris <mchyzer@isc.upenn.edu>
      Subject: Installer mangles grouperRabbitMq.jar and others

       

      Hi Chris,

       

      I just wanted to get your take on something privately as I’m sure what I’m experience means. I’m updating my Docker automated builds, and my proposed TIER Grouper noVM one specifically, to include the messaging components. I’m finding that the grouperRabbitMq.jar, etc. gets corrupted along the way. Here are two examples:

       

      > diff /opt/grouper/2.3.0/grouper.rabbitMq-2.3.0/lib/grouperRabbitMq.jar /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/lib/grouper/grouperRabbitMq.jar

      Binary files /opt/grouper/2.3.0/grouper.rabbitMq-2.3.0/lib/grouperRabbitMq.jar and /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/lib/grouper/grouperRabbitMq.jar differ

       

      > grouper.rabbitMq-2.3.0]# diff /opt/grouper/2.3.0/grouper.activeMq-2.3.0/lib/grouperActiveMQMessaging.jar /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/lib/grouper/grouperActiveMQMessaging.jar

      Binary files /opt/grouper/2.3.0/grouper.activeMq-2.3.0/lib/grouperActiveMQMessaging.jar and /opt/grouper/2.3.0/grouper.apiBinary-2.3.0/lib/grouper/grouperActiveMQMessaging.jar differ

       

      I’m using the grouperInstaller to do the install and I ran the previous command immediately after the process finished. The installer downloads and extracts them just fine. If I “jar tf” the unGzipped files the output expectedly:

       

      > /opt/openjdk7/bin/jar tf lib/grouperRabbitMq.jar

      META-INF/

      META-INF/MANIFEST.MF

      edu/

      edu/internet2/

      edu/internet2/middleware/

      edu/internet2/middleware/grouperMessagingRabbitmq/

      edu/internet2/middleware/grouperMessagingRabbitmq/GrouperMessageRabbitmq.class

      edu/internet2/middleware/grouperMessagingRabbitmq/GrouperMessageRabbitmq.java

      edu/internet2/middleware/grouperMessagingRabbitmq/GrouperMessagingRabbitmqSystem$1.class

      edu/internet2/middleware/grouperMessagingRabbitmq/GrouperMessagingRabbitmqSystem$2.class

      edu/internet2/middleware/grouperMessagingRabbitmq/GrouperMessagingRabbitmqSystem$RabbitMQConnectionFactory.class

      edu/internet2/middleware/grouperMessagingRabbitmq/GrouperMessagingRabbitmqSystem.class

      edu/internet2/middleware/grouperMessagingRabbitmq/GrouperMessagingRabbitmqSystem.java

      edu/internet2/middleware/grouperMessagingRabbitmq/MessageReceiveEventListener.class

      edu/internet2/middleware/grouperMessagingRabbitmq/MessageReceiveEventListener.java

       

      If I do the same for the file that have been moved to the grouper.apiBinary/lib/grouper directory, I get:

       

      > /opt/openjdk7/bin/jar tf grouperRabbitMq.jar

      java.util.zip.ZipException: invalid CEN header (bad signature)

              at java.util.zip.ZipFile.open(Native Method)

              at java.util.zip.ZipFile.<init>(ZipFile.java:219)

              at java.util.zip.ZipFile.<init>(ZipFile.java:149)

              at java.util.zip.ZipFile.<init>(ZipFile.java:120)

              at sun.tools.jar.Main.list(Main.java:1115)

              at sun.tools.jar.Main.run(Main.java:293)

              at sun.tools.jar.Main.main(Main.java:1288)

       

      Any idea why the installer is having issues copying the files over? My no frills installer properties file is attached.

       

      Feel free to give me a call if you want to talk in person (509-230-2802), I’m also on the I2 Slack.

       

      Thanks,

      John

       

      -- 

      John Gasper
      IAM Consultant
      Unicon, Inc.
      PGP/GPG Key: 0xbafee3ef

       

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: