question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setSchemaRegistryProperties method exception

See original GitHub issue

I got this issue

net.coru.kloadgen.config.schemaregistry.SchemaRegistryConfigElement#setSchemaRegistryProperties(LinkedList [PropertyMapping(propertyName=schema.registry.auth.enabled, propertyValue=NO), PropertyMapping(propertyName=schema.registry.auth.method, propertyValue=BASIC), PropertyMapping(propertyName=schema.registry.username, propertyValue=<username>), PropertyMapping(propertyName=schema.registry.password, propertyValue=<password>), PropertyMapping(propertyName=schema.registry.bearer, propertyValue=<bearer>)]

and this is the detail.

java.lang.Error: This should never happen. Tried to invoke:
net.coru.kloadgen.config.schemaregistry.SchemaRegistryConfigElement#setSchemaRegistryProperties(LinkedList [PropertyMapping(propertyName=schema.registry.auth.enabled, propertyValue=NO), PropertyMapping(propertyName=schema.registry.auth.method, propertyValue=BASIC), PropertyMapping(propertyName=schema.registry.username, propertyValue=<username>), PropertyMapping(propertyName=schema.registry.password, propertyValue=<password>), PropertyMapping(propertyName=schema.registry.bearer, propertyValue=<bearer>)] )
	at org.apache.jmeter.testbeans.TestBeanHelper.invokeOrBailOut(TestBeanHelper.java:169) ~[ApacheJMeter_core.jar:5.2.1]
	at org.apache.jmeter.testbeans.TestBeanHelper.prepare(TestBeanHelper.java:97) ~[ApacheJMeter_core.jar:5.2.1]
	at org.apache.jmeter.threads.TestCompiler.trackIterationListeners(TestCompiler.java:183) ~[ApacheJMeter_core.jar:5.2.1]
	at org.apache.jmeter.threads.TestCompiler.subtractNode(TestCompiler.java:137) ~[ApacheJMeter_core.jar:5.2.1]
	at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:998) ~[jorphan.jar:5.2.1]
	at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:995) ~[jorphan.jar:5.2.1]
	at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:977) ~[jorphan.jar:5.2.1]
	at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:703) ~[ApacheJMeter_core.jar:5.2.1]
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253) ~[ApacheJMeter_core.jar:5.2.1]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_252]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_252]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252]
	at org.apache.jmeter.testbeans.TestBeanHelper.invokeOrBailOut(TestBeanHelper.java:167) ~[ApacheJMeter_core.jar:5.2.1]
	... 9 more
Caused by: java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:460) ~[?:1.8.0_252]
	at java.util.Properties.setProperty(Properties.java:166) ~[?:1.8.0_252]
	at net.coru.kloadgen.config.schemaregistry.SchemaRegistryConfigElement.serializeProperties(SchemaRegistryConfigElement.java:58) ~[kloadgen-1.2.0.jar:?]
	at net.coru.kloadgen.config.schemaregistry.SchemaRegistryConfigElement.setSchemaRegistryProperties(SchemaRegistryConfigElement.java:45) ~[kloadgen-1.2.0.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_252]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_252]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252]
	at org.apache.jmeter.testbeans.TestBeanHelper.invokeOrBailOut(TestBeanHelper.java:167) ~[ApacheJMeter_core.jar:5.2.1]
	... 9 more

From Jmeter source

/**
     * Utility method that invokes a method and does the error handling around
     * the invocation.
     *
     * @param invokee
     *            the object on which the method should be invoked
     * @param method
     *            the method which should be invoked
     * @param params
     *            the parameters for the method
     * @return the result of the method invocation.
     */
    private static Object invokeOrBailOut(Object invokee, Method method, Object[] params) {
        try {
            return method.invoke(invokee, params);
        } catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException e) {
            throw new Error(createMessage(invokee, method, params), e);
        }
    }

I guess the method invoke one of those three exceptions which is illegalArgumentException, illegalAccessException and InvocationTargetException.

What am I supposed to do with that ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
kszoszecommented, May 15, 2020

Hi Kojo, thanks!! I’m gonna close this issue, if anything just open a new one please. Regards!

1reaction
kszoszecommented, May 14, 2020

Hi Kojo, I cannot reproduce this error. Are you still using the same jmx file? Have you proper configured your Schema Registry with a testing avro? I need more feedback in order to analyse this error. I updated master with all fixes and some tweaks, so please try with that branch. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Schema Registry Configuration Options
REMOVED AS A METHOD OF CONFIGURING LEADER ELECTION: For leader election, use kafkastore.bootstrap.servers instead of kafkastore.connection.url . Important.
Read more >
Cannot set max.schemas.per.subject due to cast exception #284
I attempted to add max.schemas.per.subject=5 to my properties file (using the REST proxy, should that end up mattering).
Read more >
Using Apache Kafka with Schema Registry and Avro - Quarkus
This guide shows how your Quarkus application can use Apache Kafka, Avro serialized records, and connect to a schema registry (such as the...
Read more >
AWS Glue Schema Registry
Describes the use of the AWS Glue Schema Registry. ... original schema version does not allow any additional properties by setting the additionalProperties ......
Read more >
SchemaRegistry (IBM Event Streams schema registry serdes ...
SchemaRegistry ; KeyManagementException - in the event of a failure to configure TLS for the connection to the Schema Registry ; NoSuchAlgorithmException -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found