Comments (18)
How do you import the project in your IDE ?
If I import it as a Maven projet I don't have any issue.
from vertx-examples.
Yes, I originally imported as a Maven project.
If I try again from scratch as a new user would after cloning the project, I get a further issue:
Error:(26, 16) java: cannot find symbol
symbol: class ProcessorServiceVertxEBProxy
location: interface io.vertx.examples.service.ProcessorService
This I guess is because the service proxy classes need generating.
This is going to confuse users. I think it's important that users can get going with vertx-examples straight away without any extra steps, as this will be the first thing they see in Vert.x
from vertx-examples.
So, this issue is 'expected', we discussed it with @vietj.
We can replace the call by using the helper and mention it in the documentation. What do you think ?
from vertx-examples.
As long as the user can get an example working like the following, I don't mind:
- git clone https://github.com/vert-x3/vertx-examples.git
- IntelliJ: import maven project
- Right click main class of example... run
There should be no other steps imho. If a user gets stuck with a cryptic error trying to run the simplest helloworld example they may just walk away from Vert.x and never come back again.
from vertx-examples.
I've changed the service proxy example in f41e5e6.
I've tried the process you mention and it works for me.
from vertx-examples.
If I git clone, import, and rebuild project I still get: can't find ProcessorServiceVertxEBProxy
from vertx-examples.
Oupsy, forgot this reference.
Should be better in 4f8cd95
from vertx-examples.
Thanks, that solves the issue of the build failing for the service proxy example, but now I see the original issue again:
Error:osgi: [osgi-examples] Failed to load plugin org.apache.felix.ipojo.bnd.PojoizationPlugin;, error: org.apache.felix.ipojo.bnd.PojoizationPlugin not found, parent: java.net.URLClassLoader@45ee12a urls:[] exception:java.lang.ClassNotFoundException: org.apache.felix.ipojo.bnd.PojoizationPlugin
from vertx-examples.
I'm going to install a new instance of intellij as I cannot reproduce that one.
from vertx-examples.
I am using 14.0.3 btw
from vertx-examples.
Just a guess - maybe you have manually installed some kind of OSGI plugin in your IDE, that I don't have, and is required for this example?
from vertx-examples.
No, I'm a purist ;-)
OSGi does not require any IDE plugin. However, Intellij enables one by default that generally messes up things...
I'm downloading community and ultimate. It needs to work out of the box on both.
from vertx-examples.
Clement - I have license keys for ultimate that you're entitled too, just sent you a private email.
from vertx-examples.
Ok, I've reproduced the issue, it's the intellij OSGi support (osmorc) that is unable to load BND plugins. I'm looking into it.
from vertx-examples.
I've moved the osgi-examples to their own profile (not enabled by default). This fixed the Intellij issue.
(879bf72)
So, the issue is in Osmorc the OSGi plugin of intellij unable to read the configuration (as it is intended to do). The main issue is that it does not support the plugin's dependencies and fails to create the right classloader to execute BND. So the commit is just a work around this issue.
from vertx-examples.
Ok, I guess this should just be closed then.
from vertx-examples.
Ok :-) Wanted to add the link to the osmorc bug once opened.
from vertx-examples.
Here is the Osmorc bug ticket:
https://youtrack.jetbrains.com/issue/IDEA-141732
from vertx-examples.
Related Issues (20)
- Upgrade Gradle to latest HOT 1
- Study wether to move large examples to how-tos or remove them
- resteasy-vertx example exception HOT 2
- Build fail in the react example belongs to vertx-web module on RHEL8 with FIPS enabled HOT 1
- vertx-web oauth2 example fails to start HOT 1
- a "Mail Client" question HOT 1
- Vertx MailClient 'createShared' is broken as of 3.x (3.9?). HOT 2
- HttpClient request exception when host is a url HOT 2
- Provide examples of using jdk9 and Java Platform Module System
- I packaged and ran the image through jlink, and the error occurred at startup
- NPE in vertx-redis-client 4.3.0 HOT 1
- Cleaning Pool for Idle Connection
- how to enable tls1.3 and early data for 0RTT HOT 2
- CompositeFuture.join bug
- Remove the adoc description of Groovy verticles from the vertx-core example HOT 1
- About log4j support HOT 3
- how to close log println about [vert.x-eventloop-thread-0] HOT 1
- Event bus codec doesn't work for a list of objet HOT 1
- Missing dependency for "Unresolved plugin: 'com.fizzed:rocker-maven-plugin" in web-example/pom.xml HOT 2
- Cannot start vertx-web server after add `spring-boot-dependencies` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vertx-examples.