| Summary: | Plugin generator throws StringIndexOutOfBoundsException on Windows | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Hontvári József Levente <hontvari3> |
| Component: | No Component | Assignee: | Heiko W. Rupp <hrupp> |
| Status: | NEW --- | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.4 | CC: | hrupp, jaygreyman |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Windows | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
there is a problem, I believe with a Java Script. Ask programmer on Java Script about this bug. He'll probably help you. Regards, http://www.domyhomework4me.net/ |
Description of problem: On Windows the plugin generator throws an exception after all questions are answered. It runs well with the same answers on Ubuntu. Version-Release number of selected component (if applicable): rhq-pluginGen-1.4.0-SNAPSHOT-jar-with-dependencies.jar – against RHQ 1.4 Snapshot of 2009/09/23 How reproducible: always Steps to Reproduce: C:\Users\levente\home\javaCommon\rhq-http-plugin>java -jar rhq-pluginGen-1.4.0-S NAPSHOT-jar-with-dependencies.jar Please specify the plugin root category PLATFORM(P), SERVER(S), SERVICE(I), S Please specify its Name: HttpChecker Please specify its PackagePrefix: com.flyordie.rhqHttpPlugin Please specify its FileSystemRoot: C:\home\javaCommon\rhq-http-plugin Please specify its ComponentClass: HttpCheckerComponent Please specify its DiscoveryClass: HttpCheckerDiscovery Please specify if it should support Events (y/N): n Please specify its Description: Issues HTTP requests and checks the answer Please specify its ParentType: Please specify if it should support Monitoring (y/N): Please specify if it should support Operations (y/N): Please specify if it should support Singleton (y/N): y Please specify if it should support ResourceConfiguration (y/N): Please specify if it should support SupportFacet (y/N): Please specify if it should support CreateChildren (y/N): Please specify if it should support UsesExternalJarsInPlugin (y/N): y Please specify if it should support DeleteChildren (y/N): y Please specify if it should support ManualAddOfResourceType (y/N): y Please specify if it should support UsePluginLifecycleListenerApi (y/N): y Please specify if it should support DependsOnJmxPlugin (y/N): n Please specify its RhqVersion: 3.0 Do you want to add a child to HttpChecker? (y/N) n Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind ex out of range: 1 at java.lang.String.charAt(Unknown Source) at java.util.regex.Matcher.appendReplacement(Unknown Source) at java.util.regex.Matcher.replaceAll(Unknown Source) at java.lang.String.replaceAll(Unknown Source) at org.rhq.helpers.pluginGen.PluginGen.toDirPath(PluginGen.java:318) at org.rhq.helpers.pluginGen.PluginGen.generate(PluginGen.java:274) at org.rhq.helpers.pluginGen.PluginGen.run(PluginGen.java:94) at org.rhq.helpers.pluginGen.PluginGen.main(PluginGen.java:55) C:\Users\levente\home\javaCommon\rhq-http-plugin> Actual results: Directory stucture is generated, but not Java source files.