You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (Created) (JIRA)" <de...@uima.apache.org> on 2011/10/06 18:09:29 UTC

[jira] [Created] (UIMA-2249) UIMA AS client should not create JNDI InitialContext

UIMA AS client should not create JNDI InitialContext
----------------------------------------------------

                 Key: UIMA-2249
                 URL: https://issues.apache.org/jira/browse/UIMA-2249
             Project: UIMA
          Issue Type: Bug
          Components: Async Scaleout
            Reporter: Jerry Cwiklik
            Assignee: Jerry Cwiklik
            Priority: Minor
             Fix For: 2.4.0AS


In BaseUIMAAsynchronousEngine_impl.initialize() method the following lines of code should be removed:

Properties props = new Properties();
props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory");
props.setProperty(Context.PROVIDER_URL,brokerURI);
jndiContext = new InitialContext(props);

This is dead code not used for anything. Marshall, actually reported seeing NPE thrown from "new InitialContext(props)" when he attached YourKit profiler. Not exactly sure why these NPEs were thrown, since this is not happening when UIMA AS client runs normally ( not under profiler's control). In any case, this code is not needed a should be removed  

--
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] (UIMA-2249) UIMA AS client should not create JNDI InitialContext

Posted by "Marshall Schor (Assigned) (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor reassigned UIMA-2249:
------------------------------------

    Assignee: Marshall Schor  (was: Jerry Cwiklik)
    
> UIMA AS client should not create JNDI InitialContext
> ----------------------------------------------------
>
>                 Key: UIMA-2249
>                 URL: https://issues.apache.org/jira/browse/UIMA-2249
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.4.0AS
>
>
> In BaseUIMAAsynchronousEngine_impl.initialize() method the following lines of code should be removed:
> Properties props = new Properties();
> props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory");
> props.setProperty(Context.PROVIDER_URL,brokerURI);
> jndiContext = new InitialContext(props);
> This is dead code not used for anything. Marshall, actually reported seeing NPE thrown from "new InitialContext(props)" when he attached YourKit profiler. Not exactly sure why these NPEs were thrown, since this is not happening when UIMA AS client runs normally ( not under profiler's control). In any case, this code is not needed a should be removed  

--
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] [Closed] (UIMA-2249) UIMA AS client should not create JNDI InitialContext

Posted by "Marshall Schor (Closed) (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor closed UIMA-2249.
--------------------------------

    Resolution: Fixed

Removed this.  I did notice that Yourkit has some special box you can check re: JNDI things, for J2EE, and it was checked...  Might have been the underlying cause...
                
> UIMA AS client should not create JNDI InitialContext
> ----------------------------------------------------
>
>                 Key: UIMA-2249
>                 URL: https://issues.apache.org/jira/browse/UIMA-2249
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.4.0AS
>
>
> In BaseUIMAAsynchronousEngine_impl.initialize() method the following lines of code should be removed:
> Properties props = new Properties();
> props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory");
> props.setProperty(Context.PROVIDER_URL,brokerURI);
> jndiContext = new InitialContext(props);
> This is dead code not used for anything. Marshall, actually reported seeing NPE thrown from "new InitialContext(props)" when he attached YourKit profiler. Not exactly sure why these NPEs were thrown, since this is not happening when UIMA AS client runs normally ( not under profiler's control). In any case, this code is not needed a should be removed  

--
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