Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3217

NPE when getting the repository using JCA

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.3.4
    • Fix Version/s: None
    • Component/s: jackrabbit-jca
    • Labels:
      None

      Description

      https://issues.apache.org/jira/browse/JCR-3129 seems to open a new bug.

      If config is null, it will call the method in line 108:
      config = RepositoryConfig.create(configFile, homeDir);

      It will result in an NPE (Null Pointer Exception) on org.apache.jackrabbit.core.config.RepositoryConfig line 276:
      URI uri = new File(file).toURI();

      Following stack trace is provided:
      Caused by: java.lang.NullPointerException
      at java.io.File.<init>(File.java:222)
      at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:276)
      at org.apache.jackrabbit.jca.JCARepositoryManager.createNonTransientRepository(JCARepositoryManager.java:108)
      at org.apache.jackrabbit.jca.JCARepositoryManager.createRepository(JCARepositoryManager.java:77)
      at org.apache.jackrabbit.jca.JCAManagedConnectionFactory.getRepository(JCAManagedConnectionFactory.java:205)
      at org.apache.jackrabbit.jca.JCAManagedConnection.openSession(JCAManagedConnection.java:100)
      at org.apache.jackrabbit.jca.JCAManagedConnection.<init>(JCAManagedConnection.java:85)
      at org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createManagedConnection(JCAManagedConnectionFactory.java:174)
      at org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createManagedConnection(JCAManagedConnectionFactory.java:166)
      at com.sun.enterprise.resource.allocator.ConnectorAllocator.createResource(ConnectorAllocator.java:160)
      at com.sun.enterprise.resource.pool.ConnectionPool.createSingleResource(ConnectionPool.java:907)
      ... 77 more

      #]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              orair Gustavo Orair
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified