Skip to content
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

I get the following error when trying to add SubWindowDesktop #4

Open
mailtokarthik2003 opened this issue Jan 7, 2021 · 3 comments

Comments

@mailtokarthik2003
Copy link

i am using vaadin 14 & jdk1.8 but there is no window concept. so i want to use this addon but i got this error .
pls give me any solution for this .....

Very urgent.......

Caused by: java.lang.IllegalStateException: There is no element with id='desktop' in the template file './sub-window/sub-windows-desktop.js'. Cannot map it using @id
at com.vaadin.flow.component.polymertemplate.IdCollector.collectedInjectedId(IdCollector.java:106) ~[flow-server-3.0.5.jar:3.0.5]
at com.vaadin.flow.component.polymertemplate.IdCollector.lambda$collectInjectedIds$1(IdCollector.java:78) ~[flow-server-3.0.5.jar:3.0.5]
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[na:na]
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[na:na]
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[na:na]
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[na:na]
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na]
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[na:na]
at com.vaadin.flow.component.polymertemplate.IdCollector.collectInjectedIds(IdCollector.java:78) ~[flow-server-3.0.5.jar:3.0.5]
at com.vaadin.flow.component.polymertemplate.IdCollector.collectInjectedIds(IdCollector.java:67) ~[flow-server-3.0.5.jar:3.0.5]
at com.vaadin.flow.component.polymertemplate.TemplateDataAnalyzer.parseTemplate(TemplateDataAnalyzer.java:215) ~[flow-server-3.0.5.jar:3.0.5]
at com.vaadin.flow.component.polymertemplate.TemplateInitializer.(TemplateInitializer.java:91) ~[flow-server-3.0.5.jar:3.0.5]
at com.vaadin.flow.component.polymertemplate.PolymerTemplate.(PolymerTemplate.java:88) ~[flow-server-3.0.5.jar:3.0.5]
at com.vaadin.flow.component.polymertemplate.PolymerTemplate.(PolymerTemplate.java:103) ~[flow-server-3.0.5.jar:3.0.5]
at com.awesomecontrols.subwindow.SubWindowDesktop.(SubWindowDesktop.java:49) ~[flowsubwindow-1.0.3.jar:1.0.3]

@mdre
Copy link
Owner

mdre commented Jan 7, 2021

Hi.
We do not use jdk.8 so I don't know exactly what is happend, but remember to build the component with:

$ gradle build install

and your app with

$ gradle build run -Pvaadin.productionMode

the last parameter run the nodejs build and create de javascript bundle that the component need.

Consider to move on openjdk.11. It's the last LTS so you can use the builded component at mavencentral.

@lavdev
Copy link

lavdev commented Jan 14, 2021

Hi I'm get this error and I'm using JDK 11 with maven... Idea how to fix it ?

@mdre
Copy link
Owner

mdre commented Jan 14, 2021

Hi! Sorry for the delay but I'am in my vacations.
Well, what I see is that the mvn version does not build the component if you not use the production profile. So you need run:

mvn jetty:run -Pproduction

to get it work.

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