Skip to content

Perl script used to generate props file generates invalid java.extended.property #357

@mmussett

Description

@mmussett

Version Information

Software Version(s)
BusinessEvents 6.2.2
OS Type? GKE
OS Version? GKE
Docker
Kubernetes Yes
Helm Yes

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)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions