[jopr-issues] [JBoss JIRA] Commented: (JOPR-88) TC5 not discovered due to NPE
Jay Shaughnessy (JIRA)
jira-events at lists.jboss.org
Wed Mar 11 17:13:36 EDT 2009
[ https://jira.jboss.org/jira/browse/JOPR-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12456802#action_12456802 ]
Jay Shaughnessy commented on JOPR-88:
-------------------------------------
I think this is just a coding mistake, instead of
if (null == cwdPath)
it should be
if (null == result)
The logic around determining the install dir this way was due to the impl of EWS CR1, where catalina.home was being defined as a relative path making things difficult. This is rectified in CR2.
> TC5 not discovered due to NPE
> -----------------------------
>
> Key: JOPR-88
> URL: https://jira.jboss.org/jira/browse/JOPR-88
> Project: Jopr
> Issue Type: Bug
> Components: Plugin - Tomcat
> Affects Versions: 2.2
> Reporter: Heiko W. Rupp
> Assignee: Jay Shaughnessy
> Fix For: 2.2
>
>
> TC5 of EWS is not discovered:
> 2009-03-11 10:59:36,622 INFO [RHQ Agent Prompt Input Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentM
> ain.prompt-command-invoked}Prompt command invoked: [discovery, --full]
> 2009-03-11 10:59:36,622 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.AutoDiscoveryExecutor)-
> Executing server discovery scan...
> 2009-03-11 10:59:36,739 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.AutoDiscoveryExecutor)-
> Process scan auto-detected new server resource: scan=[ProcessScan: query=[process|basename|match=^java.*,a
> rg|org.apache.catalina.startup.Bootstrap|match=.*], name=[Tomcat]], discovered-process=[process: pid=[2937]
> , name=[/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/java], ppid=[1]]
> 2009-03-11 10:59:36,739 WARN [InventoryManager.discovery-1] (jboss.on.plugins.tomcat.TomcatDiscoveryCompon
> ent)- Version script file not found in expected location: null/bin/version.sh
> 2009-03-11 10:59:36,740 ERROR [InventoryManager.discovery-1] (jboss.on.plugins.tomcat.TomcatDiscoveryCompon
> ent)- Error creating discovered resource for process: ProcessScanResult: scan=[ProcessScan: query=[process|
> basename|match=^java.*,arg|org.apache.catalina.startup.Bootstrap|match=.*], name=[Tomcat]], info=[process:
> pid=[2937], name=[/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/java], ppid=[1]]
> java.lang.NullPointerException
> at java.util.regex.Matcher.getTextLength(Matcher.java:1151)
> at java.util.regex.Matcher.reset(Matcher.java:308)
> at java.util.regex.Matcher.<init>(Matcher.java:228)
> at java.util.regex.Pattern.matcher(Pattern.java:905)
> at org.jboss.on.plugins.tomcat.TomcatDiscoveryComponent.isEWS(TomcatDiscoveryComponent.java:199)
> at org.jboss.on.plugins.tomcat.TomcatDiscoveryComponent.parseTomcatProcess(TomcatDiscoveryComponent
> .java:158)
> at org.jboss.on.plugins.tomcat.TomcatDiscoveryComponent.discoverResources(TomcatDiscoveryComponent.
> java:111)
> Process info for TC5 from ps :
> 2937 pts/5 Sl 0:02 /usr/lib/jvm/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/home/hrupp/jboss-ews-1.0/tomcat5/conf/logging.properties -Djava.endorsed.dirs=/home/hrupp/jboss-ews-1.0/tomcat5/common/endorsed -classpath :/home/hrupp/jboss-ews-1.0/tomcat5/bin/bootstrap.jar:/home/hrupp/jboss-ews-1.0/tomcat5/bin/commons-logging-api.jar -Dcatalina.base=/home/hrupp/jboss-ews-1.0/tomcat5 -Dcatalina.home=/home/hrupp/jboss-ews-1.0/tomcat5 -Djava.io.tmpdir=/home/hrupp/jboss-ews-1.0/tomcat5/temp org.apache.catalina.startup.Bootstrap start
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jopr-issues
mailing list