You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Dave Brosius (Created) (JIRA)" <ji...@apache.org> on 2011/12/21 05:13:30 UTC

[jira] [Created] (JCR-3189) JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY

JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY
---------------------------------------------------------------------------------------------------------------

                 Key: JCR-3189
                 URL: https://issues.apache.org/jira/browse/JCR-3189
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-jca
            Reporter: Dave Brosius
            Priority: Minor


JCARepositoryManager.createNonTransientRepository fails if

String configFile = parameters.get(JCAManagedConnectionFactory.CONFIGFILE_KEY);

is null, because

config = RepositoryConfig.create(configFile, homeDir);

will always throw an NPE, perhaps the call should just be

config = RepositoryConfig.create(homeDir);



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (JCR-3189) JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY

Posted by "Claus Köll (Assigned JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Köll reassigned JCR-3189:
-------------------------------

    Assignee: Claus Köll
    
> JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-3189
>                 URL: https://issues.apache.org/jira/browse/JCR-3189
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jca
>            Reporter: Dave Brosius
>            Assignee: Claus Köll
>            Priority: Minor
>
> JCARepositoryManager.createNonTransientRepository fails if
> String configFile = parameters.get(JCAManagedConnectionFactory.CONFIGFILE_KEY);
> is null, because
> config = RepositoryConfig.create(configFile, homeDir);
> will always throw an NPE, perhaps the call should just be
> config = RepositoryConfig.create(homeDir);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (JCR-3189) JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY

Posted by "Claus Köll (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174247#comment-13174247 ] 

Claus Köll commented on JCR-3189:
---------------------------------

Normally you must define both. This code was not changed for very long time but good hint, i will change it to work with homeDir only as well.

                
> JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-3189
>                 URL: https://issues.apache.org/jira/browse/JCR-3189
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jca
>            Reporter: Dave Brosius
>            Assignee: Claus Köll
>            Priority: Minor
>
> JCARepositoryManager.createNonTransientRepository fails if
> String configFile = parameters.get(JCAManagedConnectionFactory.CONFIGFILE_KEY);
> is null, because
> config = RepositoryConfig.create(configFile, homeDir);
> will always throw an NPE, perhaps the call should just be
> config = RepositoryConfig.create(homeDir);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (JCR-3189) JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY

Posted by "Jukka Zitting (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189101#comment-13189101 ] 

Jukka Zitting commented on JCR-3189:
------------------------------------

Merged to the 2.4 branch revision 1233365.
                
> JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-3189
>                 URL: https://issues.apache.org/jira/browse/JCR-3189
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jca
>    Affects Versions: 2.3.5
>            Reporter: Dave Brosius
>            Assignee: Claus Köll
>            Priority: Minor
>             Fix For: 2.4
>
>
> JCARepositoryManager.createNonTransientRepository fails if
> String configFile = parameters.get(JCAManagedConnectionFactory.CONFIGFILE_KEY);
> is null, because
> config = RepositoryConfig.create(configFile, homeDir);
> will always throw an NPE, perhaps the call should just be
> config = RepositoryConfig.create(homeDir);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (JCR-3189) JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY

Posted by "Claus Köll (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Köll updated JCR-3189:
----------------------------

    Affects Version/s: 2.3.5
    
> JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-3189
>                 URL: https://issues.apache.org/jira/browse/JCR-3189
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jca
>    Affects Versions: 2.3.5
>            Reporter: Dave Brosius
>            Assignee: Claus Köll
>            Priority: Minor
>
> JCARepositoryManager.createNonTransientRepository fails if
> String configFile = parameters.get(JCAManagedConnectionFactory.CONFIGFILE_KEY);
> is null, because
> config = RepositoryConfig.create(configFile, homeDir);
> will always throw an NPE, perhaps the call should just be
> config = RepositoryConfig.create(homeDir);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (JCR-3189) JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY

Posted by "Claus Köll (Resolved JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Köll resolved JCR-3189.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.4

Committed in revision 1232831.
                
> JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-3189
>                 URL: https://issues.apache.org/jira/browse/JCR-3189
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jca
>    Affects Versions: 2.3.5
>            Reporter: Dave Brosius
>            Assignee: Claus Köll
>            Priority: Minor
>             Fix For: 2.4
>
>
> JCARepositoryManager.createNonTransientRepository fails if
> String configFile = parameters.get(JCAManagedConnectionFactory.CONFIGFILE_KEY);
> is null, because
> config = RepositoryConfig.create(configFile, homeDir);
> will always throw an NPE, perhaps the call should just be
> config = RepositoryConfig.create(homeDir);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira