-
Notifications
You must be signed in to change notification settings - Fork 4
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
Perl script used to generate props file generates invalid java.extended.property #357
Comments
Defect validated with Ulf from support. |
Some more details to the issue: e.g., Output:
Test (same operations as done in /home/tibco/be/run script):
Result (extracted only values after "-javaagent:")
Note: With above settings you able to start an agent when Telemetry not enabled, if enabled the CacheAgent will not start (NullPointer exception).
|
;tldr Setting this:
Results in this being written to the props file:
Whereas, setting:
Results in this being written to the props file:
|
Version Information
What is the expected behavior?
IA starts without NPE when configured with Open Telemetry OTLP type
What is the actual behavior?
NPE thrown and IA fails
Please provide a unit test that demonstrates the bug.
Other notes on how to reproduce the issue?
When tra.java.extended.property is set via environment through Helm chart and it contains hard coded path to the cep-base.jar rather than %BE_HOME% then the perl script generates incorrect value for tra.java.extended.properties with the value of the javaagent property missing.
Please provide log files.
2024 Jul 23 11:49:01:691 GMT +02 ia1 FATAL [main] - [container.standalone] null
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initOpenTelemetry(RuleServiceProviderImpl.java:1180)
at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initCluster(RuleServiceProviderImpl.java:829)
at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:299)
at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:169)
at com.tibco.cep.container.standalone.BEMain.main(SourceFile:71)
Caused by: java.lang.NullPointerException
at net.bytebuddy.agent.builder.AgentBuilder$Default.doInstall(AgentBuilder.java:10254)
at net.bytebuddy.agent.builder.AgentBuilder$Default.installOn(AgentBuilder.java:10156)
at net.bytebuddy.agent.builder.AgentBuilder$Default$Delegator.installOn(AgentBuilder.java:11790)
at com.tibco.cep.telemetry.trace.DefaultIntrumentLoader.load(DefaultIntrumentLoader.java:39)
at com.tibco.cep.telemetry.TelemetryService.lambda$instrument$1(TelemetryService.java:90)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at com.tibco.cep.telemetry.TelemetryService.instrument(TelemetryService.java:90)
at com.tibco.cep.telemetry.TelemetryService.init(TelemetryService.java:52)
... 9 more
Any possible solutions?
Can you identify the location in the source code where the problem exists?
If the bug is confirmed, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)
The text was updated successfully, but these errors were encountered: