Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016649
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Butlerminorhave not tried2011-04-05 15:102011-09-01 12:44
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0016649: Sending hearbeat fails in butler with exception when parsing some heartbeat data

DescriptionWhen sending the following heartbeat data:

76343744 17:58:38 [http-8080-6] INFO org.openbravo.erpCommon.ad_process.HeartbeatProcess - Heartbeat sending: 'webserver=&activityRate=2&javaVersion=1.6.0_22&isheartbeatactive=N&osVersion=2.6.32-24-generic-pae&codeRevision=%24%7Binstance.version%7D&webserverVersion=&proxyServer=&numRegisteredUsers=11&dbVersion=8.4.7&antVersion=&servletContainerVersion=6.0.24&servletContainer=Apache+Tomcat&os=Linux&obInstallMode=From+Sources&obVersion=2.50.17410MP18&complexityRate=3&proxyPort=&isproxyrequired=N&systemIdentifier=2d523f5f-acb6-4c4b-9757-bc7ffacac8f8&db=POSTGRE&beatType=E&'

An exception occurs in butler to process part of this data:

4f0a0c40 05-04-2011 14:28:40 [ajp-8009-10] ERROR org.openbravo.base.exception.OBException - Exception thrown No match found
java.lang.IllegalStateException: No match found
        at java.util.regex.Matcher.group(Matcher.java:468)
        at java.util.regex.Matcher.group(Matcher.java:428)
        at org.openbravo.butler.hearbeat.Component.getRelease(Component.java:109)
        at org.openbravo.butler.hearbeat.HeartbeatServlet.doPost(HeartbeatServlet.java:137)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0018404 closedalostale Not possible to activate HB if versions do not match expected format 

-  Notes
(0035679)
egoitz (manager)
2011-04-06 18:01

The problem is because the parameter &antVersion=
has not any value.
It happens for example when in column ant_version on ad_system_info
you have the following value:

'Apache Ant version 1'

but if you have

'Apache Ant version 1.0'
it works properly.

This is because on file
org.openbravo.erpCommon.utility.SystemInfo
on method
 getVersion(String str)
The following mattern is used and mached with the value of ant_version column:

    Pattern pattern = Pattern.compile("((\\d+\\.)+)\\d+");
    Matcher matcher = pattern.matcher(str);
    if (matcher.find()) {
      version = matcher.group();
    }
    return version;

- Issue History
Date Modified Username Field Change
2011-04-05 15:10 shuehner New Issue
2011-04-05 15:10 shuehner Assigned To => shuehner
2011-04-06 18:01 egoitz Note Added: 0035679
2011-04-06 18:02 egoitz Issue Monitored: networkb
2011-09-01 12:44 alostale Relationship added duplicate of 0018404
2011-09-01 12:44 alostale Status new => closed
2011-09-01 12:44 alostale Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker