Debugging Camel in IntelliJ community edition - intellij-idea

I am using Apache Camel with IntelliJ Community Edition.
I've seen on the official site some kind of debugger for XML DSL, but is not very clear how to use it...
Does it works for the Community edition also? It asks to create a Camel SpringBoot Application run configuration, how I do it?
In fact, when I check for this application, I can't find nothing. I have installed the recommended plugin.

Apache Camel plugin is not compatible with IntelliJ IDEA 2022.1. Try using 2021.3 instead.

First, make sure the plugin is installed and enabled. Check your Preferences -> Plugins -> Installed and make sure the Apache Camel plugin is installed, enabled and its version is 0.8.5.
As previously suggested, if you are running version later than 2021.3.2, the plugin may not be supported, try downgrading to 2021.3.2.
Also, check Preferences -> Languages & Frameworks -> Apache Camel -> Miscellaneous and make sure the checkbox "Enable Camel Debugger" is selected.

Related

how do i config intellij idea + jrebel + liferay dxp

I was checking the liferay V1.1.1 plugin for intellij idea, I could see that you can add liferay servers, you can debug among other things in the Liferay 7.1 version, the problem goes when I want to use jrebel to work with intellij idea for themes and modules , thanks
Try checking out this blog post written by Andrew Jardine over on the Liferay community blog. He covers how to fully configure JRebel to work with Liferay 7.
One thing to watch out for is that in the article in the Agent Configuration section he recommends setting up a javaagent and Xbootclasspath flags. While this works perfectly fine it is a bit easier to use the new recommended agentpath configuration. There is documentation on the JRebel site here on which library you need to use with the agentpath switch depending on which OS and Java bit version you are using.
If things aren't quite working after walking through that blog I would recommend using the Submit a Support Ticket workflow in your IDE (Help > JRebel > Submit a Support Ticket). From there I or someone else from the support team can work with you to figure out what is still missing.

Java VisualVM MBeans plugin

I am running JDK 1.8.0_66 JVisualVM utility and want to use MBeans browser to Monitor my Coherence applications.
According to the Oracle tutorial I have to install the MBeans plugin first. So I went to Tools-Plugins-Available Plugins and there were no any available plugins. I checked my JDK installation for *.nbm files and found nothing.
What do I need to do to install MBeans plugin for JVisualVM? Thank you in advance.
When accessing https://visualvm.java.net I get redirected to http://www.oracle.com/splash/java.net/maintenance/index.html which states that the page has been closed.
Thus I think you have to download and install the plugins manually.
Go to https://visualvm.github.io/pluginscenters.html
Choose the link to "Java VisualVM" according to your JDK version
Download the tool manually
Select "Tools" -> "Plugins" -> "Downloaded" tab to install the downloaded file
Worked for me.
It appears the visualvm site has moved to github.io, so the links are broken. I just updated mine to the correct one on found on
https://visualvm.github.io/pluginscenters.html
In VisualVM go to Tools -> Plugins -> Settings, Edit Java VisualVM Plugins Center, and change the URL to the correct URL for your VisualVM, ex:
https://visualvm.github.io/archive/uc/8u40/updates.xml.gz
After this I was able to update & install plugins using the UI again.
You need to be connected to internet and you should have access to https://visualvm.java.net

IntelliJ Run Configuration Broken by an Incompatible Plugin I Can't Uninstall?

