I'm on Eclipse 2020-06 and when I try to performe the "Update Maven Project" I get the error:
An internal error occurred during: "Updating Maven Project".
org.eclipse.core.internal.content.Activator.getFactory()Ljavax/xml/parsers/SAXParserFactory;
Looking following links the problem seems related to a class removed in the eclipse core that was used from some plug-in. Now it should be resolved... but I still didn't get how to solve it.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=565222
https://bugs.eclipse.org/bugs/show_bug.cgi?id=564634
https://www.eclipse.org/forums/index.php/t/1104205/
This is the error stacktrace:
java.lang.NoSuchMethodError: org.eclipse.core.internal.content.Activator.getFactory()Ljavax/xml/parsers/SAXParserFactory;
at org.fusesource.ide.foundation.core.xml.namespace.FindNamespaceHandlerSupport.parseContents(FindNamespaceHandlerSupport.java:67)
at org.fusesource.ide.foundation.core.xml.namespace.NamespaceXmlContentDescriberSupport.fillContentProperties(NamespaceXmlContentDescriberSupport.java:106)
at org.fusesource.ide.foundation.core.xml.namespace.NamespaceXmlContentDescriberSupport.checkCriteria(NamespaceXmlContentDescriberSupport.java:45)
at org.fusesource.ide.foundation.core.xml.namespace.NamespaceXmlContentDescriberSupport.describe(NamespaceXmlContentDescriberSupport.java:77)
at org.fusesource.ide.foundation.core.xml.namespace.NamespaceXmlContentDescriberSupport.describe(NamespaceXmlContentDescriberSupport.java:64)
at org.fusesource.ide.camel.model.service.core.util.CamelFilesFinder.isFuseCamelContentType(CamelFilesFinder.java:112)
at org.fusesource.ide.camel.model.service.core.util.CamelFilesFinder.findFiles(CamelFilesFinder.java:64)
at org.fusesource.ide.camel.model.service.core.util.CamelFilesFinder.findFiles(CamelFilesFinder.java:59)
at org.fusesource.ide.projecttemplates.maven.CamelProjectConfigurator.checkCamelContextsExist(CamelProjectConfigurator.java:333)
at org.fusesource.ide.projecttemplates.maven.CamelProjectConfigurator.configure(CamelProjectConfigurator.java:89)
at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:122)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$2(ProjectConfigurationManager.java:511)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:153)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:505)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration0(ProjectConfigurationManager.java:443)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$1(ProjectConfigurationManager.java:358)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:153)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:101)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1370)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:357)
at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:79)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Related
I do have a problem with Eclipse 4.5 when building a JUnit Test Class.
I can build all tests with the help of ant in its repository.
I think it is a configuration problem in Eclipse.
I already followed a lot of solutions in this forum:
Cleaning the path of eclipse itself
restarting eclipse
try to compile with JUnit3
try to compile with JUnit4
try another JRE
start the project in a different workspace
The reason why I haven't updated my Eclipse is because my company only uses Eclipse 4.5. So I can't accept an answer to update it.
The error log:
!ENTRY org.eclipse.core.jobs 4 2 2019-09-09 17:55:58.495
!MESSAGE An internal error occurred during: "Launching JUnitEntityDBUtility".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:429)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:418)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.addEntry(JUnitLaunchConfigurationDelegate.java:405)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localizeClasspath(JUnitLaunchConfigurationDelegate.java:396)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getClasspath(JUnitLaunchConfigurationDelegate.java:373)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:147)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Delete and recreate your JUnitEntityDBUtility launch configuration.
The stack trace can be found here and here. At the second finding you will find the explanation and a workaround by Moritz Eysholdt for your issue as follows (highlighting by me):
That NPE occurs if you execute a test's launch config in an Eclipse
that does not have the plugin org.eclipse.jdt.junit4.runtime.patch
installed when the launch config was created by an Eclipse that did
actually have org.eclipse.jdt.junit4.runtime.patch installed.
Workaround: Install org.eclipse.jdt.junit4.runtime.patch via the Xpect
update site or delete+recreate your launch configuration.
[...]
I've a "spring boot app" application.
I'm executing my software with "gradle bootRun" and It works correctly for all developers.
To make the jar or war I've used maven and currently I'm using gradle.
With both methods to generated jar or war the execution of software from this artifacts isn't working propertly in one of hundreds of use cases.
The error is:
Error: Error while starting plugin CheckGebaeudeVersicherungsSystemIoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.IntersectsIoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.no_overlaps_2_1_6_IoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.no_overlaps_2_2_0_IoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
This seems to be an error of a missing dependency.
This error is not because of something on the code. In eclipse with execution and debug, all is working properly!
What's the difference in execute between "gradle bootRun"/"mvn spring-boot:run" and the execution with java commad (traditional "java -jar jar/war")?
I have Intellij 2017.2.3 and Checkstyle-IDEA 5.10.0 running on my Ubuntu 17 dekstop. When i try to add a checkstyle for my Java project (at Settings->Other settings->Checkstyle) I get this error message:
java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:963)
at org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:391)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:217)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.contextualize(AutomaticBean.java:249)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:455)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:186)
at org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:58)
at org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:26)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.executeCommand(CheckstyleActionsImpl.java:126)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:56)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:47)
at org.infernus.idea.checkstyle.checker.CheckerFactoryWorker.run(CheckerFactoryWorker.java:44)
Is it familiar for anyone?
I got the same issue while migrating the project from WAS 8 to WAS Liberty.
I did copying the jar commons-collections.jar in to the server location /servers/<server_name>/lib/global and resolved it.
So try to place the jar at IntelliJ local server.
java.lang.NoClassDefFoundError: org.apache.commons.collections.FastHashMap
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:963)
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:935)
at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:823)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:431)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
My maven project is properly associated with the project on our Sonar server. When I try to use the Eclipse "Analyze Project" option, it brings up a Problem Occurred window with
"'Synchronize issues' has encountered a problem.
An internal error occurred during: "Synchronize issues".
The details dropdown has
An internal error occurred during: "Synchronize issues".
org.apache.commons.lang.StringUtils.defaultIfBlank(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
If I look in the Eclipse log, I see
!ENTRY org.eclipse.core.jobs 4 2 2015-07-13 14:07:23.716
!MESSAGE An internal error occurred during: "Synchronize issues".
!STACK 0
java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.defaultIfBlank(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
at org.sonar.ide.eclipse.core.internal.jobs.AnalyseProjectJob.(AnalyseProjectJob.java:88)
at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.scheduleIncrementalAnalysis(SynchronizeAllIssuesJob.java:100)
at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.run(SynchronizeAllIssuesJob.java:79)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Strangely enough, I installed the plugin on another machine today and Analyze Project works fine. Any ideas what could be causing this?
While trying to install maven in eclipse juno in ubuntu 14 am getting following error:
An error occurred while collecting items to be installed session context was:
(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Artifact not found: http://download.eclipse.org/technology/m2e/releases/1.4/1.4.1.20140328-1905/plugins/org.eclipse.m2e.maven.indexer_1.4.1.20140328-1501.jar. http://download.eclipse.org/technology/m2e/releases/1.4/1.4.1.20140328-1905/plugins/org.eclipse.m2e.maven.indexer_1.4.1.20140328-1501.jar
I tried following suggestion given for questions similar to this issue, but am not able to install maven. Your earliest response is appreciated.