You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Matt Hogstrom (JIRA)" <de...@geronimo.apache.org> on 2006/06/08 19:54:31 UTC

[jira] Closed: (GERONIMO-1532) NullPointerException when a badly named jar is put into repository directory

     [ http://issues.apache.org/jira/browse/GERONIMO-1532?page=all ]
     
Matt Hogstrom closed GERONIMO-1532:
-----------------------------------

    Resolution: Fixed

Closing per Paul's comments

> NullPointerException when a badly named jar is put into repository directory
> ----------------------------------------------------------------------------
>
>          Key: GERONIMO-1532
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1532
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: console
>     Versions: 1.0
>     Reporter: Heikki Linnakangas
>     Assignee: Aaron Mulder
>     Priority: Critical
>      Fix For: 1.1
>  Attachments: listURIs.diff
>
> I copied a JDBC driver jar to geronimo/repository-directory, thinking that geronimo would pick it up from there. What I didn't know, is that jars in the repository need to be named in a particular way.
> I then tried to add a Database pool using the wizard. I filled the name and type in step 1, and clicked next. Instead of step 2, I got a blank screen, and this stack trace in the log:
> 14:30:33,322 ERROR [DatabasePoolPortlet] Unable to render portlet
> java.lang.NullPointerException
> 	at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.loadDriverJARList(DatabasePoolPortlet.java:750)
> 	at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.renderBasicParams(DatabasePoolPortlet.java:721)
> 	at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.doView(DatabasePoolPortlet.java:625)
> 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:250)
> 	at javax.portlet.GenericPortlet.render(GenericPortlet.java:178)
> ...
> The culprit seems to be the FileSystemRepository.listURIs-method, that doesn't handle invalid filenames properly, but returns nulls in the array it returns instead.

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