Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-6533

Plugin 2 can't access JNDI classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Gathering Impact (View Workflow)
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 2.10.0, 4.7.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      database settings using LDAP credential:

      	<database type="oracle">
      		<connection dialect="org.hibernate.dialect.Oracle10gDialect" driver="oracle.jdbc.OracleDriver" jdbcurl="jdbc:oracle:thin:@ldap://ldap.server.au/cn=OracleContext,cn=NetServiceNames,dc=test,dc=au/jra1prd" password="Sanitized by Support Utility" username="fecru" maxPoolSize="20" minPoolSize="5" driverSource="bundled"/>
      	</database>
      

      Accessing Smart Commits settings will have the following errors:

      2013-07-08 09:29:35,817 ERROR [CommitNotifier1 ] com.atlassian.event.internal.LockFreeEventPublisher$Publisher LockFreeEventPublisher$Publisher-dispatch - There was an exception thrown trying to dispatch event 'com.atlassian.fisheye.event.CommitEventImpl[source=BSG]' from the invoker 'com.atlassian.event.internal.SingleParameterMethodListenerInvoker@36b60ce2'.
      java.lang.RuntimeException: java.lang.reflect.UndeclaredThrowableException
      	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:50)
      	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:60)
      	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:28)
      	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:56)
      	at com.atlassian.event.internal.LockFreeEventPublisher$Publisher.dispatch(LockFreeEventPublisher.java:228)
      	at com.atlassian.event.internal.LockFreeEventPublisher.publish(LockFreeEventPublisher.java:83)
      	at com.atlassian.fisheye.event.FisheyeEventPublisher.publish(FisheyeEventPublisher.java:29)
      	at com.cenqua.fisheye.rep.CommitNotificationRepositoryListener$CommitEventNotifier.apply(CommitNotificationRepositoryListener.java:208)
      ...
      Caused by: java.lang.reflect.UndeclaredThrowableException
      ...
      Caused by: java.lang.reflect.InvocationTargetException
      ...
      Caused by: java.sql.SQLException: Could not get connnection
      ...
      Caused by: com.cenqua.crucible.hibernate.CruDBException: java.sql.SQLException: IO Error: JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.fecru.plugin.commithook.fecru-commithooks-plugin]]
      ...
      Caused by: java.sql.SQLException: IO Error: JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.fecru.plugin.commithook.fecru-commithooks-plugin]]
      ...
      Caused by: oracle.net.ns.NetException: JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.fecru.plugin.commithook.fecru-commithooks-plugin]]
      

      Other plugins in Crucible will have similar errors too.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              klfoong Kah Loun Foong
              Votes:
              6 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated: