Continuum
  1. Continuum
  2. CONTINUUM-2712

Release issue :: Unable to release components

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.4.2
    • Component/s: Release
    • Labels:
      None
    • Environment:
      OS: Linux
      Server: Tomcat 6.0.35
      Apache Maven 2.2.1
      JDK 1.5
    • Complexity:
      Intermediate
    • Number of attachments :
      1

      Description

      While performing release, exception is being thrown by the Continuum build agent saying "java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.eclipse.jetty.util.security.Password)"

      I am new to Contiuum and setting it up for the first time. Any help in this would be greatly appreciated. Thanks in advance.

      Attached the log file.

        Activity

        Hide
        Brent N Atkinson added a comment -

        This is usually caused by an older JVM loading a class that was built for a later JVM.

        • Are you running Java 5 out of necessity or because the installation instructions for Continuum mention it? Using a more recent Java VM may solve your immediate problem.
        • Also, does your build use jetty?

        Since you are using Tomcat I'm curious why jetty classes are being loaded. Answering these questions helps to inform us where to look. Thanks for reporting!

        Show
        Brent N Atkinson added a comment - This is usually caused by an older JVM loading a class that was built for a later JVM. Are you running Java 5 out of necessity or because the installation instructions for Continuum mention it? Using a more recent Java VM may solve your immediate problem. Also, does your build use jetty? Since you are using Tomcat I'm curious why jetty classes are being loaded. Answering these questions helps to inform us where to look. Thanks for reporting!
        Hide
        Vishnu Raj added a comment - - edited

        Thanks for the reply Brent.

        I have cross checked all JDK versions, compiled the components under JDK 5 many times and still, the same error.

        • I am using JDK 5 out of necessity. I tried with JDK 6 as well and the same exception was thrown at that time also.
        • My buiild does not use jetty, but there are some cases where jetty-maven-plugin is been used in the POM files, in case if we use a jetty server.
        • I have also tried with the release of components which doesnot have any jetty plugin included in it. Those component doesn't even have any dependency in any other components which have 'jetty plugin' defined. Even at that case, it throwed the same exception.
        Show
        Vishnu Raj added a comment - - edited Thanks for the reply Brent. I have cross checked all JDK versions, compiled the components under JDK 5 many times and still, the same error. I am using JDK 5 out of necessity. I tried with JDK 6 as well and the same exception was thrown at that time also. My buiild does not use jetty, but there are some cases where jetty-maven-plugin is been used in the POM files, in case if we use a jetty server. I have also tried with the release of components which doesnot have any jetty plugin included in it. Those component doesn't even have any dependency in any other components which have 'jetty plugin' defined. Even at that case, it throwed the same exception.
        Hide
        Vishnu Raj added a comment -

        Could some one please help me in this?

        Show
        Vishnu Raj added a comment - Could some one please help me in this?
        Hide
        Brent N Atkinson added a comment -

        What version of jetty are you using? I can not confirm without a build example, but I think your version of jetty includes Java 6 classes or later. Using a prior version of jetty will not attempt to load class versions that are incompatible with the Java 5 VM. See http://www.eclipse.org/jetty/about.php for which jetty versions are Java 5 compatible.

        Show
        Brent N Atkinson added a comment - What version of jetty are you using? I can not confirm without a build example, but I think your version of jetty includes Java 6 classes or later. Using a prior version of jetty will not attempt to load class versions that are incompatible with the Java 5 VM. See http://www.eclipse.org/jetty/about.php for which jetty versions are Java 5 compatible.
        Hide
        Vishnu Raj added a comment -

        Hi Brent,

        Thanks a lot for your support. The issue is resolved. Solution was that, the jetty-util jar version, as you assisted was changed to a 7.x version from 8.x version in both Continuum Webapp and Build Agent.

        Another issue that I face currently is with the Notifier (E-Mail). Here are the details. Please look if you can provide me some hint on this:

        • When I add one notifier to a Project Group, the first E-Mail address (defined in the reciepient area of Notifier) is taken as the 'From' address and it will try to send the E-Mail to the same address. Just wanted to know how to configure the 'From' address for Notifier in Continuum.
        • Even then, the E-Mail is not sent, but throwing 'Relaying denied' exception. I understand the same is because of trying to send an E-Mail to another domain. But, just wanted to know how to let it send to the domain that we specify.

        Thanks in advance.

        Show
        Vishnu Raj added a comment - Hi Brent, Thanks a lot for your support. The issue is resolved. Solution was that, the jetty-util jar version, as you assisted was changed to a 7.x version from 8.x version in both Continuum Webapp and Build Agent. Another issue that I face currently is with the Notifier (E-Mail). Here are the details. Please look if you can provide me some hint on this: When I add one notifier to a Project Group, the first E-Mail address (defined in the reciepient area of Notifier) is taken as the 'From' address and it will try to send the E-Mail to the same address. Just wanted to know how to configure the 'From' address for Notifier in Continuum. Even then, the E-Mail is not sent, but throwing 'Relaying denied' exception. I understand the same is because of trying to send an E-Mail to another domain. But, just wanted to know how to let it send to the domain that we specify. Thanks in advance.
        Hide
        Brent N Atkinson added a comment -

        Thanks a lot for your support. The issue is resolved. Solution was that, the jetty-util jar version, as you assisted was changed to a 7.x version from 8.x version in both Continuum Webapp and Build Agent.

        So, did you have to rebuild Continuum to get this to work? I'm curious why these classes would even be loaded if you are using Tomcat. While your issue is resolved, we will want to take a look at this and either update the docs on the web site to require Java 6 or later or, if we decide to continue support Java 5, downgrade to using Jetty 7.x classes.

        Another issue that I face currently is with the Notifier (E-Mail). Here are the details. Please look if you can provide me some hint on this:

        When I add one notifier to a Project Group, the first E-Mail address (defined in the reciepient area of Notifier) is taken as the 'From' address and it will try to send the E-Mail to the same address. Just wanted to know how to configure the 'From' address for Notifier in Continuum.
        Even then, the E-Mail is not sent, but throwing 'Relaying denied' exception. I understand the same is because of trying to send an E-Mail to another domain. But, just wanted to know how to let it send to the domain that we specify.

        Thanks in advance.

        As you said, this is another issue and it's not clear whether it is a defect or not. These questions are more appropriate for the users mailing list, users@continuum.apache.org, at least until you have enough information to suggest it is a defect. I will be happy to continue this conversation on the users if you post it there.

        Show
        Brent N Atkinson added a comment - Thanks a lot for your support. The issue is resolved. Solution was that, the jetty-util jar version, as you assisted was changed to a 7.x version from 8.x version in both Continuum Webapp and Build Agent. So, did you have to rebuild Continuum to get this to work? I'm curious why these classes would even be loaded if you are using Tomcat. While your issue is resolved, we will want to take a look at this and either update the docs on the web site to require Java 6 or later or, if we decide to continue support Java 5, downgrade to using Jetty 7.x classes. Another issue that I face currently is with the Notifier (E-Mail). Here are the details. Please look if you can provide me some hint on this: When I add one notifier to a Project Group, the first E-Mail address (defined in the reciepient area of Notifier) is taken as the 'From' address and it will try to send the E-Mail to the same address. Just wanted to know how to configure the 'From' address for Notifier in Continuum. Even then, the E-Mail is not sent, but throwing 'Relaying denied' exception. I understand the same is because of trying to send an E-Mail to another domain. But, just wanted to know how to let it send to the domain that we specify. Thanks in advance. As you said, this is another issue and it's not clear whether it is a defect or not. These questions are more appropriate for the users mailing list, users@continuum.apache.org, at least until you have enough information to suggest it is a defect. I will be happy to continue this conversation on the users if you post it there.
        Hide
        Vishnu Raj added a comment -

        No. I just made a replacement of jetty-util jar from the lib folder where continuum is deployed. I know it is not the right way to give a try, but the outcome was really surprising for me. As you said, I am also not sure on why it is loading the Jetty classes when I am using Tomcat. We would need to research even more to conclude on whether the jetty version needs to be downgraded if using Java 5.

        Regarding the Notifier issue, I will use the users mailing list. Thanks a lot for guiding me.

        Show
        Vishnu Raj added a comment - No. I just made a replacement of jetty-util jar from the lib folder where continuum is deployed. I know it is not the right way to give a try, but the outcome was really surprising for me. As you said, I am also not sure on why it is loading the Jetty classes when I am using Tomcat. We would need to research even more to conclude on whether the jetty version needs to be downgraded if using Java 5. Regarding the Notifier issue, I will use the users mailing list. Thanks a lot for guiding me.
        Hide
        Brent N Atkinson added a comment -

        No. I just made a replacement of jetty-util jar from the lib folder where continuum is deployed. I know it is not the right way to give a try, but the outcome was really surprising for me.

        It was the right way to fix your problem and this gives me the information I was looking for. It sounds like this is a legitimate issue if we're still supporting Java 5. Sounds like we need to resolve that issue one way or the other. Thanks for letting me know.

        I will use the users mailing list. Thanks a lot for guiding me.

        Thank you for the report, and I'll look for your question on the lists.

        Show
        Brent N Atkinson added a comment - No. I just made a replacement of jetty-util jar from the lib folder where continuum is deployed. I know it is not the right way to give a try, but the outcome was really surprising for me. It was the right way to fix your problem and this gives me the information I was looking for. It sounds like this is a legitimate issue if we're still supporting Java 5. Sounds like we need to resolve that issue one way or the other. Thanks for letting me know. I will use the users mailing list. Thanks a lot for guiding me. Thank you for the report, and I'll look for your question on the lists.
        Hide
        Brett Porter added a comment -

        CONTINUUM-2202 introduced the Jetty dependency - it's a password obfuscation tool, and is used regardless of the servlet container being used.

        If you're running on Java 5, then you can replace the version given here with 7.6.9.v20130131. I'll do that for now on trunk, but will address the minimum JDK on list.

        Show
        Brett Porter added a comment - CONTINUUM-2202 introduced the Jetty dependency - it's a password obfuscation tool, and is used regardless of the servlet container being used. If you're running on Java 5, then you can replace the version given here with 7.6.9.v20130131 . I'll do that for now on trunk, but will address the minimum JDK on list.

          People

          • Assignee:
            Brett Porter
            Reporter:
            Vishnu Raj
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: