You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by emerson cargnin <ec...@gmail.com> on 2009/05/21 12:55:39 UTC

Error when uploading artifact

When I upload artifacts I get an error, although the file gets to the
repository.
This happens everytime I upload a jar file without a pom.

Env:
client firefox 3.0.10
server: archiva 1.2 standalone, and java 1.5.0_04.

SERVER ERROR LOG:
79066456 [btpool0-138] INFO org.apache.struts2.dispatcher.Dispatcher -
Unable to find 'struts.multipart.saveDir' property setting. Defaulting
to javax.servlet.context.tempdir
79066527 [btpool0-138] ERROR
com.opensymphony.xwork2.interceptor.ParametersInterceptor -
ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting '__checkbox_generatePom' on 'class
org.apache.maven.archiva.web.action.UploadAction: Error setting
expression '__checkbox_generatePom' with value
'[Ljava.lang.String;@48e975f6'
79067642 [btpool0-138] ERROR org.mortbay.log - Nested in
javax.servlet.ServletException: java.lang.NullPointerException:
java.lang.NullPointerException
79067642 [btpool0-138] ERROR org.mortbay.log - /archiva/upload!doUpload.action
java.lang.NullPointerException

Page result:
HTTP ERROR: 500
INTERNAL_SERVER_ERROR
RequestURI=/archiva/upload!doUpload.action
Caused by:
java.lang.NullPointerException


regards
Emerson


2009/5/20 emerson cargnin <ec...@gmail.com>:
> Thanks, that worked.
> I added the bug here:
> http://jira.codehaus.org/browse/MRM-1187
>
> 2009/5/18 Wendy Smoak <ws...@gmail.com>:
>> On Mon, May 18, 2009 at 9:01 AM, emerson cargnin
>> <ec...@gmail.com> wrote:
>>
>>> Still I can't login as admin, or any other user as admin was my only user.
>>> The stacktrace below is the page error. Further below is the whole sterr logs.
>>
>> To get it going again, (assuming you're using the default embedded
>> Derby) stop Archiva and delete the user database.  (The entire
>> directory, not just the contents.)  Start it again, and it will prompt
>> you to create the admin user.
>>
>> Thanks for the problem report, can you please put it in JIRA if there
>> isn't one already?
>>
>> --
>> Wendy
>>
>

Re: Error when uploading artifact

Posted by Deng Ching <oc...@apache.org>.
Hi Emerson,

The NPE error was probably from the indexing. I suggest you upgrade to 1.2.1
as soon as it is released (the release candidate is currently being voted
on). There are major fixes for the NPE problems found in 1.2.

Thanks,
Deng

On Thu, May 21, 2009 at 6:55 PM, emerson cargnin <echofloripa.yell@gmail.com
> wrote:

> When I upload artifacts I get an error, although the file gets to the
> repository.
> This happens everytime I upload a jar file without a pom.
>
> Env:
> client firefox 3.0.10
> server: archiva 1.2 standalone, and java 1.5.0_04.
>
> SERVER ERROR LOG:
> 79066456 [btpool0-138] INFO org.apache.struts2.dispatcher.Dispatcher -
> Unable to find 'struts.multipart.saveDir' property setting. Defaulting
> to javax.servlet.context.tempdir
> 79066527 [btpool0-138] ERROR
> com.opensymphony.xwork2.interceptor.ParametersInterceptor -
> ParametersInterceptor - [setParameters]: Unexpected Exception caught
> setting '__checkbox_generatePom' on 'class
> org.apache.maven.archiva.web.action.UploadAction: Error setting
> expression '__checkbox_generatePom' with value
> '[Ljava.lang.String;@48e975f6'
> 79067642 [btpool0-138] ERROR org.mortbay.log - Nested in
> javax.servlet.ServletException: java.lang.NullPointerException:
> java.lang.NullPointerException
> 79067642 [btpool0-138] ERROR org.mortbay.log -
> /archiva/upload!doUpload.action
> java.lang.NullPointerException
>
> Page result:
> HTTP ERROR: 500
> INTERNAL_SERVER_ERROR
> RequestURI=/archiva/upload!doUpload.action
> Caused by:
> java.lang.NullPointerException
>
>
> regards
> Emerson
>
>
> 2009/5/20 emerson cargnin <ec...@gmail.com>:
> > Thanks, that worked.
> > I added the bug here:
> > http://jira.codehaus.org/browse/MRM-1187
> >
> > 2009/5/18 Wendy Smoak <ws...@gmail.com>:
> >> On Mon, May 18, 2009 at 9:01 AM, emerson cargnin
> >> <ec...@gmail.com> wrote:
> >>
> >>> Still I can't login as admin, or any other user as admin was my only
> user.
> >>> The stacktrace below is the page error. Further below is the whole
> sterr logs.
> >>
> >> To get it going again, (assuming you're using the default embedded
> >> Derby) stop Archiva and delete the user database.  (The entire
> >> directory, not just the contents.)  Start it again, and it will prompt
> >> you to create the admin user.
> >>
> >> Thanks for the problem report, can you please put it in JIRA if there
> >> isn't one already?
> >>
> >> --
> >> Wendy
> >>
> >
>