You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Dan Tran (JIRA)" <ji...@codehaus.org> on 2009/03/11 23:39:12 UTC

[jira] Created: (MRM-1137) Cannot upload artifact to WEB UI any more

Cannot upload artifact to WEB UI any more
-----------------------------------------

                 Key: MRM-1137
                 URL: http://jira.codehaus.org/browse/MRM-1137
             Project: Archiva
          Issue Type: Bug
    Affects Versions: 1.2-M1
         Environment: redhat 4, java 5
            Reporter: Dan Tran
            Priority: Critical


Here is reference to the discussion

http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168981#action_168981 ] 

Brett Porter commented on MRM-1137:
-----------------------------------

also, is there anything in the archiva.log / stdouterr.log?

something like:
{code}
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting
{code}

> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Priority: Critical
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168989#action_168989 ] 

Brett Porter commented on MRM-1137:
-----------------------------------

http://struts.apache.org/2.0.6/docs/handling-file-uploads.html

struts.multipart.maxSize

(want to contribute a wiki entry/doc patch for this?)

> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Assignee: Brett Porter
>            Priority: Critical
>             Fix For: 1.2-M2
>
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching updated MRM-1137:
----------------------------------

    Fix Version/s:     (was: 1.2-M2)
                   1.2

> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Assignee: Brett Porter
>            Priority: Critical
>             Fix For: 1.2
>
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168979#action_168979 ] 

Brett Porter commented on MRM-1137:
-----------------------------------

this is because the version is coming in as null - maybe related to the struts upgrade. However, I'm not able to reproduce it.

are you able to help us narrow this down, perhaps using trunk?

> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Priority: Critical
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168988#action_168988 ] 

Dan Tran commented on MRM-1137:
-------------------------------

what is the property name and value format  to configure upload file size in struts.properties?

The current struts.properties contains this


# define our own action mapper here
struts.mapper.class = org.apache.maven.archiva.web.mapper.RepositoryActionMapper
struts.objectFactory =  org.codehaus.plexus.spring.Struts2PlexusInSpringObjectFactory
struts.url.includeParams = none

struts.devMode = true
struts.configuration.xml.reload=true
struts.multipart.parser=jakarta

# TODO: package up a theme and share with Continuum. Should contain everything from xhtml, and set templateDir to WEB-INF/themes

# Localization
struts.custom.i18n.resources=org.codehaus.plexus.redback.struts2.default,org.apache.maven.archiva.redback.custom
~
~


> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Assignee: Brett Porter
>            Priority: Critical
>             Fix For: 1.2-M2
>
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168983#action_168983 ] 

Dan Tran commented on MRM-1137:
-------------------------------

my apology for not digging a little deeper

the stderr log clearly complains about my big upload file size.  how do I go about fix that?

18439124 [btpool0-11] INFO org.apache.struts2.dispatcher.Dispatcher - Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir
18439124 [btpool0-11] ERROR org.apache.struts2.dispatcher.multipart.MultiPartRequest - org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2922259) exceeds the configured maximum (2097152)
18439129 [btpool0-11] ERROR org.apache.struts2.interceptor.FileUploadInterceptor - the request was rejected because its size (2922259) exceeds the configured maximum (2097152)
18439198 [btpool0-11] ERROR org.mortbay.log - Nested in javax.servlet.ServletException: java.lang.NullPointerException:
java.lang.NullPointerException
        at org.apache.maven.archiva.common.utils.VersionUtil.isVersion(VersionUtil.java:92)
        at org.apache.maven.archiva.web.action.UploadAction.validate(UploadAction.java:597)
        at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:200)
        at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
        at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
        at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
        at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
        at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
        at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
        at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
        at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
        at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
        at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
        at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)


> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Priority: Critical
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168998#action_168998 ] 

Dan Tran commented on MRM-1137:
-------------------------------

it works. I think it is better to allow upload size configurable thru archive web ui

Thanks

> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Assignee: Brett Porter
>            Priority: Critical
>             Fix For: 1.2-M2
>
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MRM-1137:
------------------------------

         Assignee: Brett Porter
    Fix Version/s: 1.2-M2

thanks, should be able to reproduce this now.

I believe you can adjust the max size by editing WEB-INF/classes/struts.properties

> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Assignee: Brett Porter
>            Priority: Critical
>             Fix For: 1.2-M2
>
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MRM-1137) Cannot upload artifact to WEB UI any more

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MRM-1137.
-----------------------------

    Resolution: Fixed

changed the default to 10M and fixed the error, updated the documentation. Creating a new issue for making it configurable

> Cannot upload artifact to WEB UI any more
> -----------------------------------------
>
>                 Key: MRM-1137
>                 URL: http://jira.codehaus.org/browse/MRM-1137
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.2-M1
>         Environment: redhat 4, java 5
>            Reporter: Dan Tran
>            Assignee: Brett Porter
>            Priority: Critical
>             Fix For: 1.2-M2
>
>
> Here is reference to the discussion
> http://www.nabble.com/Nullpointer-in-VersionUtil-when-uploading-td20563568.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira