Hello, I have problems with Vaadin 14.8.11 and Download Wrapper 4.0.0 The

Hello,

I have problems with Vaadin 14.8.11 and Download Wrapper 4.0.0

The exception is:

java.lang.NoSuchMethodError: org.jsoup.nodes.Element.traverse(Lorg/jsoup/select/NodeVisitor;)Lorg/jsoup/nodes/Element;
    at com.vaadin.flow.component.polymertemplate.TemplateDataAnalyzer.inspectTwoWayBindings (TemplateDataAnalyzer.java:244)
    at com.vaadin.flow.component.polymertemplate.TemplateDataAnalyzer.parseTemplate (TemplateDataAnalyzer.java:233)
    at com.vaadin.flow.component.polymertemplate.TemplateInitializer.<init> (TemplateInitializer.java:96)
    at com.vaadin.flow.component.polymertemplate.PolymerTemplate.<init> (PolymerTemplate.java:91)
    at com.vaadin.flow.component.polymertemplate.PolymerTemplate.<init> (PolymerTemplate.java:106)
    at org.vaadin.olli.FileDownloadWrapper.<init> (FileDownloadWrapper.java:28)
    at org.vaadin.olli.FileDownloadWrapper.<init> (FileDownloadWrapper.java:49)
    at de.brenntag.RFQ.rfqApplication.ui.rfq.Attachments.createDownloadButton (Attachments.java:224)

My usage:

	private FileDownloadWrapper createDownloadButton(FileInDB fileInDB) {

		Button button = new Button("Download");
		FileDownloadWrapper buttonWrapper = new FileDownloadWrapper(
				new StreamResource(fileInDB.getFileName() + "." + fileInDB.getExtension(),
						() -> new ByteArrayInputStream(fileInDB.getByteArray())));
		
		buttonWrapper.wrapComponent(button);
		
		return buttonWrapper;
	}

Do you have any solutions for that ?

Regards

Can you create a minimal project that reproduces the issue?

I use Anchor now to create DownloadButtons and it works very fine:

private Anchor createDownloadButton(FileInDB fileInDB) {

		Anchor downloadLink = new Anchor(new StreamResource(fileInDB.getFileName() + "." + fileInDB.getExtension(),
				() -> new ByteArrayInputStream(fileInDB.getByteArray())), "Download");
		downloadLink.getElement().setAttribute("download", true);
		downloadLink.removeAll();
		downloadLink.add(new Button("Download"));

		return downloadLink;
	}

Thanks for your attention.