sonatype / nexus-ruby-support

26 stars 7 forks source link

org.sonatype.nexus.proxy.ResourceStoreRequest.setRequestPath(Ljava/lang/String;)V - Nexus returned an error: ERROR 500: Internal Server Error #24

Closed lasse-aagren closed 11 years ago

lasse-aagren commented 11 years ago

On a fresh Debian 7 I have installed the latest nexus war distribution (nexus 2.4.0-09)

in a Debian installed tomcat7 running on a Debian installed openjdk-7

wrt maven repos this works fine.

I have compilled the nexus-ruby plugin according to specifications on the Readme here, without problems, and installed the plugin in:

/usr/share/tomcat7/sonatype-work/nexus/plugin-repository

as /usr/share/tomcat7 is homedir for the tomcat7 user on a Debian box. I have made this homedir writable for the tomcat7 user, So the ruby plugin can write .java/.userPrefs/ as needed.

Everything starts up fine, but when I try to add a ruby proxy repository for http://rubygems.org with f.ex.:

Repository ID: test Repository Name: Test Provider: Rubygems Remote Storage Location: http://rubygems.org

I get this error in a "popup" when clicking "save":

"org.sonatype.nexus.proxy.ResourceStoreRequest.setRequestPath(Ljava/lang/String;)V

Nexus returned an error: ERROR 500: Internal Server Error"

and no apparent errors in catalina.out or nexus.log.

I have tried to run nexus standalone, in tomcat7 in my own homedir, and in the Debian installed tomcat7 - all gives me the same error. Do I do something wrong?

See full nexus.log here:

https://www.dropbox.com/s/zpgxhhkf4rvfizx/nexus.log

Best regards, Lasse Aagren

lasse-aagren commented 11 years ago

downgraded to nexus 2.3.1 and then it just worked

liamjbennett commented 11 years ago

Confirmed with tomcat6/Centos/Nexus 2.5.0-04

mkristian commented 11 years ago

@liamjbennett did you build the nexus-ruby-plugin with -Dnexus.version=2.5.0-04 ?

lasse-aagren commented 11 years ago

I'm not @liamjbennett, but the original poster, but I will answer anyhow :)

I didn't, as I didn't know of that option - maybe I would be nice to put that in the Readme - will try

mkristian commented 11 years ago

I already had in my local README.md which I just pushed. but with newer versions of nexus I still see some errors when running the ITs but not that "method not found" error if that issue.

lasse-aagren commented 11 years ago

tried with the newest nexus (2.5.0-04) and:

mvn clean install -Dmaven.test.skip -Dnexus.version=2.5.0-04

Seems to work.

(still with the ITs disabled)

mkristian commented 11 years ago

I fixed the ITs which was a problem with checking "not-found' downloads in the ITs and not with the plugin itself. I guess we can close that issue now.