jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Artifact Plugin
  • MPARTIFACT-70

java.lang.IllegalAccessException in artifact:artifact-install

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8
  • Fix Version/s: 1.9
  • Labels:
    None

Description

I get the following when installing a plugin:
— Nested Exception —
java.lang.IllegalAccessException: org/apache/maven/MavenUtils
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.j
ava:85)
at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.jav
a:50)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInst
all(DefaultArtifactDeployer.java:165)

From reading http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/artifact/src/main/org/apache/maven/artifact/PomRewriter.java?view=markup PomRewriter calls MavenUtils.getNonJellyProject and MavenUtils.getJellyProject, of which both are declared as private static

Issue Links

depends upon

Task - A task that needs to be done. MAVEN-1778 change the visibility of methods MavenUtils.getNonJellyProject and MavenUtils.getJellyProject to public

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Arnaud Heritier added a comment - 09/Aug/06 7:37 AM

Weird 1 : I didn't receive a notification when you opened this bug
Weird 2 : I never noticed this error whereas I often install plugins
Weird 3 : You're right and I don't understand how it could have work before
Question : What is environment ? Maven, Os, JDK, ....

Show
Arnaud Heritier added a comment - 09/Aug/06 7:37 AM Weird 1 : I didn't receive a notification when you opened this bug Weird 2 : I never noticed this error whereas I often install plugins Weird 3 : You're right and I don't understand how it could have work before Question : What is environment ? Maven, Os, JDK, ....
Hide
Permalink
dion gillard added a comment - 09/Aug/06 9:44 PM

Maven 1.1-beta-3
os=winxp
jdk=java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
Classic VM (build 1.4.1, J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc))

Show
dion gillard added a comment - 09/Aug/06 9:44 PM Maven 1.1-beta-3 os=winxp jdk=java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1) Classic VM (build 1.4.1, J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc))
Hide
Permalink
dion gillard added a comment - 09/Aug/06 10:52 PM

Problem does NOT occur on:

java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

Show
dion gillard added a comment - 09/Aug/06 10:52 PM Problem does NOT occur on: java version "1.4.2_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03) Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
Hide
Permalink
Arnaud Heritier added a comment - 10/Aug/06 6:38 PM

WHAT ????
I'll change the visibility of these methods and publish a SNAPSHOT.
I'll ask you to test it with the ibm jdk 1.4.1 if you can.

Show
Arnaud Heritier added a comment - 10/Aug/06 6:38 PM WHAT ???? I'll change the visibility of these methods and publish a SNAPSHOT. I'll ask you to test it with the ibm jdk 1.4.1 if you can.
Hide
Permalink
Arnaud Heritier added a comment - 10/Aug/06 8:22 PM

Dion, I'm uploading a new snapshot of maven here :
http://people.apache.org/repo/m1-snapshot-repository/maven/distributions/20060811/
The 2 methods are now public and it bundles the new artifact plugin (to fix MPARTIFACT-71)
Can you test it please ?

Show
Arnaud Heritier added a comment - 10/Aug/06 8:22 PM Dion, I'm uploading a new snapshot of maven here : http://people.apache.org/repo/m1-snapshot-repository/maven/distributions/20060811/ The 2 methods are now public and it bundles the new artifact plugin (to fix MPARTIFACT-71) Can you test it please ?
Hide
Permalink
dion gillard added a comment - 10/Aug/06 8:45 PM

will test and report back.

Show
dion gillard added a comment - 10/Aug/06 8:45 PM will test and report back.
Hide
Permalink
dion gillard added a comment - 13/Aug/06 10:39 PM

Switching my maven_home to the snapshot, all works fine.
If i switch my maven_home back to 1.1-beta-3, it fails again, as expected.

That's fixed!

Show
dion gillard added a comment - 13/Aug/06 10:39 PM Switching my maven_home to the snapshot, all works fine. If i switch my maven_home back to 1.1-beta-3, it fails again, as expected. That's fixed!
Hide
Permalink
Arnaud Heritier added a comment - 14/Aug/06 6:41 PM

Fixed but the problem isn't in the plugin. It's solved by MAVEN-1778 which is available in maven >= 1.1 RC1

Show
Arnaud Heritier added a comment - 14/Aug/06 6:41 PM Fixed but the problem isn't in the plugin. It's solved by MAVEN-1778 which is available in maven >= 1.1 RC1

People

  • Assignee:
    Arnaud Heritier
    Reporter:
    dion gillard
Vote (0)
Watch (0)

Dates

  • Created:
    08/Aug/06 11:29 PM
    Updated:
    07/May/07 3:46 AM
    Resolved:
    07/May/07 3:46 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.