I had been developing an application on a trial version of IntelliJ 2016 Ultimate. Since the trial version ran out, I resumed work using the Community Edition. However, trying to launch my application yielded the following error:
Unknown run configuration type #com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory
"No problem" I thought, just an incompatible plugin that was installed with Ultimate that I don't really need anyway. I opened the Plugins section of the Preferences menu, but I can't find the plugin in question. Below is a partial screenshot of the plugin list where I would expect to see the plugin listed in the error message.
The configuration can also not be edited from the Run/Debug Configurations menu, but lists the Run Configuration error as: "Broken configuration due to unavailable plugin or invalid configuration data."
Am I really unable to uninstall the Ultimate plugin preventing my run configuration from working from the Community Edition? What can I do to fix this if so?
It's have been a long time since this question was launched but it might be useful for new searches.
I got the same error with Dart and Flutter.
Just go to Menu >> File >> Settings. Then type plugins on the search box. Check if your plugins need to be updated (in my case Dart and Flutter). I the screenshot I had clicked in the "update" green button. So it turns into "Restart IDE" text. It should fix the problem once you restart the IDE.
To the best of my knowledge the community edition of IDEA will not load and run plugins that are not compatible with it. Moreover, by default, the community edition uses a different configuration directory than the Ultimate edition. So unless you modified the config directory to use, the community version should not be picking up the Ultimate Edition's plugins. Based on the error you show, I think the issue is you simply need to delete that Run configuration. The error is saying that that Run configuration wants to use a Plugin (The Tomcat Plugin) that is not available (i.e. not installed).
If you still want to confirm what plugins are installed, you can manually uninstall a plugin by removing it from the plugins directory. Note that some plugins are simply a standalone JAR, in the plugins directory, others are sub-directories within the plugins directory. Just delete the JAR or sub-directory.
That plugins directory is the idea config directory. See Directories used by the IDE to store settings, caches, plugins and logs for information on its location. On windows for example, by default it will be:
Ultimate: C:\Users\UserName\.IntelliJIdea2016\config\plugins
Community: C:\Users\UserName\..IdeaIC2016\config\plugins
UPDATE
I forgot to mention... bundled plugins are in ${idea-install-directory}/plugins. So for the ultimate edition, the Tomcat plugin is in ${idea-install-directory}/plugins/Tomcat. That is why, as you mentioned in your comment below, you are not seeing that plugin in the user installed plugin directory I mentioned above.
updating flutter and android studio worked in my
case
Simple upgrade Dart plugin..
Go to Settings/Plugins/Browse Repositories and search dart (Language) and upgrade
this will work.
I had a similar worded issue "Run Configuration Error: Broken configuration due to unavailable plugin or invalid configuration data."
In the bottom right part of the Rider IDE, you will see a popup that says
"Plugin supporting feature (Run Configuration[UNITY_ATTACH_AND_PLAY]) is currently disabled."
Click enable plugins, and restart when Rider asks you to do so.
If this does not work, remember that one possible reason is the issues with macOS indexing (my Macbook started to malfunction after its battery hit 0). A way to check is to try and search a file from the top right corner(). If you can not find existing files, this means macOS messed up with indexing.
To solve it, click Apple icon on top left side and go to System Preferences -> Spotlight -> Privacy Tab -> Add all folders to the "won't index" box -> Remove everything you have added so they get reindexed.
https://www.techradar.com/how-to/software/operating-systems/how-to-fix-a-mac-s-broken-find-function-1298964
Lastly, go to Rider and hit File -> Invalidate Caches and Restart.

Unable to to load Tomcat plugin in IntelliJ

I am running IntelliJ 15 Ultimate and trying to enable the Tomcat plugin (which for some reason was disabled). However, IntelliJ does not seem to let me re-enable it.
What I have tried is
Re-install IntelliJ 15, and I chose to replace the old version, but the problems with the plugin seem to be persistent
Deleting /Applications/IntelliJ IDEA 15.app/Contents/plugins/Tomcat between the re-installs to ensure it was not being re-used, but with no avail
Verifying that I have a licensed/paid version of IntelliJ 15 Ultimate edition
At this point I'm not sure what to do, as a re-install clearly did not work. Are there any directories or files I could manually change/remove?
I am using OS X version 10.11.2 is that matters.
You need to enable the "Java EE: EJB, JPA, Servlets" plugin as well. The message is displayed because that plugin is not enabled, and the Tomcat plugin depends on it.
The only solution I could come up with was to entirely wipe IntelliJ and any config files it created as described in this answer.
Upon installing IntelliJ once again, the Tomcat plugin was enabled and was able to create a run configuration for that! Maybe not a fix per se, but it works as expected again.

No support for Wildfly 9.0.0.Final in Intellij 12.1.6

When I add a new Application Server IntelliJ, pointing to the home path of the Wildfly 9.0.0.Final, IntelliJ shows me this warning:
"The selected directory is not a valid Jboss home"
Is this a question of Wildfly configuration someone from Wildfly team must fix or it is a question of too old IntelliJ or maybe the 'Jboss integration plugin' needs to be updated?
This is a a result of too old version of Intellij IDEA.
Or as you point out jboss integration plugin, which is bundled with IDEA itself.
There is also a trick to make IDEA belive it still supports newer version of WildFly.
We had it in place for some time in WildFly distro but was later removed as IDEA got official support for wildfly.
in short, this is the workaround https://github.com/wildfly/wildfly/blob/8.x/build/build.xml#L1551
all you need to do is to go to WILDFLY_HOME/modules/system/layers/base/org/jboss/as/version/main/ folder
and make copy of wildfly-version-xx.jar and rename the copy to jboss-as-version-xx.jar
where xx is the version of the wildfly.