Skip to content

Problem adding the example... #3

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

Open
sanroll opened this issue Jan 6, 2019 · 4 comments
Open

Problem adding the example... #3

sanroll opened this issue Jan 6, 2019 · 4 comments

Comments

@sanroll
Copy link

sanroll commented Jan 6, 2019

Hi, when I try to add the .jar always give me the error:

Unable to find class...

Can anyone help me?

Thx.
BR

@Crim
Copy link
Contributor

Crim commented Jan 7, 2019

Hey @Viox-LJ I'm happy to help, but you're going to need to give me a bit more information to help diagnose what is going on.

Which jar are you uploading? How was it packaged/built? What class are you trying to reference? What values are putting in for each input box in the app?

Thanks!
Stephen

@sanroll
Copy link
Author

sanroll commented Jan 7, 2019

Hey @Viox-LJ I'm happy to help, but you're going to need to give me a bit more information to help diagnose what is going on.

Which jar are you uploading? How was it packaged/built? What class are you trying to reference? What values are putting in for each input box in the app?

Thanks!
Stephen

Hi Stephen, i make the jar downloading this code and execute "mvn package", after that in the target folder have the .jar file.
I go to the interface on Kafka webView and when try to add the filters, select the Jar but when click on Submit have an error. Check the images...

https://imgur.com/18iurh7
https://imgur.com/41TcI9b

Thx for your support.
BR
Viox

@Crim
Copy link
Contributor

Crim commented Jan 8, 2019

Hey @Viox-LJ

I think I see the issue. In the box labeled "fully qualified class name" you need to enter the full classname including it's package.

So for example If you are attempting to use the StringSearchFilter class referenced here

package examples.filter;

import org.sourcelab.kafka.webview.ui.plugin.filter.RecordFilter;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * Example filter that only passes records that contain a configured String value.
 */
public class StringSearchFilter implements RecordFilter {

You would need to enter: examples.filter.StringSearchFilter

This is the package name plus the class name, which provides the complete classpath.

Give that a shot and let me know if it works for you.

Thanks
Stephen

@BDeus
Copy link

BDeus commented Mar 25, 2019

@Viox-LJ are you testing kafka-webview on windows?
If so it currently not working. Test it with a docker container.

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

3 participants