[TIME-164] Errors loading plugin in Jira v4.02

Issue #164 resolved
Andriy Zhdanov created an issue

We have installed Timesheet plugin v2.0 on our JIRA v4.02 installation. When we do that, we receive the following error:

There was a problem loading the descriptor for module 'Timesheet Report' in plugin 'JIRA TimeSheet Plugin'. Error retrieving dependency of class: com.fdu.jira.plugin.report.timesheet.TimeSheet. Missing class: com/atlassian/crowd/embedded/api/User

I have reviewed issue #146 "[TIME-146] errors loading plugin in JIRA 4.2.4", but the fixes discussed there are only for later versions of JIRA. Is there anyway to resolve this error for JIRA v4.02?

By itops/Brent Allard on Thu, 28 Jul 2011 09:39:39 -0700

Comments (9)

  1. Andriy Zhdanov reporter

    Could you please try if v 2.1 will work for you, but uninstall 2.0 for sure, better delete it from file system manually.
    I think 2.1 differs from 2.0 only in using this class, however I thought that 2.0 does not use it, but 2.1 uses it, but in your case it looks like 2.0 is using it. I'm confused.

    By azhdanov on Thu, 28 Jul 2011 13:37:00 -0700

  2. Andriy Zhdanov reporter

    Thanks Andrew. We did actually try v2.1 of the Plug-In. We had renamed the v2.0 plugin prior to installing v2.1 (but did not delete it). When we had v2.1 installed and restarted JIRA, our JIRA instance would NOT come up at all.

    I need to take a downtime and alert all our users when we try this again, so do you have any other suggestions for us to try if fully deleting v2.0 and installing v2.1 does not work?

    By itops on Mon, 1 Aug 2011 09:48:26 -0700

  3. Andriy Zhdanov reporter

    I know what's happened - the .jar provided for version 2.0 has been compiled against Jira 4.3, not 4.0. The code in it uses the Crowd library which is only available for 4.3 and above, so I suspect the wrong code has been compiled into it!

    Same problem on 2.1.

    May I suggest that the compatibility matrix be amended to indicate 2.0 and 2.1 are only compatible with 4.3+ ?

    By broughn on Fri, 5 Aug 2011 05:39:53 -0700

  4. Andriy Zhdanov reporter

    Hi Brent,

    I've just figured out the problem, this was my mistake caused by development environment, I've just rebuilt 2.0 how it should be, not to reference crawd embedded api, it should work now.

    Please remove 2.1 and redownload 2.0.

    Note, 2.1 uses crowd api, so it was my stupidity to suggest you to try it.

    Let me know, thank you.

    By azhdanov on Fri, 5 Aug 2011 05:43:13 -0700

  5. Andriy Zhdanov reporter

    Hi Nic,

    You're right, but 2.0 was compiled against Jira 4.3 by mistake only, it's really is designed for Jira 4.0-4.2.

    Thank you.

    By azhdanov on Fri, 5 Aug 2011 05:45:59 -0700

  6. Andriy Zhdanov reporter

    Excellent, thank you very much Nic for identifying the issue and Andrew for fixing! Love the support! We'll give it a try as soon as we can get another downtime arranged.

    By itops on Fri, 5 Aug 2011 08:49:43 -0700

  7. Andriy Zhdanov reporter

    Andrew, that's a great response time, thank you!

    I only spotted it because I got the same a while ago when I was branching code for a couple of clients (one is on 4.0, the other 4.3). I wasn't 100% sure of course, but I thought it was worth checking (and I'd have amended the matrix if it wasn't an easy fix)

    Very much appreciate the work, and the fix, so quickly too - the only downside is that I've now got my clients trying to rush through what they want to test!

    By broughn on Fri, 5 Aug 2011 16:27:36 -0700

  8. Andriy Zhdanov reporter

    We're running 4.0.2 standalone.
    We tried the new build this morning, and have a new error:

    Cannot open JAR file for reading: /opt/jira/plugins/installed-plugins/jira-timesheet-plugin-2.0.jar

    Downloaded from this link:

    https://studio.plugins.atlassian.com/source/chart/TIME/jars/jira-timesheet-plugin-2.0.jar

    And we see this on the plugins page:

    jira-timesheet-plugin-2.0.jar
    Description:
    Vendor: (unknown)
    Plugin Version: 0.0
    JIRA Version: 0.0
    Installation Mode: Embedded

    There were errors loading this plugin:
    Cannot open JAR file for reading: /opt/jira/plugins/installed-plugins/jira-timesheet-plugin-2.0.jar

    By itops on Mon, 8 Aug 2011 10:05:59 -0700

  9. Log in to comment