Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Dollar Signs in Class Names #60

Open
stro18 opened this issue Apr 26, 2022 · 0 comments
Open

Handle Dollar Signs in Class Names #60

stro18 opened this issue Apr 26, 2022 · 0 comments

Comments

@stro18
Copy link
Contributor

stro18 commented Apr 26, 2022

Description
If the application under test contains classes with names containing an '$' (e.g., Tomcat), the analysis of the application fails with the following error:

java.lang.IndexOutOfBoundsException: No group 8
        at java.base/java.util.regex.Matcher.start(Matcher.java:483)
        at java.base/java.util.regex.Matcher.appendExpandedReplacement(Matcher.java:1091)
        at java.base/java.util.regex.Matcher.appendReplacement(Matcher.java:998)
        at java.base/java.util.regex.Matcher.replaceAll(Matcher.java:1182)
        at java.base/java.lang.String.replaceAll(String.java:2126)
        at net.kieker.sourceinstrumentation.instrument.codeblocks.CodeBlockTransformer.replaceTypeVariables(CodeBlockTransformer.java:48)
        at net.kieker.sourceinstrumentation.instrument.codeblocks.CodeBlockTransformer.getTransformedBlock(CodeBlockTransformer.java:29)
        at net.kieker.sourceinstrumentation.instrument.codeblocks.BlockBuilder.buildEmptyConstructor(BlockBuilder.java:138)
        at net.kieker.sourceinstrumentation.instrument.codeblocks.BlockBuilder.buildEmptyConstructor(BlockBuilder.java:114)
        at net.kieker.sourceinstrumentation.instrument.TypeInstrumenter.createDefaultConstructor(TypeInstrumenter.java:229)
        at net.kieker.sourceinstrumentation.instrument.TypeInstrumenter.handleDefaultConstructor(TypeInstrumenter.java:217)
        at net.kieker.sourceinstrumentation.instrument.TypeInstrumenter.handleChildren(TypeInstrumenter.java:154)
        at net.kieker.sourceinstrumentation.instrument.TypeInstrumenter.handleTypeDeclaration(TypeInstrumenter.java:70)
        at net.kieker.sourceinstrumentation.instrument.FileInstrumenter.handleTypeDeclaration(FileInstrumenter.java:60)
        at net.kieker.sourceinstrumentation.instrument.FileInstrumenter.instrument(FileInstrumenter.java:44)
        at net.kieker.sourceinstrumentation.instrument.InstrumentKiekerSource.instrument(InstrumentKiekerSource.java:48)
        at net.kieker.sourceinstrumentation.instrument.InstrumentKiekerSource.instrumentProject(InstrumentKiekerSource.java:42)
        at de.dagere.peass.execution.kieker.KiekerEnvironmentPreparer.instrumentSources(KiekerEnvironmentPreparer.java:75)
        at de.dagere.peass.execution.kieker.KiekerEnvironmentPreparer.prepareKieker(KiekerEnvironmentPreparer.java:51)
        at de.dagere.peass.execution.utils.TestExecutor.prepareKiekerSource(TestExecutor.java:104)
        at de.stro18.peass_ant.executor.AntTestExecutor.prepareKoPeMeExecution(AntTestExecutor.java:75)
        at de.dagere.peass.dependency.KiekerResultManager.executeKoPeMeKiekerRun(KiekerResultManager.java:127)
        at de.dagere.peass.dependency.KiekerResultManager.runTraceTests(KiekerResultManager.java:94)
        at de.dagere.peass.dependency.DependencyManager.initialyGetTraces(DependencyManager.java:110)
        at de.dagere.peass.dependency.reader.InitialVersionReader.readInitialVersion(InitialVersionReader.java:45)
        at de.dagere.peass.dependency.reader.DependencyReader.readInitialVersion(DependencyReader.java:280)
        at de.dagere.peass.dependency.parallel.OneReader.run(OneReader.java:42)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

Note: The described error might be caused by Kieker-Source-Instrumentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant